Documentation
¶
Index ¶
- type KeyManager
- func (k *KeyManager) AddKeyRange(publicKey ed25519.PublicKey, startIndex iotago.MilestoneIndex, ...)
- func (k *KeyManager) KeyRanges() []*KeyRange
- func (k *KeyManager) MilestonePublicKeyMappingForMilestoneIndex(msIndex iotago.MilestoneIndex, privateKeys []ed25519.PrivateKey, ...) iotago.MilestonePublicKeyMapping
- func (k *KeyManager) PublicKeysForMilestoneIndex(msIndex iotago.MilestoneIndex) []iotago.MilestonePublicKey
- func (k *KeyManager) PublicKeysSetForMilestoneIndex(msIndex iotago.MilestoneIndex) iotago.MilestonePublicKeySet
- type KeyRange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyManager ¶
type KeyManager struct {
// contains filtered or unexported fields
}
KeyManager provides public and private keys for ranges of milestone indexes.
func (*KeyManager) AddKeyRange ¶
func (k *KeyManager) AddKeyRange(publicKey ed25519.PublicKey, startIndex iotago.MilestoneIndex, endIndex iotago.MilestoneIndex)
AddKeyRange adds a new public key to the MilestoneKeyManager including its valid range.
func (*KeyManager) KeyRanges ¶
func (k *KeyManager) KeyRanges() []*KeyRange
func (*KeyManager) MilestonePublicKeyMappingForMilestoneIndex ¶
func (k *KeyManager) MilestonePublicKeyMappingForMilestoneIndex(msIndex iotago.MilestoneIndex, privateKeys []ed25519.PrivateKey, milestonePublicKeysCount int) iotago.MilestonePublicKeyMapping
MilestonePublicKeyMappingForMilestoneIndex returns a MilestonePublicKeyMapping for a certain milestone index.
func (*KeyManager) PublicKeysForMilestoneIndex ¶
func (k *KeyManager) PublicKeysForMilestoneIndex(msIndex iotago.MilestoneIndex) []iotago.MilestonePublicKey
PublicKeysForMilestoneIndex returns the valid public keys for a certain milestone index.
func (*KeyManager) PublicKeysSetForMilestoneIndex ¶
func (k *KeyManager) PublicKeysSetForMilestoneIndex(msIndex iotago.MilestoneIndex) iotago.MilestonePublicKeySet
PublicKeysSetForMilestoneIndex returns a set of valid public keys for a certain milestone index.
type KeyRange ¶
type KeyRange struct { PublicKey iotago.MilestonePublicKey StartIndex iotago.MilestoneIndex EndIndex iotago.MilestoneIndex }
KeyRange defines a public key of a milestone including the range it is valid.
Click to show internal directories.
Click to hide internal directories.