state

package
v0.2403.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 9 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) (*secrets.ConsensusParameters, error)

ConsensusParameters returns the key manager consensus parameters.

func (*ImmutableState) EphemeralSecret

func (*ImmutableState) MasterSecret

func (*ImmutableState) Status

func (*ImmutableState) Statuses

func (st *ImmutableState) Statuses(ctx context.Context) ([]*secrets.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 *secrets.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 *secrets.SignedEncryptedEphemeralSecret) error

func (*MutableState) SetMasterSecret

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

func (*MutableState) SetStatus

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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