nip44

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func Decrypt

func Decrypt(ciphertext string, conversationKey []byte) (string, error)

func Encrypt

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

func GenerateConversationKey added in v0.31.0

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

func WithCustomSalt added in v0.31.1

func WithCustomSalt(salt []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