deriveKey function

Future<B64> deriveKey(
  1. B64 mySK,
  2. B64 otherSidePK
)

Implementation

Future<B64> deriveKey(B64 mySK, B64 otherSidePK) async {
  return B64.encode(x25519.X25519(mySK.decode().sublist(0, 32).toList(),
      otherSidePK.decode().sublist(32).toList()));
}