nip49

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: 6 Imported by: 0

Documentation

Overview

Package nip49 implements NIP-49: Private Key Encryption, the scrypt-derived, password-protected "ncryptsec" encoding for a private key.

Index

Constants

View Source
const (
	LogNDefault = 16 // N = 2^16 = 65536. NIP-49 suggests something secure.

)

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ncryptsec, password string) (string, error)

func Encrypt

func Encrypt(privKeyHex, password 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