channeldb: switch to Open/Create methods rather than New

Commit includes basic tests for Open/Create. Additionally, rather than
relying on btcwallet’s addmgr for encryption/decryption, this package
now exposes a simple crypto system interface.
This commit is contained in:
Olaoluwa Osuntokun
2016-03-23 22:11:57 -07:00
parent 3faa2c2ef5
commit 631e76519e
3 changed files with 135 additions and 36 deletions

View File

@@ -1 +1,7 @@
package channeldb
import "fmt"
var (
ErrNoExists = fmt.Errorf("channel db has not yet been created")
)