keys

package
v1.2.26 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

GeneratePrivateKey - deprecated, use GenerateSecretKeyHex

Functions

func GenerateSecretKey added in v1.2.15

func GenerateSecretKey() (skb B, err E)

func GetPublicKeyHex

func GetPublicKeyHex(sk S) (pk S, err E)

func HexPubkeyToBytes

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)

Types

type B

type B = []byte

type Ctx

type Ctx = context.T

type E

type E = error

type N

type N = int

type S

type S = string

func GenerateSecretKeyHex

func GenerateSecretKeyHex() (sks S)

Jump to

Keyboard shortcuts

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