Documentation ¶
Index ¶
Constants ¶
View Source
const (
ProtocolId = "ord"
)
Variables ¶
This section is empty.
Functions ¶
func ParsedEnvelopeFromRaw ¶
func ParsedEnvelopeFromRaw(data Envelope)
Types ¶
type Envelope ¶
type Envelope struct { Input uint32 Offset uint32 TypeDataMap map[int][]byte Payload [][]byte Pushnum bool Stutter bool }
Envelope content_type, with a tag of 1, whose value is the MIME type of the body. pointer, with a tag of 2, see pointer docs. parent, with a tag of 3, see provenance. TODO metadata, with a tag of 5, see metadata. TODO metaprotocol, with a tag of 7, whose value is the metaprotocol identifier. TODO content_encoding, with a tag of 9, whose value is the encoding of the body. TODO delegate, with a tag of 11, see delegate.
func FromInstructions ¶
func FromTransaction ¶
func (*Envelope) GetContent ¶
func (*Envelope) GetContentEncoding ¶
func (*Envelope) GetContentType ¶
func (*Envelope) GetDelegate ¶
func (*Envelope) GetProvenance ¶
GetProvenance is parent little-endian OP_PUSH 3 TXID INDEX TXID = 32-byte INDEX = 4-byte
type Inscription ¶
type ParsedEnvelope ¶
type ParsedEnvelope struct { Input uint32 Offset uint32 Payload Inscription Pushnum bool Stutter bool }
Click to show internal directories.
Click to hide internal directories.