aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil/db.go
blob: abbf4a2b0930929e32a1c02860cfa938ee7d2a36 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
package ethutil

// Database interface
type Database interface {
    Put(key []byte, value []byte)
    Get(key []byte) ([]byte, error)
    GetKeys() []*Key
    Delete(key []byte) error
    LastKnownTD() []byte
    Close()
    Print()
}