stores

package
v0.4.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(acc wallet.Account, opts ...Option) (wallet.Store, error)

NewWalletStore returns a new WalletStore

Types

type Option

type Option func(*storeConfig)

Option is a function that configures the store

func SetFileStore

func SetFileStore(path string, password []byte) Option

SetFileStore sets the store to use a file store. Password must be 32 bytes and already hashed

func SetIPFSStore

func SetIPFSStore(ipfsNode common.IPFSNode) Option

SetIPFSStore sets the store to use an IPFS store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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