Make pk_d validity an invariant of PaymentAddress
Introduces a PaymentAddress::from_parts constructor, and getters for the diversifier and pk_d fields (which are now private).
This commit is contained in:
@@ -548,7 +548,7 @@ mod tests {
|
||||
let (j_m, addr_m) = xsk_m.default_address().unwrap();
|
||||
assert_eq!(j_m.0, [0; 11]);
|
||||
assert_eq!(
|
||||
addr_m.diversifier.0,
|
||||
addr_m.diversifier().0,
|
||||
// Computed using this Rust implementation
|
||||
[59, 246, 250, 31, 131, 191, 69, 99, 200, 167, 19]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user