keystorev1

package module
v0.0.0-...-f6f12b8 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 11 Imported by: 1

README

go-zond-wallet-encryptor-keystore

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encryptor

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

func New

func New(opts ...Option) *Encryptor

func (*Encryptor) Decrypt

func (e *Encryptor) Decrypt(data map[string]interface{}, passphrase string) ([]byte, error)

func (*Encryptor) Encrypt

func (e *Encryptor) Encrypt(data []byte, passphrase string) (map[string]interface{}, error)

Encrypt encrypts data.

func (*Encryptor) Name

func (e *Encryptor) Name() string

func (*Encryptor) Version

func (e *Encryptor) Version() uint

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithCipher

func WithCipher(cipher string) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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