nip04

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: Unlicense Imports: 11 Imported by: 0

Documentation

Overview

Package nip04 implements NIP-04: Encrypted Direct Message, the legacy (pre-NIP-44) shared-secret AES-256-CBC encryption scheme for kind-4 direct messages. Prefer nip44 for new applications; NIP-04 remains in use only for backward compatibility with older clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(data, senderPubKeyHex, receiverPrivKeyHex string) (string, error)

func Encrypt

func Encrypt(data, senderPrivKey, receiverPubKey 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