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 encoding;pub extern crate hashes;pub extern crate hex;pub extern crate secp256k1_zkp;
Re-exports§
pub use crate::address::Address;pub use crate::address::AddressError;pub use crate::address::AddressParams;pub use crate::confidential::RangeProof;pub use crate::confidential::SurjectionProof;pub use crate::issuance::AssetBlindingNonce;pub use crate::issuance::AssetBlindingNonceDecoder;pub use crate::issuance::AssetBlindingNonceDecoderError;pub use crate::issuance::AssetBlindingNonceEncoder;pub use crate::issuance::AssetEntropy;pub use crate::issuance::AssetEntropyDecoder;pub use crate::issuance::AssetEntropyDecoderError;pub use crate::issuance::AssetEntropyEncoder;pub use crate::issuance::AssetId;pub use crate::issuance::AssetIdDecoder;pub use crate::issuance::AssetIdDecoderError;pub use crate::issuance::AssetIdEncoder;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 crate::hash_types::*;
Modules§
- address
- Addresses
- blech32
- Blech32-Encoding (Elements Segwit) Support
- confidential
- Confidential Commitments
- dynafed
- Dynamic Federations
- encode
- Consensus-encodable types
- genesis
- Helpers to calculate the genesis block for a given network.
- hash_
types - File defines types for hashes used throughout the library.
- issuance
- Asset Issuance
- locktime
- Provides type
LockTimethat implements the logic aroundnLockTime/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
- Asset
Issuance Decoder - Decoder for the
AssetIssuancetype. - Asset
Issuance Decoder Error - Decoder error for the
AssetIssuancetype. - Asset
Issuance Encoder - Encoder for the
AssetIssuancetype. - Block
- Elements block
- Block
Header - Elements block header
- CtLocation
- Data structure for Unifying inputs and pseudo-inputs.
- Dynafed
Root - The Merkle root of a set of dynafed parameters.
- OutPoint
- A reference to a transaction output
- Pegin
Data - Parsed data from a transaction input’s pegin witness
- Pegin
Data Decoder - A decoder for the
PeginDatatype. - Pegin
Data Encoder - An encoder for the
PeginWitnesstype. - Pegin
Witness - A pegin witness, which must be either a stack of 6 well-formed pieces of pegin data, or an empty witness stack.
- Pegin
Witness Decoder - Decoder for the
PeginWitnesstype. - Pegin
Witness Decoder Error - Error type for the decoding of
PeginDataorPeginWitness. - Pegin
Witness Encoder - Encoder for the
PeginWitnesstype. - Pegout
Data - Information about a pegout
- Range
Proof Message - The Rangeproof message
- Sequence
- Bitcoin transaction input sequence number.
- Sequence
Decoder - Decoder for the
Sequencetype. - Sequence
Decoder Error - Decoder error for the
Sequencetype. - Sequence
Encoder - Encoder for the
Sequencetype. - Transaction
- Elements transaction
- Transaction
Decoder - Decoder for the
Transactiontype. - Transaction
Decoder Error - Decoder error for the
Transactiontype. - Transaction
Encoder - Encoder for the
Transactiontype. - TxIn
- A transaction input, which defines old coins to be consumed
- TxIn
Decoder - Decoder for the
TxIntype. - TxIn
Decoder Error - Decoder error for the
TxIntype. - TxIn
Encoder - Encoder for the
TxIntype. - TxIn
Witness - Transaction input witness
- TxIn
Witness Decoder - Decoder for the
TxInWitnesstype. - TxIn
Witness Decoder Error - Decoder error for the
TxInWitnesstype. - TxIn
Witness Encoder - Encoder for the
TxInWitnesstype. - TxOut
- Transaction output
- TxOut
Decoder - Decoder for the
TxOuttype. - TxOut
Decoder Error - Decoder error for the
TxOuttype. - TxOut
Encoder - Encoder for the
TxOuttype. - TxOut
Secrets - Information about Transaction Input Asset
- TxOut
Witness - Transaction output witness
- TxOut
Witness Decoder - Decoder for the
TxOutWitnesstype. - TxOut
Witness Decoder Error - Decoder error for the
TxOutWitnesstype. - TxOut
Witness Encoder - Encoder for the
TxOutWitnesstype. - Witness
- The Witness is the data used to unlock bitcoin since the SegWit upgrade.
- Witness
Decoder - The decoder for the
Witnesstype. - Witness
Decoder Error - An error when consensus decoding a
Witness. - Witness
Encoder - The encoder for the
Witnesstype.
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.
- CtLocation
Type - Inputs or pseudo-inputs.
- 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
SurjectionProofmethods. - TxOut
Error - Transaction Output related errors
- Unblind
Error - Errors encountered when unblinding
TxOuts. - Verification
Error - Transaction Verification Errors
Traits§
- ReadExt
- Extensions of
Readto decode data as per Bitcoin consensus. - Write
Ext - Extensions of
Writeto encode data as per Bitcoin consensus.
Functions§
- fast_
merkle_ root - Compute the Merkle root of the give hashes using mid-state only.