Skip to content

refactor(type-safety): adopt IdentityDID and Hash256 domain types over raw string strip_prefix - #410

Merged
bordumb merged 1 commit into
mainfrom
dev-typeHardening
Jul 24, 2026
Merged

refactor(type-safety): adopt IdentityDID and Hash256 domain types over raw string strip_prefix#410
bordumb merged 1 commit into
mainfrom
dev-typeHardening

Conversation

@bordumb

@bordumb bordumb commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Refactors raw strip_prefix("did:keri:") and strip_prefix("sha256:") calls across the workspace to use existing strongly-typed domain primitives (auths_verifier::IdentityDID and auths_crypto::Hash256).

  • Adopted IdentityDID::parse and IdentityDID::prefix in auths-id, auths-sdk, auths-evidence, and auths-mcp-core.
  • Added Hash256::from_hex_prefixed in auths-crypto.
  • Verified 12 workspace_root instances in crates/xtask are standard std::path::Path::strip_prefix calls in dev tooling.
  • Passed full workspace unit and integration test suite.

…r raw string strip_prefix

Auths-Id: did:keri:EMN-WRXNAkLfavKsaFHS0ehP7eB1s8a1alktBJoDhI7b
Auths-Device: did:keri:EAswoxxXY6-kXqYcc3mUngY8GOiwhDwXxFfjWXzCvuW6
Auths-Anchor-Seq: 1
@bordumb
bordumb merged commit 454c3d5 into main Jul 24, 2026
18 of 19 checks passed
@bordumb
bordumb deleted the dev-typeHardening branch July 24, 2026 02:16
@github-actions

Copy link
Copy Markdown

Auths Commit Verification

Commit Status Details
ef736aa7 ❌ Failed Signing key is not the device's current key

Result: ❌ 0/1 commits verified


How to fix

Commit ef736aa7 failed verification. See the Actions log for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant