package
2024.3.0+incompatible
Repository: https://github.com/hiveot/hub.git
Documentation: pkg.go.dev

# Functions

DetermineKeyType returns the type of key.
NewEcdsaKey creates and initialize a ECDSA key.
NewEcdsaKeyFromPrivate creates and initialize a IHiveKey object from an existing ECDSA private key.
NewEd25519Key creates and initialize a ED25519 key.
NewEd25519KeyFromPrivate creates and initialize a IHiveKey object from an existing private key.
NewKey creates a new key of the given type.
NewKeyFromEnc helper creates a HiveKey instance from an encoded private key.
NewKeyFromFile helper to load a public/private key pair from file This returns nil if the key type cannot be determined keyPath is the path to the file containing the key.
NewNkeysKey creates and initialize a new nkey key.
NewNKeysKeyFromPrivate creates a new key set from an existing nkey keypair.
NewRsaKey generates a RSA key with IHiveKey interface.
NewRsaKeyFromPrivate creates and initialize a IHiveKey object from an existing RSA private key.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

EcdsaKey implements the secp256k ECDSA key.
Ed25519Key contains the ED25519 cryptographic key set for signing and authentication.
NKeysKey contains an asymmetric cryptographic key set for signing and authentication.
RsaKey implements the IHiveKeys interface to a RSA key.

# Interfaces

IHiveKey defines the standard interface for various key types used for signing and authentication ..

# Type aliases

No description provided by the author