We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use rustreexo::accumulator::{node_hash::NodeHash, pollard::Pollard}; #[test] fn test_pollard_serialization() { let mut p = Pollard::new(); let values = vec![1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]; let hashes: Vec<NodeHash> = values .into_iter() .map(|i| NodeHash::from([i; 32])) .collect(); p.modify(&hashes, &[]).expect("modify should work"); p.modify(&[], &hashes).expect("modify should work"); let mut serialized= Vec::<u8>::new(); p.serialize(&mut serialized).expect("serialize should work"); let _pollard = Pollard::deserialize(&*serialized).expect("deserialization fails"); }
The text was updated successfully, but these errors were encountered:
Merge pull request #47 from Ash-L2L/main
d8a1aea
Fix pollard serialization/deserialization (#46), Debug/Display for empty pollard (#48)
Improve versioning and folder structure (mit-dci#46)
ba4f5c0
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: