Crate babylon_bitcoin

Source

Modules§

chain_params
error
hash_types
Bitcoin hash types.
merkle
op_return
pow
schnorr
Dummy 256-bits Digest impl. This digest stores/accepts a value of the proper length. To be used for / with already hashed values, just to comply with the Digest contract.

Structs§

BlockHash
A bitcoin block hash.
BlockHeader
Bitcoin block header.
CompactTarget
Encoding of 256-bit target as 32-bit float.
Target
A 256 bit integer representing target.
Transaction
Bitcoin transaction.
Uint256
An implementation of u256 that is using strings for JSON encoding/decoding, such that the full u256 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.
Version
Bitcoin block version number.
Work
A 256 bit integer representing work.

Enums§

EncodeError
Encoding error.
HexError
Hex decoding error.

Functions§

deserialize
Deserializes an object from a vector, will error if said deserialization doesn’t consume the entire vector.
serialize
Encodes an object into a vector.

Type Aliases§

Result