leo/compiler/core
2022-08-15 16:10:51 -07:00
..
src merge testnet3 2022-08-15 16:10:51 -07:00
Cargo.toml remove unused code 1 2022-07-25 14:17:36 -07:00
LICENSE.md rename corelib -> core, update readme 2022-06-02 11:22:08 -04:00
README.md fix readmes and licenses 2022-07-12 16:46:42 -07:00

leo-core

Crates.io Authors License

This directory includes the core library for Leo.

Usage

Leo's core library is statically built into the compiler. All modules in the leo-core rust module will be automatically included in a core Leo module that can be imported into a Leo program.

Implementations

For a full explanation of core library functions, see the Aleo developer documentation

Core Library (Account)

Compute Key

import core.account.ComputeKey;

function foo(public compute_key: ComputeKey);
function foo(compute_key: ComputeKey);

Private Key

import core.account.PrivateKey;

function foo(public private_key: PrivateKey);
function foo(private_key: PrivateKey);

Record

import core.account.Record;

function foo(public record: Record);
function foo(record: Record);

Signature

import core.account.Signature;

function foo(public signature: Signature);
function foo(signature: Signature);

View Key

import core.account.ViewKey;

function foo(public view_key: ViewKey);
function foo(view_key: ViewKey);

Core Library (Algorithms)

Poseidon

import core.algorithms.Poseidon;

function foo(public poseidon: Poseidon);
function foo(poseidon: Poseidon);