Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKeys ¶
func GenerateKeys() error
GenerateKeys generates a new ECDSA key pair and stores it in the environment.
func LoadPrivateKey ¶
func LoadPrivateKey() (*ecdsa.PrivateKey, error)
LoadPrivateKey retrieves the private key from environment variables.
func LoadPublicKey ¶
LoadPublicKey retrieves the public key from environment variables.
func SignMessage ¶
func SignMessage(privateKey *ecdsa.PrivateKey, message string) (string, error)
SignMessage signs the given message using ECDSA.
func VerifySignature ¶
VerifySignature verifies an ECDSA signature.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.