Documentation
¶
Overview ¶
Package keyutil provides utilities for loading private keys from environment variables or files for use in example programs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadKey ¶
func LoadKey() (*secp256k1.PrivateKey, error)
LoadKey attempts to load a private key from environment or file.
func MustLoadKey ¶
func MustLoadKey() *secp256k1.PrivateKey
MustLoadKey loads a secp256k1 private key from: 1. LUX_PRIVATE_KEY environment variable (hex-encoded, with or without 0x prefix) 2. File path provided as first command line argument
Panics with a helpful message if no key is provided.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.