leo/compiler/core
2022-07-11 14:10:22 -07:00
..
src update licenses 2022-07-02 13:47:53 -07:00
Cargo.toml impl program json, aleo build and run working 2022-07-11 14:10:22 -07:00
LICENSE.md rename corelib -> core, update readme 2022-06-02 11:22:08 -04:00
README.md rename corelib -> core, update readme 2022-06-02 11:22:08 -04: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);