[][src]Trait cashweb_bitcoin::Decodable

pub trait Decodable: Sized {
    type Error;
    fn decode<B: Buf>(buf: &mut B) -> Result<Self, Self::Error>;
}

Provides a common interface for the deserialization of bitcoin structures.

Associated Types

type Error

Error associated with decoding a Bitcoin structure.

Loading content...

Required methods

fn decode<B: Buf>(buf: &mut B) -> Result<Self, Self::Error>

Decode a buffer.

Loading content...

Implementors

impl Decodable for Input[src]

type Error = DecodeError

impl Decodable for Outpoint[src]

type Error = DecodeError

impl Decodable for Output[src]

type Error = DecodeError

impl Decodable for Transaction[src]

type Error = DecodeError

impl Decodable for VarInt[src]

type Error = DecodeError

fn decode<B: Buf>(buf: &mut B) -> Result<Self, Self::Error>[src]

Parse variable-length integer.

Loading content...