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

Unification of sdk-wallet into sdk-core #522

Merged
merged 177 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
177 commits
Select commit Hold shift + click to select a range
058e93a
Sketch mnemonic class.
andreibancioiu Dec 3, 2020
4fe3533
Sketch private key class.
andreibancioiu Dec 3, 2020
fe7e0ef
Compute public keys.
andreibancioiu Dec 3, 2020
4b7344d
WIP - Migrate toKeyFileObject.
andreibancioiu Dec 3, 2020
c192bb4
JSON keyfiles - generate and load. Tests.
andreibancioiu Dec 7, 2020
7afc3b7
Bit of benchmarking for scryptsy.
andreibancioiu Dec 9, 2020
661d6a3
Sketch BLS migration.
andreibancioiu Dec 9, 2020
77d7244
Fix, test signing.
andreibancioiu Jan 11, 2021
df33d2c
Rename files, re-group.
andreibancioiu Jan 11, 2021
eb22b24
PEM files. Signer components.
andreibancioiu Jan 11, 2021
70eb4a2
Rename private -> secret.
andreibancioiu Jan 11, 2021
b48994b
Add tests, fix tests.
andreibancioiu Jan 11, 2021
38c145a
Fix after merge.
andreibancioiu Jan 12, 2021
676b984
Fix after review, part 1.
andreibancioiu Jan 15, 2021
6748803
Fix after review, part 2.
andreibancioiu Jan 15, 2021
1b7bd12
Merge branch 'development' into abi
andreibancioiu Jan 28, 2021
66760e4
Add test for signing using PEM file.
andreibancioiu Feb 10, 2021
a6478f8
Extra checks, error handling and tests for PEM parsing etc.
andreibancioiu Feb 10, 2021
937001e
Make tweetnacl use Uint8Array
arhtudormorar Feb 10, 2021
f369b66
Fixes necessary for automatic publishing of elrond-sdk-docs (#201)
andreibancioiu Feb 17, 2021
0f4115e
Merge branch 'development' into abi
andreibancioiu Feb 17, 2021
fc88864
Fix some tests upon merge.
andreibancioiu Feb 17, 2021
2607ddc
Fix after review.
andreibancioiu Mar 10, 2021
e7344a6
implemented encryption component
ccorcoveanu Jun 18, 2021
702268d
implemented encryption component
ccorcoveanu Jun 18, 2021
77f3306
add json decoed function for EncryptedData
ccorcoveanu Jun 22, 2021
1145192
Add contract wrapper
claudiu725 Jun 28, 2021
1f93e0d
added empty line
ccorcoveanu Jun 29, 2021
a4b511e
added empty line
ccorcoveanu Jun 29, 2021
a0950fc
typo fix
ccorcoveanu Jul 1, 2021
db62fd4
Merge pull request #14 from ElrondNetwork/development
ccorcoveanu Jul 5, 2021
afb67aa
Merge pull request #20 from ElrondNetwork/feat/nft-token
claudiulataretu Jul 8, 2021
fb1a364
Merge pull request #22 from ElrondNetwork/development
claudiulataretu Jul 8, 2021
0cd3700
message signing progress
ccorcoveanu Jul 15, 2021
cf57740
finished message signing implementation
ccorcoveanu Jul 15, 2021
912d1d2
Merge pull request #30 from ElrondNetwork/development
ccorcoveanu Jul 16, 2021
57c6a7a
exported user verifier
ccorcoveanu Jul 20, 2021
b4e1672
Merge pull request #31 from ElrondNetwork/bugfix-export-user-verifier
ccorcoveanu Jul 20, 2021
10b89b8
Merge pull request #32 from ElrondNetwork/development
ccorcoveanu Jul 20, 2021
47c52c7
Merge pull request #33 from ElrondNetwork/login-token
ccorcoveanu Jul 21, 2021
59b0a9b
Merge pull request #36 from ElrondNetwork/development
ccorcoveanu Jul 21, 2021
01b1e66
Merge commit '3e3db61a69e75abce880141545a12b0f0a1cb85a' into contract…
claudiu725 Jul 28, 2021
e4e5d04
Merge pull request #9 from ElrondNetwork/contract-wrapper
claudiu725 Aug 9, 2021
afeacb6
Merge branch 'development' of github.com:ElrondNetwork/elrond-sdk-erd…
radumojic Aug 11, 2021
894bbda
Merge pull request #50 from ElrondNetwork/walletconnect-provider-toke…
ccorcoveanu Aug 11, 2021
58bc47e
Fix remaining imports.
andreibancioiu Mar 14, 2022
5eb84e4
Merge remote-tracking branch 'temp/main' into copy-crypto-folder
andreibancioiu Mar 23, 2022
8ca8d3c
Merge pull request #1 from ElrondNetwork/copy-crypto-folder
andreibancioiu Mar 23, 2022
b2d88da
Partial fixes after extraction.
andreibancioiu Mar 23, 2022
dc389ca
Fix tests upon extraction. Implement dummy test doubles.
andreibancioiu Mar 23, 2022
a24eeea
Fix browser tests.
andreibancioiu Mar 23, 2022
cdc7b74
Fix after self-review.
andreibancioiu Mar 23, 2022
336a46c
Fix after review.
andreibancioiu Mar 25, 2022
6058931
Merge pull request #2 from ElrondNetwork/fixes-after-extraction
andreibancioiu Mar 25, 2022
651277a
encryptor partial implementation
ccorcoveanu Aug 11, 2022
bc5089a
finished encryptor
ccorcoveanu Aug 12, 2022
04b0d01
add decryptor and basic unit tests
ccorcoveanu Aug 16, 2022
0f213d9
add empty line
ccorcoveanu Aug 16, 2022
c6e1cfd
fix after review
ccorcoveanu Aug 16, 2022
650ac40
fix after review
ccorcoveanu Aug 24, 2022
b48d3b8
implement 'half deterministic nonce'
ccorcoveanu Aug 24, 2022
e414dea
Merge pull request #8 from ElrondNetwork/x25519-encryption
ccorcoveanu Aug 24, 2022
5b31179
fixed changelog, export encryptor/decryptor and prepared release
ccorcoveanu Aug 24, 2022
bb4c079
Merge pull request #9 from ElrondNetwork/bump-version
ccorcoveanu Aug 24, 2022
b0cb66d
added guardianSigner
schimih Sep 12, 2022
a96e5ca
minor fix
schimih Sep 12, 2022
7efe921
Merge branch 'main' into guardianSigner
schimih Sep 12, 2022
88c5f91
fixes after review
schimih Oct 19, 2022
201be39
fix
schimih Oct 19, 2022
dac65bc
changed `guardian.sign()` to `guardian.guard()`
schimih Oct 19, 2022
ec31e5e
fixes after review
schimih Oct 19, 2022
1ab3c69
Elrond to MultiversX (part 1).
andreibancioiu Jan 6, 2023
2538954
Merge pull request #15 from multiversx/rebranding-01
andreibancioiu Jan 9, 2023
6e2f2c3
Rename package: sdk-wallet.
andreibancioiu Jan 11, 2023
006991e
Merge pull request #16 from multiversx/rebranding-03
andreibancioiu Jan 11, 2023
570dfce
Use sdk-bls-wasm from new organization.
andreibancioiu Jan 11, 2023
8029c43
Merge pull request #17 from multiversx/reference-bls-wasm
andreibancioiu Jan 11, 2023
a988993
Sketch wallet.json with mnemonic / arbitrary data.
andreibancioiu Jan 26, 2023
06b8a8c
Merge branch 'main' into guardianSigner
schimih Jan 26, 2023
847c733
Test for shorter mnemonics (12 words).
andreibancioiu Jan 30, 2023
baf215e
Add version checks, add unit tests.
andreibancioiu Jan 30, 2023
6f16027
Fix after review (point 4).
andreibancioiu Feb 1, 2023
1577e46
Revert version-related changes. Keystore version remains v4.
andreibancioiu Feb 2, 2023
645a218
Extra type safety.
andreibancioiu Feb 2, 2023
ec013a0
Fix after self-review.
andreibancioiu Feb 2, 2023
f7e646a
Merge pull request #19 from multiversx/wallet-v5
andreibancioiu Feb 6, 2023
2e1c1ed
Merge branch 'main' into guardianSigner
andreibancioiu Feb 22, 2023
7cdc80b
Do not handle user's signature in GuardianSigner (simplification).
andreibancioiu Feb 22, 2023
7ad21ff
Attempt to avoid breaking change.
andreibancioiu Feb 23, 2023
c71d332
Drop some interfaces.
andreibancioiu Feb 23, 2023
0f6f76a
Simplify test object.
andreibancioiu Feb 23, 2023
11a1ea7
Merge pull request #20 from multiversx/drop-some-interfaces
andreibancioiu Feb 23, 2023
dd6c529
Simplified Verify(), to receive the raw data and the signature.
andreibancioiu Feb 24, 2023
b6294e7
Remove interfaces: ISigner, ISignable. Now, signer.sign() returns the…
andreibancioiu Feb 24, 2023
ec6b3a3
Fix after self-review.
andreibancioiu Feb 24, 2023
7443453
Merge pull request #22 from multiversx/verify-24
andreibancioiu Feb 24, 2023
efd160d
Merge pull request #23 from multiversx/simplify-interface
andreibancioiu Feb 24, 2023
413ba47
Merge branch 'feat/next' into guardianSigner
andreibancioiu Feb 24, 2023
802f7a0
Merge pull request #10 from multiversx/guardianSigner
andreibancioiu Feb 27, 2023
b15f6d1
Bit of decoupling.
andreibancioiu Mar 13, 2023
c73b739
Merge pull request #25 from multiversx/next-13
andreibancioiu Mar 21, 2023
19dc566
@noble/ed25519 for sign & verify (user wallets).
andreibancioiu Mar 21, 2023
88bc18d
Add benchmark for sign & verify (before switching to noble crypto libs).
andreibancioiu Mar 21, 2023
98d9db4
Merge pull request #26 from multiversx/benchmark-sign-verify
andreibancioiu Mar 21, 2023
38a9176
Merge branch 'feat/next' into noble-ed25519
andreibancioiu Mar 21, 2023
5dc401e
Fix after self-review.
andreibancioiu Mar 21, 2023
486ae63
Merge pull request #27 from multiversx/noble-ed25519
andreibancioiu Mar 22, 2023
a84cb3d
Merge pull request #24 from multiversx/feat/next
andreibancioiu Mar 22, 2023
8c341c2
Automatically handle both kinds of keystores in "UserWallet.loadSecre…
andreibancioiu May 8, 2023
67b19c8
Add extra unit test.
andreibancioiu May 8, 2023
19d1426
Fix after review.
andreibancioiu May 9, 2023
203f63a
Merge pull request #39 from multiversx/handle-keystores
andreibancioiu May 9, 2023
322257a
Workaround: receive Uint8Array instead of Buffer.
andreibancioiu May 24, 2023
36d64fd
Reference buffer in globals (temporary workaround).
andreibancioiu May 24, 2023
c91a71d
Workaround on constructor.
andreibancioiu May 24, 2023
ad1bbe9
Fix get public key.
andreibancioiu May 24, 2023
351abcb
Add proper casts.
andreibancioiu May 24, 2023
45db24d
Merge pull request #40 from multiversx/uint8array-vs-buffer
andreibancioiu May 24, 2023
f46cc4c
add extra check
popenta Dec 6, 2023
87eb57d
remove only
popenta Dec 6, 2023
cc4d2e6
add extra assert for unit test
popenta Dec 6, 2023
9e797c5
add new line
popenta Dec 6, 2023
1366cf1
make error more explicit
popenta Dec 7, 2023
7470df5
Merge pull request #43 from multiversx/add-extra-check-decrypt-secret…
popenta Dec 7, 2023
bc60489
Remove Axios as dev-dependency.
andreibancioiu Jan 17, 2024
fe4d5f8
Merge pull request #44 from multiversx/dev-dependencies-2024-01-17
andreibancioiu Jan 18, 2024
f27408d
Accept "Uint8Array", in addition to "Buffer" on the main flows.
andreibancioiu Mar 21, 2024
dc50113
Merge pull request #47 from multiversx/next-core
andreibancioiu Mar 21, 2024
cac0eee
Sketch support for custom HRP.
andreibancioiu May 14, 2024
3b4400e
Add "newFromBech32", in addition to the legacy "fromBech32".
andreibancioiu May 14, 2024
ee264ef
Undo some changes, add "internal" markers, add some tests.
andreibancioiu May 14, 2024
01b9715
Deprecation notice.
andreibancioiu May 14, 2024
26ee76a
Add library config.
andreibancioiu May 15, 2024
5794b87
Merge pull request #48 from multiversx/custom-hrp
andreibancioiu May 27, 2024
5352a6d
Add mnemonicToEntropy and entropyToMnemonic.
andreibancioiu Oct 1, 2024
a5e0017
Handle some errors.
andreibancioiu Oct 1, 2024
2f74baa
Fix import.
andreibancioiu Oct 1, 2024
4fb5e5c
Fix imports.
andreibancioiu Oct 1, 2024
74bb771
Merge pull request #52 from multiversx/entropy-1
andreibancioiu Oct 1, 2024
8bc371c
Merge remote-tracking branch 'wallet/main' into merge-wallet
danielailie Oct 2, 2024
de45867
Merge pull request #490 from multiversx/merge-wallet
danielailie Oct 2, 2024
cfaed6e
Update folder structure
danielailie Oct 3, 2024
350d50f
Merge pull request #493 from multiversx/TOOL-264-bring-sdk-wallet-int…
danielailie Oct 3, 2024
09713c3
remove sdk-wallet dependency and fix import
danielailie Oct 8, 2024
2c15a07
Merge pull request #496 from multiversx/TOOL-264-bring-sdk-wallet-int…
danielailie Oct 8, 2024
928092e
Refactor testutils, remove duplicated files
danielailie Oct 10, 2024
e944d9f
Remove unused signature class
danielailie Oct 10, 2024
962ea3b
Merge pull request #502 from multiversx/TOOL-264-bring-sdk-wallet-int…
danielailie Oct 10, 2024
4a35ef6
Merge error files
danielailie Oct 10, 2024
78bcbb4
Add handle for Uint8Array on signature
danielailie Oct 10, 2024
23dbb86
Change let to const
danielailie Oct 10, 2024
e0c7db1
Remove primitives file
danielailie Oct 10, 2024
6cd9f47
Merge pull request #503 from multiversx/TOOL-264-bring-sdk-wallet-int…
danielailie Oct 14, 2024
10c93ed
Merge pull request #504 from multiversx/TOOL-264-bring-sdk-wallet-int…
danielailie Oct 14, 2024
996a8e5
Make axios and bls optional
danielailie Oct 14, 2024
6f260e4
Add axios and bls handling in case not install
danielailie Oct 14, 2024
df8d1ad
Update readme and move axios to constructor
danielailie Oct 15, 2024
fe5f1b4
Merge pull request #505 from multiversx/TOOL-264-bring-sdk-wallet-int…
danielailie Oct 15, 2024
1c9e326
Mark ITransactionNext as deprecated
danielailie Oct 15, 2024
6ceb8be
Fix typo
danielailie Oct 15, 2024
cf98adc
Merge pull request #509 from multiversx/TOOL-264-bring-sdk-wallet-int…
danielailie Oct 15, 2024
56afdaa
Merge pull request #510 from multiversx/main
danielailie Oct 15, 2024
e519e5e
Bump version
danielailie Oct 15, 2024
d44485a
fix version bump for alpha release
danielailie Oct 15, 2024
7993026
Merge pull request #511 from multiversx/TOOL-264-bring-sdk-wallet-int…
danielailie Oct 15, 2024
bb10ad7
Update version for alpha release
danielailie Oct 16, 2024
cf3b92b
Merge pull request #513 from multiversx/UpdateVersion
danielailie Oct 16, 2024
47145ab
Make bip39 optional
danielailie Oct 21, 2024
9393d4f
Bump version
danielailie Oct 21, 2024
f920ae6
Remove redundant comment
danielailie Oct 21, 2024
778ae19
Merge pull request #517 from multiversx/MakeBip39Optional
danielailie Oct 21, 2024
bdcc4de
Merge branch 'main' into MergeMainInFeat
danielailie Oct 21, 2024
ced12ce
Remove inner transaction and relayer field
danielailie Oct 21, 2024
78b94b3
Merge pull request #518 from multiversx/MergeMainInFeat
danielailie Oct 21, 2024
17fe9af
Bump version and update export
danielailie Oct 28, 2024
0f82f37
Update versions
danielailie Oct 28, 2024
567d5f5
Merge pull request #521 from multiversx/PrepareReleaseAndUpdateEports
danielailie Oct 28, 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
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
},
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
"prettier.printWidth": 120
}
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,32 @@ npm install --global browserify
npm install esmify --no-save
```

## Optional Dependencies

### axios

This package can make HTTP requests using `axios`, which is not bundled by default. If you plan to use the API network provider or Proxy network provider, make sure to install `axios`:

```bash
npm install axios
```

### @multiversx/sdk-bls-wasm

This package requires `@multiversx/sdk-bls-wasm` for BLS (Boneh-Lynn-Shacham) cryptographic functions, which is not bundled by default. If you plan to use BLS functionality, make sure to install this optional dependency:

```bash
npm install @multiversx/sdk-bls-wasm
```

### bip39

This package provides mnemonic and seed generation functionality using `bip39`, but it is not bundled by default. If you plan to use mnemonic-related features, make sure to install this optional dependency:

```bash
npm install bip39
```

### Building the library

In order to compile the library, run the following:
Expand Down
Loading
Loading