Versions in this module Expand all Collapse all v0 v0.1.0 Apr 19, 2020 Changes in this version + type BlockchainKeystore struct + func (bks *BlockchainKeystore) GetDatabase(username, password string) (database.Database, error) + type CreateUserArgs struct + Password string + Username string + type CreateUserReply struct + Success bool + type ExportUserArgs struct + Password string + Username string + type ExportUserReply struct + User formatting.CB58 + type ImportUserArgs struct + Password string + User formatting.CB58 + Username string + type ImportUserReply struct + Success bool + type KeyValuePair struct + Key []byte + Value []byte + type Keystore struct + func (ks *Keystore) CreateHandler() *common.HTTPHandler + func (ks *Keystore) CreateUser(_ *http.Request, args *CreateUserArgs, reply *CreateUserReply) error + func (ks *Keystore) ExportUser(_ *http.Request, args *ExportUserArgs, reply *ExportUserReply) error + func (ks *Keystore) GetDatabase(bID ids.ID, username, password string) (database.Database, error) + func (ks *Keystore) ImportUser(r *http.Request, args *ImportUserArgs, reply *ImportUserReply) error + func (ks *Keystore) Initialize(log logging.Logger, db database.Database) + func (ks *Keystore) ListUsers(_ *http.Request, args *ListUsersArgs, reply *ListUsersReply) error + func (ks *Keystore) NewBlockchainKeyStore(blockchainID ids.ID) *BlockchainKeystore + type ListUsersArgs struct + type ListUsersReply struct + Users []string + type User struct + Password [32]byte + Salt [16]byte + func (usr *User) CheckPassword(password string) bool + func (usr *User) Initialize(password string) error + type UserDB struct + Data []KeyValuePair