nacl

package
v0.0.78 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 25 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 (f FileStore) GetAddresses(protocol, network string) (map[string]map[string][][]byte, error)

GetAddresses list all addresses.

func (FileStore) GetDecrypter

func (f FileStore) GetDecrypter(address []byte, protocol, network string, decrypterType byte, deriveKeyOptions multi.OptionsBuilders) (cipher.Decrypter, error)

GetDecrypter the decrypter for the specified address.

func (FileStore) GetSigner

func (f FileStore) GetSigner(address []byte, protocol, network string, deriveKeyOptions multi.OptionsBuilders) (signer.Signer, error)

GetSigner return a transaction signer based on the supplied address.

func (FileStore) HasAddress

func (f FileStore) HasAddress(searchAddress []byte, protocol, network string) bool

HasAddress check for the presence of the address in the store.

func (FileStore) Store

func (f FileStore) Store(protocol, network string, private crypto.PrivateKey, deriveKeyOptions multi.OptionsBuilders) (crypto.PublicKey, 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