SoftwareSigningDriver

JCA-backed software keys, supporting the two schemes relevant to mobile wallets: Ed25519 (Canton's default) and ECDSA P-256 (the only scheme hardware enclaves sign — Apple Secure Enclave and Android StrongBox are P-256-only). Both are accepted by the Ledger API; see crypto.proto.

Types

Link copied to clipboard

The two schemes a software key can use: Ed25519 (Canton's default) or ECDSA over P-256 (what hardware enclaves speak).

Link copied to clipboard
object Companion

The only way to obtain a driver: keys are generated here, never imported.

Properties

Link copied to clipboard

Which scheme the key pair uses. Decides the JCA algorithm and the Canton signature format and spec the driver emits.

Functions

Link copied to clipboard
open suspend override fun publicKey(): CryptoOuterClass.SigningPublicKey

The public key in a Ledger-API-compatible encoding.

Link copied to clipboard
open suspend override fun sign(bytes: ByteArray): CryptoOuterClass.Signature

Signs bytes (a Canton-provided hash) with the driver's private key.