nekoton/crypto/crypto_lib library
Classes
- CreateKeyInput
- DerivedKeyCreateInput
- Input for creating labs key
- DerivedKeyCreateInputDerive
- DerivedKeyCreateInputImport
- DerivedKeyExportOutput
- DerivedKeyExportSeedParams
- DerivedKeyGetPublicKeys
- DerivedKeyPassword
- DerivedKeyPasswordByAccountId
- DerivedKeyPasswordByPublicKey
- DerivedKeyUpdateParams
- DerivedKeyUpdateParamsChangePassword
- DerivedKeyUpdateParamsRenameKey
- EncryptedData
- EncryptedKeyCreateInput
- Input for creating legacy key
- EncryptedKeyExportSeedOutput
- EncryptedKeyGetPublicKeys
- EncryptedKeyPassword
- EncryptedKeyUpdateParams
- EncryptedKeyUpdateParamsChangePassword
- EncryptedKeyUpdateParamsRename
- ExportKeyInput
- ExportKeyOutput
- GetPublicKeys
- Keypair
- LedgerKeyCreateInput
- LedgerKeyGetPublicKeys
- LedgerSignInput
- LedgerUpdateKeyInput
- LedgerUpdateKeyInputRename
- Password
- PasswordCacheBehavior
- PasswordExplicit
- SignedMessage
- SignInput
- UnsignedMessage
- Wrapper above nekoton's UnsignedMessage
- UpdateKeyInput
Enums
Extensions
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