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业务字节本体。
connectSessionIdstringYesconnect.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。

Capability access without key custody.