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