[][src]Crate elements

Rust Elements Library

Extensions to rust-bitcoin to support deserialization and serialization of Elements transactions and blocks.

Re-exports

pub extern crate bitcoin;
pub use address::Address;
pub use address::AddressParams;
pub use address::AddressError;
pub use issuance::AssetId;

Modules

address

Addresses

blech32

Blech32

confidential

Confidential Commitments

dynafed

Dynamic Federations

encode

Consensus-encodable types

issuance

Asset Issuance

Structs

AssetIssuance

Description of an asset issuance in a transaction input

Block

Elements block

BlockHeader

Elements block header

OutPoint

A reference to a transaction output

PeginData

Parsed data from a transaction input's pegin witness

PegoutData

Information about a pegout

Transaction

Elements transaction

TxIn

A transaction input, which defines old coins to be consumed

TxInWitness

Transaction input witness

TxOut

Transaction output

TxOutWitness

Transaction output witness

VarInt

A variable-length unsigned integer

Enums

BlockExtData

Data related to block signatures

Functions

fast_merkle_root

Compute the Merkle root of the give hashes using mid-state only. The inputs must be byte slices of length 32. Note that the merkle root calculated with this method is not the same as the one computed by a normal SHA256(d) merkle root.