# Functions
DecryptAes decrypts text using AES with given key and nonce.
DeriveSha calculates root hash based on transactions.
EcRecover returns the address for the Account that was used to create the signature.
EcRecoverToPubkey returns public key through EcRecover.
EncryptAes encrypts text using AES with given key and nonce.
GetDummy returns dummy Crypto instance for test.
GetInstance returns pointer of Crypto instance Because DB operations are needed for Crypto initiation, Crypto is designed as singleton to reduce the number of DB operation units used.
GetTransactionOpts returns TransactOpts to create contract session.
PubkeyToAddress converts public key to ethereum address.
Sign returns signed message using given private key.
VerifyProof checks if root hash for transactions is valid.
# Constants
DbKeyJSONPropName is DB column name about key json.
DbNoncePropName is DB column name about nonce.
DbSecretKeyPropName is DB column name about secret key.
IsLambda decides if served as AWS lambda or not.
Passphrase means passphrase used to decrypt keystore.
Path means a location of keyjson in file system.
# Structs
Crypto manager It should be initialized first at main.
Transactions is a leaf hash list.