reorganizing

This commit is contained in:
2020-10-12 14:23:54 -07:00
parent 3338f9d53d
commit 841b488d7c
6 changed files with 2263 additions and 9 deletions

2056
pkg/bip39wordlist/bip39.go Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,17 @@
package bip39wordlist_test
import (
"testing"
"github.com/stretchr/testify/assert"
"sneak.berlin/x/pkg/bip39wordlist"
)
func TestLength(t *testing.T) {
assert := assert.New(t)
wl := bip39wordlist.Wordlist
assert.Equal(2048, len(wl), "should have correct number of words")
assert.Equal(wl[0], "abandon", "first word should be correct")
assert.Equal(wl[len(wl)-1], "zoo", "last word should be correct")
}