deriveAddress method Null safety

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

Implementation

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