Appearance
@keymaster/connect / CipherEncryptParams
Interface: CipherEncryptParams
cipher.encrypt 请求参数。
设计缘由(施工单 2026-06-28 001 硬切换):
connectSessionId是强制输入字段;cipher 不再读取钱包全局 active key,必须通过 sessionId 找到绑定 key。- 缺
connectSessionId直接invalid_request拒绝;不允许 fallback 到当前 active key。 - cipher 仍不对外暴露签名真值 envelope;返回 nonce + cipherbytes。
Properties overview
| Property | Type | Required | Description |
|---|---|---|---|
text | string | Yes | 人类可读确认文案。 |
contentType | string | Yes | 调用方自定义的内容类型;与 contentBytes 一起进入密文内层结构。 |
content | BinaryField | Yes | 业务字节本体。 |
connectSessionId | string | Yes | 由 connect.login 返回的 sessionId。 |
Properties
text
text:
string
人类可读确认文案。
contentType
contentType:
string
调用方自定义的内容类型;与 contentBytes 一起进入密文内层结构。
content
content:
BinaryField
业务字节本体。
connectSessionId
connectSessionId:
string
由 connect.login 返回的 sessionId。必填;service 通过此 id 找到绑定 key,不允许 fallback 到 active key。