Documentation ¶
Index ¶
- type Database
- func (s *Database) AddAccount(userID []byte, accountAddress []byte, signature []byte, ...) error
- func (s *Database) AddUser(userID []byte, privateKey []byte) error
- func (s *Database) DeleteUser(userID []byte) error
- func (s *Database) GetAccounts(userID []byte) ([]common.AccountDB, error)
- func (s *Database) GetAllUsers() ([]common.UserDB, error)
- func (s *Database) GetUserPrivateKey(userID []byte) ([]byte, error)
- func (s *Database) StoreTransaction(rawTx string, userID []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewSqliteDatabase ¶
func (*Database) AddAccount ¶
func (s *Database) AddAccount(userID []byte, accountAddress []byte, signature []byte, signatureType viewingkey.SignatureType) error
func (*Database) DeleteUser ¶
func (*Database) GetAccounts ¶
func (*Database) GetUserPrivateKey ¶
Click to show internal directories.
Click to hide internal directories.