@semaphore-protocol/identity 4.13.2 → 4.14.1

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Ethereum Foundation
3
+ Copyright (c) 2025 Ethereum Foundation
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/identity
3
- * @version 4.13.2
3
+ * @version 4.14.1
4
4
  * @file A library to create Semaphore identities.
5
- * @copyright Ethereum Foundation 2025
5
+ * @copyright Ethereum Foundation 2026
6
6
  * @license MIT
7
7
  * @see [Github]{@link https://github.com/semaphore-protocol/semaphore/tree/main/packages/identity}
8
8
  */
@@ -54,7 +54,7 @@ class Identity {
54
54
  }
55
55
  /**
56
56
  * Returns the secret scalar.
57
- * @returns The secret scalar as a string.
57
+ * @returns The secret scalar as a bigint.
58
58
  */
59
59
  get secretScalar() {
60
60
  return this._secretScalar;
@@ -68,7 +68,7 @@ class Identity {
68
68
  }
69
69
  /**
70
70
  * Returns the commitment hash of the public key.
71
- * @returns The commitment as a string.
71
+ * @returns The commitment as a bigint.
72
72
  */
73
73
  get commitment() {
74
74
  return this._commitment;
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/identity
3
- * @version 4.13.2
3
+ * @version 4.14.1
4
4
  * @file A library to create Semaphore identities.
5
- * @copyright Ethereum Foundation 2025
5
+ * @copyright Ethereum Foundation 2026
6
6
  * @license MIT
7
7
  * @see [Github]{@link https://github.com/semaphore-protocol/semaphore/tree/main/packages/identity}
8
8
  */
@@ -52,7 +52,7 @@ class Identity {
52
52
  }
53
53
  /**
54
54
  * Returns the secret scalar.
55
- * @returns The secret scalar as a string.
55
+ * @returns The secret scalar as a bigint.
56
56
  */
57
57
  get secretScalar() {
58
58
  return this._secretScalar;
@@ -66,7 +66,7 @@ class Identity {
66
66
  }
67
67
  /**
68
68
  * Returns the commitment hash of the public key.
69
- * @returns The commitment as a string.
69
+ * @returns The commitment as a bigint.
70
70
  */
71
71
  get commitment() {
72
72
  return this._commitment;
@@ -41,7 +41,7 @@ export declare class Identity {
41
41
  get privateKey(): string | Buffer | Uint8Array;
42
42
  /**
43
43
  * Returns the secret scalar.
44
- * @returns The secret scalar as a string.
44
+ * @returns The secret scalar as a bigint.
45
45
  */
46
46
  get secretScalar(): bigint;
47
47
  /**
@@ -51,7 +51,7 @@ export declare class Identity {
51
51
  get publicKey(): Point<bigint>;
52
52
  /**
53
53
  * Returns the commitment hash of the public key.
54
- * @returns The commitment as a string.
54
+ * @returns The commitment as a bigint.
55
55
  */
56
56
  get commitment(): bigint;
57
57
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semaphore-protocol/identity",
3
- "version": "4.13.2",
3
+ "version": "4.14.1",
4
4
  "description": "A library to create Semaphore identities.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -62,7 +62,7 @@ export class Identity {
62
62
 
63
63
  /**
64
64
  * Returns the secret scalar.
65
- * @returns The secret scalar as a string.
65
+ * @returns The secret scalar as a bigint.
66
66
  */
67
67
  public get secretScalar(): bigint {
68
68
  return this._secretScalar
@@ -78,7 +78,7 @@ export class Identity {
78
78
 
79
79
  /**
80
80
  * Returns the commitment hash of the public key.
81
- * @returns The commitment as a string.
81
+ * @returns The commitment as a bigint.
82
82
  */
83
83
  public get commitment(): bigint {
84
84
  return this._commitment