Struct bitcoins::nets::Bitcoin[][src]

pub struct Bitcoin<T: AddressEncoder>(_);

A newtype for Bitcoin networks, parameterized by an encoder. We change the encoder to differentiate between main, test, and signet.

Trait Implementations

impl<T> BitcoinNetwork for Bitcoin<T> where
    T: BitcoinEncoderMarker
[src]

type WTx = WitnessTx

An associated witness transaction type.

impl<T: Debug + AddressEncoder> Debug for Bitcoin<T>[src]

impl<T> Network for Bitcoin<T> where
    T: BitcoinEncoderMarker
[src]

type Address = Address

A type handling the network’s address semantics. This will typically represent some predicate on the transaction. It is used by both the Encoder and the Builder. Read more

type Error = EncodingError

An error type that will be used by the Encoder, and returned by the passthrough encode_address and decode_address functions Read more

type RecipientIdentifier = ScriptPubkey

A type representing the in-protocol recipient. This is usually different from the Address type. Read more

type Encoder = T

An Encoder that uses the Address and Error types above. This Encoder must implement AddressEncoder. It handles translating the Address type to the networks RecipientIdentifier type. Read more

type TxIn = BitcoinTxIn

A transaction Input type. This type is used within the Transaction and specificies UTXOs being spent by the transaction. Read more

type TxOut = TxOut

A transaction Output type. This type is used within the Transaction and specificies UTXOs being consumed by the transaction. Read more

type Tx = BitcoinTx

A Transaction type that uses the TxIn and TxOut.

type Builder = BitcoinTxBuilder<T>

A transaction Builder that uses the Encoder and Transaction types defined earlier. The builder is returned by Network::tx_builder(), and provides a convenient interface for transaction construction. Read more

Auto Trait Implementations

impl<T> RefUnwindSafe for Bitcoin<T>

impl<T> Send for Bitcoin<T>

impl<T> Sync for Bitcoin<T>

impl<T> Unpin for Bitcoin<T>

impl<T> UnwindSafe for Bitcoin<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.