nsec

package
v0.0.0-...-c164061 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(nsec string) (string, error)

Decode bech32 public key with 'nsec' human-readable part into hex encoded private key

func Encode

func Encode(prvKeyHex string) (string, error)

Encode hex private key as bech32 with "nsec" human readable part

func New

func New() (prvKeyHex string, pubKeyHex string, nsec string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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