MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / wrong_key_fails_verification

Function wrong_key_fails_verification

atomic-canonical/tests/roundtrip.rs:159–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157
158#[test]
159fn wrong_key_fails_verification() {
160 let (id, kp) = dev_identity();
161 let node = lift_and_attest(&frontmatter(), BODY, &id, &kp).unwrap();
162 let other = KeyPair::generate();
163 assert!(verify(&node, &other.public).is_err());
164}
165
166#[test]
167fn empty_new_collections_do_not_appear_in_canonical_form() {

Callers

nothing calls this directly

Calls 4

lift_and_attestFunction · 0.85
frontmatterFunction · 0.85
dev_identityFunction · 0.70
unwrapMethod · 0.45

Tested by

no test coverage detected