aezeed: expose BirthdayTime conversion from offset

This commit is contained in:
Conner Fromknecht
2018-03-26 14:02:51 -07:00
parent c54a91f44d
commit c824af11a1
2 changed files with 12 additions and 5 deletions

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,
}