Supported Signature Schemes
The SDK supports the following signature schemes:- Ed25519 - Recommended for most use cases
- Secp256k1 - Compatible with Ethereum wallets
- Secp256r1 - Hardware wallet support
Ed25519 Keypairs
Generate Random Keypair
From Secret Key
Create a keypair from an existing secret key:From Mnemonic
Derive a keypair from a BIP39 mnemonic phrase:Export Secret Key
Secp256k1 Keypairs
Generate Keypair
From Secret Key
From Mnemonic
Secp256r1 Keypairs
Generate Keypair
From Secret Key
Signing Transactions
Basic Signing
Manual Signing
Sign a transaction manually without executing:Generating Mnemonics
Generate new BIP39 mnemonic phrases:Key Derivation Paths
Default Derivation Paths
- Ed25519:
m/44'/4218'/0'/0'/0' - Secp256k1:
m/54'/4218'/0'/0/0 - Secp256r1:
m/74'/4218'/0'/0/0
Custom Derivation
Working with Public Keys
Get IOTA Address
Serialize Public Key
Signature Verification
Verify signatures without executing transactions:Security Best Practices
Never Expose Secret Keys
Never Expose Secret Keys
Never log, transmit, or store secret keys in plain text:
Use Environment Variables
Use Environment Variables
Store sensitive keys in environment variables:
Validate Mnemonics
Validate Mnemonics
Always validate mnemonic phrases before use:
Use HD Wallets
Use HD Wallets
For managing multiple accounts, use hierarchical deterministic (HD) wallets:
Keypair Comparison
- Ed25519
- Secp256k1
- Secp256r1
Recommended for most use cases
- Fast signature generation and verification
- Small signature size (64 bytes)
- Deterministic signatures
- Default choice for IOTA
Next Steps
Multisig
Multi-signature transaction signing
Transactions
Build and execute transactions
Sponsored Transactions
Learn about sponsored transactions
Examples
Complete code examples