Skip to content

@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 ​

PropertyTypeRequiredDescription
textstringYes人类可读确认文案。
contentTypestringYes调用方自定义的内容类型;与 contentBytes 一起进入密文内层结构。
contentBinaryFieldYes业务字节本体。
connectSessionIdstringYes由 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。

使用能力,不托管私钥。