Multichain Exchange HSM Reference Architecture: PKCS#11 Interoperability and Standards Alignment for secp256k1 and Ed25519 Signing

An exchange signing tier that serves Ethereum/Avalanche C-Chain (secp256k1 ECDSA with EIP-155 replay protection, EIP-1559 and EIP-712 payloads), Cosmos SDK chains (secp256k1, SIGN_MODE_DIRECT) and Solana (Ed25519 per RFC 8032) must decide which parts of the signature stay inside the HSM boundary and which are normalized by chain adapters outside it. The most portable baseline is OASIS PKCS#11 v3.0/v3.1 (CKM_ECDSA with the secp256k1 OID 1.3.132.0.10, CKM_EDDSA for Ed25519), validated under FIPS 140-3 (ISO/IEC 19790:2012), with KMIP 2.1 for key lifecycle. Keep in mind that Ed25519 is approved in FIPS 186-5, while secp256k1 is not a NIST curve (SP 800-186) and therefore runs in a non-approved mode. Your compliance documentation has to state that explicitly.

Interface decision (PKCS#11 vs vendor-native vs MPC/threshold)

Choose plain PKCS#11 3.x when every target chain maps to CKM_ECDSA or CKM_EDDSA and the host can do low-S normalization (EIP-2, also required by Cosmos), recovery-id (v) derivation and RLP/protobuf/Solana message encoding. Choose vendor-native firmware or secure-execution code only when policy (withdrawal limits, address allow-lists) must be enforced inside the boundary. Choose MPC/threshold signing only when no single device may hold a full key, and accept that it falls outside PKCS#11 and FIPS 140-3 module scope.

Pre-implementation checklist

For each chain, build a matrix of curve, hash (Keccak-256 vs SHA-256 vs none for Ed25519), nonce strategy (RFC 6979 deterministic vs HSM RNG), signature encoding (r||s||v, DER, 64-byte Ed25519) and derivation scheme (BIP-32/BIP-44 vs SLIP-0010 for Ed25519). Confirm C_GetMechanismInfo key-size ranges and the per-partition key-object limits. Define the hot/warm/cold key tiers and the m-of-n quorum for key ceremonies. Record the FIPS 140-3 certificate number and the approved/non-approved status of each algorithm.

Rollout, failure and recovery (illustrative analytical scenario)

Assume a peak of 20,000 withdrawal signatures/s across four chains and a per-partition throughput you measured in your own acceptance test. Size N+1 partitions per chain family and canary one chain at 1% of withdrawals. Verify every signature off-HSM against the expected address before broadcast, and replay the RFC 8032 §7.1 and RFC 6979 Appendix A.2 test vectors in CI. If a partition fails, drain its queue to the standby. Do not re-sign already-broadcast nonces. Restore keys only through the documented wrapped-key backup and quorum ceremony.

How do we verify, before procurement, that an HSM can sign interoperably for Ethereum, Cosmos, Avalanche and Solana on coinhsm.com's reference architecture?

First run C_GetMechanismList and C_GetMechanismInfo against the candidate token. You need CKM_ECDSA with EC parameters for secp256k1 (OID 1.3.132.0.10), plus CKM_EDDSA (PKCS#11 3.0+) for Ed25519. Then sign the RFC 8032 and RFC 6979 test vectors. Check on the host that low-S normalization and recovery-id computation produce signatures that a reference node or library accepts on testnet for each chain. Finally, read the FIPS 140-3 security policy to see which algorithms are approved. If secp256k1 is listed only as non-approved, document a compensating control. Repeat these checks after every firmware update before you return the device to the production pool.

Back to CoinHSM · Domains

← Back to CoinHSM
Engineering & Architecture Brief

Multichain Exchange HSM Reference Architecture: PKCS#11 Interoperability and Standards Alignment for secp256k1 and Ed25519 Signing

An exchange signing tier that serves Ethereum/Avalanche C-Chain (secp256k1 ECDSA with EIP-155 replay protection, EIP-1559 and EIP-712 payloads), Cosmos SDK chains (secp256k1, SIGN_MODE_DIRECT) and Solana (Ed25519 per RFC 8032) must decide which parts of the signature stay inside the HSM boundary and which are normalized by chain adapters outside it. The most portable baseline is OASIS PKCS#11 v3.0/v3.1 (CKM_ECDSA with the secp256k1 OID 1.3.132.0.10, CKM_EDDSA for Ed25519), validated under FIPS 140-3 (ISO/IEC 19790:2012), with KMIP 2.1 for key lifecycle. Keep in mind that Ed25519 is approved in FIPS 186-5, while secp256k1 is not a NIST curve (SP 800-186) and therefore runs in a non-approved mode. Your compliance documentation has to state that explicitly.

Interface decision (PKCS#11 vs vendor-native vs MPC/threshold)

Choose plain PKCS#11 3.x when every target chain maps to CKM_ECDSA or CKM_EDDSA and the host can do low-S normalization (EIP-2, also required by Cosmos), recovery-id (v) derivation and RLP/protobuf/Solana message encoding. Choose vendor-native firmware or secure-execution code only when policy (withdrawal limits, address allow-lists) must be enforced inside the boundary. Choose MPC/threshold signing only when no single device may hold a full key, and accept that it falls outside PKCS#11 and FIPS 140-3 module scope.

Pre-implementation checklist

For each chain, build a matrix of curve, hash (Keccak-256 vs SHA-256 vs none for Ed25519), nonce strategy (RFC 6979 deterministic vs HSM RNG), signature encoding (r||s||v, DER, 64-byte Ed25519) and derivation scheme (BIP-32/BIP-44 vs SLIP-0010 for Ed25519). Confirm C_GetMechanismInfo key-size ranges and the per-partition key-object limits. Define the hot/warm/cold key tiers and the m-of-n quorum for key ceremonies. Record the FIPS 140-3 certificate number and the approved/non-approved status of each algorithm.

Rollout, failure and recovery (illustrative analytical scenario)

Assume a peak of 20,000 withdrawal signatures/s across four chains and a per-partition throughput you measured in your own acceptance test. Size N+1 partitions per chain family and canary one chain at 1% of withdrawals. Verify every signature off-HSM against the expected address before broadcast, and replay the RFC 8032 §7.1 and RFC 6979 Appendix A.2 test vectors in CI. If a partition fails, drain its queue to the standby. Do not re-sign already-broadcast nonces. Restore keys only through the documented wrapped-key backup and quorum ceremony.

Technical FAQ: How do we verify, before procurement, that an HSM can sign interoperably for Ethereum, Cosmos, Avalanche and Solana on coinhsm.com's reference architecture?

First run C_GetMechanismList and C_GetMechanismInfo against the candidate token. You need CKM_ECDSA with EC parameters for secp256k1 (OID 1.3.132.0.10), plus CKM_EDDSA (PKCS#11 3.0+) for Ed25519. Then sign the RFC 8032 and RFC 6979 test vectors. Check on the host that low-S normalization and recovery-id computation produce signatures that a reference node or library accepts on testnet for each chain. Finally, read the FIPS 140-3 security policy to see which algorithms are approved. If secp256k1 is listed only as non-approved, document a compensating control. Repeat these checks after every firmware update before you return the device to the production pool.

Related Architecture Specifications (HSM): bithsm.com · digitalhsm.com · hsmcryptography.com

More Technical Articles on coinhsm.com

Engineering High-Velocity Cryptocurrency Exchange HSMs: Scalability, Security, and Multi-Chain Support →Securing Cross-Chain Bridges: Preventing Reentrancy and Proof Forgery with Hardware Enclaves →CoinHSM: Reference Architecture, Interoperability & Deterministic Telemetry →