session_keys

package
v0.0.1-rc-1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeSessionKeys

func DecodeSessionKeys(dataPtr int32, dataLen int32) int64

DecodeSessionKeys decodes the given session keys. It takes two arguments: - dataPtr: Pointer to the data in the Wasm memory. - dataLen: Length of the data. which represent the SCALE-encoded keys. Returns a pointer-size of the SCALE-encoded set of raw keys and their respective key type. [Specification](https://spec.polkadot.network/chap-runtime-api#id-sessionkeys_decode_session_keys)

func GenerateSessionKeys

func GenerateSessionKeys(dataPtr int32, dataLen int32) int64

GenerateSessionKeys generates a set of session keys with an optional seed. The keys should be stored within the keystore exposed by the Host Api. It takes two arguments: - dataPtr: Pointer to the data in the Wasm memory. - dataLen: Length of the data. which represent the SCALE-encoded optional seed. Returns a pointer-size of the SCALE-encoded set of keys. [Specification](https://spec.polkadot.network/chap-runtime-api#id-sessionkeys_generate_session_keys)

Types

This section is empty.

Jump to

Keyboard shortcuts

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