feat(debugger): auto-sign sig args from secret keys#113
Open
atl4so wants to merge 1 commit intokaspanet:covpp-reset2from
Open
feat(debugger): auto-sign sig args from secret keys#113atl4so wants to merge 1 commit intokaspanet:covpp-reset2from
atl4so wants to merge 1 commit intokaspanet:covpp-reset2from
Conversation
415fc36 to
5b2a7e3
Compare
5b2a7e3 to
287437c
Compare
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.
Summary
Adds optional 32-byte secret-key auto-signing for
sigarguments incli-debugger.test.jsonfixtures.If a
sigargument is supplied as 32 bytes, the debugger now materializes it into a real Kaspa Schnorr signature over the test transaction sighash withSIG_HASH_ALL. Existing fixtures that pass raw 65-byte signatures continue to work unchanged. Includes argument offset handling for covenant functions where synthesized prefix args (State prev_state, State[] next_states) shift user-callable parameter positions.Motivation
Upstream Rust tests can exercise signature flows by calling the Kaspa signing libraries directly and embedding raw signature bytes. External tooling that drives
cli-debuggerthrough.test.jsoncannot do that without reimplementing transaction signing outside the debugger.This gives JSON-driven tools, fuzzers, and audit generators a deterministic way to produce signed fixtures from synthetic keys while still executing the real script path in
cli-debugger.Testing
cargo test -p cli-debuggerAdded an integration test covering:
checkSigcheckSig