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§

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
client
Snap Coin API client
core
Core implementation of Snap Coin, contains all blockchain logic
crypto
Contains all crypto primitives
node
Handles the basic P2P protocol of a node
requests
Snap Coin API client requests and responses
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!