Appearance
@keymaster/connect / IntentSignParams
Interface: IntentSignParams
intent.sign 请求参数。
设计缘由(施工单 2026-06-28 002 硬切换):
connectSessionId是强制输入字段;签名主体公钥取自 session 绑定的 owner,不再读取钱包全局 active key。- 旧叙事"登录场景推荐 identity.get"已废弃;登录走
connect.login。
Properties overview
| Property | Type | Required | Description |
|---|---|---|---|
aud | string | Yes | 目标站点 origin;必须等于 event.origin,否则拒绝。 |
iat | number | Yes | 签发时间(unix seconds)。 |
exp | number | Yes | 过期时间(unix seconds);必须严格大于 iat。 |
text | string | Yes | 人类可读确认文案。 |
contentType | string | Yes | 调用方自定义的内容类型。 |
content | BinaryField | Yes | 调用方准备好的最终二进制内容。 |
connectSessionId | string | Yes | 由 connect.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。