Skip to content

feat: add useSignStructuredMessage hook#47

Merged
satoshai-dev merged 1 commit intomainfrom
feat/use-sign-structured-message
Mar 5, 2026
Merged

feat: add useSignStructuredMessage hook#47
satoshai-dev merged 1 commit intomainfrom
feat/use-sign-structured-message

Conversation

@satoshai-dev
Copy link
Copy Markdown
Owner

@satoshai-dev satoshai-dev commented Mar 5, 2026

Summary

  • Add useSignStructuredMessage hook for SIP-018 structured data signing via stx_signStructuredMessage
  • Types: SignStructuredMessageVariables (message: ClarityValue, domain: TupleCV), returns { publicKey, signature }
  • OKX wallet throws (unsupported) — all other wallets supported
  • Example app demo with tupleCV/stringAsciiCV/uintCV
  • README API section added

Closes #41

Test plan

  • pnpm build passes
  • pnpm typecheck passes
  • pnpm lint passes
  • pnpm test — 144 tests pass
  • Manual test: connect wallet, sign structured message in example app

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@satoshai-dev satoshai-dev force-pushed the feat/use-sign-structured-message branch from bcb9e65 to 4daa747 Compare March 5, 2026 13:58
@satoshai-dev satoshai-dev merged commit 791f8f6 into main Mar 5, 2026
1 check passed
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.

Add useSignStructuredMessage hook

1 participant