public static interface Proof.SparseMerkleProofOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
com.google.protobuf.ByteString |
getBitmap()
The bitmap indicating which siblings are default.
|
com.google.protobuf.ByteString |
getLeaf()
This proof can be used to authenticate whether a given leaf exists in the
tree or not.
|
com.google.protobuf.ByteString |
getNonDefaultSiblings(int index)
The non-default siblings.
|
int |
getNonDefaultSiblingsCount()
The non-default siblings.
|
List<com.google.protobuf.ByteString> |
getNonDefaultSiblingsList()
The non-default siblings.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofcom.google.protobuf.ByteString getLeaf()
This proof can be used to authenticate whether a given leaf exists in the
tree or not. In Rust:
- If this is `Some(HashValue, HashValue)`
- If the first `HashValue` equals requested key, this is an inclusion
proof and the second `HashValue` equals the hash of the
corresponding account blob.
- Otherwise this is a non-inclusion proof. The first `HashValue` is
the only key that exists in the subtree and the second `HashValue`
equals the hash of the corresponding account blob.
- If this is `None`, this is also a non-inclusion proof which indicates
the subtree is empty.
In protobuf, this leaf field should either be
- empty, which corresponds to None in the Rust structure.
- exactly 64 bytes, which corresponds to Some<(HashValue, HashValue)>
in the Rust structure.
bytes leaf = 1;com.google.protobuf.ByteString getBitmap()
The bitmap indicating which siblings are default. 1 means non-default and 0 means default. The MSB of the first byte corresponds to the sibling at the top of the Sparse Merkle Tree. The rightmost 1-bit of the last byte corresponds to the sibling at the bottom, since this one is always non-default.
bytes bitmap = 2;List<com.google.protobuf.ByteString> getNonDefaultSiblingsList()
The non-default siblings. The ones near the root are at the beginning of the list.
repeated bytes non_default_siblings = 3;int getNonDefaultSiblingsCount()
The non-default siblings. The ones near the root are at the beginning of the list.
repeated bytes non_default_siblings = 3;com.google.protobuf.ByteString getNonDefaultSiblings(int index)
The non-default siblings. The ones near the root are at the beginning of the list.
repeated bytes non_default_siblings = 3;Copyright © 2019. All rights reserved.