Module handshakes::prelude [−][src]
Expand description
Common re-exports
Re-exports
pub use crate::builder::*; | |
pub use crate::enc::*; | |
pub use crate::hashes::TXID; | |
pub use crate::hashes::WTXID; | |
pub use crate::types::*; |
Modules
address | Specifies an abstract |
bases | Contains simplified access to |
Structs
Blake2b256 | A |
GenericArray | Struct representing a generic array - |
Hash160 | A |
Hash160Digest | A bitcoin-style Hash160 |
Hash256 | A |
Hash256Digest | A bitcoin-style Hash256 |
Ripemd160 | Structure representing the state of a Ripemd160 computation |
Sha3_256 | SHA-3-256 hash function. |
Sha256 | The SHA-256 hash algorithm with the SHA-256 initial hash value. |
Enums
EncodingError | Errors that can be returned by the Bitcoin |
ReadSeqMode | Operation mode for |
Traits
AddressEncoder | An AddressEncoder encodes and decodes addresses. This struct is used by the Builder to decode addresses, and is associated with a Network object. It handles converting addresses to recipients and vice versa. It also contains a function that wraps a string in the appropriate address type. |
ByteFormat | A simple trait for deserializing from |
Digest | The |
MarkedDigest | A marked digest |
MarkedDigestOutput | Convenience interface for hash function outputs, particularly marked digest outputs |
Network | A Network describes a possible UTXO network. It is primarily a collection of types with enforced relationships, but also provides convenient access the the transaction builder, the address encoder, and other network-associated functionality. |
Transaction | Basic functionality for a Transaction |
TxBuilder | A builder-pattern interface for constructing transactions. Implementations should accumulate
inputs, outputs, witnesses, and other TX data, and then |
Functions
decode_base58 | Decodes base58check into a byte string. Returns a |
decode_bech32 | Decode a witness program from a bech32 string. Caller specifies an expected HRP. If a
different HRP is found, returns |
encode_base58 | Encodes a byte slice to base58check with the specified version byte. |
encode_bech32 | Encode a byte vector to bech32. This function expects |
Type Definitions
DigestOutput | Output of a Digest function |
EncodingResult | A simple result type alias |