nip19

package
v0.52.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: MIT Imports: 6 Imported by: 138

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

func EncodePointer(pointer nostr.Pointer) string

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)

func NeventFromRelayEvent added in v0.49.5

func NeventFromRelayEvent(ie nostr.RelayEvent) string

func ToPointer added in v0.50.3

func ToPointer(code string) (nostr.Pointer, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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