nip19

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TLVDefault uint8 = 0
	TLVRelay   uint8 = 1
	TLVAuthor  uint8 = 2
	TLVKind    uint8 = 3
)

Variables

This section is empty.

Functions

func Decode

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

func EncodeEntity

func EncodeEntity(publicKey string, kind int, identifier string, relays []string) (string, error)

func EncodeEvent

func EncodeEvent(eventIDHex string, relays []string, author string) (string, error)

func EncodeNote

func EncodeNote(eventIDHex string) (string, error)

func EncodePrivateKey

func EncodePrivateKey(privateKeyHex string) (string, error)

func EncodeProfile

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