wop_gen_key_pair
Generates RSA2048 or SM2 key pairs for WOP integration, returning the distributable public key while writing the private key only to a local 0600 file.
Instructions
生成 WOP 对接所需的非对称密钥对(RSA2048 / SM2)。
安全纪律:私钥只写入本地 0600 文件,不会出现在返回值或对话中;
返回的 publicKey 为分发契约编码(RSA:SPKI DER Base64;
SM2:未压缩点 04‖X‖Y Base64),可直接上报平台。
Args:
algorithm: str - "RSA2048"(别名 "RSA")或 "SM2",默认 "RSA2048"
Returns:
Dict 包含 algorithm / publicKey / privateKeyFile(路径) / message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| algorithm | No | RSA2048 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |