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

elliptic -> @noble/* #59

Merged
merged 25 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
f4580bb
chore: add snapshot
nicolasbrugneaux Jan 18, 2024
2f85a38
wip: first attempt, the ecies file is not done
nicolasbrugneaux Jan 11, 2024
99e9ef9
wip
nicolasbrugneaux Jan 12, 2024
b740118
fix: ecies module works
nicolasbrugneaux Jan 17, 2024
58216e6
fix: ???
nicolasbrugneaux Jan 18, 2024
19a2a07
chore: remove unused concatkdf?
nicolasbrugneaux Jan 19, 2024
b6310f3
fix: types
nicolasbrugneaux Jan 19, 2024
fb979f8
fix: wallets
nicolasbrugneaux Jan 24, 2024
d607160
fix: wallet-gcp
nicolasbrugneaux Jan 24, 2024
1814ea2
fix: regression tests
nicolasbrugneaux Jan 24, 2024
2015dae
chore: add a note
nicolasbrugneaux Jan 24, 2024
a200bb5
chore: add changeset
nicolasbrugneaux Jan 24, 2024
6736150
fix: test
nicolasbrugneaux Jan 25, 2024
92abb08
Merge branch 'master' into elliptic-more-like-byelliptic
nicolasbrugneaux Feb 13, 2024
93f59c6
Merge branch 'master' into elliptic-more-like-byelliptic
nicolasbrugneaux Feb 23, 2024
c29fafb
Merge branch 'master' into elliptic-more-like-byelliptic
nicolasbrugneaux Mar 26, 2024
ff8b1bf
fix: web3 resolution
nicolasbrugneaux Mar 27, 2024
1c6d202
Refactor: dependencies dedup (such as keccaak, bip, etc) (#139)
nicolasbrugneaux Mar 28, 2024
cec4db7
chore: remove comment
nicolasbrugneaux Mar 28, 2024
9004f38
chore: changesets
nicolasbrugneaux Apr 2, 2024
e354920
chore: changesets wording
nicolasbrugneaux Apr 2, 2024
9f907ac
chore: changesets wording
nicolasbrugneaux Apr 2, 2024
df1bcd9
chore: remove comments
nicolasbrugneaux Apr 2, 2024
8cb2bd9
Merge branch 'master' into elliptic-more-like-byelliptic
nicolasbrugneaux Apr 2, 2024
10bf4d8
chore: regenerate docs
nicolasbrugneaux Apr 2, 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
5 changes: 5 additions & 0 deletions .changeset/angry-coats-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@celo/cryptographic-utils': minor
---

CHANGE - Replaced all deprecated cryptographic depencies with the audited and maintained suite of crypto libraries `@noble/*` and `@scure/*`
5 changes: 5 additions & 0 deletions .changeset/chilly-plums-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@celo/wallet-base': minor
---

CHANGE - Replaced all deprecated cryptographic depencies with the audited and maintained suite of crypto libraries `@noble/*` and `@scure/*`
6 changes: 6 additions & 0 deletions .changeset/cool-hairs-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@celo/utils': major
---

CHANGE - Replaced all deprecated cryptographic depencies with the audited and maintained suite of crypto libraries `@noble/*` and `@scure/*`
BREAKING - Some functions that used to return a `Buffer` now return a `UInt8Array` instead due to underlying changed
5 changes: 5 additions & 0 deletions .changeset/eighty-adults-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@celo/base': minor
---

CHANGE - Replaced all deprecated cryptographic depencies with the audited and maintained suite of crypto libraries `@noble/*` and `@scure/*`
5 changes: 5 additions & 0 deletions .changeset/hot-spoons-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@celo/wallet-hsm': patch
---

CHANGE - Update the code to match @celo/wallet-base changes
5 changes: 5 additions & 0 deletions .changeset/kind-eyes-confess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@celo/wallet-hsm-azure': patch
---

CHANGE - Update the code to match @celo/wallet-base changes
5 changes: 5 additions & 0 deletions .changeset/lazy-beans-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@celo/wallet-hsm-aws': patch
---

CHANGE - Update the code to match @celo/wallet-base changes
5 changes: 5 additions & 0 deletions .changeset/little-ears-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@celo/wallet-rpc': patch
---

CHANGE - Update the code to match @celo/wallet-base changes
5 changes: 5 additions & 0 deletions .changeset/neat-countries-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@celo/wallet-hsm-gcp': patch
---

CHANGE - Update the code to match @celo/wallet-base changes
5 changes: 5 additions & 0 deletions .changeset/orange-bats-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@celo/wallet-ledger': patch
---

CHANGE - Update the code to match @celo/wallet-base changes
5 changes: 5 additions & 0 deletions .changeset/pink-dragons-smile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@celo/wallet-remote': patch
---

CHANGE - Update the code to match @celo/wallet-base changes
5 changes: 5 additions & 0 deletions .changeset/purple-bikes-confess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@celo/wallet-local': patch
---

CHANGE - Update the code to match @celo/wallet-base changes
5 changes: 5 additions & 0 deletions .changeset/rotten-brooms-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@celo/governance': patch
---

CHANGE - Replaced all deprecated cryptographic depencies with the audited and maintained suite of crypto libraries `@noble/*` and `@scure/*`
5 changes: 5 additions & 0 deletions .changeset/selfish-moles-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@celo/explorer': patch
---

CHANGE - Replaced all deprecated cryptographic depencies with the audited and maintained suite of crypto libraries `@noble/*` and `@scure/*`
5 changes: 5 additions & 0 deletions .changeset/sixty-crabs-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@celo/celocli': patch
---

CHANGE - Replaced all deprecated cryptographic depencies with the audited and maintained suite of crypto libraries `@noble/*` and `@scure/*`
15 changes: 0 additions & 15 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ module.exports = {
},
extends: ['prettier'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './eslint.tsconfig.json',
sourceType: 'module',
},
plugins: ['eslint-plugin-unicorn', 'eslint-plugin-import', '@typescript-eslint'],
root: true,
rules: {
Expand Down Expand Up @@ -170,17 +166,6 @@ module.exports = {
'no-new-func': 'error',
'no-new-wrappers': 'error',
'no-redeclare': 'off',
'no-restricted-imports': [
'error',
{
paths: [
{
name: 'elliptic',
importNames: ['ec'],
},
],
},
],
'no-restricted-syntax': ['error', 'ForInStatement'],
'no-return-await': 'error',
'no-sequences': 'error',
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
},
"resolutions": {
"ganache": "npm:@celo/[email protected]",
"bip39": "https://github.com/bitcoinjs/bip39#a7ecbfe2e60d0214ce17163d610cad9f7b23140c",
"web3": "1.10.4",
"web3-utils": "1.10.4",
"blind-threshold-bls": "npm:@celo/[email protected]",
"@types/bn.js": "4.11.6",
"bignumber.js": "9.0.0"
Expand Down
1 change: 0 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"@oclif/plugin-warn-if-update-available": "^3.0.9",
"@types/command-exists": "^1.2.3",
"bignumber.js": "9.0.0",
"bip32": "3.1.0",
"chalk": "^2.4.2",
"command-exists": "^1.2.9",
"cross-fetch": "3.1.5",
Expand Down
12 changes: 6 additions & 6 deletions packages/docs/sdk/docs/base/interfaces/account.Bip39.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ ___

### mnemonicToSeed

• **mnemonicToSeed**: (`mnemonic`: `string`, `password?`: `string`) => `Promise`\<`Buffer`\>
• **mnemonicToSeed**: (`mnemonic`: `string`, `password?`: `string`) => `Promise`\<`Uint8Array`\>

#### Type declaration

▸ (`mnemonic`, `password?`): `Promise`\<`Buffer`\>
▸ (`mnemonic`, `password?`): `Promise`\<`Uint8Array`\>

##### Parameters

Expand All @@ -58,7 +58,7 @@ ___

##### Returns

`Promise`\<`Buffer`\>
`Promise`\<`Uint8Array`\>

#### Defined in

Expand All @@ -68,11 +68,11 @@ ___

### mnemonicToSeedSync

• **mnemonicToSeedSync**: (`mnemonic`: `string`, `password?`: `string`) => `Buffer`
• **mnemonicToSeedSync**: (`mnemonic`: `string`, `password?`: `string`) => `Uint8Array`

#### Type declaration

▸ (`mnemonic`, `password?`): `Buffer`
▸ (`mnemonic`, `password?`): `Uint8Array`

##### Parameters

Expand All @@ -83,7 +83,7 @@ ___

##### Returns

`Buffer`
`Uint8Array`

#### Defined in

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ ___

### mnemonicToSeed

• **mnemonicToSeed**: (`mnemonic`: `string`, `password?`: `string`) => `Promise`\<`Buffer`\>
• **mnemonicToSeed**: (`mnemonic`: `string`, `password?`: `string`) => `Promise`\<`Uint8Array`\>

#### Type declaration

▸ (`mnemonic`, `password?`): `Promise`\<`Buffer`\>
▸ (`mnemonic`, `password?`): `Promise`\<`Uint8Array`\>

##### Parameters

Expand All @@ -58,7 +58,7 @@ ___

##### Returns

`Promise`\<`Buffer`\>
`Promise`\<`Uint8Array`\>

#### Defined in

Expand All @@ -68,11 +68,11 @@ ___

### mnemonicToSeedSync

• **mnemonicToSeedSync**: (`mnemonic`: `string`, `password?`: `string`) => `Buffer`
• **mnemonicToSeedSync**: (`mnemonic`: `string`, `password?`: `string`) => `Uint8Array`

#### Type declaration

▸ (`mnemonic`, `password?`): `Buffer`
▸ (`mnemonic`, `password?`): `Uint8Array`

##### Parameters

Expand All @@ -83,7 +83,7 @@ ___

##### Returns

`Buffer`
`Uint8Array`

#### Defined in

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#### Defined in

[cryptographic-utils/src/commentEncryption.ts:16](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/cryptographic-utils/src/commentEncryption.ts#L16)
[cryptographic-utils/src/commentEncryption.ts:17](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/cryptographic-utils/src/commentEncryption.ts#L17)

___

Expand All @@ -29,4 +29,4 @@ ___

#### Defined in

[cryptographic-utils/src/commentEncryption.ts:15](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/cryptographic-utils/src/commentEncryption.ts#L15)
[cryptographic-utils/src/commentEncryption.ts:16](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/cryptographic-utils/src/commentEncryption.ts#L16)
1 change: 1 addition & 0 deletions packages/docs/sdk/docs/cryptographic-utils/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
- [dataEncryptionKey](modules/dataEncryptionKey.md)
- [index](modules/index.md)
- [types](modules/types.md)
- [wordlists](modules/wordlists.md)
Loading
Loading