Recommended: JavaScript SDK for React Native
While this SDK is still supported, we recommend using newer JavaScript SDK, which is optimized for React Native, but also comes with a host of other benefits.
Overview
Aptos uses the Ed25519 elliptic curve — the same curve as Solana. You derive an Aptos address by hashing the Solana wallet’s public key with SHA3-256 and appending a scheme byte. Transactions use BCS (Binary Canonical Serialization).Dependencies
Derive Address
Extract the Ed25519 public key from the Solana wallet address, append the single-key scheme byte (0x00), and hash with SHA3-256:
Sign a Message
Sign the raw UTF-8 bytes of the message using the Solana wallet:Sign a Transaction
Use the@aptos-labs/ts-sdk to build the transaction, generate the signing message, and submit with an Ed25519 authenticator: