Refactor git shellouts to libgit2 - #411
Open
bordumb wants to merge 1 commit into
Open
Conversation
Auths-Id: did:keri:EMN-WRXNAkLfavKsaFHS0ehP7eB1s8a1alktBJoDhI7b Auths-Device: did:keri:EAswoxxXY6-kXqYcc3mUngY8GOiwhDwXxFfjWXzCvuW6 Auths-Anchor-Seq: 1
Auths Commit Verification
Result: ❌ 0/1 commits verified How to fixCommit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR implements the transition from shell-out
gitsubprocess commands to nativelibgit2(viagit2-rs) for core KERI/commit operations as specified in the PRD.Changes Made
org.rs,verify_commit.rs,commit_signing.rs):git cat-file commitwith in-processgit2::Repository::odb().read()for securely reading raw commit bytes for signature verification.chain.rs):git read-tree,git rm --cached,git commit-tree,git update-ref) usinggit2'sindex,tree, andcommitAPIs.auths-mcp-gateway/src/chain.rs):git init,git add, andgit commitwith theirgit2equivalents for creating per-call and per-settlement signed evidence commits.auths sign HEADis strictly preserved to ensure key management and SSH agent workflows function exactly as before.auths-sdk):git2as a native-only (cfg(not(target_arch = "wasm32"))) dependency to preserve WASM compilation capabilities.