Documentation ¶
Index ¶
- func Decrypt(msg []byte, sk ed25519.PrivateKey) ([]byte, error)
- func Encrypt(msg []byte, pk ed25519.PublicKey) ([]byte, error)
- func KeyFromHex(h string) (ed25519.PublicKey, error)
- func KeyFromID(id pkg.Identifier) (ed25519.PublicKey, error)
- func Sign(privateKey ed25519.PrivateKey, message []byte) ([]byte, error)
- func Verify(publicKey ed25519.PublicKey, message, sig []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
func Decrypt(msg []byte, sk ed25519.PrivateKey) ([]byte, error)
Decrypt decrypts msg with a cure25519 private key derived from an ed25519 private key
func KeyFromHex ¶
KeyFromHex extract the public key from a hex string (used with jsx keys)
func KeyFromID ¶
func KeyFromID(id pkg.Identifier) (ed25519.PublicKey, error)
KeyFromID extract the public key from an Identifier
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.