Skip to content

feat: add aptos chain support to hdwallet#784

Draft
NeOMakinG wants to merge 4 commits intomasterfrom
feature/aptos-support
Draft

feat: add aptos chain support to hdwallet#784
NeOMakinG wants to merge 4 commits intomasterfrom
feature/aptos-support

Conversation

@NeOMakinG
Copy link
Contributor

Add Aptos blockchain support to hdwallet-core and hdwallet-native, enabling Ed25519 key derivation and BLAKE2b-256 address generation.

Changes

HDWallet Core

  • Added aptos.ts with Aptos wallet types and interfaces
  • Added AptosWallet, AptosWalletInfo interfaces
  • Added AptosGetAddress, AptosSignTx, AptosSignedTx types
  • Added aptosGetAccountPaths(), aptosDescribePath() utilities
  • Added SLIP-44 coin type 637 for Aptos
  • Exported Aptos types from index

HDWallet Native

  • Created aptos.ts wallet mixin
  • aptosInitializeWallet(): Initialize with Ed25519 master key
  • aptosGetAddress(): Derive address from BIP32 path
  • aptosSignTx(): Sign transactions using Ed25519
  • aptosWipe(): Clean up adapter
  • Created crypto/isolation/adapters/aptos.ts for key operations
  • BLAKE2b-256 address generation from Ed25519 public key
  • Transaction signing with hash-then-sign pattern
  • Integrated with NativeHDWallet class

Technical Details

Address Generation

  • Derivation Path: m/44'/637'/'/0'/0'
  • Algorithm: Ed25519 (same as Solana, Near, Sui)
  • Address Format: BLAKE2b-256(Ed25519PublicKey) → 64 hex chars
  • Example: 0x1a2b3c...

Transaction Signing

  • Signer: Ed25519
  • Hash: BLAKE2b-256 of transaction bytes
  • Signature: 64 bytes (Ed25519)
  • Output: 64 hex bytes signature + 32 hex bytes public key

Configuration

{
"name": "Aptos",
"slip44": 637,
"nativeCurrency": {
"name": "Aptos",
"symbol": "APT",
"decimals": 8
}
}

Testing

Ready for integration testing with web-chain and Playwright MCP.

Related Issues

Closes: #[Aptos Implementation]

Minimoi added 3 commits January 15, 2026 18:57
- Add Aptos wallet types and interfaces to hdwallet-core
- Implement AptosAdapter for Ed25519 key derivation
- Add Aptos support to native wallet with BLAKE2b-256 address generation
- Configure SLIP-44 coin type 637 for Aptos derivation path

Closes: #[Aptos Implementation]
- Add AptosWallet, AptosAccountPath, etc. to hdwallet-core
- Add SLIP-44 coin type 637 for Aptos derivation path
- Support Aptos address generation with BLAKE2b-256
- Keep only aptos.ts file with all Aptos types and interfaces
- Remove duplicate aptosWallet.ts file that was causing confusion
- Aptos wallet types are properly exported from aptos.ts
@vercel
Copy link

vercel bot commented Jan 15, 2026

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

Project Deployment Review Updated (UTC)
hdwallet Ready Ready Preview, Comment Jan 16, 2026 1:04pm

Review with Vercel Agent

@coderabbitai
Copy link

coderabbitai bot commented Jan 15, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/aptos-support

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@NeOMakinG NeOMakinG changed the title feat: Add Aptos chain support to hdwallet feat: add aptos chain support to hdwallet Jan 15, 2026
- Add supportsAptos and infoAptos type guards
- Add AptosWallet import to wallet.ts
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