nano-pow 1.2.3 → 1.2.4

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.
@@ -606,7 +606,7 @@ var NanoPowGpu = class _NanoPowGpu {
606
606
  do {
607
607
  const random = Math.floor(Math.random() * 4294967295);
608
608
  const seed = BigInt(random) << 32n | BigInt(random);
609
- const data = await this.#dispatch(seed, hash, threshold, 255);
609
+ const data = await this.#dispatch(seed, hash, threshold, 1024);
610
610
  nonce = data.getBigUint64(0, true);
611
611
  this.#busy = !data.getUint32(8);
612
612
  } while (this.#busy);
package/dist/main.min.js CHANGED
@@ -606,7 +606,7 @@ var NanoPowGpu = class _NanoPowGpu {
606
606
  do {
607
607
  const random = Math.floor(Math.random() * 4294967295);
608
608
  const seed = BigInt(random) << 32n | BigInt(random);
609
- const data = await this.#dispatch(seed, hash, threshold, 255);
609
+ const data = await this.#dispatch(seed, hash, threshold, 1024);
610
610
  nonce = data.getBigUint64(0, true);
611
611
  this.#busy = !data.getUint32(8);
612
612
  } while (this.#busy);
package/dist/types.d.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  import "@webgpu/types"
2
2
 
3
+ export declare const NanoPowGlFragmentShader: string
4
+ export declare const NanoPowGlVertexShader: string
5
+ export declare const NanoPowGpuComputeShader: any
6
+
3
7
  declare const NanoPow: typeof NanoPowGl | typeof NanoPowGpu | null
4
8
 
5
9
  export declare class NanoPowGl {
@@ -47,7 +51,3 @@ export declare class NanoPowGpu {
47
51
  */
48
52
  static validate (work: string, hash: string, threshold?: number): Promise<boolean>
49
53
  }
50
-
51
- export declare const NanoPowGlFragmentShader: string
52
- export declare const NanoPowGlVertexShader: string
53
- export declare const NanoPowGpuComputeShader: any
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nano-pow",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "Proof-of-work generation and validation with WebGPU/WebGL for Nano cryptocurrency.",
5
5
  "keywords": [
6
6
  "nemo",