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
A static method called initWallet.
This method takes four arguments: three strings called walletDirectory,
walletName, walletExtension, and a password string.
It returns a Future
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.
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.
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.