nip19

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 5 Imported by: 111

Documentation

Index

Constants

View Source
const (
	TLVDefault uint8 = 0
	TLVRelay   uint8 = 1
)

Variables

This section is empty.

Functions

func Decode

func Decode(bech32string string) (prefix string, value any, err error)

func EncodeEvent added in v0.10.0

func EncodeEvent(eventIdHex string, relays []string) (string, error)

func EncodeNote

func EncodeNote(eventIdHex string) (string, error)

func EncodePrivateKey

func EncodePrivateKey(privateKeyHex string) (string, error)

func EncodeProfile added in v0.10.0

func EncodeProfile(publicKeyHex string, relays []string) (string, error)

func EncodePublicKey

func EncodePublicKey(publicKeyHex string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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