serialization

package
v0.0.0-...-fe388b3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const VERIFICATION_KEY_HASH_SIZE = 28

Variables

This section is empty.

Functions

func Blake2bHash

func Blake2bHash(data []byte) []byte

Types

type Clonable

type Clonable[T any] interface {
	Clone() T
}

type ConstrainedBytes

type ConstrainedBytes struct {
	Payload []byte
}

func (*ConstrainedBytes) MarshalCBOR

func (cb *ConstrainedBytes) MarshalCBOR() ([]byte, error)

func (*ConstrainedBytes) UnmarshalCBOR

func (cb *ConstrainedBytes) UnmarshalCBOR(data []byte) error

type CustomBytes

type CustomBytes struct {
	Value string
	// contains filtered or unexported fields
}

func (*CustomBytes) MarshalCBOR

func (cb *CustomBytes) MarshalCBOR() ([]byte, error)

func (CustomBytes) String

func (cb CustomBytes) String() string

func (*CustomBytes) UnmarshalCBOR

func (cb *CustomBytes) UnmarshalCBOR(value []byte) error

type DatumHash

type DatumHash ConstrainedBytes

func (*DatumHash) Equal

func (dh *DatumHash) Equal(other DatumHash) bool

type PubKeyHash

type PubKeyHash [28]byte

type ScriptDataHash

type ScriptDataHash ConstrainedBytes

type ScriptHash

type ScriptHash [28]byte

func (*ScriptHash) Bytes

func (sh *ScriptHash) Bytes() []byte

type TransactionId

type TransactionId ConstrainedBytes

Jump to

Keyboard shortcuts

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