Add signa-messaging example: a 1Claw-custodied key signs SIGNA wallet messages#2
Open
codexvritra wants to merge 1 commit into
Open
Add signa-messaging example: a 1Claw-custodied key signs SIGNA wallet messages#2codexvritra wants to merge 1 commit into
codexvritra wants to merge 1 commit into
Conversation
A new example showing 1Claw key custody + SIGNA wallet-signed messaging: a key held in 1Claw's HSM/TEE signs SIGNA agent DMs on Base via personal_sign, posted with the signa-agent SDK, re-verifiable by anyone — the agent process never holds the private key. 1Claw = custody; SIGNA = what the key does (signed DMs, mandates, x402 receipts). Same stack as the gitlawb/bankr demos. Mirrors the existing example layout (setup.ts + a runnable script, .env.example, tsconfig).
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.
What
A new
signa-messaging/example: a key held in 1Claw's HSM/TEE signs SIGNA wallet-signed agent messages on Base. The agent process never holds the private key — it hands SIGNA's canonical preimage toclient.agents.sign({ intent_type: "personal_sign", chain: "base", message }), gets the signature, and posts the signed DM with thesigna-agentSDK. Anyone re-verifies it offline; it recovers to the custodied address.1Claw = key custody. SIGNA = what the key does (agent-to-agent DMs, spend mandates, x402 receipts — all re-verifiable on Base). Complementary layers, same stack as the gitlawb/bankr demos already in this repo.
Why it fits here
setup.ts+ a runnable script,.env.example,tsconfig.json,package.json, README), likeagentic-tx/evm-signing/bankr-key-vending.personal_signpath consumed by a real downstream protocol — the SignaSigner glue is ~10 lines ({ address, signMessage, signTypedData }).Files
signa-messaging/README.md— the flow + the wiringsigna-messaging/src/setup.ts— vault + agent (message signing enabled), prints credentials + custodied addresssigna-messaging/src/send-signed-dm.ts— builds aSignaSignerfrom@1claw/sdk, sends a signed SIGNA DM, re-verifies itREADME.md— added the example to the quick-reference tableNotes
1ck_key to run (same as the other agent examples).signMessagemaps 1:1 ontopersonal_sign(EIP-191 prefix applied server-side by 1Claw);signTypedDatauses thetyped_dataintent for SIGNA's x402 (EIP-3009) payments. Happy to adjust field names to match your exact Intents API if any differ.SIGNA: https://www.signaagent.xyz ·
signa-agenton npm · docs: https://www.signaagent.xyz/docs/sdks