import { browserWorker, nodeWorker } from './inject/worker.mjs'
/**
- * @type import("esbuild").BuildOptions
+ * @type import('esbuild').BuildOptions
*/
const commonOptions = {
bundle: true,
}
/**
- * @type import("esbuild").BuildOptions
+ * @type import('esbuild').BuildOptions
*/
export const browserOptions = {
...commonOptions,
}
/**
- * @type import("esbuild").BuildOptions
+ * @type import('esbuild').BuildOptions
*/
export const nodeOptions = {
...commonOptions,
*
* `n = 2⁰a[0] + 2²⁶a[1] + 2⁷⁷a[2] ... + 2²³⁰a[9]`
*/
-import { load_3, load_4, sodium_is_zero } from "./utils"
+import { load_3, load_4, sodium_is_zero } from './utils'
/**
* 10x 25- and 26-bit array of values representing a large integer `n mod p`.
invalidMessageLength: 'BB569136FA05F8CBF65CEF2EDE368475B289C4477342976556BA4C0DDF216E450',
}
-// https://github.com/rsnano-node/rsnano-node/blob/develop/types/src/private_key.rs
-// Small-order public key producing malleable signatures
-// Address: nano_11a11111111111111111111111111111111111111111111111116iq5p4i8
+/**
+ * https://github.com/rsnano-node/rsnano-node/blob/develop/types/src/private_key.rs
+ *
+ * Small-order public key producing malleable signatures
+ *
+ * Address: nano_11a11111111111111111111111111111111111111111111111116iq5p4i8
+ */
export const PROBLEM_VECTOR = {
blockHash: '150AFD70BD1E9845715F91D7CD7D5EE2683668199F19B4DF533FC7802CE07CA2',
publicKey: '0100000000000000000000000000000000000000000000000000000000000000',
}
/**
- * Test vectors derived from "python-ed25519-blake2b" by Janne Pulkkinen.
+ * Test vectors derived from `python-ed25519-blake2b` by Janne Pulkkinen.
+ *
* https://github.com/Matoking/python-ed25519-blake2b
*/
export const PYTHON_ED25519_BLAKE2B_VECTORS = [