@semaphore-protocol/identity 4.13.1 → 4.14.0
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 +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/index.ts +2 -2
package/LICENSE
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/identity
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.14.0
|
|
4
4
|
* @file A library to create Semaphore identities.
|
|
5
5
|
* @copyright Ethereum Foundation 2025
|
|
6
6
|
* @license MIT
|
|
@@ -54,7 +54,7 @@ class Identity {
|
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Returns the secret scalar.
|
|
57
|
-
* @returns The secret scalar as a
|
|
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
|
|
71
|
+
* @returns The commitment as a bigint.
|
|
72
72
|
*/
|
|
73
73
|
get commitment() {
|
|
74
74
|
return this._commitment;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/identity
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.14.0
|
|
4
4
|
* @file A library to create Semaphore identities.
|
|
5
5
|
* @copyright Ethereum Foundation 2025
|
|
6
6
|
* @license MIT
|
|
@@ -52,7 +52,7 @@ class Identity {
|
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
* Returns the secret scalar.
|
|
55
|
-
* @returns The secret scalar as a
|
|
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
|
|
69
|
+
* @returns The commitment as a bigint.
|
|
70
70
|
*/
|
|
71
71
|
get commitment() {
|
|
72
72
|
return this._commitment;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
54
|
+
* @returns The commitment as a bigint.
|
|
55
55
|
*/
|
|
56
56
|
get commitment(): bigint;
|
|
57
57
|
/**
|
package/package.json
CHANGED
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
|
|
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
|
|
81
|
+
* @returns The commitment as a bigint.
|
|
82
82
|
*/
|
|
83
83
|
public get commitment(): bigint {
|
|
84
84
|
return this._commitment
|