Struct bitcoin_explorer::parser::proto::simple_proto::SBlock[][src]

pub struct SBlock {
    pub header: SBlockHeader,
    pub txdata: Vec<STransaction>,
}
Expand description

Block in a simple format.

A SBlock compared to a Block has the following more attributes precomputed:

  • block hash
  • transaction id
  • output addresses
  • output script types

But is has the following attributes removed:

  • nounce
  • previous block hash
  • merkle root
  • bits
  • input witness
  • output public script key hash

SBlock reduces the amount of data memorized or transferred.

Fields

header: SBlockHeadertxdata: Vec<STransaction>

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more

Add addresses, block_hash, tx_id to the bitcoin library format, and also simplify the format.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.