state

package
v0.2300.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImmutableState

type ImmutableState struct {
	// contains filtered or unexported fields
}

ImmutableState is the immutable key manager state wrapper.

func NewImmutableState

func NewImmutableState(ctx context.Context, state abciAPI.ApplicationQueryState, version int64) (*ImmutableState, error)

func (*ImmutableState) ConsensusParameters

func (st *ImmutableState) ConsensusParameters(ctx context.Context) (*api.ConsensusParameters, error)

ConsensusParameters returns the key manager consensus parameters.

func (*ImmutableState) EphemeralSecret

func (*ImmutableState) MasterSecret

func (*ImmutableState) Status

func (st *ImmutableState) Status(ctx context.Context, id common.Namespace) (*api.Status, error)

func (*ImmutableState) Statuses

func (st *ImmutableState) Statuses(ctx context.Context) ([]*api.Status, error)

type MutableState

type MutableState struct {
	*ImmutableState
	// contains filtered or unexported fields
}

MutableState is a mutable key manager state wrapper.

func NewMutableState

func NewMutableState(tree mkvs.KeyValueTree) *MutableState

NewMutableState creates a new mutable key manager state wrapper.

func (*MutableState) SetConsensusParameters

func (st *MutableState) SetConsensusParameters(ctx context.Context, params *api.ConsensusParameters) error

SetConsensusParameters sets key manager consensus parameters.

NOTE: This method must only be called from InitChain/EndBlock contexts.

func (*MutableState) SetEphemeralSecret

func (st *MutableState) SetEphemeralSecret(ctx context.Context, secret *api.SignedEncryptedEphemeralSecret) error

func (*MutableState) SetMasterSecret

func (st *MutableState) SetMasterSecret(ctx context.Context, secret *api.SignedEncryptedMasterSecret) error

func (*MutableState) SetStatus

func (st *MutableState) SetStatus(ctx context.Context, status *api.Status) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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