Skip to main content

Address derivation

Cardano support is at the curve level: Turnkey holds an Ed25519 key pair (ADDRESS_FORMAT_COMPRESSED with CURVE_ED25519) and returns the public key, from which you derive the Cardano address client-side (the payment credential is the Blake2b-224 hash of the public key). The example below uses MeshJS, but any Cardano library works.

Transaction construction and signing

Turnkey supports Cardano transaction signing through our core signing capabilities, using the SignRawPayload endpoint to sign the transaction body hash with Ed25519. Construction, fee calculation, and submission are handled by your Cardano library of choice — the example below uses MeshJS. We have an example repository that demonstrates how to construct and sign Cardano transactions:

Example

Here’s a practical example showing how to derive an address, then build, sign, and submit a Cardano transaction with Turnkey:

Cardano network support

A Cardano address encodes only a network id1 for mainnet, 0 for any testnet — so preprod and preview share the same id. The specific network is chosen by your provider and the builder’s setNetwork:

Key features for Cardano

  • Ed25519 Signing: Turnkey fully supports the Ed25519 curve used by Cardano
  • Client-side address derivation: Derive enterprise or base addresses from your Turnkey-managed public key using any Cardano library
  • Raw Transaction Signing: Sign any Cardano transaction format by signing its Blake2b-256 body hash
  • Integration Example: Our example repository provides a reference implementation for integrating with the Cardano ecosystem

Benefits of using Turnkey with Cardano

  • Secure Key Management: Private keys never leave Turnkey’s secure infrastructure
  • Policy Controls: Apply custom policies to authorize signing based on criteria
  • Developer-Friendly: Integrate with existing Cardano development workflows (MeshJS, CSL, Lucid)
  • Multi-network Support: Use the same code across mainnet and the preprod/preview testnets
If you’re building on Cardano and need assistance with your Turnkey integration, feel free to contact us at hello@turnkey.com, on X, or on Slack.