Class SMHelper
- java.lang.Object
-
- com.h2tcoin.takamakachain.wallet.adapter.impl.SMHelper
-
public class SMHelper extends Object
- Author:
- giovanni.antino@h2tcoin.com
-
-
Constructor Summary
Constructors Constructor Description SMHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
fromBase64ToByte(String base64)
static io.hotmoka.beans.requests.RedGreenGameteCreationTransactionRequest
getAccountCreationRequest(BigInteger greenValue, BigInteger redValue, InstanceWalletKeystoreInterface iwk, int index)
static String
getHotmokaPublicKey(HotmokaTakamakaChainWalletAdapter htcw)
static HotmokaTakamakaChainWalletAdapter
getHotmokaWallet(InstanceWalletKeystoreInterface iwk, int index)
static byte[]
hash(byte[] inputB)
static byte[]
hash(InputStream in)
static byte[]
hash(String resource)
static void
main(String[] args)
static String
toBASE64(byte[] inputB)
static String
toBASE64URL(byte[] inputB)
static String
toHEX(byte[] inputB)
-
-
-
Method Detail
-
getHotmokaWallet
public static final HotmokaTakamakaChainWalletAdapter getHotmokaWallet(InstanceWalletKeystoreInterface iwk, int index) throws WalletException, NoSuchAlgorithmException, NoSuchProviderException, IOException
-
getHotmokaPublicKey
public static final String getHotmokaPublicKey(HotmokaTakamakaChainWalletAdapter htcw)
-
getAccountCreationRequest
public static final io.hotmoka.beans.requests.RedGreenGameteCreationTransactionRequest getAccountCreationRequest(BigInteger greenValue, BigInteger redValue, InstanceWalletKeystoreInterface iwk, int index) throws WalletException
- Throws:
WalletException
-
hash
public static final byte[] hash(String resource) throws IOException
- Throws:
IOException
-
hash
public static final byte[] hash(InputStream in) throws IOException
- Throws:
IOException
-
hash
public static final byte[] hash(byte[] inputB)
-
toHEX
public static final String toHEX(byte[] inputB)
-
toBASE64URL
public static final String toBASE64URL(byte[] inputB)
-
toBASE64
public static final String toBASE64(byte[] inputB)
-
fromBase64ToByte
public static final byte[] fromBase64ToByte(String base64)
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
-