nip19

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 4 Imported by: 118

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(bech32string string) ([]byte, string, error)

func EncodeNote

func EncodeNote(eventIdHex string) (string, error)

func EncodePrivateKey

func EncodePrivateKey(privateKeyHex string) (string, error)

func EncodePublicKey

func EncodePublicKey(publicKeyHex string, masterRelay string) (string, error)

func TranslatePublicKey added in v0.8.2

func TranslatePublicKey(bech32orHexKey string) string

TranslatePublicKey turns a hex or bech32 public key into always hex

Types

This section is empty.

Jump to

Keyboard shortcuts

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