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

[Merge Branch] Feature/lit 1498 js sdk merge e2e nodejs branch into v3 #221

Merged
Merged
Show file tree
Hide file tree
Changes from 202 commits
Commits
Show all changes
203 commits
Select commit Hold shift + click to select a range
e3b9a3d
update ecdsa sdk
May 8, 2023
73e0629
refactor combiination entry point for new method signature
May 8, 2023
767c18f
update ecdsa-sdk from ecdsa wasm
May 9, 2023
3c305ca
updates for new cait sith ecdsa-sdk
May 9, 2023
5c20480
Merge branch 'master' of github.com:LIT-Protocol/js-sdk into integrat…
May 9, 2023
d9cfb71
fixes to key remapping
May 9, 2023
4bf4ce3
update to crypto tests for ecdsa sdk
May 9, 2023
902664c
Merge branch 'master' of github.com:LIT-Protocol/js-sdk into integrat…
May 10, 2023
7507936
update tests for sign recombination
May 11, 2023
47646f4
remove unused import
May 11, 2023
088c89c
Add new ECDSA signature types
May 11, 2023
4af74cb
remove enum from types
May 11, 2023
153afc6
add enum for ecdsa key type.
May 11, 2023
350a848
update enums
May 11, 2023
df72f76
remove static v value from test
May 11, 2023
309503f
update ecdsa-sdk with new recid calculation
May 15, 2023
5b81f85
fix update to ecdsa-sdk for recid fixes
May 15, 2023
52e5e2c
Integrate new BLS WASM
hwrdtm Jun 14, 2023
c48f68e
Update crypto wrappers around BLS WASM
hwrdtm Jun 14, 2023
1ce2602
Add return types to utility functions
hwrdtm Jun 14, 2023
8134bf8
Use generics in IEither
hwrdtm Jun 14, 2023
c51cf9a
Use generics in IEither
hwrdtm Jun 14, 2023
a4f6b2b
Refactor param validation, add coverage, use IEither to return error …
hwrdtm Jun 14, 2023
d9d782f
Fix map
hwrdtm Jun 14, 2023
f2212fc
Fix crypto package logic + tests
hwrdtm Jun 14, 2023
4fe63af
Update encryption helpers and integrate new BLS encryption to lit-nod…
hwrdtm Jun 14, 2023
dde3868
Remove jalapeno support and make serrano the default
hwrdtm Jun 14, 2023
3df13fb
Build fixes + bug fixes
hwrdtm Jun 15, 2023
17b1558
Make demo app use TS
hwrdtm Jun 15, 2023
7dc7d04
Use better names, fixes
hwrdtm Jun 15, 2023
a9bd44d
Fix bug, make errors more verbose
hwrdtm Jun 16, 2023
c67df58
Update encryption logic in demo app
hwrdtm Jun 16, 2023
cda0f1d
Couple of important bug fixes + tidy up
hwrdtm Jun 16, 2023
802851e
Demo using human-readable strings
hwrdtm Jun 16, 2023
3e5b46a
Update comments and JSDocs
hwrdtm Jun 17, 2023
4d751ad
Fix bugs, update all e2e & manual tests, simplify encryptString to ju…
hwrdtm Jun 21, 2023
4bb0a14
Update bls-sdk,crypto with verify_signature, implement demo-locked-ex…
hwrdtm Jun 24, 2023
ae35bcd
Add getSignedToken + verification to e2e tests
hwrdtm Jun 24, 2023
ff937b5
Update manual_tests for signed JWT tests
hwrdtm Jun 24, 2023
85f7671
Cleanup
hwrdtm Jun 24, 2023
60b621b
Fix types
hwrdtm Jul 7, 2023
af3f59b
Use cayenne as default
hwrdtm Jul 10, 2023
9ad5af3
Update to cayenne contracts
hwrdtm Jul 10, 2023
e6c90bb
Merge remote-tracking branch 'origin/integrate/cait-sith' into feat/S…
Jul 17, 2023
f6c292d
fix tsc error
Jul 17, 2023
d2b15e8
rebuilt wasm module
Jul 17, 2023
42115e3
bump major to 3 -> 3.0.0
Jul 17, 2023
4ac71ed
add sig type
Jul 17, 2023
5182e80
fix test and sig combination logic
Jul 17, 2023
2152927
update logic for removing postifxed polarity on signature
Jul 18, 2023
ab340bb
upgrade signature combination for cait sith changes
Jul 27, 2023
1db195b
update test
Jul 27, 2023
29e4ad8
upgrade crypto and ecdsa lib for hd key signature and public key deri…
Jul 28, 2023
4d11c65
add support for public key derivation
Jul 28, 2023
1ba9c92
update claim and signing tests
Jul 29, 2023
ca1785f
add auth callback statement
Jul 31, 2023
e3edec2
updates for new enums on nodes
Aug 4, 2023
67bb831
add hd key support
Aug 8, 2023
e038f30
update claim impls
Aug 9, 2023
38af96f
add rootkeys to handshake
Aug 9, 2023
be3d1c1
add mint claim callback
Aug 11, 2023
c896dda
update claim types per node updates
Aug 15, 2023
9b06618
remove key id from signing request
Aug 16, 2023
83263dd
chore: update pkgs in lit auth example
sarahzdev Aug 16, 2023
b4a9f09
Revert "chore: update pkgs in lit auth example"
Aug 16, 2023
fc00d58
Merge pull request #194 from LIT-Protocol/feat/update-mint-relay
sarahzdev Aug 15, 2023
a8641c2
merge of pr #194 fixes
Aug 16, 2023
bba8c01
implement relay fetch call
Aug 17, 2023
cc5076a
add telem endpoint
Aug 20, 2023
310db0f
fix build issues from merge
Aug 20, 2023
5502d4c
fix types
Aug 22, 2023
5e083bb
migrate hd pubkey method from lit-node-client to lit-core
Aug 22, 2023
38fb2dd
update claim endpoint
Aug 24, 2023
e73e53a
updates for key claiming
Aug 25, 2023
daca2bb
wip update contracts
Aug 27, 2023
4113755
update manifest urls and add access token headers on fetch
Aug 27, 2023
e3e3230
move sig reformatting to client
Aug 29, 2023
d8b78b3
read auth method acc token from cfg
Aug 29, 2023
3cf6cf2
update contract-client
Aug 29, 2023
8bc8e23
updates for cayenne
Aug 30, 2023
321fe77
update lit config for auth method pass through
Aug 30, 2023
cacac45
update sig recomb for new key type value
Aug 30, 2023
e58231d
update tests
Aug 30, 2023
1edb949
update contract addresses for cayenne
Aug 31, 2023
47b807c
add contract ignore statement
Aug 31, 2023
7343cb2
update contract sdk bindings
Aug 31, 2023
36c09be
update contracts lookup for cayenne
Aug 31, 2023
8416123
update claim types for explicit claim processing types.
Aug 31, 2023
b2ddd61
add check for expiration on auth sig generation
Sep 1, 2023
30cdc58
update type comment
Sep 1, 2023
81d963a
fix import
Sep 1, 2023
07adf2f
change network for demo
Sep 3, 2023
7c94ef9
update relay endpoints
Sep 3, 2023
ed2d623
update relay url
Sep 6, 2023
5221c87
update relayer endpoint
Sep 6, 2023
aa7ba68
update import
Sep 6, 2023
5f02b2f
get rp id from origin domain
Sep 6, 2023
e9fd949
remove check for webauthn from claim
Sep 6, 2023
5a940ed
add logging of request id on http request failure
Sep 6, 2023
ca1e088
update function name
Sep 6, 2023
fe9ea5c
revery webauthn create options url change
Sep 7, 2023
4f1cca5
Published Version 2.2.54
Sep 7, 2023
fde352c
fmt
Sep 7, 2023
fdf604b
update baseProvider claimKey
Sep 7, 2023
c99670e
type update
Sep 7, 2023
fa1da27
[Master <> V3 Merge] Feature/lit 1322 js sdk merge in v3 to revamp br…
Ansonhkg Sep 8, 2023
5865079
add connect call to claimKeyId
Sep 8, 2023
aa1e51a
remove access list contract
Sep 11, 2023
e303a0c
update contract addresses
Sep 11, 2023
119e910
remove allow list
Sep 11, 2023
81887a0
remove access control conditions contract
Sep 11, 2023
7d5a5d2
add WithAuthMethodSigning type
Sep 11, 2023
a44bde9
update contract manifest
Sep 11, 2023
8be57e6
update deployment addresses
Sep 11, 2023
c777fe4
remove twillio otp auth provider
Sep 11, 2023
4c2a45e
remove duplicated package
Ansonhkg Sep 12, 2023
b4e7ef3
feat: ability to npm link and unlink packages
Ansonhkg Sep 12, 2023
b3d9cea
feat: add scripts to either bun/npm link
Ansonhkg Sep 12, 2023
f6c480b
getSignatures works
Ansonhkg Sep 12, 2023
96a698e
fix: publish version
Ansonhkg Sep 12, 2023
4d14f3c
feat: ES2021 to make "replaceAll" work
Ansonhkg Sep 12, 2023
cb67dab
fix: add chore back to be able to publish
Ansonhkg Sep 12, 2023
b494b5b
fix: had to add "DOM" to use global "crypto"
Ansonhkg Sep 12, 2023
b81e0d2
feat: add script to generate config
Ansonhkg Sep 12, 2023
78b499c
feat: add flatten object
Ansonhkg Sep 12, 2023
e7bac38
fix: when lit action is used as pure serverless function
Ansonhkg Sep 12, 2023
489a917
fix: general worker api
Ansonhkg Sep 12, 2023
64ad86b
chore: add success exit
Ansonhkg Sep 12, 2023
c6f3a52
enable nx cache
Ansonhkg Sep 12, 2023
a3bc0a4
remove nx cache
Ansonhkg Sep 13, 2023
8683003
Feat/manual claim test (#213)
glitch003 Sep 13, 2023
be7ef16
Merge branch 'master' into feat/SDK-V3
glitch003 Sep 13, 2023
f9c51d7
built
glitch003 Sep 13, 2023
5425540
add check for sig properties before conversion
Sep 13, 2023
0e42adf
update config
Ansonhkg Sep 13, 2023
29b4f85
update config
Ansonhkg Sep 13, 2023
b0df9d8
Merge branch 'feat/SDK-V3' of https://github.com/LIT-Protocol/js-sdk …
Ansonhkg Sep 13, 2023
2b11ea6
feat: add UNKNOWN_SIGNATURE_ERROR
Ansonhkg Sep 13, 2023
1ad8753
updates for claim key comments and abstractions
Sep 13, 2023
4ff1f75
fix typescript errors with nodejs app
glitch003 Sep 13, 2023
805d41d
Feature/easier local node testing (#215)
glitch003 Sep 14, 2023
c898b8d
feat: script to enable/disable nx build cache
Ansonhkg Sep 14, 2023
e2f2649
chore: update text
Ansonhkg Sep 14, 2023
fc18bac
feat: add bun test script
Ansonhkg Sep 14, 2023
1369be5
chore: make test exit
Ansonhkg Sep 14, 2023
b83f15d
chore: bun test lit node client
Ansonhkg Sep 14, 2023
2799773
Update executeJs for claim processing from execution response
Sep 14, 2023
1379672
chage claim test
Sep 14, 2023
39c5474
add new error type
Sep 14, 2023
9cd5ef0
Merge branch 'feat/SDK-V3' of github.com:LIT-Protocol/js-sdk into fea…
Sep 14, 2023
daffa89
ref loop to map stmt
Sep 15, 2023
224da3f
add lit actions comment
Sep 15, 2023
c05f62b
add claim combiner test
Sep 15, 2023
986b7b2
update comments
Sep 15, 2023
4da3c5a
disallow webauthn authentication
Sep 15, 2023
e5197f7
add explicit return type
Sep 15, 2023
924431c
Merge branch 'feat/SDK-V3' of github.com:LIT-Protocol/js-sdk into fea…
glitch003 Sep 15, 2023
f1de98f
make cayenne use 3 nodes by default (#217)
glitch003 Sep 16, 2023
ae7bdc4
Merge branch 'feat/SDK-V3' of github.com:LIT-Protocol/js-sdk into fea…
Sep 16, 2023
69a5a8d
update key claim combiner and types
Sep 17, 2023
baa4ddf
Feature/fixes to manual test for local chronicle node (#218)
glitch003 Sep 19, 2023
f08be09
first pass
Ansonhkg Sep 19, 2023
f2380ff
add address conversion
Sep 19, 2023
f7f1485
Merge branch 'feat/SDK-V3' of github.com:LIT-Protocol/js-sdk into fea…
Sep 19, 2023
fdf3860
update api docs for v3
Sep 19, 2023
18bb5ac
format account addr to eip-55
Sep 19, 2023
4bd6d82
add casing normalize to eth sign message check
Sep 19, 2023
06ed9f9
bump version to 3.0.1
Sep 19, 2023
ac430f0
bump version 3.0.2
Sep 19, 2023
3f4d054
feat: add e2e-nodejs tests
Ansonhkg Sep 20, 2023
3e569c6
feat: add the ability to test by group
Ansonhkg Sep 20, 2023
9a7ff53
update project id
Sep 20, 2023
0ee73d4
update api docs
Sep 20, 2023
d5f4e7a
feat: add test to LitNodeClientNodejs
Ansonhkg Sep 20, 2023
4e356b7
docs: update
Ansonhkg Sep 20, 2023
471394b
fix: access controls conditions tests
Ansonhkg Sep 20, 2023
942bd6b
add auth method scopes and pkp helper method
Sep 20, 2023
a690086
add pkp helper methods
Sep 20, 2023
a351cf2
feat: add contracts-sdk tests
Ansonhkg Sep 20, 2023
0734ff3
fix: min nodes
Ansonhkg Sep 20, 2023
a42c6ad
chore: update contracts
Ansonhkg Sep 20, 2023
9a61eb6
fix: add allowJs: true
Ansonhkg Sep 20, 2023
1f7364d
feat: add more tests
Ansonhkg Sep 20, 2023
976af78
wip
Ansonhkg Sep 20, 2023
f17865a
fix: pkp sign recover works
Ansonhkg Sep 20, 2023
a5ed589
wip
Ansonhkg Sep 20, 2023
785490a
fix: use sha256 to check dataSigned
Ansonhkg Sep 20, 2023
8b5c7d9
Hash the toSign parameter before signing in tests (#220)
glitch003 Sep 21, 2023
4ff3ee4
wip: all new e2e tests passed so far, continue..
Ansonhkg Sep 21, 2023
737432a
feat: pkp sui works
Ansonhkg Sep 21, 2023
ae9041b
🚀 all unit tests passed, next e2e nodejs
Ansonhkg Sep 21, 2023
9159b32
update: github CI
Ansonhkg Sep 21, 2023
2481e79
chore: change to use html instead of react for testing
Ansonhkg Sep 21, 2023
53e3f29
ci update
Ansonhkg Sep 21, 2023
483c950
chore: indentation
Ansonhkg Sep 21, 2023
84dfbc7
fix: error message
Ansonhkg Sep 21, 2023
1218e72
Empty-Commit
Ansonhkg Sep 21, 2023
f8e4952
fix: to use pkpSign & passed all pkp-ethers tests
Ansonhkg Sep 21, 2023
33c6c75
fix: pkp client works too
Ansonhkg Sep 21, 2023
e96cfd8
🚀 OK. All Good
Ansonhkg Sep 21, 2023
91054a7
Merge branch 'feature/lit-1487-js-sdk-fix-unit-testing-for-300cayenne…
Ansonhkg Sep 22, 2023
097e858
docs: update
Ansonhkg Sep 22, 2023
952f7ab
resolve comments
Ansonhkg Sep 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Environment:**
- Lit SDK version (including the network (ie, "serrano") if different, and type - browser or backend)
- Lit SDK version (including the network (ie, "cayenne") if different, and type - browser or backend)
- Node version
- Framework (React, Vue, Angular, Svelte - just Plain HTML!, etc)
- Specific tooling (Webpack, Vite, browserify, etc)
Expand Down
160 changes: 104 additions & 56 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/demo-email-sms-auth/src/Otp.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {newSessionCapabilityObject, LitAccessControlConditionResource, LitAbilit
export function Otp() {
let [state, setState] = useState('start');
const litNodeClient = new LitNodeClient({
litNetwork: "serrano",
litNetwork: "cayenne",
debug: true
});
const authClient = new LitAuthClient({
Expand Down
7 changes: 6 additions & 1 deletion apps/demo-encrypt-decrypt-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@
"private": true,
"dependencies": {
"@lit-protocol/lit-node-client": "^2.1.158",
"@monaco-editor/react": "^4.4.6",
"@monaco-editor/react": "^4.5.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^29.4.0",
"@types/node": "^18.11.19",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"typescript": "^4.9.5",
"web-vitals": "^2.1.4"
},
"scripts": {
Expand Down
331 changes: 0 additions & 331 deletions apps/demo-encrypt-decrypt-react/src/App.js

This file was deleted.

Loading
Loading