Expand description
§Rust Elements Library
Extensions to rust-bitcoin
to support deserialization and serialization
of Elements transactions and blocks.
Re-exports§
pub extern crate bitcoin;
pub extern crate secp256k1_zkp;
pub use crate::address::Address;
pub use crate::address::AddressError;
pub use crate::address::AddressParams;
pub use crate::issuance::AssetId;
pub use crate::issuance::ContractHash;
pub use crate::locktime::LockTime;
pub use crate::schnorr::SchnorrSig;
pub use crate::schnorr::SchnorrSigError;
pub use crate::script::Script;
pub use crate::sighash::SchnorrSighashType;
pub use bitcoin::hashes;
pub use crate::hash_types::*;
Modules§
- address
- Addresses
- blech32
- Blech32-Encoding (Elements Segwit) Support
- confidential
- Confidential Commitments
- dynafed
- Dynamic Federations
- encode
- Consensus-encodable types
- hash_
types - File defines types for hashes used throughout the library.
- hex
- Hex Encoding and Decoding
- issuance
- Asset Issuance
- locktime
- Provides type
LockTime
that implements the logic around nLockTime/OP_CHECKLOCKTIMEVERIFY. - opcodes
- Opcodes
- pset
- Partially Signed Elements Transactions (PSET)
- schnorr
- Schnorr Bitcoin keys.
- script
- Script
- sighash
- BIP143 Implementation
- taproot
- Taproot
Structs§
- Asset
Issuance - Description of an asset issuance in a transaction input
- Block
- Elements block
- Block
Header - Elements block header
- OutPoint
- A reference to a transaction output
- Pegin
Data - Parsed data from a transaction input’s pegin witness
- Pegout
Data - Information about a pegout
- Range
Proof Message - The Rangeproof message
- Sequence
- Bitcoin transaction input sequence number.
- Transaction
- Elements transaction
- TxIn
- A transaction input, which defines old coins to be consumed
- TxIn
Witness - Transaction input witness
- TxOut
- Transaction output
- TxOut
Secrets - Information about Transaction Input Asset
- TxOut
Witness - Transaction output witness
Enums§
- Blind
Error - Errors encountered when blinding transaction outputs.
- Block
ExtData - Data related to block signatures
- Confidential
TxOut Error - Errors encountered when constructing confidential transaction outputs.
- Ecdsa
Sighash Type - Hashtype of a transaction, encoded in the last byte of a signature Fixed values so they can be casted as integer types for encoding
- Surjection
Input - Data structure used to provide inputs to
SurjectionProof
methods. - TxOut
Error - Transaction Output related errors
- Unblind
Error - Errors encountered when unblinding
TxOut
s. - Verification
Error - Transaction Verification Errors
Traits§
- Blind
Asset Proofs - A trait to create and verify explicit surjection proofs
- Blind
Value Proofs - A trait to create and verify explicit rangeproofs
- ReadExt
- Extensions of
Read
to decode data as per Bitcoin consensus. - Write
Ext - Extensions of
Write
to encode data as per Bitcoin consensus.
Functions§
- fast_
merkle_ root - Compute the Merkle root of the give hashes using mid-state only.