callformat

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeResult

func DecodeResult(result *types.CallResult, meta interface{}) (*types.CallResult, error)

DecodeResult performs result decoding based on the specified call format metadata.

func EncodeCall

func EncodeCall(call *types.Call, cf types.CallFormat, cfg *EncodeConfig) (*types.Call, interface{}, error)

EncodeCall encodes a call based on its configured call format.

It returns the encoded call and any metadata needed to successfully decode the result.

Types

type EncodeConfig

type EncodeConfig struct {
	// PublicKey is an optional runtime's call data public key to use for encrypted call formats.
	PublicKey *types.SignedPublicKey
	// Epoch is the epoch of the ephemeral runtime key (when PublicKey is set).
	Epoch uint64
}

EncodeConfig is call encoding configuration.

Jump to

Keyboard shortcuts

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