extendedPrivateKeyFromSeed function
Converts a seed to an extended private key.
Takes a seed as input and returns the corresponding extended private key as a list of integers. The seed 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
List<int> extendedPrivateKeyFromSeed(String seed) {
final publicKey = publicKeyFromSeed(seed);
final privateKey = hex.decode(seed);
List<int> extendedPrivateKey = [];
extendedPrivateKey.addAll(privateKey);
extendedPrivateKey.addAll(publicKey);
return extendedPrivateKey;
}