Comparing version 0.4.0 to 0.5.0
@@ -17,3 +17,3 @@ { | ||
}, | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "A public-private key library for post-quantum cryptography (early stage, use with caution)", | ||
@@ -20,0 +20,0 @@ "bugs": { |
import { ml_kem512 } from "@noble/post-quantum/ml-kem"; | ||
import { Buffer } from "buffer"; //for web | ||
const VERSION = 4; //incremental versions, each one is not compatible with earlier ones. | ||
const VERSION = 5; //incremental versions, each one is not compatible with earlier ones. | ||
@@ -45,6 +45,3 @@ function makeBigInt(arr: number[]): string { | ||
if(typeof document !== "undefined") | ||
signBuilder = (await import("@dashlane/pqc-sign-falcon-512-browser") as any).default; | ||
else | ||
signBuilder = (await import("@dashlane/pqc-sign-falcon-512-node") as any).default; | ||
signBuilder = (await import("@dashlane/pqc-sign-falcon-512-browser") as any).default; | ||
@@ -51,0 +48,0 @@ const EPOLITE_PUBLIC_KEY_LABEL = "----------BEGIN EPOLITE PUBLIC KEY----------"; |
22267
310