Class KeyVerificationHelper
- java.lang.Object
-
- com.h2tcoin.takamakachain.support.KeyVerificationHelper
-
public class KeyVerificationHelper extends Object
- Author:
- Giovanni Antino
-
-
Constructor Summary
Constructors Constructor Description KeyVerificationHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BlockValidityBean
blockingDistributionVerifier(TkmCSBS i)
static void
cleanExpiredKeysInCSBInstance(TkmCSBS i)
static ConcurrentSkipListMap<String,String>
forwardKeysProposer(TkmCSBS i, TkmNode n, ConcurrentSkipListSet<Integer> currentDistribution, ConcurrentSkipListMap<String,ConcurrentSkipListSet<String>> keysByNodeURL64MainKeys)
static ConcurrentSkipListMap<String,ConcurrentSkipListSet<String>>
getKeysByNodeURL64MainKeys(TkmCSBS i)
static Map.Entry<BlockValidityBean,String>
verifyForwardKeys(TkmCSBS i, BlockBox bb, String minerPKBySlot)
-
-
-
Method Detail
-
verifyForwardKeys
public static Map.Entry<BlockValidityBean,String> verifyForwardKeys(TkmCSBS i, BlockBox bb, String minerPKBySlot)
- Parameters:
i
-bb
-minerPKBySlot
-- Returns:
- (bvb, expectedSignerKey)
-
blockingDistributionVerifier
public static BlockValidityBean blockingDistributionVerifier(TkmCSBS i)
-
forwardKeysProposer
public static ConcurrentSkipListMap<String,String> forwardKeysProposer(TkmCSBS i, TkmNode n, ConcurrentSkipListSet<Integer> currentDistribution, ConcurrentSkipListMap<String,ConcurrentSkipListSet<String>> keysByNodeURL64MainKeys)
-
getKeysByNodeURL64MainKeys
public static ConcurrentSkipListMap<String,ConcurrentSkipListSet<String>> getKeysByNodeURL64MainKeys(TkmCSBS i)
-
cleanExpiredKeysInCSBInstance
public static void cleanExpiredKeysInCSBInstance(TkmCSBS i)
-
-