mol_crypto_lib 0.1.1420 → 0.1.1421

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/node.js CHANGED
@@ -2481,7 +2481,7 @@ var $;
2481
2481
  }, ecdh, Boolean('extractable'), ['deriveKey', 'deriveBits']).catch($mol_crypto_restack);
2482
2482
  }
2483
2483
  public() {
2484
- return new $mol_crypto_key_public(this.buffer, this.byteOffset, this.byteOffset + 64);
2484
+ return new $mol_crypto_key_public(this.asArray().slice(0, 64).buffer);
2485
2485
  }
2486
2486
  async sign(data) {
2487
2487
  return new Uint8Array(await $mol_crypto_native.subtle.sign(ecdsa, await this.native(), data).catch($mol_crypto_restack));