Documentation ¶
Index ¶
- type ImmutableState
- func (st *ImmutableState) ConsensusParameters(ctx context.Context) (*secrets.ConsensusParameters, error)
- func (st *ImmutableState) EphemeralSecret(ctx context.Context, id common.Namespace) (*secrets.SignedEncryptedEphemeralSecret, error)
- func (st *ImmutableState) MasterSecret(ctx context.Context, id common.Namespace) (*secrets.SignedEncryptedMasterSecret, error)
- func (st *ImmutableState) Status(ctx context.Context, id common.Namespace) (*secrets.Status, error)
- func (st *ImmutableState) Statuses(ctx context.Context) ([]*secrets.Status, error)
- type MutableState
- func (st *MutableState) SetConsensusParameters(ctx context.Context, params *secrets.ConsensusParameters) error
- func (st *MutableState) SetEphemeralSecret(ctx context.Context, secret *secrets.SignedEncryptedEphemeralSecret) error
- func (st *MutableState) SetMasterSecret(ctx context.Context, secret *secrets.SignedEncryptedMasterSecret) error
- func (st *MutableState) SetStatus(ctx context.Context, status *secrets.Status) error
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 (st *ImmutableState) EphemeralSecret(ctx context.Context, id common.Namespace) (*secrets.SignedEncryptedEphemeralSecret, error)
func (*ImmutableState) MasterSecret ¶
func (st *ImmutableState) MasterSecret(ctx context.Context, id common.Namespace) (*secrets.SignedEncryptedMasterSecret, 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
Click to show internal directories.
Click to hide internal directories.