sign

suspend fun sign(keyId: String, message: String, derivationPath: String = "m"): Result<ByteArray>

Signs a message hash with two-party threshold signing.

Both parties jointly produce a standard signature under the key addressed by keyId, optionally under a BIP32 child key.

Return

the signature bytes.

Parameters

keyId

the hex-encoded keyId to sign with; the SDK reads the share from its StorageClient.

message

the message hash to sign, hex-encoded. Pass a cryptographic digest (e.g. SHA-256, Keccak-256), not raw data.

derivationPath

BIP32 path of the signing key; defaults to "m", the root key (e.g. "m/44'/60'/0'/0/0").