extendedPrivateKeyFromUri function
Converts a URI to an extended private key.
Takes a URI as input and returns the corresponding extended private key as a list of integers. The URI is used to generate a public key and a private key using the ed25519 algorithm. The public key and private key are then concatenated to form the extended private key.
Implementation
Future<List<int>> extendedPrivateKeyFromUri(String uri) async {
final publicKey = await publicKeyFromUri(uri);
final privateKey = await privateKeyFromUri(uri);
List<int> extendedPrivateKey = [];
extendedPrivateKey.addAll(privateKey);
extendedPrivateKey.addAll(publicKey);
return extendedPrivateKey;
}