Documentation ¶
Overview ¶
Package keymanagement provides utilities for managing cryptographic keys, specifically focusing on EdDSA (Poseidon hash over BN128 elliptic curve signature scheme) keys derived from Ethereum private keys.
It includes functions for deriving EdDSA keys from Ethereum private keys, loading EdDSA keys from files, and saving EdDSA keys to files securely.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeriveEdDSAKeyFromEthereumPrivateKey ¶
func DeriveEdDSAKeyFromEthereumPrivateKey(privateKey *ecdsa.PrivateKey) (babyjub.PrivateKey, error)
DeriveEdDSAKeyFromEthereumPrivateKey derives an EdDSA (Poseidon hash over BN128 elliptic curve signature scheme) private key from an Ethereum private key. It signs a predefined message hash using the Ethereum private key and converts the resulting signature into an EdDSA private key for further use.
func LoadEdDSA ¶
func LoadEdDSA(file string) (babyjub.PrivateKey, error)
LoadEdDSA loads a Baby Jubjub private key from the given file.
Types ¶
This section is empty.