超级账本中的节点如何验证交易?
how does peers in hyperledger validates the transaction?
我是 hyperledger 的新手,很抱歉提出这个愚蠢的问题。
交易流程中
1)背书 peer/any 节点如何知道交易是由授权的 peer/correct 密钥签署的?
任何人都可以帮助我理解验证的步骤以及它如何知道交易是否由正确的 key/incorrect 密钥签署?
2) orderer 是否也验证交易或只是创建块并将块转发给领导节点?
3)BCCSP在网络中的作用是什么?
1)How does the endorsing peer/any peer know the transaction is signed by the authorized peer/correct key?
Can anyone help me understand the steps of validations and how does it come to know if the transaction is signed by correct key/incorrect key?
每个事务包含 SerializedIdentity
,例如在传统 MSP(基于 X.509)的情况下,它包含由 CA 签名的证书。根 ca 证书预加载在创世块中。因此,当涉及到交易验证时,它提取证书验证该证书上的 CA 签名,接下来从证书中获取 public 密钥并验证交易签名。
2)does the orderer also validates the transaction or just creates blocks and forwards the blocks to the leader peer?
命令验证 ACL 以检查提交交易的人是否具有通道写入权限。订购者还验证并检查处理通道配置的交易,因为他们也可能必须应用它。除了这些交易内容之外,排序节点完全不透明,特别是排序节点不会尝试验证背书策略。
3)What is the role of BCCSP in the network?
BCCSP 代表 BlockChain Crypto Service Provider
本质上这只是一个抽象,旨在提供更多的可插入性和灵活性。关键本质是提出一个API,它以抽象的方式带来了加密原语的实现,例如签名、签名验证和哈希算法,允许在需要时轻松替换这些原语。
我是 hyperledger 的新手,很抱歉提出这个愚蠢的问题。
交易流程中
1)背书 peer/any 节点如何知道交易是由授权的 peer/correct 密钥签署的?
任何人都可以帮助我理解验证的步骤以及它如何知道交易是否由正确的 key/incorrect 密钥签署?
2) orderer 是否也验证交易或只是创建块并将块转发给领导节点?
3)BCCSP在网络中的作用是什么?
1)How does the endorsing peer/any peer know the transaction is signed by the authorized peer/correct key?
Can anyone help me understand the steps of validations and how does it come to know if the transaction is signed by correct key/incorrect key?
每个事务包含 SerializedIdentity
,例如在传统 MSP(基于 X.509)的情况下,它包含由 CA 签名的证书。根 ca 证书预加载在创世块中。因此,当涉及到交易验证时,它提取证书验证该证书上的 CA 签名,接下来从证书中获取 public 密钥并验证交易签名。
2)does the orderer also validates the transaction or just creates blocks and forwards the blocks to the leader peer?
命令验证 ACL 以检查提交交易的人是否具有通道写入权限。订购者还验证并检查处理通道配置的交易,因为他们也可能必须应用它。除了这些交易内容之外,排序节点完全不透明,特别是排序节点不会尝试验证背书策略。
3)What is the role of BCCSP in the network?
BCCSP 代表 BlockChain Crypto Service Provider
本质上这只是一个抽象,旨在提供更多的可插入性和灵活性。关键本质是提出一个API,它以抽象的方式带来了加密原语的实现,例如签名、签名验证和哈希算法,允许在需要时轻松替换这些原语。