Coder Social home page Coder Social logo

core.mo's Introduction

Core Libraries for Motoko

The core library is a curated collection of libraries designed to enhance and extend the functionality of the Motoko programming language. This repository aims to provide robust and efficient tools that are essential for building various applications in Motoko.

Content Table

Current Libraries

CBOR (Concise Binary Object Representation)

The CBOR library provides functions to encode and decode data in CBOR format, which is a compact data format designed for efficient data exchange.

import CBOR "mo:core/cbor/CBOR";

let value = encode(#TextString("Hello world!"));
// "\6C\48\65\6C\6C\6F\20\77\6F\72\6C\64\21"

Read more...

Certified Variables

Canister smart contracts can declare variables as certified. Whenever set, these variables will automatically get a Merkle tree certificate, signed by the Internet Computer blockchain. This allows anyone to verify the authenticity of this type of data using the Internet Computer's public key.

Read more...

Crypto

The Crypto library offers a collection of cryptographic functions and utilities, enabling secure data handling and operations within Motoko applications.

Read more...

SHA256

The SHA256 submodule provides a robust SHA-256 hashing function, crucial for creating secure digital fingerprints of data.

import SHA256 "mo:core/crypto/SHA256";

let hash = SHA256.sum(Blob.toArray(Text.encodeUtf8("Hello, world!")));

Encoding

The Encoding library includes various encoding schemes necessary for data manipulation and storage within Motoko applications.

Read more...

Binary

The Binary submodule allows for straightforward encoding and decoding of binary data, facilitating binary data handling in a variety of applications.

Hex

The Hex submodule provides functionalities to encode data into hexadecimal format and decode it back, which is useful for debugging and logging.

core.mo's People

Contributors

q-uint avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.