flutter_nano_ffi library

Classes

AesCbcPkcs7
AES Encrypt/Decrypt using CBC block cipher and PKCS7 padding
Ed25519Blake2b
KDF
KDF (Key derivator function) base class
KeyIV
A key/iv pair for aes encryption
NanoAccountEncodes
Tools to encode and decode accounts to/from bytes
NanoAccounts
NanoAccountType
Regex and prefix holder for account types.
NanoBlocks
NanoCrypt
Utility for encrypting and decrypting
NanoHelpers
NanoKeys
NanoMnemomics
NanoSeeds
NanoSignatures
PBKDF2
pbkdf2 Key derivation function with a random salt
Sha
Sha256KDF
Sha256 Key Derivation Function It's not very anti-brute forceable, but it's fast which is an important feature Anti-brute forceable is a lower priority than speed, because key security is on the individual user there's no centralized database of key

Constants

WORDLIST → const List<String>

Properties

checksumFunc → void Function(Pointer<Uint8>, Pointer<Uint8>)
final
dyLib DynamicLibrary
final
hashFunc → void Function(Pointer<Uint8>, Pointer<Uint8>, Pointer<Uint8>, Pointer<Uint8>, Pointer<Uint8>, Pointer<Uint8>, Pointer<Uint8>)
final
libraryPath String?
final
privkeyFunc → void Function(Pointer<Uint8>, Pointer<Uint8>, int)
final
pubkeyFunc → void Function(Pointer<Uint8>, Pointer<Uint8>)
final
signFunc → void Function(Pointer<Uint8>, int, Pointer<Uint8>, Pointer<Uint8>, Pointer<Uint8>)
final
verifyFunc int Function(Pointer<Uint8>, int, Pointer<Uint8>, Pointer<Uint8>)
final

Typedefs

BlockHash = void Function(Pointer<Uint8> hash, Pointer<Uint8> preamble, Pointer<Uint8> account, Pointer<Uint8> previous, Pointer<Uint8> rep, Pointer<Uint8> balance, Pointer<Uint8> link)
Checksum = void Function(Pointer<Uint8> checksum, Pointer<Uint8> publickey)
checksum_func = Void Function(Pointer<Uint8> checksum, Pointer<Uint8> publickey)
hash_func = Void Function(Pointer<Uint8> hash, Pointer<Uint8> preamble, Pointer<Uint8> account, Pointer<Uint8> previous, Pointer<Uint8> rep, Pointer<Uint8> balance, Pointer<Uint8> link)
Privatekey = void Function(Pointer<Uint8> sk, Pointer<Uint8> seed, int index)
privatekey_func = Void Function(Pointer<Uint8> sk, Pointer<Uint8> seed, Uint32 index)
Publickey = void Function(Pointer<Uint8> sk, Pointer<Uint8> pk)
publickey_func = Void Function(Pointer<Uint8> sk, Pointer<Uint8> pk)
Signature = void Function(Pointer<Uint8> sig, int mlen, Pointer<Uint8> m, Pointer<Uint8> randr, Pointer<Uint8> sk)
signature_func = Void Function(Pointer<Uint8> sig, Uint32 mlen, Pointer<Uint8> m, Pointer<Uint8> randr, Pointer<Uint8> sk)
Verify = int Function(Pointer<Uint8> sig, int mlen, Pointer<Uint8> m, Pointer<Uint8> pk)
verify_func = Int32 Function(Pointer<Uint8> sig, Uint32 mlen, Pointer<Uint8> m, Pointer<Uint8> pk)