refactor/rework key derivation (#652)

seed -> ext_key -> many child_keys
This commit is contained in:
Antioch Peverell
2018-01-25 15:19:32 -05:00
committed by GitHub
parent 2def215553
commit 5a7d22977e
3 changed files with 105 additions and 93 deletions
+2 -2
View File
@@ -1057,7 +1057,7 @@ mod test {
).unwrap();
let short_id = input.short_id(&block_hash);
assert_eq!(short_id, ShortId::from_hex("102864956811").unwrap());
assert_eq!(short_id, ShortId::from_hex("3e1262905b7a").unwrap());
// now generate the short_id for a *very* similar output (single feature flag different)
// and check it generates a different short_id
@@ -1072,6 +1072,6 @@ mod test {
).unwrap();
let short_id = input.short_id(&block_hash);
assert_eq!(short_id, ShortId::from_hex("b8c189165df1").unwrap());
assert_eq!(short_id, ShortId::from_hex("90653c1c870a").unwrap());
}
}