WalletUtils class

Constructors

WalletUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

backupPlainWords(String walletDirectory, String walletName, String walletExtension, String password) → dynamic
generateSeedPWH(List<String> rndWords) Future<String>
This defines a static method called generateSeedPWH that takes a list of strings called rndWords as input and returns a Future
getCrc32(SimpleKeyPair simpleKeyPair) Future<String>
A static method called getCrc32. This method takes a single argument, a SimpleKeyPair object called simpleKeyPair, and returns a Future
getNewKeypairED25519(String seed, {int index = 0}) Future<SimpleKeyPair>
A static method called getNewKeypairED25519. This method takes a single string argument called seed and returns a Future
getTakamakaAddress(SimpleKeyPair simpleKeyPair) Future<String>
The method named getTakamakaAddress takes a SimpleKeyPair object as an argument and returns a Future
importFromKeyWords(List<String> words, String walletDirectory, String walletName, String walletExtension, String password) Future<String>
This defines a static method called importFromKeyWords. This method takes five arguments: a list of strings called words, four strings called walletDirectory, walletName, walletExtension, and password. It returns a Future
initWallet(String walletDirectory, String walletName, String walletExtension, String password, [List<String>? wordList]) Future<Map<String, dynamic>>
A static method called initWallet. This method takes four arguments: three strings called walletDirectory, walletName, walletExtension, and a password string. It returns a Future
readBytes(Uint8List bytes) BigInt
The method first defines a nested function called read that recursively reads a section of the input byte array and returns a BigInt representing the value of the section. The method then calls this nested function with the start and end indices of the input byte array, and returns the resulting BigInt.
readKeyFile(String walletPath, String walletName, dynamic walletExtension) Future<String>
This method reads the contents of a file from the specified path and returns it as a String. It takes three String parameters: walletPath, walletName, and walletExtension, which together specify the full path to the file. The method uses the FileSystemUtils class to read the file.
renderQrImage(String input) → QrImageView
The method creates a new QrImage object with the specified data and size, and returns it.
testBitMap(String value) Uint8List
The method named testBitMap takes a string argument called value and returns a Uint8List. The method first generates a 256x256 matrix of random 0s and 1s using the get256by256SquareBlockHIRND method provided by MatrixUtilsTkm. It then extracts a substring of the first 60 characters from the SHA-256 hash of the value argument, and uses it to generate a foreground and background color for the image using the fgColorFromHex and bgColorFromHex methods provided by MatrixUtilsTkm. The method then creates a new image with the specified width and height, and sets the color of each pixel based on the value of the corresponding element in the random matrix. Finally, the method encodes the image as a PNG and returns the resulting Uint8List.
writeEncryptedKeyFiles(String walletPath, String walletDirectory, String walletName, String walletExtension, KeyBean keyBean, String walletPassword) Future<String>
The method named writeKeyFile takes five arguments: walletPath, walletName, walletExtension, keyBean, and walletPassword. It returns a Future