ord

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package ord is for parsing 1sat ordinals

Index

Constants

View Source
const Prefix string = "ord"

Prefix is the OP_RETURN prefix for the 1Sat Ordinals inscription protocol

Variables

This section is empty.

Functions

func ScriptFromTape added in v0.0.39

func ScriptFromTape(tape bpu.Tape) (ordScript []bpu.Cell)

ScriptFromTape finds the script: OP_0 OP_IF ... OP_ENDIF

Types

type Ordinal

type Ordinal struct {
	Data        []byte
	ContentType string
	Vout        uint8
}

Ordinal tells wether an inscription is found

func NewFromTape added in v0.0.38

func NewFromTape(tape bpu.Tape) (o *Ordinal, e error)

NewFromTape will create a new Ord object from a bpu.Tape

func (*Ordinal) FromTape added in v0.0.38

func (o *Ordinal) FromTape(tape *bpu.Tape) (err error)

FromTape sets the ordinal data from a bpu.Tape

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL