← 返回起始笔记位置

知识卡片

结构图卡 · 11486.d · 生成模型:未记录

提案背书与交易封装

理解等级:中级

客户端签署 Proposal 得到 SignedProposal。背书节点通过 ProcessProposal 模拟并回传 ProposalResponse,其状态与返回值供客户端检查,载荷绑定提案与结果,背书签名绑定载荷与签名者。客户端将响应与背书放进交易并签成 Envelope,Orderer 处理的是这个交易封装。图示实线为字段包含,虚线为从消息生成下阶段对象。

结构图:

classDiagram
SignedProposal ..> Proposal : ProposalBytes 序列化
Proposal ..> Header : Header 序列化
Proposal ..> ProposalResponse : 背书返回
ProposalResponse *-- Endorsement : 背书
ProposalResponse ..> Envelope : 形成交易
Envelope ..> Payload : Payload 序列化
Payload *-- Header : 头部
Payload ..> Transaction : Data 序列化
class SignedProposal {
+ProposalBytes []byte
+Signature []byte
}
class Proposal {
+Header []byte
+Payload []byte
}
class ProposalResponse {
+Response *Response
+Payload []byte
+Endorsement *Endorsement
}
class Envelope {
+Payload []byte
+Signature []byte
}
class Payload {
+Header *Header
+Data []byte
}
这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《区块链原理、设计与应用》第09章《超级账本Fabric部署和使用》,9.5 链码的概念与使用(来源项目 book-source,`extracted/区块链原理、设计与应用/_epub-src/OEBPS/Text/chapter78.xhtml`,正文块 67) - 结论依据:原文和图9-8、9-9分别显示提案封装与交易封装,代码列出 Response、Payload 与 Endorsement。 - 原始内容:4)使用BroadcastClient将交易消息通过gRPC通道发给Orderer,Orderer会进行全网排序,并广播给Peer进行确认提交。