Closed cherimo closed 9 months ago
Hi @cherimo,
suite.kemContext() has already been removed after v1.0.0 release, but you can use a getter function kem
instead of it.
As you already used in your sample code above, could you try the following code?
// before
const kemContext = await suite.kemContext();
const rawPubKey = await kemContext.serializePublicKey(rkp.publicKey);
// after (try this)
const rawPubKey = await suite.kem.serializePublicKey(rkp.publicKey);
@dajiaji many thanks, that worked perfectly!!
I am trying to export/serialize the public key with the following code:
I get the following error:
TypeError: suite.kemContext is not a function
Is there something I've overlooked?
Thank you