Package | Description |
---|---|
com.sap.cloud.sdk.services.blockchainbusinessservices.blockchainvisibility |
Modifier and Type | Method and Description |
---|---|
static ProtocolVersion |
ProtocolVersion.fromString(String version) |
ProtocolVersion |
V100MerkleTree.getProtocolVersion() |
ProtocolVersion |
V110MerkleTree.getProtocolVersion() |
ProtocolVersion |
MerkleProof.getProtocolVersion() |
ProtocolVersion |
MerkleTree.getProtocolVersion()
Protocol version describes how to build the tree and the proof
|
static ProtocolVersion |
ProtocolVersion.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProtocolVersion[] |
ProtocolVersion.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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 |
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.
|
Constructor and Description |
---|
MerkleProof(ProtocolVersion version,
Map<Integer,String> knownLeaves,
Map<Integer,String> knownSalts,
Map<String,String> knownHashes,
int numberOfLeaves)
creates a MerkleProof, assuming the SHA-256 hashing algorithm
|
MerkleProof(ProtocolVersion version,
Map<Integer,String> knownLeaves,
Map<Integer,String> knownSalts,
Map<String,String> knownHashes,
int numberOfLeaves,
String hashAlgorithm)
creates a MerkleProof
|
Copyright © 2021 SAP SE. All rights reserved.