keys

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GeneratePrivateKey = func() B { return GenerateSecretKeyHex() }

Functions

func GenerateSecretKeyHex

func GenerateSecretKeyHex() (sks B)

func GetPublicKeyHex

func GetPublicKeyHex(sk S) (S, E)

func HexPubkeyToBytes added in v0.1.5

func HexPubkeyToBytes[V B | S](hpk V) (pkb B, err E)

func IsValid32ByteHex

func IsValid32ByteHex(pk string) bool

func IsValidPublicKey

func IsValidPublicKey(pk string) bool

func SecretBytesToPubKeyHex

func SecretBytesToPubKeyHex(skb B) (pk S, err E)

func SecretToPubKeyBytes

func SecretToPubKeyBytes(skb B) (pk B, err E)

Types

This section is empty.

Jump to

Keyboard shortcuts

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