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
Algorand uses the Ed25519 elliptic curve — the same curve as Solana. An Algorand address is the base32-encoded 32-byte public key with a 4-byte checksum appended.Dependencies
Derive Address
Algorand’s address is a 32-byte Ed25519 public key encoded in base32, with a 4-byte checksum from SHA-512/256 of the public key:Sign a Message
Sign raw message bytes using the Solana wallet:Sign a Transaction
Use the signing bytes from the Algorand SDK. The SDK prepends the"TX" prefix before signing:
The Algorand SDK handles the
"TX" prefix required before signing. If you implement transaction signing without algosdk, prepend the bytes 0x54 0x58 to the transaction bytes before passing to signMessage.