convert

package
v0.33.36-update-commit Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: AGPL-3.0 Imports: 3 Imported by: 4 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	KeyPartOwner = uint16(0)
	// @deprecated - controller was used only by the very first
	// version of cadence for access controll which was retired later on
	// KeyPartController = uint16(1)
	KeyPartKey = uint16(2)
)

Variables

View Source
var UnexpectedLedgerKeyFormat = fmt.Errorf("unexpected ledger key format")

UnexpectedLedgerKeyFormat is returned when a ledger key is not in the expected format

Functions

func LedgerKeyToRegisterID

func LedgerKeyToRegisterID(key ledger.Key) (flow.RegisterID, error)

LedgerKeyToRegisterID converts a ledger key to a register id returns an UnexpectedLedgerKeyFormat error if the key is not in the expected format

func PayloadToRegister added in v0.33.1

func PayloadToRegister(payload *ledger.Payload) (flow.RegisterID, flow.RegisterValue, error)

PayloadToRegister converts a payload to a register id and value

func RegisterIDToLedgerKey

func RegisterIDToLedgerKey(registerID flow.RegisterID) ledger.Key

RegisterIDToLedgerKey converts a register id to a ledger key

Types

This section is empty.

Jump to

Keyboard shortcuts

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