librustzcash/zcash_primitives/benches
Jack Grigg 8a84203685 Remove Default impl from MemoBytes
Memo fields have two ways to encode an empty memo:

- 0xF6 followed by all-zeroes, encoding "there is no memo".
- All-zeroes, encoding the empty UTF-8 string.

In almost all cases you want the former, but users thinking about byte
slices may expect MemoBytes::default() to result in the latter. To
ensure clarity, we now require calling either MemoBytes::default() or
MemoBytes::from_bytes(&[]) to be explicit.

No such confusion exists for the Memo enum, because the two types are
visibly separated as different enum cases, and Memo::Empty makes sense
as the default.
2021-03-17 21:16:01 +13:00
..
note_decryption.rs Remove Default impl from MemoBytes 2021-03-17 21:16:01 +13:00
pedersen_hash.rs s/{pairing::bls12_381, zcash_primitives::jubjub}/{bls12_381, jubjub} 2020-08-19 23:08:19 +01:00