mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-28 04:35:33 +03:00
1.5 KiB
1.5 KiB
leo-core
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);