crypto library

Exports low-level cryptographic operations needed to sign Topl transactions

Classes

Digest
KeyStore
Represents a key store file. KeyStores are used to securely store credentials like a private key belonging to a Topl address. The private key in a keystore is encrypted with a secret password that needs to be known in order to obtain the private key.

Constants

defaultOptions → const Map<String, dynamic>
Default options for key generation as of 8.3.2021
digestLength → const int
The cryptographic hash functions (https://en.wikipedia.org/wiki/Cryptographic_hash_function) are a specific family of hash function

Functions

createHash(Uint8List buffer) Uint8List
Returns the Blake2b (https://en.wikipedia.org/wiki/BLAKE_(hash_function)) digest of the buffer
hmacSHA512(Uint8List key, Uint8List data) Uint8List
This is the method that we are using to generate the hmac used in deriving the mac