Skip to content

@keymaster/connect / IntentSignParams

Interface: IntentSignParams

intent.sign 请求参数。

设计缘由(施工单 2026-06-28 002 硬切换):

  • connectSessionId强制输入字段;签名主体公钥取自 session 绑定的 owner,不再读取钱包全局 active key。
  • 旧叙事"登录场景推荐 identity.get"已废弃;登录走 connect.login

Properties overview

PropertyTypeRequiredDescription
audstringYes目标站点 origin;必须等于 event.origin,否则拒绝。
iatnumberYes签发时间(unix seconds)。
expnumberYes过期时间(unix seconds);必须严格大于 iat。
textstringYes人类可读确认文案。
contentTypestringYes调用方自定义的内容类型。
contentBinaryFieldYes调用方准备好的最终二进制内容。
connectSessionIdstringYesconnect.login 返回的 sessionId。

Properties

aud

aud: string

目标站点 origin;必须等于 event.origin,否则拒绝。


iat

iat: number

签发时间(unix seconds)。


exp

exp: number

过期时间(unix seconds);必须严格大于 iat。


text

text: string

人类可读确认文案。


contentType

contentType: string

调用方自定义的内容类型。


content

content: BinaryField

调用方准备好的最终二进制内容。允许为空字节。


connectSessionId

connectSessionId: string

connect.login 返回的 sessionId。必填。 service 通过此 id 找到绑定 key,不允许 fallback 到 active key。

Capability access without key custody.