database

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func New

func New(path string) (*DB, error)

func (*DB) Close

func (db *DB) Close() error

func (*DB) Delete

func (db *DB) Delete(key []byte) error

func (DB) FetchBalance

func (db DB) FetchBalance(decryptionKey []byte) (uint64, error)

func (DB) FetchInputs

func (db DB) FetchInputs(decryptionKey []byte, amount int64) ([]*transactions.Input, int64, error)

func (DB) Get

func (db DB) Get(key []byte) ([]byte, error)

func (DB) GetWalletHeight

func (db DB) GetWalletHeight() (uint64, error)

func (*DB) Put

func (db *DB) Put(key, value []byte) error

func (*DB) PutInput

func (db *DB) PutInput(encryptionKey []byte, pubkey ristretto.Point, amount, mask, privkey ristretto.Scalar) error

func (*DB) RemoveInput

func (db *DB) RemoveInput(pubkey []byte) error

func (DB) UpdateWalletHeight

func (db DB) UpdateWalletHeight(newHeight uint64) error

Jump to

Keyboard shortcuts

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