deriveAddress function Null safety

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'}) {
  final KeyPair keypair = crypto.deriveKeyPair(seed, index, curve: curve);
  return uint8ListToHex(crypto.hash(keypair.publicKey, algo: hashAlgo));
}