nip19

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 4 Imported by: 117

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertBits

func ConvertBits(data []byte, fromBits, toBits uint8, pad bool) ([]byte, error)

ConvertBits converts a byte slice where each byte is encoding fromBits bits, to a byte slice where each byte is encoding toBits bits.

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)

Types

This section is empty.

Jump to

Keyboard shortcuts

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