crypto

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptWallet

func DecryptWallet(filePath string, password []byte) (*model.CWTFile, *model.WalletData, error)

DecryptWallet reads and decrypts .cwt file password must be []byte for security (caller should zero it after use)

func EncryptWallet

func EncryptWallet(filePath string, network, address, qrCode string, walletData *model.WalletData, password []byte) error

EncryptWallet encrypts wallet data and writes it to .cwt password must be []byte for security (caller should zero it after use)

func ReadWalletAddress

func ReadWalletAddress(filePath string) (string, error)

ReadWalletAddress reads only the address from .cwt file (without decryption)

Types

This section is empty.

Jump to

Keyboard shortcuts

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