crypto

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

package crypto contains all the cryptographic functionality required by Shannon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAddressFromPrivateKey

func GetAddressFromPrivateKey(privKey *secp256k1.PrivKey) (string, error)

GetAddressFromPrivateKey returns the address of the provided private key

func GetSecp256k1PrivateKeyFromKeyHex

func GetSecp256k1PrivateKeyFromKeyHex(privateKeyHex string) (*secp256k1.PrivKey, error)

GetSecp256k1PrivateKeyFromKeyHex returns a Secp256k1 private key from the supplied hex-encoded private key string. It allows any configuration-related code to build secp256k1 private keys from hex-encoded private keys.

Types

This section is empty.

Jump to

Keyboard shortcuts

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