Expand description

Bitcoin Slices

ZERO allocations parse library for Bitcoin data structures available in the bsl module.

Data can be accessed via the crate::Visitors during parsing.

Modules

Contains all blockhain objects parsed from byte slices.
Contains methods to parse numbers (u8,u16,u32,u64,i32) from slices

Structs

A visitor with all empty function.
Every parse or visit functions on success return this struct. It contains the object parsed T the remaining bytes (empty slice if all bytes in the slice are consumed), and the bytes consumed.

Enums

All possible error variants in the crate

Traits

Parse and return an object like crate::bsl::Len without visiting it.
Visit a blockchain object such as a crate::bsl::Block or a crate::bsl::Transaction.
every visit() function take a visit parameter that implements this trait.

Functions

Return a slice legnth len from from if it’s long enough, error otherwise.

Type Definitions

Common result type throughout the lib