nacl

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStore

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

FileStore object

func NewFileStore

func NewFileStore(path string) FileStore

NewFileStore create a new filestore with the path specified

func (FileStore) GetAddresses

func (fs FileStore) GetAddresses() ([][]byte, error)

GetAddresses list all the address this key store has

func (FileStore) GetDecrypter

func (fs FileStore) GetDecrypter(address []byte, decrypterType byte, deriveKeyOptions multi.OptionsBuilders) (cipher.Decrypter, error)

GetDecrypter the decrypter for the specified address.

func (FileStore) GetSigner

func (fs FileStore) GetSigner(address []byte, chain string, deriveKeyOptions multi.OptionsBuilders) (mailbox.Signer, error)

GetSigner return a transaction signer based on the supplied address.

func (FileStore) HasAddress

func (fs FileStore) HasAddress(address []byte) bool

HasAddress check for the presence of the address in the store

func (FileStore) Store

func (fs FileStore) Store(private keys.PrivateKey, curveType string, deriveKeyOptions multi.OptionsBuilders) ([]byte, error)

Store the private key with the storage key and curve type

Jump to

Keyboard shortcuts

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