aezeed: expose BirthdayTime conversion from offset

This commit is contained in:
Conner Fromknecht committed 2018-04-26 16:03:05 -07:00
1 parent c54a91f44d
commit c824af11a1
2 files changed
+12 -5

No files matched your search

+2 -2
View File
@@ -33,7 +33,7 @@ var (
version0TestVectors = []TestVector{
{
version: 0,
time: bitcoinGenesisDate,
time: BitcoinGenesisDate,
entropy: testEntropy,
salt: testSalt,
password: []byte{},
@@ -466,7 +466,7 @@ func TestSeedEncodeDecode(t *testing.T) {
now := time.Unix(nowInt, 0)
seed := CipherSeed{
InternalVersion: version,
Birthday: uint16(now.Sub(bitcoinGenesisDate) / (time.Hour * 24)),
Birthday: uint16(now.Sub(BitcoinGenesisDate) / (time.Hour * 24)),
Entropy: entropy,
}