BSV.SPV.Beef (bsv_sdk v1.1.0)

Copy Markdown View Source

BEEF (Background Evaluation Extended Format) transaction container.

Supports BRC-64 (V1), BRC-96 (V2), and BRC-95 (Atomic BEEF) formats.

Summary

Functions

BEEF V1 version constant.

BEEF V2 version constant.

Parse a BEEF from binary data.

Parse a BEEF from a hex string.

Types

t()

@type t() :: %BSV.SPV.Beef{
  bumps: [BSV.SPV.MerklePath.t()],
  transactions: %{required(binary()) => BSV.SPV.Beef.BeefTx.t()},
  version: non_neg_integer()
}

Functions

beef_v1()

BEEF V1 version constant.

beef_v2()

BEEF V2 version constant.

from_bytes(data)

@spec from_bytes(binary()) :: {:ok, t()} | {:error, String.t()}

Parse a BEEF from binary data.

from_hex(hex)

@spec from_hex(String.t()) :: {:ok, t()} | {:error, String.t()}

Parse a BEEF from a hex string.