Documentation ¶
Index ¶
- type FileStore
- func (fs FileStore) GetAddresses() ([][]byte, error)
- func (fs FileStore) GetDecrypter(address []byte, decrypterType byte, deriveKeyOptions multi.OptionsBuilders) (cipher.Decrypter, error)
- func (fs FileStore) GetSigner(address []byte, chain string, deriveKeyOptions multi.OptionsBuilders) (mailbox.Signer, error)
- func (fs FileStore) HasAddress(address []byte) bool
- func (fs FileStore) Store(private keys.PrivateKey, curveType string, ...) ([]byte, error)
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 ¶
NewFileStore create a new filestore with the path specified
func (FileStore) GetAddresses ¶
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 ¶
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.