Apply suggestions from code review

Co-authored-by: ying tong <yingtong@z.cash>
This commit is contained in:
Daira Hopwood 2021-10-05 21:39:21 +01:00 committed by Kris Nuttycombe
parent 1373221439
commit bec497f6bf
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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)
}