pub struct Ledger<N: Network, B: BlockStorage<N>, P: ProgramStorage<N>> { /* private fields */ }

Implementations

Returns true if the given state root exists.

Returns true if the given block hash exists.

Returns true if the given block height exists.

Returns true if the given transaction ID exists.

Returns true if the given program ID exists.

Returns true if the given transition ID exists.

Returns true if the given input ID exists.

Returns true if the given serial number exists.

Returns true if the given tag exists.

Returns true if the given output ID exists.

Returns true if the given commitment exists.

Returns true if the given checksum exists.

Returns true if the given nonce exists.

Returns true if the given transition public key exists.

Returns true if the given transition commitment exists.

Returns the record ciphertexts that belong to the given view key.

Returns the records that belong to the given view key.

Returns the block for the given block height.

Returns the block hash for the given block height.

Returns the previous block hash for the given block height.

Returns the block header for the given block height.

Returns the block transactions for the given block height.

Returns the transaction for the given transaction id.

Returns the block signature for the given block height.

Returns an iterator over the transaction IDs, for all transactions in self.

Returns an iterator over the program IDs, for all transactions in self.

Returns an iterator over the programs, for all transactions in self.

Returns an iterator over the transition IDs, for all transitions.

Returns an iterator over the input IDs, for all transition inputs.

Returns an iterator over the serial numbers, for all transition inputs that are records.

Returns an iterator over the tags, for all transition inputs that are records.

Returns an iterator over the output IDs, for all transition outputs that are records.

Returns an iterator over the commitments, for all transition outputs that are records.

Returns an iterator over the nonces, for all transition outputs that are records.

Returns an iterator over the (commitment, record) pairs, for all transition outputs that are records.

Returns an iterator over the transition public keys, for all transactions.

Returns the latest state root.

Returns the latest block.

Returns the latest block hash.

Returns the latest block height.

Returns the latest round number.

Returns the latest block coinbase target.

Returns the latest block proof target.

Returns the latest block timestamp.

Returns the latest block transactions.

Initializes a new instance of Ledger with the genesis block.

Initializes the Ledger from storage.

Initializes the Ledger from storage.

Initializes a new instance of Ledger with the given genesis block.

Returns the VM.

Appends the given transaction to the memory pool.

Returns a candidate for the next block in the ledger.

Checks the given block is valid next block.

Adds the given block as the next block in the chain.

Returns the block tree.

Returns the memory pool.

Returns a state path for the given commitment.

Returns the expected coinbase target given the previous block and expected next block details.

Returns the expected proof target given the previous block and expected next block details.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more