Skip to content

feat: add Ed25519 (EdDSA) signing support for applet v2.0 - #42

Merged
embarquech merged 4 commits into
mainfrom
feature/implementing_solana
Jul 14, 2026
Merged

feat: add Ed25519 (EdDSA) signing support for applet v2.0#42
embarquech merged 4 commits into
mainfrom
feature/implementing_solana

Conversation

@YanNaingWinn

Copy link
Copy Markdown
Contributor

Add KeyType.ED25519 and EdDSA signing on applet v2.0+, enabling Solana and other Ed25519-based chains.

  • get_public_key() returns the raw 32-byte Ed25519 key (no secp256k1/r1 compression)
  • sign() builds the EdDSA SIGN data field as [2-byte big-endian length][message][path][PIN(9B, 0x00-padded)] and validates a raw 64-byte R|S signature per RFC 8032; ECDSA (K1/R1) behaviour is unchanged
  • add AppletVersionException, raised for Ed25519 ops on pre-2.0 applets
  • add examples/solana_transaction/

Verified on applet v2.0.0: signatures verify against the derived key and a native SOL transfer finalized on testnet.

@YanNaingWinn
YanNaingWinn requested a review from embarquech July 1, 2026 15:03
Comment thread examples/solana_transaction/solana_transaction.py Fixed
Comment thread examples/solana_transaction/solana_transaction.py Fixed
Comment thread examples/solana_transaction/solana_transaction.py Fixed
Add Ed25519 signing support for applet v2.0 (KeyType.ED25519) and an examples/solana_transaction/ demo. Rename the BasicG1 card class to Basic (BasicG1 kept as an alias), pad the SIGN PIN to the spec's 9-byte field with named constants, and guard against silent ECDSA fallback for unknown key types. Bump __version__ to 1.0.5 and update CHANGELOG.rst.
@YanNaingWinn
YanNaingWinn force-pushed the feature/implementing_solana branch from 7e13fbf to 63e41d9 Compare July 14, 2026 13:46
YanNaingWinn and others added 3 commits July 14, 2026 20:48
…odule level'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
…rt' and 'import from''

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
@embarquech
embarquech merged commit 0c25bec into main Jul 14, 2026
11 checks 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.

2 participants