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
Cardano uses the Ed25519 elliptic curve — the same as Solana. You derive a Cardano enterprise address by hashing the Solana wallet’s public key with Blake2b-224 and encoding with bech32. Transactions use CBOR encoding and are submitted via the Koios API (no API key required).Dependencies
Derive Address
Decode the Solana base58 address to a 32-byte Ed25519 public key, hash with Blake2b-224, prepend the enterprise address header byte, and bech32-encode:The header byte
0x60 indicates an enterprise address on preprod testnet. For mainnet, use 0x61 with the addr bech32 prefix.Sign a Message
Sign the raw UTF-8 bytes of the message using the Solana wallet:Sign a Transaction
Build a CBOR-encoded transaction body, hash with Blake2b-256, sign, and submit via Koios:cborUint, cborBytes, cborArray, cborMap, cborSet, CBOR_TRUE, CBOR_NULL) see the JavaScript Cardano guide.