cipher

package
v1.21.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SUPPORTED_VERSIONS    = "0.0 1.0"
	SUPPORTED_ENCRYPTIONS = "nip44_v2 nip04"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Nip47Cipher

type Nip47Cipher struct {
	// contains filtered or unexported fields
}

func NewNip47Cipher

func NewNip47Cipher(encryption, pubkey, privkey string) (*Nip47Cipher, error)

func (*Nip47Cipher) Decrypt

func (c *Nip47Cipher) Decrypt(content string) (payload string, err error)

func (*Nip47Cipher) Encrypt

func (c *Nip47Cipher) Encrypt(message string) (msg string, err error)

Jump to

Keyboard shortcuts

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