keyutil

package
v1.21.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL