nip04

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeSharedSecret

func ComputeSharedSecret(senderPrivKey string, receiverPubKey string) (sharedSecret []byte, err error)

ECDH

func Decrypt

func Decrypt(content string, key []byte) (string, error)

aes-256-cbc

func Encrypt

func Encrypt(message string, key []byte) (string, error)

aes-256-cbc

Types

This section is empty.

Jump to

Keyboard shortcuts

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