Class StakeBeanHelper
- java.lang.Object
-
- com.h2tcoin.takamakachain.utils.vrf.StakeBeanHelper
-
public class StakeBeanHelper extends Object
- Author:
- giovanni.antino@h2tcoin.com
-
-
Constructor Summary
Constructors Constructor Description StakeBeanHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BigInteger
getBeanNumber(NodeStakeBean sb)
static NodeStakeBean
initStakeBean(String pk, BigInteger stake)
-
-
-
Method Detail
-
initStakeBean
public static NodeStakeBean initStakeBean(String pk, BigInteger stake)
- Parameters:
pk
-stake
-- Returns:
-
getBeanNumber
public static BigInteger getBeanNumber(NodeStakeBean sb) throws NoSuchAlgorithmException, HashEncodeException, HashAlgorithmNotFoundException, HashProviderNotFoundException
- Parameters:
sb
-- Returns:
- the key number
- Throws:
NoSuchAlgorithmException
HashEncodeException
HashAlgorithmNotFoundException
HashProviderNotFoundException
-
-