Enforce first four bits are zero for all spending keys and phi.

This commit is contained in:
Sean Bowe
2016-05-24 11:07:09 -06:00
parent 4ac1841614
commit defe37a6d4
15 changed files with 123 additions and 42 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ ViewingKey SpendingKey::viewing_key() {
}
SpendingKey SpendingKey::random() {
return SpendingKey(random_uint256());
return SpendingKey(random_uint252());
}
PaymentAddress SpendingKey::address() {