Decompression API
This commit is contained in:
parent
990f0004e5
commit
a0d2cb7d12
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue