nip49

package
v0.42.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(bech32string string, password string) (secretKey string, err error)

func DecryptToBytes

func DecryptToBytes(bech32string string, password string) (secretKey []byte, err error)

func Encrypt

func Encrypt(secretKey string, password string, logn uint8, ksb KeySecurityByte) (b32code string, err error)

func EncryptBytes

func EncryptBytes(secretKey []byte, password string, logn uint8, ksb KeySecurityByte) (b32code string, err error)

Types

type KeySecurityByte

type KeySecurityByte byte
const (
	KnownToHaveBeenHandledInsecurely    KeySecurityByte = 0x00
	NotKnownToHaveBeenHandledInsecurely KeySecurityByte = 0x01
	ClientDoesNotTrackThisData          KeySecurityByte = 0x02
)

Jump to

Keyboard shortcuts

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