nip44

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 14 Imported by: 3

Documentation

Index

Constants

View Source
const (
	MinPlaintextSize = 0x0001 // 1b msg => padded to 32b
	MaxPlaintextSize = 0xffff // 65535 (64kb-1) => padded to 64kb
)

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(b64ciphertextWrapped string, conversationKey [32]byte) (string, error)

func Encrypt

func Encrypt(plaintext string, conversationKey [32]byte, applyOptions ...func(opts *encryptOptions)) (string, error)

func GenerateConversationKey added in v0.31.0

func GenerateConversationKey(pub string, sk string) ([32]byte, error)

func WithCustomNonce added in v0.34.5

func WithCustomNonce(nonce []byte) func(opts *encryptOptions)

Types

This section is empty.

Jump to

Keyboard shortcuts

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