keystore
Package keystore
import "github.com/luxfi/node/vms/components/keystore"Functions
GetKeychain
func GetKeychain(u User, addresses set.Set[ids.ShortID]) (*secp256k1fx.Keychain, error)Keychain returns a new keychain from the [user]. If [addresses] is non-empty it fetches only the keys in addresses. If a key is missing, it will be ignored. If [addresses] is empty, then it will create a keychain using every address in the provided [user].
NewKey
func NewKey(u User) (*secp256k1.PrivateKey, error)Create and store a new key that will be controlled by this user.
NewKeys
func NewKeys(u User, numKeys int) ([]*secp256k1.PrivateKey, error)Create and store [numKeys] new keys that will be controlled by this user.
Types
User
func NewUserFromDB(db *encdb.Database) Userfunc NewUserFromKeystore(ks keystore.BlockchainKeystore, username, password string) (User, error)