bitcoin

Module consensus

Source
Expand description

Bitcoin consensus.

This module defines structures, functions, and traits that are needed to conform to Bitcoin consensus.

Modules§

  • Bitcoin consensus-encodable types.
  • Bitcoin consensus parameters.
  • serdeserde
    Serde serialization via consensus encoding
  • validationbitcoinconsensus
    Transaction and script validation.

Structs§

  • Parameters that influence chain consensus.

Enums§

  • Error when consensus decoding from an [IterReader].

Traits§

  • Data which can be encoded in a consensus-consistent way.
  • Data which can be encoded in a consensus-consistent way.
  • Extensions of Read to decode data as per Bitcoin consensus.
  • Extensions of Write to encode data as per Bitcoin consensus.

Functions§

  • Deserializes an object from a vector, will error if said deserialization doesn’t consume the entire vector.
  • Deserializes an object from a vector, but will not report an error if said deserialization doesn’t consume the entire vector.
  • Encodes an object into a vector.
  • verify_scriptbitcoinconsensus
    Verifies spend of an input script.
  • verify_script_with_flagsbitcoinconsensus
    Verifies spend of an input script.
  • verify_transactionbitcoinconsensus
    Verifies that this transaction is able to spend its inputs.
  • Verifies that this transaction is able to spend its inputs.