keys

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func GetPublicKeyHex

func GetPublicKeyHex(sk S) (S, 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)

func SecretToPubKeyBytes added in v1.0.0

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

Types

type B added in v1.0.0

type B = []byte

func GenerateSecretKeyHex

func GenerateSecretKeyHex() (sks B)

type Ctx added in v1.0.0

type Ctx = context.T

type E added in v1.0.0

type E = error

type N added in v1.0.0

type N = int

type S added in v1.0.0

type S = string

Jump to

Keyboard shortcuts

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