Orchard: turns out you can't store 10 bits in a u8
This commit is contained in:
parent
5e95d11fd9
commit
44966326c1
|
@ -82,7 +82,7 @@ pub fn sinsemilla_hash_to_point(D: &[u8], M: &BitVec<Lsb0, u8>) -> pallas::Point
|
||||||
// https://zips.z.cash/protocol/protocol.pdf#concretesinsemillahash
|
// https://zips.z.cash/protocol/protocol.pdf#concretesinsemillahash
|
||||||
for chunk in M.chunks(k) {
|
for chunk in M.chunks(k) {
|
||||||
// Pad each chunk with zeros.
|
// Pad each chunk with zeros.
|
||||||
let mut store = 0u8;
|
let mut store = 0u16;
|
||||||
let bits = store.bits_mut::<Lsb0>();
|
let bits = store.bits_mut::<Lsb0>();
|
||||||
chunk
|
chunk
|
||||||
.iter()
|
.iter()
|
||||||
|
|
Loading…
Reference in New Issue