nip19

package
v0.30.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 6 Imported by: 85

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 added in v0.14.0

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

func EncodeEvent added in v0.10.0

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 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