Skip to main content

Crate bitcoin_embed

Crate bitcoin_embed 

Source
Expand description

§Bitcoin Embed

A library for embedding arbitrary data and TLV-encoded messages in Bitcoin transactions. Supports OP_RETURN outputs, witness script envelopes, and taproot annexes.

See README.md for detailed documentation.

Modules§

envelope
Script Envelope Encoding
message
Message Encoding
varint
LEB128 Variable-Length Encoding

Structs§

Embedding
A struct containing data and its location in a transaction
EmbeddingId
A unique identifier for an embedding

Enums§

EmbeddingIdError
Error types for decoding an EmbeddingId
EmbeddingLocation
The location where data exists in a transaction
EmbeddingType
The type of location where data may exist in a transaction
ScriptType
The script type used by an envelope

Constants§

TAPROOT_ANNEX_DATA_TAG
The initial byte in a data-carrying taproot annex