bundle

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SignatureTypeArweave       = 1
	SignatureED25519           = 2
	SignatureEthereum          = 3
	SignatureSolana            = 4
	SignatureInjectedAptos     = 5
	SignatureMultiAptos        = 6
	SignatureTypeTypedEthereum = 7
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DataItem

type DataItem struct {
	SignatureType uint16
	Signature     string
	Owner         string
	Target        string
	Anchor        string
	TagsNumber    uint16
	TagsBytes     uint16
	Tags          []Tag
	Data          []byte
	// contains filtered or unexported fields
}

func (*DataItem) Read

func (d *DataItem) Read(buffer []byte) (int, error)

type DataItemInfo

type DataItemInfo struct {
	Size uint32
	ID   string
}

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(reader io.Reader) *Decoder

func (*Decoder) DecodeDataItem

func (d *Decoder) DecodeDataItem() (*DataItem, error)

func (*Decoder) DecodeHeader

func (d *Decoder) DecodeHeader() (*Header, error)

func (*Decoder) Next

func (d *Decoder) Next() bool
type Header struct {
	Numbers       uint32
	DataItemInfos []DataItemInfo
}

type SignatureType

type SignatureType struct {
	SignatureLength uint16
	PublicKeyLength uint16
}

type Tag

type Tag struct {
	Name  []byte `avro:"name"`
	Value []byte `avro:"value"`
}

type Transaction

type Transaction struct {
	Header    Header
	DataItems []DataItem
}

Jump to

Keyboard shortcuts

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