labelcodec

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RawValues

func RawValues(
	metadataCbor []byte,
	label uint64,
) (json.RawMessage, []byte, error)

RawValues returns the JSON and CBOR representation for a single metadata label from encoded transaction metadata.

Types

type Entry

type Entry struct {
	Label     uint64
	CborValue []byte
	JsonValue string
}

func EncodeAndExtract

func EncodeAndExtract(
	txMetadata lcommon.TransactionMetadatum,
) ([]byte, []Entry, error)

Returns full metadata CBOR and per-label entries

Jump to

Keyboard shortcuts

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