-
public final class SubtreeRootUnsafeSubtreeRoot contains information about roots of subtrees of the Sapling and Orchard note commitment trees, which has come from the Light Wallet server.
It is marked as "unsafe" because it is not guaranteed to be valid.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSubtreeRootUnsafe.Companion
-
Field Summary
Fields Modifier and Type Field Description private final ByteArrayrootHashprivate final ByteArraycompletingBlockHashprivate final BlockHeightUnsafecompletingBlockHeight
-
Constructor Summary
Constructors Constructor Description SubtreeRootUnsafe(ByteArray rootHash, ByteArray completingBlockHash, BlockHeightUnsafe completingBlockHeight)
-
Method Summary
Modifier and Type Method Description final ByteArraygetRootHash()final ByteArraygetCompletingBlockHash()final BlockHeightUnsafegetCompletingBlockHeight()-
-
Constructor Detail
-
SubtreeRootUnsafe
SubtreeRootUnsafe(ByteArray rootHash, ByteArray completingBlockHash, BlockHeightUnsafe completingBlockHeight)
- Parameters:
rootHash- The 32-byte Merkle root of the subtreecompletingBlockHash- The hash of the block that completed this subtree.completingBlockHeight- The height of the block that completed this subtree in the main chain.
-
-
Method Detail
-
getRootHash
final ByteArray getRootHash()
-
getCompletingBlockHash
final ByteArray getCompletingBlockHash()
-
getCompletingBlockHeight
final BlockHeightUnsafe getCompletingBlockHeight()
-
-
-
-