Sapling: use try_from turbofish inside prf_ock

This commit is contained in:
Deirdre Connolly 2021-03-15 02:01:52 -04:00 committed by Deirdre Connolly
parent 0351e6481d
commit 41a41db923
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ fn prf_ock(ovk: [u8; 32], cv: [u8; 32], cm_u: [u8; 32], ephemeral_key: [u8; 32])
.update(&ephemeral_key)
.finalize();
*hash.as_bytes().try_into().expect("32 byte array")
<[u8; 32]>::try_from(hash.as_bytes()).expect("32 byte array")
}
/// Invokes Blake2s-256 as _CRH^ivk_, to derive the IncomingViewingKey