unlockFromUri method
Unlock a KeyPair from a given uri.
This method unlocks the KeyPair by adding the private key.
Example:
final uri = "//Alice"; // Replace with your actual uri
final keyPair = await KeyPair.sr25519.fromUri(uri);
keyPair.lock();
keyPair.sign(message); // Throws an error
keyPair.unlockFromUri(uri);
keyPair.sign(message); // Works
Implementation
@override
Future<void> unlockFromUri(String uri, [String? password]) async {
await unlockFromMnemonic(uri, password);
}