Struct radiancy::blockchain::blockchain::Blockchain [−][src]
Fields
tip: Vec<u8>
block_db: Tree
state_db: Tree
Methods
impl Blockchain
[src]
impl Blockchain
pub fn iterator(self) -> BlockchainIterator
[src]
pub fn iterator(self) -> BlockchainIterator
pub fn mine_block(self, transactions: Vec<Transaction>) -> Block
[src]
pub fn mine_block(self, transactions: Vec<Transaction>) -> Block
impl Blockchain
[src]
impl Blockchain
pub fn sign_transaction(self, _tx: Transaction, _priv_key: Vec<u8>)
[src]
pub fn sign_transaction(self, _tx: Transaction, _priv_key: Vec<u8>)
pub fn verify_transaction(self, _tx: Transaction) -> bool
[src]
pub fn verify_transaction(self, _tx: Transaction) -> bool
impl Blockchain
[src]
impl Blockchain
pub fn find_transaction(self, _id: Vec<u8>) -> Transaction
[src]
pub fn find_transaction(self, _id: Vec<u8>) -> Transaction
pub fn find_utxo(self) -> HashMap<String, TXOutputs>
[src]
pub fn find_utxo(self) -> HashMap<String, TXOutputs>
Trait Implementations
impl Clone for Blockchain
[src]
impl Clone for Blockchain
fn clone(&self) -> Blockchain
[src]
fn clone(&self) -> Blockchain
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for Blockchain
impl Send for Blockchain
impl Sync for Blockchain
impl Sync for Blockchain