Documentation ¶
Index ¶
Constants ¶
View Source
const ( ED25519_PUBLIC_KEY_SIZE_BYTES = 32 ED25519_PRIVATE_KEY_SIZE_BYTES = 64 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ed25519KeyPair ¶
type Ed25519KeyPair struct {
// contains filtered or unexported fields
}
func GenerateEd25519Key ¶
func GenerateEd25519Key() (*Ed25519KeyPair, error)
func NewEd25519KeyPair ¶
func NewEd25519KeyPair(publicKey primitives.Ed25519PublicKey, privateKey primitives.Ed25519PrivateKey) *Ed25519KeyPair
func (*Ed25519KeyPair) PrivateKey ¶
func (k *Ed25519KeyPair) PrivateKey() primitives.Ed25519PrivateKey
func (*Ed25519KeyPair) PrivateKeyHex ¶
func (k *Ed25519KeyPair) PrivateKeyHex() string
func (*Ed25519KeyPair) PublicKey ¶
func (k *Ed25519KeyPair) PublicKey() primitives.Ed25519PublicKey
func (*Ed25519KeyPair) PublicKeyHex ¶
func (k *Ed25519KeyPair) PublicKeyHex() string
Click to show internal directories.
Click to hide internal directories.