deriveAddress function

String deriveAddress(
  1. String seed,
  2. int index, {
  3. String curve = "ed25519",
  4. String hashAlgo = "sha256",
})

Implementation

String deriveAddress(String seed, int index,
    {String curve = "ed25519", String hashAlgo = "sha256"}) {
  KeyPair keypair = crypto.deriveKeyPair(seed, index, curve: curve);
  return uint8ListToHex(crypto.hash(keypair.publicKey, algo: hashAlgo));
}