Skip to main content

Crate snap_coin

Crate snap_coin 

Source

Re-exports§

pub use core::economics;
pub use core::economics::to_snap;
pub use economics::to_nano;

Modules§

api
A struct for interacting with a node instance through the Snap Coin API
blockchain_data_provider
Provides a standardized way to access blockchain data from many sources
bounded_set
A set with a maximum capacity that deletes the oldest elements first
core
Core implementation of Snap Coin, contains all blockchain logic
crypto
Contains all crypto primitives
full_node
Full node logic
light_node
Light node logic
node
Handles the basic P2P protocol of a node
version
Current Snap Coin version

Enums§

UtilError

Functions§

build_block
Build a new block, given a blockchain data provider reference and a transaction vector WARNING: This does not compute block pow nor hash! WARNING: It is assumed that all input transactions are fully valid (at current blockchain height) WARNING: This function adds reward transactions for you!
build_transaction
Build a new transactions, sending from sender to receiver where each receiver has a amount to receive attached. Takes biggest coins first. WARNING: this does not compute transaction pow!