key

package
v0.15.16 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Felt            = Marshal[*felt.Felt]()
	Address         = Marshal[*felt.Address]()
	ClassHash       = Marshal[*felt.ClassHash]()
	SierraClassHash = Marshal[*felt.SierraClassHash]()
	TransactionHash = Marshal[*felt.TransactionHash]()
)
View Source
var Empty = emptySerializer{}
View Source
var Uint64 = uint64Serializer{}

Functions

func Cbor added in v0.15.15

func Cbor[K any]() cborSerializer[K]

func Marshal

func Marshal[K marshaler[K]]() marshalSerializer[K]

Types

type BytesSerializer

type BytesSerializer struct{}

func (BytesSerializer) Marshal

func (BytesSerializer) Marshal(value []byte) []byte

type Serializer

type Serializer[K any] interface {
	~struct{}
	Marshal(K) []byte
}

Jump to

Keyboard shortcuts

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