Package | Description |
---|---|
com.sap.cloud.sdk.services.blockchainbusinessservices.blockchainvisibility |
Modifier and Type | Class and Description |
---|---|
class |
AbstractMerkleTree
The purpose of this class is to create Merkle Tree.
Each node has either two child nodes or one leaf. |
class |
V100MerkleTree
This implementation is a backward compatibility to version 1.0.0
It can be removed in future versions |
class |
V110MerkleTree |
Modifier and Type | Method and Description |
---|---|
static MerkleTree |
MerkleTreeFactory.build(ProtocolVersion version,
MessageDigest messageDigest,
Map<Integer,String> leaves,
Map<Integer,String> salts)
builds a new instance of Merkle tree
|
static MerkleTree |
VisibilityUtils.buildMerkleTree(LinkedHashMap<String,String> keyValues)
Default MessageDigest is set as SHA-256
|
static MerkleTree |
VisibilityUtils.buildMerkleTree(LinkedHashMap<String,String> keyValues,
MessageDigest messageDigest)
Returns a special MerkleTree serving visibility purpose and efficient in term of storage.
First leaf in the result tree is list of all keys in a JSNO format: ["key1","key2"] Rest of the leaves are the values corresponding to the keys in the same order |
static MerkleTree |
MerkleTreeFactory.buildPartialTree(ProtocolVersion version,
MessageDigest messageDigest,
int numberOfLeaves,
Map<Integer,String> knownLeaves,
Map<Integer,String> knownSalts,
Map<String,String> knownHashes)
Creates a Merkle tree with given parameters.
|
static MerkleTree |
MerkleTreeFactory.buildPartialTree(String version,
MessageDigest messageDigest,
int numberOfLeaves,
Map<Integer,String> knownLeaves,
Map<Integer,String> knownSalts,
Map<String,String> knownHashes)
Creates a Merkle tree with given parameters.
|
Modifier and Type | Method and Description |
---|---|
static MerkleProof |
VisibilityUtils.getMerkleProof(MerkleTree tree,
Set<Integer> leavesIndexesToShare)
Generates and returns necessary information to proof given information are part of the same MerkleTree
|
Copyright © 2021 SAP SE. All rights reserved.