Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 15.0.0 #138

Merged
merged 69 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
1789692
[IRT-741] feat: Enable share import to call only to a proxy server in…
huggingbot Sep 8, 2023
b624844
[IRT-741] fix: Use hash of verifier and verifierId rather thn pub keys
huggingbot Oct 2, 2023
7d2fc60
[IRT-741] fix: Remove sorting shares as we will map data on backend t…
huggingbot Oct 3, 2023
99bc575
[IRT-741] fix: Remove unused constant
huggingbot Oct 3, 2023
a957ebf
import share tests fixed
Oct 24, 2023
02168d0
Merge branch 'master' into feat/atomic-share-import
Oct 24, 2023
8586ecc
add ed25519 key support
Nov 29, 2023
4e603df
Merge branch 'master' into fix/ed25519-keys
Dec 10, 2023
3066336
add key type support for ed25519
Dec 11, 2023
badf280
fix ed25519 imports
Dec 12, 2023
d20b635
skip ed25519 as us region is not updated yet
Dec 12, 2023
fe96658
tests fixed
Dec 12, 2023
6760d85
add method to login with non dkg keys
Dec 21, 2023
0b9aff1
fix review comments
Dec 21, 2023
d9ac909
readd one key tests
Dec 21, 2023
331a9ef
fix generate priv key
Jan 2, 2024
c8ed4d4
fix celeste tests
Jan 2, 2024
c70b131
fix key type
Jan 9, 2024
119c01c
make import as default for ed25519
Jan 15, 2024
585b89b
merge with alpha
Mar 8, 2024
52d93e9
helpers functions to generate ed25519 key data
Mar 10, 2024
12fb612
working ed25519 key pairs
Mar 15, 2024
6950486
fix tests for ed25519 keys
Mar 18, 2024
855aca0
return pubkey in b58
Mar 19, 2024
d9dab31
fix tests
Mar 19, 2024
bd59e70
fix all tests
Mar 20, 2024
60824d3
Merge pull request #126 from torusresearch/fix/ed25519-keys
himanshuchawla009 Mar 20, 2024
3107b99
package lock updated
Mar 20, 2024
02bb409
13.0.0-alpha.0
Mar 20, 2024
802f9fc
Release 13.0.0-alpha.1
Mar 20, 2024
04c151c
fix metadata signing key for ed25519
Apr 4, 2024
0acead9
Release 13.0.0-alpha.2
Apr 4, 2024
5252dff
return final ed25519 key in seed hex format
Apr 4, 2024
a911948
Release 13.0.0-alpha.3
Apr 4, 2024
5fd555d
fix retrieve shares for test tss verifier
Apr 23, 2024
48cf350
Release 13.0.0-alpha.4
Apr 23, 2024
6b5261f
retry decryption with unpadded cipher txt
Apr 30, 2024
37f69ca
skip celeste tests because of recent migration
Apr 30, 2024
b55aaba
pad cipher text post error
May 2, 2024
e7887fe
Merge pull request #139 from torusresearch/fix/cipher-padding
chaitanyapotti May 6, 2024
99052f0
merge with master
May 8, 2024
a52abb1
temp
May 8, 2024
c4a5aaf
error log fixes
May 8, 2024
9cca752
better error msgs
May 9, 2024
49094e4
return postbox key data obj
May 9, 2024
99b7a77
Release 13.0.0-alpha.5
May 9, 2024
68d1bd2
update function to return correct postbox key
May 14, 2024
8f930ea
fix metadata msg expiry test case
May 14, 2024
11a4384
Release 13.0.0-alpha.6
May 16, 2024
9c8d4c6
add sapphire mainnet support for ed25519
May 31, 2024
6c7e323
disable logging
May 31, 2024
30cf1d9
Release 13.0.0-alpha.7
May 31, 2024
a102e65
merge with master
Jun 18, 2024
2b39412
enable mainnet import test
Jun 18, 2024
a981bc2
merge with masteR
Jul 11, 2024
7d0f687
fix http calls
Jul 11, 2024
abdd7a5
use constants for curves
Jul 11, 2024
74e5536
remove unused function
Jul 11, 2024
4b98a63
readd encode point function
Jul 11, 2024
2f98f9c
merge with masteR
Jul 16, 2024
095e77f
fix node details import in tests
Jul 16, 2024
b509d35
15.0.0-alpha.0
Jul 22, 2024
974cbc1
Release 15.0.0-alpha.1
Jul 22, 2024
43f7444
refactor: add types for extra params
metalurgical Jul 24, 2024
3bbba20
Merge pull request #153 from torusresearch/extra_param_types
himanshuchawla009 Jul 29, 2024
141e936
update param structure for retrieve shares and import key
Jul 29, 2024
7fa95fb
fix test
Jul 30, 2024
fcaba4b
minor refactor
chaitanyapotti Jul 30, 2024
7df0374
Merge pull request #154 from torusresearch/feat/review-changes
himanshuchawla009 Jul 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,4 @@ dist
.tern-port

.env.test
**/*.DS_Store
191 changes: 146 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@toruslabs/torus.js",
"version": "14.0.1",
"version": "15.0.0-alpha.1",
"description": "Handle communication with torus nodes",
"main": "dist/lib.cjs/index.js",
"module": "dist/lib.esm/index.js",
Expand Down Expand Up @@ -28,14 +28,15 @@
"@toruslabs/eccrypto": "^5.0.4",
"@toruslabs/http-helpers": "^7.0.0",
"bn.js": "^5.2.1",
"elliptic": "^6.5.5",
"elliptic": "^6.5.6",
"bs58": "^6.0.0",
"ethereum-cryptography": "^2.2.1",
"json-stable-stringify": "^1.1.1",
"loglevel": "^1.9.1"
},
"devDependencies": {
"@babel/register": "^7.24.6",
"@babel/runtime": "^7.24.8",
"@babel/runtime": "^7.25.0",
"@toruslabs/config": "^2.1.0",
"@toruslabs/eslint-config-typescript": "^3.3.1",
"@toruslabs/fetch-node-details": "^14.0.1",
Expand All @@ -52,15 +53,15 @@
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"faker": "^5.5.3",
"husky": "^9.0.11",
"husky": "^9.1.4",
"jsonwebtoken": "^9.0.2",
"lint-staged": "^15.2.7",
"mocha": "^10.6.0",
"mocha": "^10.7.0",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"sinon": "^18.0.0",
"ts-node": "^10.9.2",
"typescript": "^5.5.3"
"typescript": "^5.5.4"
},
"repository": {
"type": "git",
Expand Down
6 changes: 5 additions & 1 deletion src/Point.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ class Point {
encode(enc: string): Buffer {
switch (enc) {
case "arr":
return Buffer.concat([Buffer.from("04", "hex"), Buffer.from(this.x.toString("hex"), "hex"), Buffer.from(this.y.toString("hex"), "hex")]);
return Buffer.concat([
Buffer.from("04", "hex"),
chaitanyapotti marked this conversation as resolved.
Show resolved Hide resolved
Buffer.from(this.x.toString("hex", 64), "hex"),
Buffer.from(this.y.toString("hex", 64), "hex"),
]);
case "elliptic-compressed": {
const key = this.ecCurve.keyFromPublic({ x: this.x.toString("hex", 64), y: this.y.toString("hex", 64) }, "hex");
return Buffer.from(key.getPublic(true, "hex"));
Expand Down
Loading