init_with_seed method

String init_with_seed(
  1. Uint8List seed
)

Implementation

String init_with_seed(Uint8List seed) {
  final outLen = olm_pk_signing_public_key_length();
  final mem = malloc.call<Uint8>(seed.length + outLen);
  final outMem = mem.elementAt(seed.length);
  try {
    mem.asTypedList(seed.length).setAll(0, seed);
    olm_pk_signing_key_from_seed(_inst, outMem, outLen, mem, seed.length);
    return utf8.decode(outMem.asTypedList(outLen));
  } finally {
    malloc.free(mem);
  }
}