Documentation
¶
Overview ¶
Package testpiece builds, for tests and benchmarks, a BEEF shaped as a storage piece carrier: an Atomic BEEF (BRC-95) over a BEEF V2 (BRC-96) holding one BUMP and two transactions, a mined funding transaction and the unmined carrier that spends it, whose one output carries the piece in a push. In a storage deployment these carry most of the lane's bytes, so they are the shape the bridge's per-object costs are measured on.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Piece ¶
type Piece struct {
BEEF []byte
Tracker *Roots
// TxID is the carrier's txid, the Atomic BEEF's subject.
TxID chainhash.Hash
}
Piece is one carrier BEEF and the chain tracker its funding proof verifies against.
type Roots ¶
Roots is a chain tracker over a fixed height->root map.
func (*Roots) CurrentHeight ¶
CurrentHeight returns the fixed tip.