leveldb

package
v0.0.0-...-4cd978c Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyPair

type KeyPair struct {
	PrivateKey     string
	CompressPubkey string
}

type Keys

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

func NewKeys

func NewKeys(path string) (*Keys, error)

func (*Keys) GetPrivateKey

func (k *Keys) GetPrivateKey(publicKey string) (string, bool)

func (*Keys) StorePrivateKeys

func (k *Keys) StorePrivateKeys(keyPairList []KeyPair) bool

type LevelDB

type LevelDB struct {
	*leveldb.DB
}

func NewLevelStore

func NewLevelStore(Path string) (*LevelDB, error)

func (*LevelDB) Delete

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

func (*LevelDB) Get

func (db *LevelDB) Get(key []byte) ([]byte, error)

func (*LevelDB) Put

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

Jump to

Keyboard shortcuts

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