Documentation ¶
Index ¶
- type KeyManager
- func (k *KeyManager) AddKeyRange(publicKey ed25519.PublicKey, startIndex milestone.Index, ...)
- func (k *KeyManager) GetMilestonePublicKeyMappingForMilestoneIndex(msIndex milestone.Index, privateKeys []ed25519.PrivateKey, ...) iotago.MilestonePublicKeyMapping
- func (k *KeyManager) GetPublicKeysForMilestoneIndex(msIndex milestone.Index) []iotago.MilestonePublicKey
- func (k *KeyManager) GetPublicKeysSetForMilestoneIndex(msIndex milestone.Index) 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 milestone.Index, endIndex milestone.Index)
AddKeyRange adds a new public key to the MilestoneKeyManager including its valid range.
func (*KeyManager) GetMilestonePublicKeyMappingForMilestoneIndex ¶
func (k *KeyManager) GetMilestonePublicKeyMappingForMilestoneIndex(msIndex milestone.Index, privateKeys []ed25519.PrivateKey, milestonePublicKeysCount int) iotago.MilestonePublicKeyMapping
GetMilestonePublicKeyMappingForMilestoneIndex returns a MilestonePublicKeyMapping for a certain milestone index.
func (*KeyManager) GetPublicKeysForMilestoneIndex ¶
func (k *KeyManager) GetPublicKeysForMilestoneIndex(msIndex milestone.Index) []iotago.MilestonePublicKey
GetPublicKeysForMilestoneIndex returns the valid public keys for a certain milestone index.
func (*KeyManager) GetPublicKeysSetForMilestoneIndex ¶
func (k *KeyManager) GetPublicKeysSetForMilestoneIndex(msIndex milestone.Index) iotago.MilestonePublicKeySet
GetPublicKeysSetForMilestoneIndex returns a set of valid public keys for a certain milestone index.
Click to show internal directories.
Click to hide internal directories.