nekoton/crypto/crypto_lib library

Extensions

CreateKeyInputToSigner on CreateKeyInput
DerivedKeyCreateInputDerivePatterns on DerivedKeyCreateInputDerive
Adds pattern-matching-related methods to DerivedKeyCreateInputDerive.
DerivedKeyCreateInputImportPatterns on DerivedKeyCreateInputImport
Adds pattern-matching-related methods to DerivedKeyCreateInputImport.
DerivedKeyCreateInputPatterns on DerivedKeyCreateInput
Adds pattern-matching-related methods to DerivedKeyCreateInput.
DerivedKeyExportOutputPatterns on DerivedKeyExportOutput
Adds pattern-matching-related methods to DerivedKeyExportOutput.
DerivedKeyExportSeedParamsPatterns on DerivedKeyExportSeedParams
Adds pattern-matching-related methods to DerivedKeyExportSeedParams.
DerivedKeyGetPublicKeysPatterns on DerivedKeyGetPublicKeys
Adds pattern-matching-related methods to DerivedKeyGetPublicKeys.
DerivedKeyPasswordByAccountIdPatterns on DerivedKeyPasswordByAccountId
Adds pattern-matching-related methods to DerivedKeyPasswordByAccountId.
DerivedKeyPasswordByPublicKeyPatterns on DerivedKeyPasswordByPublicKey
Adds pattern-matching-related methods to DerivedKeyPasswordByPublicKey.
DerivedKeyPasswordPatterns on DerivedKeyPassword
Adds pattern-matching-related methods to DerivedKeyPassword.
DerivedKeyUpdateParamsChangePasswordPatterns on DerivedKeyUpdateParamsChangePassword
Adds pattern-matching-related methods to DerivedKeyUpdateParamsChangePassword.
DerivedKeyUpdateParamsPatterns on DerivedKeyUpdateParams
Adds pattern-matching-related methods to DerivedKeyUpdateParams.
DerivedKeyUpdateParamsRenameKeyPatterns on DerivedKeyUpdateParamsRenameKey
Adds pattern-matching-related methods to DerivedKeyUpdateParamsRenameKey.
EncryptedDataPatterns on EncryptedData
Adds pattern-matching-related methods to EncryptedData.
EncryptedKeyCreateInputPatterns on EncryptedKeyCreateInput
Adds pattern-matching-related methods to EncryptedKeyCreateInput.
EncryptedKeyExportSeedOutputPatterns on EncryptedKeyExportSeedOutput
Adds pattern-matching-related methods to EncryptedKeyExportSeedOutput.
EncryptedKeyGetPublicKeysPatterns on EncryptedKeyGetPublicKeys
Adds pattern-matching-related methods to EncryptedKeyGetPublicKeys.
EncryptedKeyPasswordPatterns on EncryptedKeyPassword
Adds pattern-matching-related methods to EncryptedKeyPassword.
EncryptedKeyUpdateParamsChangePasswordPatterns on EncryptedKeyUpdateParamsChangePassword
Adds pattern-matching-related methods to EncryptedKeyUpdateParamsChangePassword.
EncryptedKeyUpdateParamsPatterns on EncryptedKeyUpdateParams
Adds pattern-matching-related methods to EncryptedKeyUpdateParams.
EncryptedKeyUpdateParamsRenamePatterns on EncryptedKeyUpdateParamsRename
Adds pattern-matching-related methods to EncryptedKeyUpdateParamsRename.
ExportKeyInputToSigner on ExportKeyInput
GetPublicKeysToSigner on GetPublicKeys
KeypairPatterns on Keypair
Adds pattern-matching-related methods to Keypair.
LedgerKeyCreateInputPatterns on LedgerKeyCreateInput
Adds pattern-matching-related methods to LedgerKeyCreateInput.
LedgerKeyGetPublicKeysPatterns on LedgerKeyGetPublicKeys
Adds pattern-matching-related methods to LedgerKeyGetPublicKeys.
LedgerSignInputPatterns on LedgerSignInput
Adds pattern-matching-related methods to LedgerSignInput.
LedgerUpdateKeyInputPatterns on LedgerUpdateKeyInput
Adds pattern-matching-related methods to LedgerUpdateKeyInput.
LedgerUpdateKeyInputRenamePatterns on LedgerUpdateKeyInputRename
Adds pattern-matching-related methods to LedgerUpdateKeyInputRename.
PasswordCacheBehaviorPatterns on PasswordCacheBehavior
Adds pattern-matching-related methods to PasswordCacheBehavior.
PasswordExplicitPatterns on PasswordExplicit
Adds pattern-matching-related methods to PasswordExplicit.
PasswordPatterns on Password
Adds pattern-matching-related methods to Password.
SignedMessagePatterns on SignedMessage
Adds pattern-matching-related methods to SignedMessage.
SignInputToSigner on SignInput
UpdateKeyInputToSigner on UpdateKeyInput

Constants

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

Functions

deriveFromPhrase({required String phrase, required MnemonicType mnemonicType}) Keypair
Generate public and secret keys from seed phrase and mnemonic type Returns json {'public': '...', 'secret': '...'} or throws Exception
generateKey({required MnemonicType accountType}) GeneratedKeyG
Generate seed phrase by specified mnemonic type
getHints({required String input}) 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