Skip to content

Commit

Permalink
fix: review findings
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-affinidi committed Dec 16, 2024
1 parent 3bf308a commit c151028
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
15 changes: 12 additions & 3 deletions affinidi-did-resolver-cache-sdk/src/resolver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,20 @@ mod tests {
let last_public_key_jwk = &verification_method.last().unwrap().properties["publicKeyJwk"];
assert_eq!(first_public_key_jwk["crv"], "Ed25519");
assert_eq!(first_public_key_jwk["kty"], "OKP");
assert_eq!(first_public_key_jwk["x"], "O5KzVvRLtJzv8xzpkBjaM3mmUBNF7WE_6e9tGGIM1T8");
assert_eq!(
first_public_key_jwk["x"],
"O5KzVvRLtJzv8xzpkBjaM3mmUBNF7WE_6e9tGGIM1T8"
);
assert_eq!(last_public_key_jwk["crv"], "secp256k1");
assert_eq!(last_public_key_jwk["kty"], "EC");
assert_eq!(last_public_key_jwk["x"], "K4_AlZahXcLOtqnvH45WAMUi97aqQLVs51erkqXP88w");
assert_eq!(last_public_key_jwk["y"], "QhrSDu7yD1ZKkHBRiuzQkiNppajd1q56Z1s_5Hi8dkA");
assert_eq!(
last_public_key_jwk["x"],
"K4_AlZahXcLOtqnvH45WAMUi97aqQLVs51erkqXP88w"
);
assert_eq!(
last_public_key_jwk["y"],
"QhrSDu7yD1ZKkHBRiuzQkiNppajd1q56Z1s_5Hi8dkA"
);

assert_eq!(service.len(), 1);
assert_eq!(service.first().unwrap().id, "did:peer:#service");
Expand Down
21 changes: 21 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,27 @@ exceptions = [
{ allow = ["MPL-2.0"], crate = "im" },
{ allow = ["MPL-2.0"], crate = "webpki-roots" },
{ allow = ["CC-BY-SA-3.0", "MPL-2.0"], crate = "sized-chunks" },
{ allow = ["Unicode-3.0"], crate = "icu_collections" },
{ allow = ["Unicode-3.0"], crate = "icu_locid" },
{ allow = ["Unicode-3.0"], crate = "icu_locid_transform" },
{ allow = ["Unicode-3.0"], crate = "icu_locid_transform_data" },
{ allow = ["Unicode-3.0"], crate = "icu_normalizer" },
{ allow = ["Unicode-3.0"], crate = "icu_normalizer_data" },
{ allow = ["Unicode-3.0"], crate = "icu_properties" },
{ allow = ["Unicode-3.0"], crate = "icu_properties_data" },
{ allow = ["Unicode-3.0"], crate = "icu_provider" },
{ allow = ["Unicode-3.0"], crate = "icu_provider_macros" },
{ allow = ["Unicode-3.0"], crate = "litemap" },
{ allow = ["Apache-2.0 WITH LLVM-exception", "Unicode-3.0"], crate = "target-lexicon" },
{ allow = ["Unicode-3.0"], crate = "tinystr" },
{ allow = ["Unicode-3.0"], crate = "unicode-ident" },
{ allow = ["Unicode-3.0"], crate = "writeable" },
{ allow = ["Unicode-3.0"], crate = "yoke" },
{ allow = ["Unicode-3.0"], crate = "yoke-derive" },
{ allow = ["Unicode-3.0"], crate = "zerofrom" },
{ allow = ["Unicode-3.0"], crate = "zerofrom-derive" },
{ allow = ["Unicode-3.0"], crate = "zerovec" },
{ allow = ["Unicode-3.0"], crate = "zerovec-derive" },
]

# Sigh
Expand Down

0 comments on commit c151028

Please sign in to comment.