Skip to content
Global documentation search

Precompiled Smart Contracts

Precompiles are built-in Ethereum functions designed to handle heavy cryptographic tasks more efficiently than standard smart contracts. By residing at predefined addresses, these native implementations reduce gas costs and execution time for operations that are normally too computationally intensive for the runtime environment to process.

Below is the list of precompiled smart contracts supported by Creditcoin3:

PrecompileAddressDescriptionSupported on
ECRecover0x0000000000000000000000000000000000000001Recovers the public key associated with a signatureMainnet + Testnet
Sha2560x0000000000000000000000000000000000000002Implements the SHA-256 hash functionMainnet + Testnet
Ripemd1600x0000000000000000000000000000000000000003Implements the RIPEMD-160 hash functionMainnet + Testnet
Identity0x0000000000000000000000000000000000000004Data copy function (returns input as output)Mainnet + Testnet
Modexp0x0000000000000000000000000000000000000005Modular exponentiationMainnet + Testnet
Bn128Add0x0000000000000000000000000000000000000006Addition on the alt_bn128 curveMainnet + Testnet
Bn128Mul0x0000000000000000000000000000000000000007Multiplication on the alt_bn128 curveMainnet + Testnet
Bn128Pairing0x0000000000000000000000000000000000000008Pairing check on the alt_bn128 curveMainnet + Testnet
Sha3FIPS2560x0000000000000000000000000000000000000400Implements the SHA3-256 standard as specified in FIPS202Mainnet + Testnet

ECRecoverPublicKey

0x0000000000000000000000000000000000000401Similar to ECRecover, but returns the pubkey (not the corresponding Ethereum address)Mainnet + Testnet
SubstrateTransfer0x0000000000000000000000000000000000000Fd1Precompile exposing a pallet_balance as an ERC20.Mainnet + Testnet
Sr25519Verifier0x00000000000000000000000000000000000013B9Precompile for verifying Substrate sr25519 signatures.Mainnet + Testnet
Ed25519Verifier0x00000000000000000000000000000000000013BAPrecompile for verifying ed25519 signatures.Mainnet + Testnet