Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKeyPair ¶
func GenerateKeyPair() (ed25519.PublicKey, ed25519.PrivateKey, error)
Types ¶
type KeyManager ¶
type KeyManager struct {
// contains filtered or unexported fields
}
func NewKeyManager ¶
func NewKeyManager(options ...KeyManagerOption) (*KeyManager, error)
func (*KeyManager) GetPrivateKey ¶
func (k *KeyManager) GetPrivateKey() ed25519.PrivateKey
func (*KeyManager) GetPublicKey ¶
func (k *KeyManager) GetPublicKey() ed25519.PublicKey
func (*KeyManager) ParseEd25519Key ¶
func (k *KeyManager) ParseEd25519Key() error
type KeyManagerOption ¶
type KeyManagerOption func(*KeyManager)
func WithKeys ¶
func WithKeys(publicKey ed25519.PublicKey, privateKey ed25519.PrivateKey) KeyManagerOption
func WithSeed ¶
func WithSeed(seed io.Reader) KeyManagerOption
Click to show internal directories.
Click to hide internal directories.