public class MerklePath extends Object implements AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
FieldElement |
apply(FieldElement leaf) |
boolean |
areRightLeavesEmpty() |
void |
close() |
static MerklePath |
deserialize(byte[] merklePathBytes) |
static MerklePath |
deserialize(byte[] merklePathBytes,
boolean semanticChecks) |
void |
freeMerklePath() |
boolean |
isLeftmost() |
boolean |
isRightmost() |
long |
leafIndex() |
byte[] |
serialize() |
boolean |
verify(FieldElement leaf,
FieldElement root) |
boolean |
verify(int merkleTreeHeight,
FieldElement leaf,
FieldElement root) |
public boolean verify(int merkleTreeHeight,
FieldElement leaf,
FieldElement root)
public boolean verify(FieldElement leaf, FieldElement root)
public FieldElement apply(FieldElement leaf)
public boolean isLeftmost()
public boolean isRightmost()
public boolean areRightLeavesEmpty()
public long leafIndex()
public byte[] serialize()
public static MerklePath deserialize(byte[] merklePathBytes, boolean semanticChecks)
public static MerklePath deserialize(byte[] merklePathBytes)
public void freeMerklePath()
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2020–2021. All rights reserved.