Apply suggestions from code review
Co-authored-by: ying tong <yingtong@z.cash>
This commit is contained in:
parent
1373221439
commit
bec497f6bf
|
@ -69,7 +69,7 @@ and this library adheres to Rust's notion of
|
|||
searches the diversifier index space until it obtains a valid diversifier,
|
||||
and returns the address corresponding to that diversifier, whereas `address`
|
||||
just attempts to create an address corresponding to the diversifier derived
|
||||
from the provided diversifier index and returns `None` if the provide index
|
||||
from the provided diversifier index and returns `None` if the provided index
|
||||
does not produce a valid diversifier.
|
||||
|
||||
### Changed
|
||||
|
|
|
@ -149,7 +149,6 @@ impl DiversifierKey {
|
|||
d_j.copy_from_slice(&enc.to_bytes_le());
|
||||
let diversifier = Diversifier(d_j);
|
||||
|
||||
// Return (j, d_j) if valid, else increment j and try again
|
||||
diversifier.g_d().map(|_| diversifier)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue