nekoton/crypto/crypto_lib library

Constants

publicKeyLength → const int
secretKeyLength → const int
signatureLength → const int

Functions

deriveFromPhrase({required String phrase, required MnemonicType mnemonicType}) Future<Keypair>
Generate public and secret keys from seed phrase and mnemonic type Returns json {'public': '...', 'secret': '...'} or throws Exception
generateKey({required MnemonicType accountType}) Future<GeneratedKeyG>
Generate seed phrase by specified mnemonic type
getHints({required String input}) Future<List<String>>
Get hints for input part of word of seed phrase to get possible words input: acco returns account, accommodate, ...
verifySignature({required PublicKey publicKey, required String data, required String signature, required int? signatureId}) Future<bool>
Check signature by publicKey and data hash