@bitgo-beta/account-lib 2.24.1-alpha.5 → 2.24.1-alpha.500

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.
Files changed (74) hide show
  1. package/README.md +1 -1
  2. package/dist/resources/dot/index.js +6 -2
  3. package/dist/resources/dot/westend.d.ts +1 -1
  4. package/dist/resources/dot/westend.d.ts.map +1 -1
  5. package/dist/resources/dot/westend.js +2 -2
  6. package/dist/resources/dot/westend.ts +1 -1
  7. package/dist/src/index.d.ts +116 -4
  8. package/dist/src/index.d.ts.map +1 -1
  9. package/dist/src/index.js +273 -17
  10. package/dist/src/keyPair/index.js +24 -11
  11. package/dist/src/utils/index.d.ts +1 -0
  12. package/dist/src/utils/index.d.ts.map +1 -1
  13. package/dist/src/utils/index.js +27 -10
  14. package/dist/src/utils/messages/index.d.ts +10 -0
  15. package/dist/src/utils/messages/index.d.ts.map +1 -0
  16. package/dist/src/utils/messages/index.js +30 -0
  17. package/dist/test/resources/ed25519Deriver.d.ts +15 -0
  18. package/dist/test/resources/ed25519Deriver.d.ts.map +1 -0
  19. package/dist/test/resources/ed25519Deriver.js +18 -0
  20. package/dist/test/resources/testTransaction.d.ts +11 -0
  21. package/dist/test/resources/testTransaction.d.ts.map +1 -0
  22. package/dist/test/resources/testTransaction.js +19 -0
  23. package/dist/test/resources/testTransactionBuilder.d.ts +26 -0
  24. package/dist/test/resources/testTransactionBuilder.d.ts.map +1 -0
  25. package/dist/test/resources/testTransactionBuilder.js +47 -0
  26. package/dist/test/unit/coin/baseCoin/transactionBuilder.d.ts +2 -0
  27. package/dist/test/unit/coin/baseCoin/transactionBuilder.d.ts.map +1 -0
  28. package/dist/test/unit/coin/baseCoin/transactionBuilder.js +135 -0
  29. package/dist/test/unit/fixtures.d.ts +16 -0
  30. package/dist/test/unit/fixtures.d.ts.map +1 -0
  31. package/dist/test/unit/fixtures.js +43 -0
  32. package/dist/test/unit/index.d.ts +2 -0
  33. package/dist/test/unit/index.d.ts.map +1 -0
  34. package/dist/test/unit/index.js +13 -0
  35. package/dist/test/unit/keyPair/index.d.ts +2 -0
  36. package/dist/test/unit/keyPair/index.d.ts.map +1 -0
  37. package/dist/test/unit/keyPair/index.js +132 -0
  38. package/dist/test/unit/messageFactory.d.ts +2 -0
  39. package/dist/test/unit/messageFactory.d.ts.map +1 -0
  40. package/dist/test/unit/messageFactory.js +78 -0
  41. package/dist/test/unit/mpc/tss/ecdsa/ecdsa.d.ts +2 -0
  42. package/dist/test/unit/mpc/tss/ecdsa/ecdsa.d.ts.map +1 -0
  43. package/dist/test/unit/mpc/tss/ecdsa/ecdsa.js +333 -0
  44. package/dist/test/unit/mpc/tss/eddsa/eddsa.d.ts +5 -0
  45. package/dist/test/unit/mpc/tss/eddsa/eddsa.d.ts.map +1 -0
  46. package/dist/test/unit/mpc/tss/eddsa/eddsa.js +322 -0
  47. package/dist/test/unit/mpc/tss/fixtures/ecdsa.d.ts +130 -0
  48. package/dist/test/unit/mpc/tss/fixtures/ecdsa.d.ts.map +1 -0
  49. package/dist/test/unit/mpc/tss/fixtures/ecdsa.js +283 -0
  50. package/dist/test/unit/utils/crypto.d.ts +2 -0
  51. package/dist/test/unit/utils/crypto.d.ts.map +1 -0
  52. package/dist/test/unit/utils/crypto.js +60 -0
  53. package/dist/test/unit/utils/ed25519KeyDeriver.d.ts +2 -0
  54. package/dist/test/unit/utils/ed25519KeyDeriver.d.ts.map +1 -0
  55. package/dist/test/unit/utils/ed25519KeyDeriver.js +23 -0
  56. package/dist/test/unit/utils/index.d.ts +2 -0
  57. package/dist/test/unit/utils/index.d.ts.map +1 -0
  58. package/dist/test/unit/utils/index.js +61 -0
  59. package/dist/test/unit/utils/messages/index.d.ts +2 -0
  60. package/dist/test/unit/utils/messages/index.d.ts.map +1 -0
  61. package/dist/test/unit/utils/messages/index.js +51 -0
  62. package/dist/test/unit/verifyMessage.d.ts +2 -0
  63. package/dist/test/unit/verifyMessage.d.ts.map +1 -0
  64. package/dist/test/unit/verifyMessage.js +96 -0
  65. package/dist/tsconfig.tsbuildinfo +1 -39381
  66. package/package.json +79 -30
  67. package/.mocharc.js +0 -10
  68. package/CHANGELOG.md +0 -307
  69. package/DEVELOPER.md +0 -93
  70. package/resources/README.md +0 -17
  71. package/resources/cspr/contract/keys-manager.wasm +0 -0
  72. package/resources/dot/index.ts +0 -2
  73. package/resources/dot/mainnet.ts +0 -2
  74. package/resources/dot/westend.ts +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo-beta/account-lib",
3
- "version": "2.24.1-alpha.5",
3
+ "version": "2.24.1-alpha.500",
4
4
  "description": "BitGo's account library functions",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "coverage": "npm run gen-coverage && npm run upload-coverage",
11
11
  "lint": "eslint --quiet 'src/**/*.ts' 'test/**/*.ts'",
12
12
  "lint-fix": "eslint --fix 'src/**/*.ts' 'test/**/*.ts'",
13
- "prepare": "npm run build-ts && cp -r ./resources ./dist",
13
+ "prepare": "npm run build-ts && shx cp -r ./resources ./dist",
14
14
  "build-ts": "tsc --build --incremental --verbose .",
15
15
  "unit-test": "nyc -- mocha",
16
16
  "test": "npm run unit-test",
@@ -24,39 +24,85 @@
24
24
  "author": "BitGo SDK Team <sdkteam@bitgo.com>",
25
25
  "license": "ISC",
26
26
  "engines": {
27
- "node": ">=14 <17"
27
+ "node": ">=20"
28
28
  },
29
29
  "dependencies": {
30
- "@bitgo-beta/sdk-coin-algo": "1.3.3-alpha.5",
31
- "@bitgo-beta/sdk-coin-avaxc": "2.2.3-alpha.5",
32
- "@bitgo-beta/sdk-coin-avaxp": "3.2.3-alpha.5",
33
- "@bitgo-beta/sdk-coin-bsc": "1.3.3-alpha.5",
34
- "@bitgo-beta/sdk-coin-celo": "1.3.3-alpha.5",
35
- "@bitgo-beta/sdk-coin-cspr": "1.2.3-alpha.5",
36
- "@bitgo-beta/sdk-coin-dot": "1.3.3-alpha.5",
37
- "@bitgo-beta/sdk-coin-etc": "1.2.3-alpha.5",
38
- "@bitgo-beta/sdk-coin-eth": "2.4.1-alpha.5",
39
- "@bitgo-beta/sdk-coin-eth2": "1.2.3-alpha.5",
40
- "@bitgo-beta/sdk-coin-hbar": "1.3.3-alpha.5",
41
- "@bitgo-beta/sdk-coin-near": "1.3.3-alpha.5",
42
- "@bitgo-beta/sdk-coin-polygon": "1.3.3-alpha.5",
43
- "@bitgo-beta/sdk-coin-rbtc": "1.3.3-alpha.5",
44
- "@bitgo-beta/sdk-coin-sol": "2.2.3-alpha.5",
45
- "@bitgo-beta/sdk-coin-stx": "1.4.3-alpha.5",
46
- "@bitgo-beta/sdk-coin-sui": "1.4.1-alpha.5",
47
- "@bitgo-beta/sdk-coin-trx": "1.2.3-alpha.5",
48
- "@bitgo-beta/sdk-coin-xtz": "1.4.3-alpha.5",
49
- "@bitgo-beta/sdk-core": "2.4.1-alpha.5",
50
- "@bitgo-beta/statics": "10.0.1-alpha.5",
51
- "bignumber.js": "^9.0.0",
30
+ "@bitgo-beta/sdk-coin-ada": "2.2.3-alpha.508",
31
+ "@bitgo-beta/sdk-coin-algo": "1.3.3-alpha.509",
32
+ "@bitgo-beta/sdk-coin-apechain": "1.0.0-alpha.180",
33
+ "@bitgo-beta/sdk-coin-apt": "1.0.0-alpha.279",
34
+ "@bitgo-beta/sdk-coin-arbeth": "1.0.0-alpha.419",
35
+ "@bitgo-beta/sdk-coin-asi": "1.0.0-alpha.183",
36
+ "@bitgo-beta/sdk-coin-atom": "1.1.2-alpha.489",
37
+ "@bitgo-beta/sdk-coin-avaxc": "2.2.3-alpha.505",
38
+ "@bitgo-beta/sdk-coin-avaxp": "3.2.3-alpha.508",
39
+ "@bitgo-beta/sdk-coin-baby": "1.0.0-alpha.250",
40
+ "@bitgo-beta/sdk-coin-bera": "1.0.0-alpha.419",
41
+ "@bitgo-beta/sdk-coin-bld": "1.0.0-alpha.455",
42
+ "@bitgo-beta/sdk-coin-bsc": "1.3.3-alpha.505",
43
+ "@bitgo-beta/sdk-coin-canton": "1.0.0-alpha.99",
44
+ "@bitgo-beta/sdk-coin-celo": "1.3.3-alpha.505",
45
+ "@bitgo-beta/sdk-coin-coredao": "1.0.1-alpha.272",
46
+ "@bitgo-beta/sdk-coin-coreum": "1.0.0-alpha.418",
47
+ "@bitgo-beta/sdk-coin-cosmos": "1.0.1-alpha.156",
48
+ "@bitgo-beta/sdk-coin-cronos": "1.0.0-alpha.191",
49
+ "@bitgo-beta/sdk-coin-cspr": "1.2.3-alpha.508",
50
+ "@bitgo-beta/sdk-coin-dot": "1.3.3-alpha.508",
51
+ "@bitgo-beta/sdk-coin-etc": "1.2.3-alpha.503",
52
+ "@bitgo-beta/sdk-coin-eth": "2.4.1-alpha.507",
53
+ "@bitgo-beta/sdk-coin-evm": "1.0.0-alpha.179",
54
+ "@bitgo-beta/sdk-coin-flr": "1.0.0-alpha.250",
55
+ "@bitgo-beta/sdk-coin-flrp": "1.0.0-alpha.123",
56
+ "@bitgo-beta/sdk-coin-hash": "1.0.0-alpha.454",
57
+ "@bitgo-beta/sdk-coin-hbar": "2.0.73-alpha.214",
58
+ "@bitgo-beta/sdk-coin-icp": "1.0.0-alpha.257",
59
+ "@bitgo-beta/sdk-coin-initia": "1.1.0-alpha.187",
60
+ "@bitgo-beta/sdk-coin-injective": "1.1.2-alpha.455",
61
+ "@bitgo-beta/sdk-coin-islm": "1.0.0-alpha.420",
62
+ "@bitgo-beta/sdk-coin-kaspa": "0.0.1-alpha.15",
63
+ "@bitgo-beta/sdk-coin-mon": "1.0.0-alpha.203",
64
+ "@bitgo-beta/sdk-coin-near": "1.3.3-alpha.508",
65
+ "@bitgo-beta/sdk-coin-oas": "1.0.0-alpha.275",
66
+ "@bitgo-beta/sdk-coin-opeth": "1.0.0-alpha.418",
67
+ "@bitgo-beta/sdk-coin-osmo": "1.0.0-alpha.456",
68
+ "@bitgo-beta/sdk-coin-polygon": "1.3.3-alpha.505",
69
+ "@bitgo-beta/sdk-coin-polyx": "1.0.0-alpha.209",
70
+ "@bitgo-beta/sdk-coin-rbtc": "1.3.3-alpha.504",
71
+ "@bitgo-beta/sdk-coin-rune": "1.0.1-alpha.286",
72
+ "@bitgo-beta/sdk-coin-sei": "1.0.0-alpha.453",
73
+ "@bitgo-beta/sdk-coin-sgb": "1.1.2-alpha.249",
74
+ "@bitgo-beta/sdk-coin-sol": "2.2.3-alpha.506",
75
+ "@bitgo-beta/sdk-coin-soneium": "1.0.0-alpha.198",
76
+ "@bitgo-beta/sdk-coin-starknet": "0.0.1-alpha.2",
77
+ "@bitgo-beta/sdk-coin-stt": "1.0.0-alpha.199",
78
+ "@bitgo-beta/sdk-coin-stx": "1.4.3-alpha.505",
79
+ "@bitgo-beta/sdk-coin-sui": "1.4.1-alpha.506",
80
+ "@bitgo-beta/sdk-coin-tao": "1.0.1-alpha.258",
81
+ "@bitgo-beta/sdk-coin-tempo": "1.0.0-alpha.79",
82
+ "@bitgo-beta/sdk-coin-tia": "1.0.1-alpha.453",
83
+ "@bitgo-beta/sdk-coin-ton": "1.0.0-alpha.420",
84
+ "@bitgo-beta/sdk-coin-trx": "1.2.3-alpha.506",
85
+ "@bitgo-beta/sdk-coin-vet": "1.0.0-alpha.187",
86
+ "@bitgo-beta/sdk-coin-wemix": "1.0.0-alpha.247",
87
+ "@bitgo-beta/sdk-coin-world": "1.0.0-alpha.203",
88
+ "@bitgo-beta/sdk-coin-xdc": "1.0.0-alpha.250",
89
+ "@bitgo-beta/sdk-coin-xrp": "1.3.3-alpha.506",
90
+ "@bitgo-beta/sdk-coin-xtz": "1.4.3-alpha.506",
91
+ "@bitgo-beta/sdk-coin-zeta": "1.0.0-alpha.444",
92
+ "@bitgo-beta/sdk-coin-zketh": "1.0.0-alpha.410",
93
+ "@bitgo-beta/sdk-core": "2.4.1-alpha.510",
94
+ "@bitgo-beta/sdk-lib-mpc": "8.2.1-alpha.466",
95
+ "@bitgo-beta/statics": "10.0.1-alpha.510",
96
+ "bignumber.js": "^9.1.1",
52
97
  "bs58": "^4.0.1"
53
98
  },
54
99
  "devDependencies": {
55
- "@solana/web3.js": "1.56.0",
100
+ "@solana/web3.js": "1.92.1",
56
101
  "@types/bs58": "^4.0.1",
57
- "@types/keccak": "^3.0.1",
58
- "keccak": "3.0.2",
59
- "paillier-bigint": "3.3.0"
102
+ "@types/keccak": "^3.0.5",
103
+ "keccak": "3.0.3",
104
+ "paillier-bigint": "3.3.0",
105
+ "shx": "^0.3.4"
60
106
  },
61
107
  "nyc": {
62
108
  "extension": [
@@ -75,5 +121,8 @@
75
121
  "publishConfig": {
76
122
  "access": "public"
77
123
  },
78
- "gitHead": "a86280d9bb6c832d5de2435bed48dfedb52d37cd"
124
+ "gitHead": "b054424ac510b21c069de354a79d1b1d385ca7f1",
125
+ "files": [
126
+ "dist"
127
+ ]
79
128
  }
package/.mocharc.js DELETED
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {
4
- require: 'ts-node/register',
5
- timeout: '20000',
6
- reporter: 'min',
7
- 'reporter-option': ['consoleReporter=min'],
8
- exit: true,
9
- spec: ['test/unit/**/*.ts'],
10
- };
package/CHANGELOG.md DELETED
@@ -1,307 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [3.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.23.0...@bitgo/account-lib@3.0.0) (2022-11-04)
7
-
8
- ### Features
9
-
10
- - **sdk-coin-sui:** added sui to account-lib ([e4a21fc](https://github.com/BitGo/BitGoJS/commit/e4a21fc2895ef66508fbc231dc11baf24ae4cf5a))
11
- - **sdk-core:** add VSS share generation and verification ([619f254](https://github.com/BitGo/BitGoJS/commit/619f2542f9c44f8468460864f78b975a2ccb7b7f))
12
-
13
- ### BREAKING CHANGES
14
-
15
- - **sdk-core:** Key shares require a `v` value for combination.
16
- ISSUE: BG-57633
17
-
18
- # [2.24.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.23.0...@bitgo/account-lib@2.24.0) (2022-10-27)
19
-
20
- ### Features
21
-
22
- - **sdk-coin-sui:** added sui to account-lib ([e4a21fc](https://github.com/BitGo/BitGoJS/commit/e4a21fc2895ef66508fbc231dc11baf24ae4cf5a))
23
-
24
- ## [2.23.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.23.0...@bitgo/account-lib@2.23.1) (2022-10-25)
25
-
26
- **Note:** Version bump only for package @bitgo/account-lib
27
-
28
- # [2.23.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.38...@bitgo/account-lib@2.23.0) (2022-10-18)
29
-
30
- ### Bug Fixes
31
-
32
- - **account-lib:** fix EDDSA MPC key validation for small number keys ([f9f7407](https://github.com/BitGo/BitGoJS/commit/f9f740721a91f8351df40b3b4d89f2c393acd7cf))
33
- - **account-lib:** shamir secret indices validity ([4e22783](https://github.com/BitGo/BitGoJS/commit/4e227839d5c1fb84a583f17d8754b46324f4eef9))
34
- - **sdk-coin-eth:** fixes to the sign and verify functions for eth tss ([ce79269](https://github.com/BitGo/BitGoJS/commit/ce7926985886cfd48a174df4ea1341e1ec388f8b))
35
- - **sdk-core:** ecdsa send signing bitgo's n share u ([1cb1e93](https://github.com/BitGo/BitGoJS/commit/1cb1e933c692f454de538b3b189ef2feb1b39475))
36
-
37
- ### Features
38
-
39
- - **account-lib:** add option to pass in custom seed ecdsa ([86b205e](https://github.com/BitGo/BitGoJS/commit/86b205e342ca5610ce460877a64f4733f944bf6e))
40
- - **account-lib:** add support for additional hash algorithms ([4e2aefe](https://github.com/BitGo/BitGoJS/commit/4e2aefe8bb7754f891e5f9919f591ad1cc04b34d))
41
- - **account-lib:** custom salt shamir share ([fa34652](https://github.com/BitGo/BitGoJS/commit/fa346529b5dc9897b6bbf6fb4a05ac77f2f05b2d))
42
- - **sdk-coin-bsc:** create bsc module ([b55ca71](https://github.com/BitGo/BitGoJS/commit/b55ca7173e27ee2d75d342b6706698769f11734f))
43
- - **sdk-core:** add recid to fully constructed signature ([a8adcd9](https://github.com/BitGo/BitGoJS/commit/a8adcd9c3f452f1dfc85454668c19103cec7160d))
44
- - **sdk-core:** implement signing flow ecdsa ([68aa561](https://github.com/BitGo/BitGoJS/commit/68aa561193fe0574bd7b7080bb51d1d795cf31f9))
45
-
46
- ### BREAKING CHANGES
47
-
48
- - **sdk-core:** The SShare type's `r` field is now `R` (33 bytes encoded as 66 hex characters).
49
- ISSUE: BG-56664
50
-
51
- # [2.20.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.38...@bitgo/account-lib@2.20.0) (2022-07-19)
52
-
53
- **Note:** Version bump only for package @bitgo/account-lib
54
-
55
- # [2.20.0-rc.38](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.36...@bitgo/account-lib@2.20.0-rc.38) (2022-07-19)
56
-
57
- **Note:** Version bump only for package @bitgo/account-lib
58
-
59
- # [2.20.0-rc.37](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.36...@bitgo/account-lib@2.20.0-rc.37) (2022-07-18)
60
-
61
- **Note:** Version bump only for package @bitgo/account-lib
62
-
63
- # [2.20.0-rc.36](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.35...@bitgo/account-lib@2.20.0-rc.36) (2022-07-15)
64
-
65
- **Note:** Version bump only for package @bitgo/account-lib
66
-
67
- # [2.20.0-rc.35](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.33...@bitgo/account-lib@2.20.0-rc.35) (2022-07-15)
68
-
69
- ### Bug Fixes
70
-
71
- - **account-lib:** fix proper format for compressed hex points ([3882452](https://github.com/BitGo/BitGoJS/commit/38824529efbbb2481e951236960833637e6cf5c5))
72
-
73
- # [2.20.0-rc.34](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.33...@bitgo/account-lib@2.20.0-rc.34) (2022-07-14)
74
-
75
- **Note:** Version bump only for package @bitgo/account-lib
76
-
77
- # [2.20.0-rc.32](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.31...@bitgo/account-lib@2.20.0-rc.32) (2022-07-12)
78
-
79
- ### Features
80
-
81
- - **account-lib:** update hbar txData and explainTx to support diff instructions ([b604de6](https://github.com/BitGo/BitGoJS/commit/b604de6dad4d31cb83a673257e0c88a6c5934242))
82
-
83
- # [2.20.0-rc.31](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.30...@bitgo/account-lib@2.20.0-rc.31) (2022-07-11)
84
-
85
- ### Bug Fixes
86
-
87
- - sol ata init transactions ([c8ff4b9](https://github.com/BitGo/BitGoJS/commit/c8ff4b9174746ccbb664509e47a7bacce6a6b882))
88
- - update invalid files for depcheck ([6aae9aa](https://github.com/BitGo/BitGoJS/commit/6aae9aaf1cb70d65a75fa6d208eaa26d371443a6))
89
-
90
- ### Features
91
-
92
- - **sdk-coin-stx:** refactor stx to its own module ([80866b4](https://github.com/BitGo/BitGoJS/commit/80866b4161349efa513f801c0830029e5d5f36a3))
93
- - **sdk-coin-xtz:** refactor xtz to its own module ([241f580](https://github.com/BitGo/BitGoJS/commit/241f580c6711a186e36b11ec4ac3452b874bcacb))
94
-
95
- # [2.20.0-rc.30](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.29...@bitgo/account-lib@2.20.0-rc.30) (2022-07-07)
96
-
97
- ### Bug Fixes
98
-
99
- - **sdk-core:** make hex representation consistent ([ba493e9](https://github.com/BitGo/BitGoJS/commit/ba493e9a7d286197790c4d7e878aca83cf61d2fa))
100
-
101
- ### Features
102
-
103
- - **account-lib:** hbar token transfer builder and serialization ([0bc7287](https://github.com/BitGo/BitGoJS/commit/0bc72870b02a29e67df134022bde2c3750107a9b))
104
- - **account-lib:** token associate transaction builder for hedera accounts ([417c720](https://github.com/BitGo/BitGoJS/commit/417c7201b55c1fc546d52d5fd4daaf9390a3c480))
105
-
106
- # [2.20.0-rc.29](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.28...@bitgo/account-lib@2.20.0-rc.29) (2022-07-05)
107
-
108
- ### Bug Fixes
109
-
110
- - **account-lib:** upgrading celo contractkit to v2 ([fe267aa](https://github.com/BitGo/BitGoJS/commit/fe267aa66e75bc38dad0426c1392dc5472ed7eae))
111
-
112
- # [2.20.0-rc.28](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.27...@bitgo/account-lib@2.20.0-rc.28) (2022-07-01)
113
-
114
- ### Bug Fixes
115
-
116
- - **sdk-core:** fix ecdsa signing timeouts ([8ecd859](https://github.com/BitGo/BitGoJS/commit/8ecd859019effd29e0c25601110139cbe6eb8668))
117
-
118
- ### Features
119
-
120
- - **sdk-coin-avaxp:** add into accountLib umbrella ([9f0914d](https://github.com/BitGo/BitGoJS/commit/9f0914d6c3473f77e74c6b56345c3470a5cbb16c))
121
-
122
- # [2.20.0-rc.27](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.26...@bitgo/account-lib@2.20.0-rc.27) (2022-06-30)
123
-
124
- ### Bug Fixes
125
-
126
- - **account-lib:** fix ecdsa tests timeout issues ([12c86b2](https://github.com/BitGo/BitGoJS/commit/12c86b2dcbc24331ad47668829ec9f8eb131861f))
127
-
128
- # [2.20.0-rc.26](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.25...@bitgo/account-lib@2.20.0-rc.26) (2022-06-30)
129
-
130
- ### Bug Fixes
131
-
132
- - use correct address encoding when decoding polkadot txn ([99d4bdc](https://github.com/BitGo/BitGoJS/commit/99d4bdc237fcf126238455f7201ae51696e77566))
133
-
134
- # [2.20.0-rc.25](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.23...@bitgo/account-lib@2.20.0-rc.25) (2022-06-29)
135
-
136
- ### Features
137
-
138
- - **account-lib:** add support for ecdsa sigining and verification tss ([8600501](https://github.com/BitGo/BitGoJS/commit/8600501320f09df21d63f9c01341844cb9a01fe1))
139
- - **account-lib:** sol create ata for diff owner ([6b5e3a8](https://github.com/BitGo/BitGoJS/commit/6b5e3a8323fc9d8e242eebc0b3814042cb24cb7c))
140
-
141
- # [2.20.0-rc.24](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.23...@bitgo/account-lib@2.20.0-rc.24) (2022-06-29)
142
-
143
- ### Features
144
-
145
- - **account-lib:** add support for ecdsa sigining and verification tss ([8600501](https://github.com/BitGo/BitGoJS/commit/8600501320f09df21d63f9c01341844cb9a01fe1))
146
- - **account-lib:** sol create ata for diff owner ([6b5e3a8](https://github.com/BitGo/BitGoJS/commit/6b5e3a8323fc9d8e242eebc0b3814042cb24cb7c))
147
-
148
- # [2.20.0-rc.23](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.22...@bitgo/account-lib@2.20.0-rc.23) (2022-06-27)
149
-
150
- **Note:** Version bump only for package @bitgo/account-lib
151
-
152
- # [2.20.0-rc.22](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.21...@bitgo/account-lib@2.20.0-rc.22) (2022-06-23)
153
-
154
- **Note:** Version bump only for package @bitgo/account-lib
155
-
156
- # [2.20.0-rc.21](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.20...@bitgo/account-lib@2.20.0-rc.21) (2022-06-22)
157
-
158
- ### Bug Fixes
159
-
160
- - **account-lib:** fix chaincode to use correct modulo ([33db7a3](https://github.com/BitGo/BitGoJS/commit/33db7a3446d3d4b2d9d21ee5d88d3d6ff19e4ed0))
161
- - add dependency check to fix current and future dependency resolutions ([3074335](https://github.com/BitGo/BitGoJS/commit/30743356cff4ebb6d9e185f1a493b187614a1ea9))
162
-
163
- # [2.20.0-rc.20](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.19...@bitgo/account-lib@2.20.0-rc.20) (2022-06-21)
164
-
165
- ### Bug Fixes
166
-
167
- - **account-lib:** change etheremjs-utils-old alias ([a692047](https://github.com/BitGo/BitGoJS/commit/a69204787e9815d0f53ff44c781039e1b5ebc378))
168
-
169
- # [2.20.0-rc.19](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.18...@bitgo/account-lib@2.20.0-rc.19) (2022-06-16)
170
-
171
- **Note:** Version bump only for package @bitgo/account-lib
172
-
173
- # [2.20.0-rc.18](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.17...@bitgo/account-lib@2.20.0-rc.18) (2022-06-14)
174
-
175
- ### Features
176
-
177
- - tss - support user supplied entropy during signing ([29a0bea](https://github.com/BitGo/BitGoJS/commit/29a0bea4208f96c03c3aaac01069ca70c665b985))
178
-
179
- # [2.20.0-rc.17](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.16...@bitgo/account-lib@2.20.0-rc.17) (2022-06-14)
180
-
181
- **Note:** Version bump only for package @bitgo/account-lib
182
-
183
- # [2.20.0-rc.16](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.15...@bitgo/account-lib@2.20.0-rc.16) (2022-06-13)
184
-
185
- ### Bug Fixes
186
-
187
- - allow string and large values for csp transferId ([922915d](https://github.com/BitGo/BitGoJS/commit/922915d1406b5141a2dee8dc67be5c5f44edc34e))
188
-
189
- # [2.20.0-rc.15](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.14...@bitgo/account-lib@2.20.0-rc.15) (2022-06-10)
190
-
191
- ### Features
192
-
193
- - **account-lib:** add support for chaincode for key derivation in ecdsa ([e8c9faf](https://github.com/BitGo/BitGoJS/commit/e8c9faf5cce270bf36d01a2012941004a06556b2))
194
- - **account-lib:** add support for point multiplication in secp256k1 curve ([e8e00ab](https://github.com/BitGo/BitGoJS/commit/e8e00ab7ed935353ecaa88e865ba7f0348f40b69))
195
-
196
- # [2.20.0-rc.14](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.13...@bitgo/account-lib@2.20.0-rc.14) (2022-06-07)
197
-
198
- ### Bug Fixes
199
-
200
- - **sdk-core:** add paillier bigint dep ([a8cd71e](https://github.com/BitGo/BitGoJS/commit/a8cd71ea6b7ee9db98b4b004fb1661995dd94916))
201
- - **statics:** fix tsol token decimal ([3b66d7e](https://github.com/BitGo/BitGoJS/commit/3b66d7e5fa5277d63eb810b1c7b70607ce9ce663))
202
-
203
- # [2.20.0-rc.13](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.12...@bitgo/account-lib@2.20.0-rc.13) (2022-06-07)
204
-
205
- ### Features
206
-
207
- - **account-lib:** add support for ecdsa keyshare generation tss ([c71bc34](https://github.com/BitGo/BitGoJS/commit/c71bc3437af7f5bdf0d1ef19d53b05a4a232ffe4))
208
- - implement polygon util method, core skeleton ([562855a](https://github.com/BitGo/BitGoJS/commit/562855afea41458f9569c90914619a6d515b92c0))
209
-
210
- # [2.20.0-rc.12](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.11...@bitgo/account-lib@2.20.0-rc.12) (2022-06-02)
211
-
212
- **Note:** Version bump only for package @bitgo/account-lib
213
-
214
- # [2.20.0-rc.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.10...@bitgo/account-lib@2.20.0-rc.11) (2022-06-02)
215
-
216
- **Note:** Version bump only for package @bitgo/account-lib
217
-
218
- # [2.20.0-rc.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.9...@bitgo/account-lib@2.20.0-rc.10) (2022-06-01)
219
-
220
- ### Features
221
-
222
- - **account-lib:** add tests to verify self stacking STX tx builder ([88c6dd1](https://github.com/BitGo/BitGoJS/commit/88c6dd1962c8eb97e56ae7b8ba87b2cbb2446a9e))
223
- - **account-lib:** fix is valid account id ([b14f7d1](https://github.com/BitGo/BitGoJS/commit/b14f7d136441437ca4ae9bb7dcf14c283eabbcc7))
224
-
225
- # [2.20.0-rc.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.8...@bitgo/account-lib@2.20.0-rc.9) (2022-05-23)
226
-
227
- ### Features
228
-
229
- - **account-lib:** add support for secp256k1 curve ([7467f8c](https://github.com/BitGo/BitGoJS/commit/7467f8c1203d72247fa8a41d83088616229f6301))
230
-
231
- # [2.20.0-rc.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.7...@bitgo/account-lib@2.20.0-rc.8) (2022-05-19)
232
-
233
- **Note:** Version bump only for package @bitgo/account-lib
234
-
235
- # [2.20.0-rc.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.6...@bitgo/account-lib@2.20.0-rc.7) (2022-05-17)
236
-
237
- **Note:** Version bump only for package @bitgo/account-lib
238
-
239
- # [2.20.0-rc.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.5...@bitgo/account-lib@2.20.0-rc.6) (2022-05-16)
240
-
241
- **Note:** Version bump only for package @bitgo/account-lib
242
-
243
- # [2.20.0-rc.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.4...@bitgo/account-lib@2.20.0-rc.5) (2022-05-13)
244
-
245
- **Note:** Version bump only for package @bitgo/account-lib
246
-
247
- # [2.20.0-rc.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.3...@bitgo/account-lib@2.20.0-rc.4) (2022-05-13)
248
-
249
- **Note:** Version bump only for package @bitgo/account-lib
250
-
251
- # [2.20.0-rc.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.2...@bitgo/account-lib@2.20.0-rc.3) (2022-05-12)
252
-
253
- ### Features
254
-
255
- - **account-lib:** added missing exports for Near staking related builders ([4e4ea86](https://github.com/BitGo/BitGoJS/commit/4e4ea86c8e31453011cd6331485b536261fed676))
256
-
257
- # [2.20.0-rc.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.20.0-rc.0...@bitgo/account-lib@2.20.0-rc.1) (2022-05-06)
258
-
259
- ### Features
260
-
261
- - **bitgo:** add verify transaction in core for Near ([1fc0f7b](https://github.com/BitGo/BitGoJS/commit/1fc0f7bf0c5beb48d241357e716e26d4ccf85afa))
262
-
263
- # [2.19.0-rc.33](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.19.0...@bitgo/account-lib@2.19.0-rc.33) (2022-05-04)
264
-
265
- **Note:** Version bump only for package @bitgo/account-lib
266
-
267
- # [2.19.0-rc.31](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.19.0-rc.30...@bitgo/account-lib@2.19.0-rc.31) (2022-04-19)
268
-
269
- ### Features
270
-
271
- - **account-lib:** support creating TSS keyshares with seed ([6716720](https://github.com/BitGo/BitGoJS/commit/6716720705087d31bddc978b4c89ad0bf1a494bd))
272
-
273
- # [2.19.0-rc.30](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.19.0-rc.29...@bitgo/account-lib@2.19.0-rc.30) (2022-04-19)
274
-
275
- **Note:** Version bump only for package @bitgo/account-lib
276
-
277
- # [2.19.0-rc.28](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.19.0-rc.27...@bitgo/account-lib@2.19.0-rc.28) (2022-04-12)
278
-
279
- **Note:** Version bump only for package @bitgo/account-lib
280
-
281
- # [2.19.0-rc.27](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.19.0-rc.26...@bitgo/account-lib@2.19.0-rc.27) (2022-04-11)
282
-
283
- ### Bug Fixes
284
-
285
- - force secure urls unless disabled ([3b9edd5](https://github.com/BitGo/BitGoJS/commit/3b9edd593016f82fa69a4fe740ea706fe1daeee7))
286
- - update dot to address breaking changes in 7.15.1 ([a949618](https://github.com/BitGo/BitGoJS/commit/a949618de00b944b2d9729485f6b9ac4e6fced3f))
287
-
288
- # [2.19.0-rc.26](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.19.0-rc.21...@bitgo/account-lib@2.19.0-rc.26) (2022-04-08)
289
-
290
- ### Features
291
-
292
- - **account-lib:** change Near broadcast format from base58 to base64 ([8346017](https://github.com/BitGo/BitGoJS/commit/8346017db51c5e999f6fd469e67c51f4657a2432))
293
- - **account-lib:** token transfer intent STLX-13307 ([7476e30](https://github.com/BitGo/BitGoJS/commit/7476e30f8e64868b2cc151115057bf899c720dd6))
294
- - support tss hd signing ([3479e84](https://github.com/BitGo/BitGoJS/commit/3479e84c4e2d54dc9be0d1d2438df60c8a9036fe))
295
-
296
- # [2.19.0-rc.25](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.19.0-rc.21...@bitgo/account-lib@2.19.0-rc.25) (2022-04-06)
297
-
298
- ### Features
299
-
300
- - **account-lib:** token transfer intent STLX-13307 ([7476e30](https://github.com/BitGo/BitGoJS/commit/7476e30f8e64868b2cc151115057bf899c720dd6))
301
- - support tss hd signing ([3479e84](https://github.com/BitGo/BitGoJS/commit/3479e84c4e2d54dc9be0d1d2438df60c8a9036fe))
302
-
303
- # [2.19.0-rc.23](https://github.com/BitGo/BitGoJS/compare/@bitgo/account-lib@2.19.0-rc.21...@bitgo/account-lib@2.19.0-rc.23) (2022-04-05)
304
-
305
- ### Features
306
-
307
- - support tss hd signing ([3479e84](https://github.com/BitGo/BitGoJS/commit/3479e84c4e2d54dc9be0d1d2438df60c8a9036fe))
package/DEVELOPER.md DELETED
@@ -1,93 +0,0 @@
1
- # Developer Guide
2
-
3
- Thanks for contributing to this library. Below are some tips to help you
4
- understand:
5
-
6
- - the structure of the project
7
- - the important classes and how they are used
8
- - how to run the test suite
9
- - how to contribute to the project
10
-
11
- ## Project Architecture
12
-
13
- ### Base Classes
14
-
15
- As specified in [the project README](README.md), there are two main classes that
16
- users will interact with:
17
-
18
- - `TransactionBuilder`: A class that implements coin specific logic to handle
19
- the construction, validation, and signing of blockchain transactions.
20
- - `Transaction`: JavaScript representations of blockchain transactions.
21
-
22
- The `TransactionBuilder`'s job is to build and sign `transactions` for a
23
- specific blockchain.
24
-
25
- The flow typically looks something like:
26
-
27
- ```javascript
28
- // Import package
29
- const accountLib = require('@bitgo/account-lib');
30
-
31
- // Instantiate a TransactionBuilder for the blockchain you wish to
32
- // build a transaction for (in this case, Tron - testnet)
33
- const txBuilder = accountLib.getBuilder('ttrx');
34
-
35
- // Use the TransactionBuilder to build a transaction from JSON
36
- const unsignedJsonTx = {...coin specific tx json...};
37
- const txBuilder = txBuilder.from(unsignedJsonTx);
38
-
39
- // Sign the transaction using the TransactionBuilder
40
- txBuilder.sign({ key: 'SOME-PRIVATE-KEY' });
41
- const tx = await txBuilder.build();
42
-
43
- // Save it to json to be used elsewhere (or broadcast)
44
- const signedTxJson = tx.toJson();
45
- ```
46
-
47
- ### Coin Specific Implementations
48
-
49
- If you have spent time poking around the project, you likely noticed that we
50
- have base `TransactionBuilder` and base `Transaction` classes - they live in
51
- `src/coin/baseCoin`. These classes define the core interfaces that all
52
- subclasses will extend and implement.
53
-
54
- Coin specific implementations of the `TransactionBuilder` and `Transaction`
55
- classes live under the coin's ticker symbol in `src/coin` (ie: `src/coin/trx`
56
- for Tron). This is where the meat of the signing, validation, and encoding logic
57
- lives for each blockchain supported by the library.
58
-
59
- We recommend that you follow this pattern when adding a new coin to the library:
60
-
61
- ### Test Structure
62
-
63
- Account Lib comes with unit tests and it is expected that all changes introduced
64
- to the library increase test coverage. Tests live in `test`. Coin specific tests
65
- live in `test/unit/coin/<coin-ticker>/<coin-ticker.js>`.
66
-
67
- ## (External) Resources
68
-
69
- There are situations in which this library requires upstream dependencies, but
70
- you might not want to pull in the entire library only to use the tiny slice of
71
- functionality that we require. Rather, you can take snippets of the external
72
- code and stick them in `resources/`. See
73
- [the README in that directory for more information](resources/README.md).
74
-
75
- ## Running Tests
76
-
77
- To run the test suite locally:
78
-
79
- ```
80
- yarn test
81
- ```
82
-
83
- ## Coding Norms & Expectations
84
-
85
- When contributing, we recommend that you follow the existing patterns defined in
86
- the project. Pull requests that break these norms will likely be rejected or
87
- require a round of feedback.
88
-
89
- Take note:
90
-
91
- > Do not specify default accessors. In TypeScript, the default accessor for a
92
- > class attribute is `public`, so specifying it for functions and attributes is
93
- > redundant.
@@ -1,17 +0,0 @@
1
- # Resources
2
-
3
- This directory contains external logic required to handle signing/validation/address derivation for
4
- a specific coin.
5
-
6
- Typically, this manifests as a smaller snippet of code from a larger codebase, of which, this
7
- library only requires a small portion of.
8
-
9
- ---
10
-
11
- ## XTZ Resources
12
-
13
- Tezos multisig wallets are supported through smart contracts.
14
-
15
- Official repositories:
16
-
17
- - Generic multisig contract: https://github.com/murbard/smart-contracts/blob/master/multisig/michelson/generic.tz
@@ -1,2 +0,0 @@
1
- export * from './mainnet';
2
- export * from './westend';