public static class LandmarkCertificateManager.TrustedSubtreeManager
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LandmarkCertificateManager.TrustedSubtreeManager.Checkpoint
A snapshot of the log: tree size and root hash.
|
| Constructor and Description |
|---|
TrustedSubtreeManager(byte[] logId,
MerkleTreeHash hashFunc,
MTCCosignerVerifierProvider cosignerVerifierProvider,
int minCosignaturesForCheckpoint) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addLandmarkSubtree(long subtreeStart,
long subtreeEnd,
byte[] subtreeHash,
LandmarkCertificateManager.TrustedSubtreeManager.Checkpoint referenceCheckpoint,
java.util.List<byte[]> consistencyProof,
java.util.List<MTCSignature> checkpointSignatures)
Attempts to add a new landmark subtree.
|
java.util.List<LandmarkCertificateManager.TrustedSubtreeEntry> |
getTrustedSubtrees() |
public TrustedSubtreeManager(byte[] logId,
MerkleTreeHash hashFunc,
MTCCosignerVerifierProvider cosignerVerifierProvider,
int minCosignaturesForCheckpoint)
logId - binary trust anchor ID of the loghashFunc - hash function used by the logcosignerVerifierProvider - provider that hands back a verifier per known cosigner IDminCosignaturesForCheckpoint - minimum valid cosignatures required to trust a checkpointpublic java.util.List<LandmarkCertificateManager.TrustedSubtreeEntry> getTrustedSubtrees()
public boolean addLandmarkSubtree(long subtreeStart,
long subtreeEnd,
byte[] subtreeHash,
LandmarkCertificateManager.TrustedSubtreeManager.Checkpoint referenceCheckpoint,
java.util.List<byte[]> consistencyProof,
java.util.List<MTCSignature> checkpointSignatures)
throws java.io.IOException
true if the landmark was addedjava.io.IOException