Reference documentation and code samples for the Universal Ledger V1 API class Google::Cloud::UniversalLedger::V1::ProofOfInclusion.
Certificate of the inclusion of the effects of a transaction in the world state.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#path_to_round_root
def path_to_round_root() -> ::Array<::Google::Cloud::UniversalLedger::V1::ProofOfInclusion::MerkleTreeNode>-
(::Array<::Google::Cloud::UniversalLedger::V1::ProofOfInclusion::MerkleTreeNode>) — Output only. Cryptographic proof of inclusion of the transaction effects in
the execution round.
It is given as a path from a given leaf (a transaction digest) to the root of the execution round. The path is represented as a list of (left child, right child) pairs, and the first pair is the left and right children of the given leaf's parent node. For example, assuming the Merkle tree was built with eight leaf digests
[t0, t1, t2, t3, t4, t5, t6, t7], having the following structure:_____root_digest____ | | __ h20__ __h21__ | | | | h10 h11 h12 h13 | | | | | | | | t0 t1 t2 t3 t4 t5 t6 t7In here,
path_to_round_rootfort0will contain:[(t0, t1), (h10, h11), (h20, h21)].One can consecutively compute SHA-256 digests of each path node to verify that the digest of the path produces the same value as the
round_certificate.merkle_tree.root_digest_hex. Thus, verifying that the leaf was included in the round's Merkle tree.
#round_certificate
def round_certificate() -> ::Google::Cloud::UniversalLedger::V1::RoundCertificate- (::Google::Cloud::UniversalLedger::V1::RoundCertificate) — Output only. Certificate of the execution of the round.
#transaction_certificate
def transaction_certificate() -> ::Google::Cloud::UniversalLedger::V1::TransactionCertificate- (::Google::Cloud::UniversalLedger::V1::TransactionCertificate) — Output only. Certificate of the inclusion of the transaction effects in a specific round.