• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

KarpelesLab / libwallet / 24818875959
25%

Build:
DEFAULT BRANCH: master
Ran 23 Apr 2026 05:49AM UTC
Jobs 1
Files 103
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Apr 2026 05:39AM UTC coverage: 19.832% (-0.04%) from 19.874%
24818875959

push

github

MagicalTux
EVM off-chain signing: emit Ethereum wire format, not DER

personal_sign and eth_signTypedData (v3/v4) were returning the raw
DER-encoded ECDSA signature from a.Sign(), hex-prefixed. Off-chain
verifiers all expect the 65-byte Ethereum form:

  R(32) || S(32) || V(1)   where V ∈ {27, 28}

ecrecover, viem.verifyTypedData, ethers.verifyMessage, MetaMask
test-dapp's Recover button, OpenSea, Snapshot, Permit2 etc. all
reject DER with either "Invalid signature v value" or a silent
address mismatch.

Add `wltacct.SignEthereumDigest` that wraps the TSS signer's DER
output: ParseDERSignature → BruteforceRecoveryCode (the TSS path
drops the recovery byte, same as Bitcoin) → ExportCompact(false, 27)
to produce R || S || (recovery + 27). Mirror of SignCompact for
Bitcoin, just with V last instead of header-first.

Wire approveEthPersonalSign + approveEthTypedDataSign and the
host-direct Account:signMessage Mode="evm"/"personal_sign" path
through the new helper. EIP-155 chain-id adjustment is NOT applied
here — off-chain v stays at 27/28, the chainId*2+35+rec form is
specific to on-chain tx signing (which already does the right thing).

Test: TestEthereumWireFormat verifies the wire layout end-to-end
against an independent ecrecover with a throwaway secp256k1 key.

Reported on 0.3.29 against https://metamask.github.io/test-dapp/.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

0 of 31 new or added lines in 3 files covered. (0.0%)

2529 of 12752 relevant lines covered (19.83%)

61.97 hits per line

Uncovered Changes

Lines Coverage ∆ File
20
0.0
wltacct/eth_sign.go
6
0.0
0.0% wltbase/sign_approve.go
5
3.31
-0.07% wltacct/sign_api.go
Jobs
ID Job ID Ran Files Coverage
1 24818875959.1 23 Apr 2026 05:49AM UTC 103
19.83
GitHub Action Run
Source Files on build 24818875959
  • Tree
  • List 103
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24818875959
  • 96b90249 on github
  • Prev Build on master (#24816943607)
  • Next Build on master (#24820247102)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc