|
|
|
@ -132,7 +132,7 @@ impl FuzzyTag {
|
|
|
|
|
/// let decompressed_tag = FuzzyTag::decompress(&compressed_tag).unwrap();
|
|
|
|
|
/// assert_eq!(tag, decompressed_tag);
|
|
|
|
|
/// ```
|
|
|
|
|
pub fn decompress(bytes: &Vec<u8>) -> Option<FuzzyTag> {
|
|
|
|
|
pub fn decompress(bytes: &[u8]) -> Option<FuzzyTag> {
|
|
|
|
|
if bytes.len() > 64 {
|
|
|
|
|
let (u_bytes, rest) = bytes.split_at(32);
|
|
|
|
|
let (y_bytes, ciphertext) = rest.split_at(32);
|
|
|
|
|