Skip to content

Commit

Permalink
Fix signature tests
Browse files Browse the repository at this point in the history
  • Loading branch information
monoid committed Feb 21, 2024
1 parent 86b0c9a commit 28c392a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions air/tests/test_module/features/signatures/attacks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,10 @@ fn test_attack_replay() {
let nested_error = fluence_keypair::error::VerificationError::Ed25519(
dalek_error,
// will break if signed data format changes
"8ATKuSr1J6NvqT3PBBf3qcDWsnDcnNpznFBSdzAVJnASV8MHrc15zKYYQkCcywcXFPgXJAdEzTNdhixDQKQjDL4".to_owned(),
"5KxZZzHbixcH8idzggBJYDgXP87qBBWAHLeFvPvCRVMqyAbf6mrqMdAa1P3iNjAaxXVFuJsxtrrQaL1MKw6C8pER".to_owned(),
"6m3zmtymxDL56KBpNgKqc7QiGRuWuxr82bG2q7dF5xCD".to_owned(),
);
let cids: Vec<Rc<CidRef>> = vec!["bagaaihra7fcndppbd44kltfjcy6ihc4fmxepwt256vswc7x2qqgznazx3j3a".into()];
let cids: Vec<Rc<CidRef>> = vec!["bagaaihrarsryjavaf4zikqilrc2hzph7rszpfyfxjpopfnczjxlqeb56nbhq".into()];
let expected = PreparationError::DataSignatureCheckError(verification::DataVerifierError::SignatureMismatch {
error: Box::new(nested_error.into()),
cids,
Expand Down
10 changes: 5 additions & 5 deletions air/tests/test_module/features/signatures/corruption.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ fn test_attack_replace_tetraplet() {
PreparationError::CidStoreVerificationError(
CidVerificationError::ValueMismatch {
type_name: "marine_call_parameters::SecurityTetraplet",
cid_repr: "bagaaihraqlxlbr5q54odmlqwrzpw4smuxzzqbrfas6c7ajhb73samtrjkkva".into(),
cid_repr: "bagaaihraxnms7hna6c27qhgfzhyayz62y2q2dxc4dwriq33tdilonmq4ruoq".into(),
}
.into()
)
Expand Down Expand Up @@ -256,7 +256,7 @@ fn test_attack_replace_call_result() {
PreparationError::CidStoreVerificationError(
CidVerificationError::ValueMismatch {
type_name: "air_interpreter_data::executed_state::ServiceResultCidAggregate",
cid_repr: "bagaaihrai3ii6rephch2kv2efkbolmhfjvpj2w3fyr2tj6lavd4yiloy2ybq".into(),
cid_repr: "bagaaihradr2m7mlsvqhtnzszpuifqgiytee6zpyxyfzxbuqcmf23fgmbemqq".into(),
}
.into()
)
Expand Down Expand Up @@ -346,7 +346,7 @@ fn test_attack_replace_canon_value() {
PreparationError::CidStoreVerificationError(
CidVerificationError::ValueMismatch {
type_name: "air_interpreter_data::executed_state::CanonCidAggregate",
cid_repr: "bagaaihram3i44lmbxmukumwohtp2dkocgdqjwzixddzxjmzlvhea7aid5l7q".into(),
cid_repr: "bagaaihracce5ggyu3cbxm4xh35mjlmb7qb3xltlwoqqas62e2yftii4x4msq".into(),
}
.into()
)
Expand Down Expand Up @@ -445,7 +445,7 @@ fn test_attack_replace_canon_result_values() {
PreparationError::CidStoreVerificationError(
CidVerificationError::ValueMismatch {
type_name: "air_interpreter_data::executed_state::CanonResultCidAggregate",
cid_repr: "bagaaihrar7xfyl5usjhn5s6xisvwkh55zyq5lvjnwr6j5j3yjutf55aowqea".into(),
cid_repr: "bagaaihraxsxqmnfevwk6briizagprfikpm4x73mdf626mm5xju2f33vp7c7q".into(),
}
.into()
)
Expand Down Expand Up @@ -548,7 +548,7 @@ fn test_attack_replace_canon_result_tetraplet() {
PreparationError::CidStoreVerificationError(
CidVerificationError::ValueMismatch {
type_name: "air_interpreter_data::executed_state::CanonResultCidAggregate",
cid_repr: "bagaaihrar7xfyl5usjhn5s6xisvwkh55zyq5lvjnwr6j5j3yjutf55aowqea".into(),
cid_repr: "bagaaihraxsxqmnfevwk6briizagprfikpm4x73mdf626mm5xju2f33vp7c7q".into(),
}
.into()
)
Expand Down

0 comments on commit 28c392a

Please sign in to comment.