Skip to content

Route /spark/ requests to a Spark endpoint that refuses every wallet - #17

Draft
Jossec101 wants to merge 1 commit into
spark/nspark-submodulefrom
spark/routing
Draft

Jossec101 wants to merge 1 commit into
spark/nspark-submodulefrom
spark/routing

Conversation

@Jossec101

@Jossec101 Jossec101 commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor
  • Sends only /spark/... requests to the new Spark code; every other request is the PSBT signer, unchanged.
  • Spark requests are all refused for now.
  • The whole handler now runs in CI against a fake KMS.

Stack created with GitHub Stacks CLI • Give Feedback 💬

Only the /spark/ prefix (duplicate slashes collapsed) reaches Spark code;
every other path, including none, is the PSBT signer exactly as before.
Spark responses use the NSpark.RemoteSigner envelope and status codes;
no seed is enabled for Spark yet, so every wallet gets a 403.

The KMS client is now injectable (Function(Func<IAmazonKeyManagementService>)),
so the whole handler runs in CI against a fake KMS: the routing tests check
non-Spark paths still produce the golden PSBT byte-for-byte and Spark
paths never touch KMS. The fake KMS moves to its own file.
@Jossec101
Jossec101 added this pull request to stack #21 October 9, 2026 23:23
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