unencrypted

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

README

go-eth2-wallet-encryptor-unencrypted

Tag License GoDoc Travis CI codecov.io Go Report Card

Null encryptor for the Ethereum 2 wallet.

This encryptor is for test purposes only, and should not be used for production.

Table of Contents

Install

go-eth2-wallet-encryptor-unencrypted is a standard Go module which can be installed with:

go get github.com/wealdtech/go-eth2-wallet-encryptor-unencrypted

Usage

In normal operation this module should not be used directly. Instead, it should be configured to be used as part of go-eth2-wallet.

Maintainers

Jim McDonald: @mcdee.

Contribute

Contributions welcome. Please check out the issues.

License

Apache-2.0 © 2020 Weald Technology Trading Ltd

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encryptor

type Encryptor struct{}

Encryptor is an encryptor that stores data unencrypted.

func New

func New() *Encryptor

New creates a new null encryptor.

func (*Encryptor) Decrypt

func (e *Encryptor) Decrypt(data map[string]any, _ string) ([]byte, error)

Decrypt decrypts the data provided, returning the secret.

func (*Encryptor) Encrypt

func (e *Encryptor) Encrypt(secret []byte, _ string) (map[string]any, error)

Encrypt encrypts data.

func (*Encryptor) Name

func (e *Encryptor) Name() string

Name returns the name of this encryptor.

func (*Encryptor) String added in v1.0.2

func (e *Encryptor) String() string

String returns the string for this encryptor.

func (*Encryptor) Version

func (e *Encryptor) Version() uint

Version returns the version of this encryptor.

Jump to

Keyboard shortcuts

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