Skip to content

v0.2.1

Choose a tag to compare

@sedited sedited released this 20 May 13:54
· 79 commits to master since this release
v0.2.1
4b51ffd

Added

  • Added BlockTreeEntry::ancestor to look up an ancestor block at a given height. Returns None if the height is out of range. This operation is O(log N).
  • Added Transaction::locktime() to retrieve a transaction's nLockTime value as a u32.
  • Added TxIn::sequence() to retrieve an input's nSequence value as a u32.
  • Added TryFrom<&[u8]> for BlockHeader to align with the exisitng TryFrom<&[u8]> implementation for Block.
  • Added BlockHeaderExt::consensus_encode to serialize a block header to its Bitcoin wire format, returning a fixed [u8; 80] array.
  • Added From<BlockHeader> and From<&BlockHeader> for [u8; 80] to align with existing block conversions.

Dependencies

  • The sys crate no longer uses auto-generated bindings from bindgen. This removes some build-time dependencies for this crate.

Changelog