Deterministic Derivation
Last updated
Last updated
POST /keys/{keyId}/derive
Dfns decentralized key management network supports threshold Diffie-Hellman protocol based on . You can use the DH protocol to derive output from a domain separation tag and a seed value. The derivation process is deterministic, i.e. the same Diffie-Hellman key and seed will lead to the same derived output. To ensure reproducibility, we use hash to curve and standard ciphersuite secp256k1_XMD:SHA-256_SSWU_RO_
.
This endpoint only supports Diffie-Hellman keys. Regular threshold signature keys, like ECDSA
or EdDSA
, will not work. You can create a Diffie-Hellman key with the endpoint using scheme=DH
and curve=secp256k1
.
Keys:Derive
Always Required
keyId
Unique identifier of the key.
domain
Domain separation tag in hex-encoded format. Used to ensure the same seed will generate different outputs for different applications. For example, a DST can be {company}:{application}:{version}
.
String
seed
Seed value in hex-encoded format.
String
output
Derivation output in hex-encoded format.
String