Skip to content

feat(siwx): tron verifier#5688

Open
0xmkh wants to merge 1 commit into
mainfrom
feat/tron-siwx
Open

feat(siwx): tron verifier#5688
0xmkh wants to merge 1 commit into
mainfrom
feat/tron-siwx

Conversation

@0xmkh

@0xmkh 0xmkh commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add SIWX (Sign-In With X) support for TRON blockchain
  • Implement TronVerifier for signature verification using TIP-191 compliant message format

Changes

packages/siwx

  • Add TronVerifier class that verifies TRON wallet signatures
  • Uses TronWeb's signMessageV2 format: keccak256("\x19TRON Signed Message:\n" + message.length + message)
  • Supports Base58Check address decoding for TRON addresses
  • Fallback to EIP-191 for wallets that use Ethereum-style signing (e.g., MetaMask)

packages/adapters/tron

  • Implement signMessage method (was returning empty signature)
  • Calls connector's signMessage to request signature from wallet

apps/laboratory

  • Add tron adapter to siwx-default config for testing

@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
appkit-demo Ready Ready Preview, Comment Jun 15, 2026 5:22pm
appkit-gallery Ready Ready Preview, Comment Jun 15, 2026 5:22pm
appkit-headless-sample-app Ready Ready Preview, Comment Jun 15, 2026 5:22pm
appkit-laboratory Ready Ready Preview, Comment Jun 15, 2026 5:22pm
9 Skipped Deployments
Project Deployment Actions Updated (UTC)
appkit-basic-example Ignored Ignored Jun 15, 2026 5:22pm
appkit-basic-sign-client-example Ignored Ignored Jun 15, 2026 5:22pm
appkit-basic-up-example Ignored Ignored Jun 15, 2026 5:22pm
appkit-ethers5-bera Ignored Ignored Jun 15, 2026 5:22pm
appkit-nansen-demo Ignored Ignored Jun 15, 2026 5:22pm
appkit-wagmi-cdn-example Ignored Ignored Jun 15, 2026 5:22pm
ethereum-provider-wagmi-example Ignored Ignored Jun 15, 2026 5:22pm
next-wagmi-solana-bitcoin-example Ignored Ignored Jun 15, 2026 5:22pm
vue-wagmi-example Ignored Ignored Jun 15, 2026 5:22pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

Visual Regression Test Results ✅ Passed

⚠️ 15 visual change(s) detected

Chromatic Build: https://www.chromatic.com/build?appId=6493191bf4b10fed8ca7353f&number=934
Storybook Preview: https://6493191bf4b10fed8ca7353f-kftueafqsu.chromatic.com/

👉 Please review the visual changes in Chromatic and accept or reject them.

@github-actions

Copy link
Copy Markdown
Contributor

📦 Bundle Size Check

All bundles are within size limits

📊 View detailed bundle sizes

> @reown/appkit-monorepo@1.7.1 size /home/runner/work/appkit/appkit


> size-limit

@reown/appkit - Main Entry
Size limit:   80 kB
Size:         75.84 kB with all dependencies, minified and gzipped
Loading time: 1.5 s    on slow 3G
Running time: 635 ms   on Snapdragon 410
Total time:   2.2 s
@reown/appkit/react
Size limit:   236 kB
Size:         235.08 kB with all dependencies, minified and gzipped
Loading time: 4.6 s     on slow 3G
Running time: 1.6 s     on Snapdragon 410
Total time:   6.1 s
@reown/appkit/vue
Size limit:   80 kB
Size:         75.84 kB with all dependencies, minified and gzipped
Loading time: 1.5 s    on slow 3G
Running time: 344 ms   on Snapdragon 410
Total time:   1.9 s
@reown/appkit-scaffold-ui
Size limit:   220 kB
Size:         214.38 kB with all dependencies, minified and gzipped
Loading time: 4.2 s     on slow 3G
Running time: 954 ms    on Snapdragon 410
Total time:   5.2 s
@reown/appkit-ui
Size limit:   500 kB
Size:         13.16 kB with all dependencies, minified and gzipped
Loading time: 258 ms   on slow 3G
Running time: 121 ms   on Snapdragon 410
Total time:   379 ms

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 78.55% 39969 / 50883
🔵 Statements 78.55% 39969 / 50883
🔵 Functions 76.18% 4268 / 5602
🔵 Branches 86.62% 9750 / 11255
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/appkit/exports/constants.ts 100% 100% 100% 100%
packages/siwx/src/configs/DefaultSIWX.ts 30.3% 100% 0% 30.3% 10-19, 22-26, 42-49
packages/siwx/src/verifiers/TronVerifier.ts 71.11% 50% 100% 71.11% 32-43, 58-59, 63-64
packages/siwx/src/verifiers/index.ts 100% 100% 100% 100%
Generated in workflow #17146 for commit a9dca25 by the Vitest Coverage Report Action

@changeset-bot

changeset-bot Bot commented Jun 15, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a9dca25

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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