Skip to content

Commit

Permalink
Merge pull request #372 from brave/remove-insta
Browse files Browse the repository at this point in the history
Remove insta dependency
  • Loading branch information
rillian authored Mar 29, 2024
2 parents cc251fb + 9b0c07a commit d199f88
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
1 change: 0 additions & 1 deletion ppoprf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ env_logger = "0.11.3"
log = "0.4.21"
reqwest = { version = "0.12.2", features = [ "blocking", "json" ] }
dotenvy = "0.15.7"
insta = "1.36.1"
tokio = { version = "1.36.0", features = ["macros", "rt-multi-thread", "time"] }
warp = "0.3.6"

Expand Down
8 changes: 4 additions & 4 deletions ppoprf/src/ppoprf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,6 @@ fn strobe_hash(input: &[u8], label: &str, out: &mut [u8]) {
mod tests {
use super::*;

use insta::assert_snapshot;

fn end_to_end_eval_check_no_proof(
server: &Server,
c_input: &[u8],
Expand Down Expand Up @@ -573,7 +571,8 @@ mod tests {
.serialize_to_bincode()
.expect("Should serialize to bincode");

assert_snapshot!(base64::encode(&pk_bincode));
let expected = "qvgkBOX3v6c1LOCT5Kq+gkNThdZKqHAJClbRqjYWmAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH21zz6BGKHRL9pORR/hTW+FKDvE+OrKUQTF3tUHwjaCQJ4y7Cc0Y+Qgk+M41esYWMnb7xw31kKOFOtBW9K8W9mKwMMGFZGUxdw8a0YR+AcaR4oHwziNgXQOiYl9+HURiPWKgSC7x8pf72mezXiE73bnAQ+Ydwj1TiaXpObtvV73UFFQQXqHR1+dcom/BojKL4hyvKQwXEyjBip91w+Akrlxwv8NAaOL9VPRsgI/LJ+qWvbblaC1onIB9giUBNgnKk4P5juHAfkpVyW6kyQjufMFaegMpo9P47w84s4Bo4AtMizA3rcPw==";
assert_eq!(base64::encode(&pk_bincode), expected);

ServerPublicKey::load_from_bincode(&pk_bincode)
.expect("Should load bincode");
Expand All @@ -600,7 +599,8 @@ mod tests {
.serialize_to_bincode()
.expect("Should serialize to bincode");

assert_snapshot!(base64::encode(&proof_bincode));
let expected = "BwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcPDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw==";
assert_eq!(base64::encode(&proof_bincode), expected);

ProofDLEQ::load_from_bincode(&proof_bincode).expect("Should load bincode");
}
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit d199f88

Please sign in to comment.