Add Address type which is HexBytes

This commit is contained in:
Jae Kwon
2017-12-27 14:37:37 -08:00
parent 9472476a8b
commit f48baf86fb
7 changed files with 41 additions and 39 deletions
+3 -1
View File
@@ -86,7 +86,9 @@ func (kb dbKeybase) Recover(name, passphrase, seedphrase string) (Info, error) {
// List loads the keys from the storage and enforces alphabetical order
func (kb dbKeybase) List() ([]Info, error) {
var res []Info
for iter := kb.db.Iterator(); iter.Valid(); iter.Next() {
iter := kb.db.Iterator(nil, nil)
defer iter.Close()
for ; iter.Valid(); iter.Next() {
key := iter.Key()
if isPub(key) {
info, err := readInfo(iter.Value())