nip19

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 4 Imported by: 117

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

type EventPointer added in v0.10.0

type EventPointer struct {
	ID     string
	Relays []string
}

type ProfilePointer added in v0.10.0

type ProfilePointer struct {
	PublicKey string
	Relays    []string
}

Jump to

Keyboard shortcuts

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