Skip to content

@keymaster/connect / ChannelMessageReceivedEventData

Interface: ChannelMessageReceivedEventData ​

Connect App 收到的已验签 Channel 事件数据。

Properties overview ​

PropertyTypeRequiredDescription
channelstringYes实际收到的精确频道。
publisherPublicKeyHexstringYesChannelProtocol 验签得到的作者压缩公钥 hex。
messageIdstringYesChannelProtocol 消息编号。
contentJSONValueYes已验签的 App JSON 内容。
rawEnvelope?Uint8Array<ArrayBufferLike>No入站私密消息的加密信封精确字节(受信任插件用于原样留证)。

Properties ​

channel ​

channel: string

实际收到的精确频道。


publisherPublicKeyHex ​

publisherPublicKeyHex: string

ChannelProtocol 验签得到的作者压缩公钥 hex。


messageId ​

messageId: string

ChannelProtocol 消息编号。


content ​

content: JSONValue

已验签的 App JSON 内容。


rawEnvelope? ​

optional rawEnvelope?: Uint8Array<ArrayBufferLike>

入站私密消息的加密信封精确字节(受信任插件用于原样留证)。 公共消息或旧 Coordinator 可以省略。

使用能力,不托管私钥。