-
Notifications
You must be signed in to change notification settings - Fork 68
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
Feature/fixes to manual test for local chronicle node #218
Merged
joshLong145
merged 2 commits into
feat/SDK-V3
from
feature/fixes-to-manual-test-for-local-chronicle-node
Sep 19, 2023
Merged
Feature/fixes to manual test for local chronicle node #218
joshLong145
merged 2 commits into
feat/SDK-V3
from
feature/fixes-to-manual-test-for-local-chronicle-node
Sep 19, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…o propagate to the local chronicle replica
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
joshLong145
approved these changes
Sep 19, 2023
joshLong145
deleted the
feature/fixes-to-manual-test-for-local-chronicle-node
branch
September 19, 2023 16:37
Ansonhkg
added a commit
that referenced
this pull request
Sep 25, 2023
#221) * update ecdsa sdk * refactor combiination entry point for new method signature * update ecdsa-sdk from ecdsa wasm * updates for new cait sith ecdsa-sdk * fixes to key remapping * update to crypto tests for ecdsa sdk * update tests for sign recombination * remove unused import * Add new ECDSA signature types * remove enum from types * add enum for ecdsa key type. * update enums * remove static v value from test * update ecdsa-sdk with new recid calculation * fix update to ecdsa-sdk for recid fixes * Integrate new BLS WASM * Update crypto wrappers around BLS WASM * Add return types to utility functions * Use generics in IEither * Use generics in IEither * Refactor param validation, add coverage, use IEither to return error instead of throwing * Fix map * Fix crypto package logic + tests * Update encryption helpers and integrate new BLS encryption to lit-node-client-nodejs package * Remove jalapeno support and make serrano the default * Build fixes + bug fixes * Make demo app use TS * Use better names, fixes * Fix bug, make errors more verbose * Update encryption logic in demo app * Couple of important bug fixes + tidy up * Demo using human-readable strings * Update comments and JSDocs * Fix bugs, update all e2e & manual tests, simplify encryptString to just arrayify utf-16 strings * Update bls-sdk,crypto with verify_signature, implement demo-locked-express-app * Add getSignedToken + verification to e2e tests * Update manual_tests for signed JWT tests * Cleanup * Fix types * Use cayenne as default * Update to cayenne contracts * fix tsc error * rebuilt wasm module * bump major to 3 -> 3.0.0 * add sig type * fix test and sig combination logic * update logic for removing postifxed polarity on signature * upgrade signature combination for cait sith changes * update test * upgrade crypto and ecdsa lib for hd key signature and public key derivation * add support for public key derivation * update claim and signing tests * add auth callback statement * updates for new enums on nodes * add hd key support * update claim impls * add rootkeys to handshake * add mint claim callback * update claim types per node updates * remove key id from signing request * chore: update pkgs in lit auth example * Revert "chore: update pkgs in lit auth example" This reverts commit 83263dd. * Merge pull request #194 from LIT-Protocol/feat/update-mint-relay feat: support new mint and fetch endpoints * merge of pr #194 fixes * implement relay fetch call * add telem endpoint * fix build issues from merge * fix types * migrate hd pubkey method from lit-node-client to lit-core * update claim endpoint * updates for key claiming * wip update contracts * update manifest urls and add access token headers on fetch * move sig reformatting to client * read auth method acc token from cfg * update contract-client * updates for cayenne * update lit config for auth method pass through * update sig recomb for new key type value * update tests * update contract addresses for cayenne * add contract ignore statement * update contract sdk bindings * update contracts lookup for cayenne * update claim types for explicit claim processing types. * add check for expiration on auth sig generation * update type comment * fix import * change network for demo * update relay endpoints * update relay url * update relayer endpoint * update import * get rp id from origin domain * remove check for webauthn from claim * add logging of request id on http request failure * update function name * revery webauthn create options url change * Published Version 2.2.54 * fmt * update baseProvider claimKey * type update * [Master <> V3 Merge] Feature/lit 1322 js sdk merge in v3 to revamp branch (#209) * Feature/lit 856 add sych support (#186) * start stych refactor * add basic token validation for otp authentication * updates from testing * remove stale types * remove test data from test source * type fixes * typo * fmt * type updates * initigrate both otp auth methods * version 2.2.42 * fix provider options union * fix base provider relay body * Published Version 2.2.43 * Use setup-node GH action with yarn caching (#180) * Use setup-node GH action with yarn caching * Add step name * fix url route formatting * Published Version 2.2.44 --alpha * add public goods network (#190) * Feature/pkp sui (#185) * feat: add pkp-sui * feat: add pkp-sui test * fix typo * change to use bs58 * fix pkp-sui test fix typo Devnet is reset weekly, Testnet was reset on May 11 --------- Co-authored-by: Yoonhyoung-Lee <[email protected]> * Publish version 2.2.45 * feat: add optimismGoerli * Published version 2.2.46 * feat: add manual tests on optimismGoerli * docs: update pkp-sui readme (#191) Co-authored-by: Yoonhyoung-Lee <[email protected]> * added waev chain (#192) * Pass in statement from authCallbackParams to signSessionKey (#193) * wip: support new mint endpoint * wip: update lit-auth-client demo app * wip: expand provider options, export stytch * wip: local testing * chore: remove logs, local relay * misc: update copy in demo app * fix: different type to represent data for registering auth methods * fix: handle parsing err * fix: set routes * Fix/humanize acc (#196) * updates from contract abi import * update test * feat: option to not build into react app * Published version 2.2.49 * chore: update pkgs in lit auth example * feat: support WC v2 for lit-connect-modal (#197) * Revert to 3118e29 * Revert "chore: update pkgs in lit auth example" This reverts commit 3118e29. * Revert "feat: support WC v2 for lit-connect-modal (#197)" This reverts commit a3b83cd. * [V2/V3] [Feat] Update lit modal to support wallet connect (#198) * feat: support wc v2 for lit-connect-modal * chore: remove old file * - moved lit-connect-model dependency * Update esbuilder/lit-connect-modal/esbuild.js Co-authored-by: Adarsh-Kumar28 <[email protected]> Signed-off-by: Anson <[email protected]> * fix: minor changes required --------- Signed-off-by: Anson <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * Published version 2.2.50 * chore: update pkgs * docs: update lit-connect-modal demo readme Signed-off-by: sarah z <[email protected]> * fix webauth options generation url endpoint * Published Version 2.2.53 * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * [V2/V3] feat: add handshake body checks on 'successful' handhshakes (#207) * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * fix: build issues * revery webauthn create options url change * Published Version 2.2.54 * explicit any types --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Co-authored-by: Bean <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * add connect call to claimKeyId * remove access list contract * update contract addresses * remove allow list * remove access control conditions contract * add WithAuthMethodSigning type * update contract manifest * update deployment addresses * remove twillio otp auth provider * remove duplicated package * feat: ability to npm link and unlink packages * feat: add scripts to either bun/npm link * getSignatures works * fix: publish version * feat: ES2021 to make "replaceAll" work * fix: add chore back to be able to publish * fix: had to add "DOM" to use global "crypto" * feat: add script to generate config * feat: add flatten object * fix: when lit action is used as pure serverless function * fix: general worker api * chore: add success exit * enable nx cache * remove nx cache * Feat/manual claim test (#213) * add manual claim test * got past last error * fixing stuff as i go * remove manual overrides for relay url. use cayenne which seems to work fine now * test working but wrong derived pubkey * more debugging * fix tests * remove local overrides * Added lit action fixes * it works * use cayenne * added 2 signatures * built * add check for sig properties before conversion * update config * update config * feat: add UNKNOWN_SIGNATURE_ERROR * updates for claim key comments and abstractions * fix typescript errors with nodejs app * Feature/easier local node testing (#215) * fix typescript errors with nodejs app * config and docs for testing against a local node * local testing works * restore cayenne contracts * add env var docs * cleanup * feat: script to enable/disable nx build cache * chore: update text * feat: add bun test script * chore: make test exit * chore: bun test lit node client * Update executeJs for claim processing from execution response * chage claim test * add new error type * ref loop to map stmt * add lit actions comment * add claim combiner test * update comments * disallow webauthn authentication * add explicit return type * make cayenne use 3 nodes by default (#217) * update key claim combiner and types * Feature/fixes to manual test for local chronicle node (#218) * added a sleep to the manual test so there's time for the minted PKP to propagate to the local chronicle replica * debug: false * first pass * add address conversion * update api docs for v3 * format account addr to eip-55 * add casing normalize to eth sign message check * bump version to 3.0.1 * bump version 3.0.2 * feat: add e2e-nodejs tests * feat: add the ability to test by group * update project id * update api docs * feat: add test to LitNodeClientNodejs * docs: update * fix: access controls conditions tests * add auth method scopes and pkp helper method * add pkp helper methods * feat: add contracts-sdk tests * fix: min nodes * chore: update contracts * fix: add allowJs: true * feat: add more tests * wip * fix: pkp sign recover works * wip * fix: use sha256 to check dataSigned * Hash the toSign parameter before signing in tests (#220) * wip: all new e2e tests passed so far, continue.. * feat: pkp sui works * 🚀 all unit tests passed, next e2e nodejs * update: github CI * chore: change to use html instead of react for testing * ci update * chore: indentation * fix: error message * Empty-Commit * fix: to use pkpSign & passed all pkp-ethers tests * fix: pkp client works too * 🚀 OK. All Good * docs: update * resolve comments --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Co-authored-by: Josh Long <[email protected]> Co-authored-by: Howard Tam <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]>
Ansonhkg
added a commit
that referenced
this pull request
Sep 25, 2023
#221) (#222) * update ecdsa sdk * refactor combiination entry point for new method signature * update ecdsa-sdk from ecdsa wasm * updates for new cait sith ecdsa-sdk * fixes to key remapping * update to crypto tests for ecdsa sdk * update tests for sign recombination * remove unused import * Add new ECDSA signature types * remove enum from types * add enum for ecdsa key type. * update enums * remove static v value from test * update ecdsa-sdk with new recid calculation * fix update to ecdsa-sdk for recid fixes * Integrate new BLS WASM * Update crypto wrappers around BLS WASM * Add return types to utility functions * Use generics in IEither * Use generics in IEither * Refactor param validation, add coverage, use IEither to return error instead of throwing * Fix map * Fix crypto package logic + tests * Update encryption helpers and integrate new BLS encryption to lit-node-client-nodejs package * Remove jalapeno support and make serrano the default * Build fixes + bug fixes * Make demo app use TS * Use better names, fixes * Fix bug, make errors more verbose * Update encryption logic in demo app * Couple of important bug fixes + tidy up * Demo using human-readable strings * Update comments and JSDocs * Fix bugs, update all e2e & manual tests, simplify encryptString to just arrayify utf-16 strings * Update bls-sdk,crypto with verify_signature, implement demo-locked-express-app * Add getSignedToken + verification to e2e tests * Update manual_tests for signed JWT tests * Cleanup * Fix types * Use cayenne as default * Update to cayenne contracts * fix tsc error * rebuilt wasm module * bump major to 3 -> 3.0.0 * add sig type * fix test and sig combination logic * update logic for removing postifxed polarity on signature * upgrade signature combination for cait sith changes * update test * upgrade crypto and ecdsa lib for hd key signature and public key derivation * add support for public key derivation * update claim and signing tests * add auth callback statement * updates for new enums on nodes * add hd key support * update claim impls * add rootkeys to handshake * add mint claim callback * update claim types per node updates * remove key id from signing request * chore: update pkgs in lit auth example * Revert "chore: update pkgs in lit auth example" This reverts commit 83263dd. * Merge pull request #194 from LIT-Protocol/feat/update-mint-relay feat: support new mint and fetch endpoints * merge of pr #194 fixes * implement relay fetch call * add telem endpoint * fix build issues from merge * fix types * migrate hd pubkey method from lit-node-client to lit-core * update claim endpoint * updates for key claiming * wip update contracts * update manifest urls and add access token headers on fetch * move sig reformatting to client * read auth method acc token from cfg * update contract-client * updates for cayenne * update lit config for auth method pass through * update sig recomb for new key type value * update tests * update contract addresses for cayenne * add contract ignore statement * update contract sdk bindings * update contracts lookup for cayenne * update claim types for explicit claim processing types. * add check for expiration on auth sig generation * update type comment * fix import * change network for demo * update relay endpoints * update relay url * update relayer endpoint * update import * get rp id from origin domain * remove check for webauthn from claim * add logging of request id on http request failure * update function name * revery webauthn create options url change * Published Version 2.2.54 * fmt * update baseProvider claimKey * type update * [Master <> V3 Merge] Feature/lit 1322 js sdk merge in v3 to revamp branch (#209) * Feature/lit 856 add sych support (#186) * start stych refactor * add basic token validation for otp authentication * updates from testing * remove stale types * remove test data from test source * type fixes * typo * fmt * type updates * initigrate both otp auth methods * version 2.2.42 * fix provider options union * fix base provider relay body * Published Version 2.2.43 * Use setup-node GH action with yarn caching (#180) * Use setup-node GH action with yarn caching * Add step name * fix url route formatting * Published Version 2.2.44 --alpha * add public goods network (#190) * Feature/pkp sui (#185) * feat: add pkp-sui * feat: add pkp-sui test * fix typo * change to use bs58 * fix pkp-sui test fix typo Devnet is reset weekly, Testnet was reset on May 11 --------- * Publish version 2.2.45 * feat: add optimismGoerli * Published version 2.2.46 * feat: add manual tests on optimismGoerli * docs: update pkp-sui readme (#191) * added waev chain (#192) * Pass in statement from authCallbackParams to signSessionKey (#193) * wip: support new mint endpoint * wip: update lit-auth-client demo app * wip: expand provider options, export stytch * wip: local testing * chore: remove logs, local relay * misc: update copy in demo app * fix: different type to represent data for registering auth methods * fix: handle parsing err * fix: set routes * Fix/humanize acc (#196) * updates from contract abi import * update test * feat: option to not build into react app * Published version 2.2.49 * chore: update pkgs in lit auth example * feat: support WC v2 for lit-connect-modal (#197) * Revert to 3118e29 * Revert "chore: update pkgs in lit auth example" This reverts commit 3118e29. * Revert "feat: support WC v2 for lit-connect-modal (#197)" This reverts commit a3b83cd. * [V2/V3] [Feat] Update lit modal to support wallet connect (#198) * feat: support wc v2 for lit-connect-modal * chore: remove old file * - moved lit-connect-model dependency * Update esbuilder/lit-connect-modal/esbuild.js * fix: minor changes required --------- * Published version 2.2.50 * chore: update pkgs * docs: update lit-connect-modal demo readme * fix webauth options generation url endpoint * Published Version 2.2.53 * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * [V2/V3] feat: add handshake body checks on 'successful' handhshakes (#207) * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * fix: build issues * revery webauthn create options url change * Published Version 2.2.54 * explicit any types --------- * add connect call to claimKeyId * remove access list contract * update contract addresses * remove allow list * remove access control conditions contract * add WithAuthMethodSigning type * update contract manifest * update deployment addresses * remove twillio otp auth provider * remove duplicated package * feat: ability to npm link and unlink packages * feat: add scripts to either bun/npm link * getSignatures works * fix: publish version * feat: ES2021 to make "replaceAll" work * fix: add chore back to be able to publish * fix: had to add "DOM" to use global "crypto" * feat: add script to generate config * feat: add flatten object * fix: when lit action is used as pure serverless function * fix: general worker api * chore: add success exit * enable nx cache * remove nx cache * Feat/manual claim test (#213) * add manual claim test * got past last error * fixing stuff as i go * remove manual overrides for relay url. use cayenne which seems to work fine now * test working but wrong derived pubkey * more debugging * fix tests * remove local overrides * Added lit action fixes * it works * use cayenne * added 2 signatures * built * add check for sig properties before conversion * update config * update config * feat: add UNKNOWN_SIGNATURE_ERROR * updates for claim key comments and abstractions * fix typescript errors with nodejs app * Feature/easier local node testing (#215) * fix typescript errors with nodejs app * config and docs for testing against a local node * local testing works * restore cayenne contracts * add env var docs * cleanup * feat: script to enable/disable nx build cache * chore: update text * feat: add bun test script * chore: make test exit * chore: bun test lit node client * Update executeJs for claim processing from execution response * chage claim test * add new error type * ref loop to map stmt * add lit actions comment * add claim combiner test * update comments * disallow webauthn authentication * add explicit return type * make cayenne use 3 nodes by default (#217) * update key claim combiner and types * Feature/fixes to manual test for local chronicle node (#218) * added a sleep to the manual test so there's time for the minted PKP to propagate to the local chronicle replica * debug: false * first pass * add address conversion * update api docs for v3 * format account addr to eip-55 * add casing normalize to eth sign message check * bump version to 3.0.1 * bump version 3.0.2 * feat: add e2e-nodejs tests * feat: add the ability to test by group * update project id * update api docs * feat: add test to LitNodeClientNodejs * docs: update * fix: access controls conditions tests * add auth method scopes and pkp helper method * add pkp helper methods * feat: add contracts-sdk tests * fix: min nodes * chore: update contracts * fix: add allowJs: true * feat: add more tests * wip * fix: pkp sign recover works * wip * fix: use sha256 to check dataSigned * Hash the toSign parameter before signing in tests (#220) * wip: all new e2e tests passed so far, continue.. * feat: pkp sui works * 🚀 all unit tests passed, next e2e nodejs * update: github CI * chore: change to use html instead of react for testing * ci update * chore: indentation * fix: error message * Empty-Commit * fix: to use pkpSign & passed all pkp-ethers tests * fix: pkp client works too * 🚀 OK. All Good * docs: update * resolve comments --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Co-authored-by: Josh Long <[email protected]> Co-authored-by: Howard Tam <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]>
Ansonhkg
added a commit
that referenced
this pull request
Oct 9, 2023
* upgrade signature combination for cait sith changes * update test * upgrade crypto and ecdsa lib for hd key signature and public key derivation * add support for public key derivation * update claim and signing tests * add auth callback statement * updates for new enums on nodes * add hd key support * update claim impls * add rootkeys to handshake * add mint claim callback * update claim types per node updates * Fix/humanize acc (#196) * updates from contract abi import * update test * feat: option to not build into react app * Published version 2.2.49 * chore: update pkgs in lit auth example * remove key id from signing request * chore: update pkgs in lit auth example * Revert "chore: update pkgs in lit auth example" This reverts commit 83263dd. * Merge pull request #194 from LIT-Protocol/feat/update-mint-relay feat: support new mint and fetch endpoints * merge of pr #194 fixes * feat: support WC v2 for lit-connect-modal (#197) * implement relay fetch call * add telem endpoint * fix build issues from merge * Revert to 3118e29 * Revert "chore: update pkgs in lit auth example" This reverts commit 3118e29. * Revert "feat: support WC v2 for lit-connect-modal (#197)" This reverts commit a3b83cd. * fix types * migrate hd pubkey method from lit-node-client to lit-core * [V2/V3] [Feat] Update lit modal to support wallet connect (#198) * feat: support wc v2 for lit-connect-modal * chore: remove old file * - moved lit-connect-model dependency * Update esbuilder/lit-connect-modal/esbuild.js Co-authored-by: Adarsh-Kumar28 <[email protected]> Signed-off-by: Anson <[email protected]> * fix: minor changes required --------- Signed-off-by: Anson <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * Published version 2.2.50 * update claim endpoint * chore: update pkgs * updates for key claiming * docs: update lit-connect-modal demo readme Signed-off-by: sarah z <[email protected]> * wip update contracts * update manifest urls and add access token headers on fetch * move sig reformatting to client * read auth method acc token from cfg * update contract-client * updates for cayenne * update lit config for auth method pass through * update sig recomb for new key type value * update tests * update contract addresses for cayenne * add contract ignore statement * update contract sdk bindings * update contracts lookup for cayenne * update claim types for explicit claim processing types. * add check for expiration on auth sig generation * update type comment * fix import * change network for demo * update relay endpoints * fix webauth options generation url endpoint * Published Version 2.2.53 * [V2/V3] feat: add handshake body checks on 'successful' handhshakes (#207) * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * update relay url * update relayer endpoint * update import * get rp id from origin domain * remove check for webauthn from claim * add logging of request id on http request failure * update function name * revery webauthn create options url change * Published Version 2.2.54 * fmt * update baseProvider claimKey * type update * [Master <> V3 Merge] Feature/lit 1322 js sdk merge in v3 to revamp branch (#209) * Feature/lit 856 add sych support (#186) * start stych refactor * add basic token validation for otp authentication * updates from testing * remove stale types * remove test data from test source * type fixes * typo * fmt * type updates * initigrate both otp auth methods * version 2.2.42 * fix provider options union * fix base provider relay body * Published Version 2.2.43 * Use setup-node GH action with yarn caching (#180) * Use setup-node GH action with yarn caching * Add step name * fix url route formatting * Published Version 2.2.44 --alpha * add public goods network (#190) * Feature/pkp sui (#185) * feat: add pkp-sui * feat: add pkp-sui test * fix typo * change to use bs58 * fix pkp-sui test fix typo Devnet is reset weekly, Testnet was reset on May 11 --------- Co-authored-by: Yoonhyoung-Lee <[email protected]> * Publish version 2.2.45 * feat: add optimismGoerli * Published version 2.2.46 * feat: add manual tests on optimismGoerli * docs: update pkp-sui readme (#191) Co-authored-by: Yoonhyoung-Lee <[email protected]> * added waev chain (#192) * Pass in statement from authCallbackParams to signSessionKey (#193) * wip: support new mint endpoint * wip: update lit-auth-client demo app * wip: expand provider options, export stytch * wip: local testing * chore: remove logs, local relay * misc: update copy in demo app * fix: different type to represent data for registering auth methods * fix: handle parsing err * fix: set routes * Fix/humanize acc (#196) * updates from contract abi import * update test * feat: option to not build into react app * Published version 2.2.49 * chore: update pkgs in lit auth example * feat: support WC v2 for lit-connect-modal (#197) * Revert to 3118e29 * Revert "chore: update pkgs in lit auth example" This reverts commit 3118e29. * Revert "feat: support WC v2 for lit-connect-modal (#197)" This reverts commit a3b83cd. * [V2/V3] [Feat] Update lit modal to support wallet connect (#198) * feat: support wc v2 for lit-connect-modal * chore: remove old file * - moved lit-connect-model dependency * Update esbuilder/lit-connect-modal/esbuild.js Co-authored-by: Adarsh-Kumar28 <[email protected]> Signed-off-by: Anson <[email protected]> * fix: minor changes required --------- Signed-off-by: Anson <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * Published version 2.2.50 * chore: update pkgs * docs: update lit-connect-modal demo readme Signed-off-by: sarah z <[email protected]> * fix webauth options generation url endpoint * Published Version 2.2.53 * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * [V2/V3] feat: add handshake body checks on 'successful' handhshakes (#207) * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * fix: build issues * revery webauthn create options url change * Published Version 2.2.54 * explicit any types --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Co-authored-by: Bean <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * add connect call to claimKeyId * remove access list contract * update contract addresses * remove allow list * remove access control conditions contract * add WithAuthMethodSigning type * update contract manifest * update deployment addresses * remove twillio otp auth provider * remove duplicated package * feat: ability to npm link and unlink packages * feat: add scripts to either bun/npm link * getSignatures works * fix: publish version * feat: ES2021 to make "replaceAll" work * fix: add chore back to be able to publish * fix: had to add "DOM" to use global "crypto" * feat: add script to generate config * feat: add flatten object * fix: when lit action is used as pure serverless function * fix: general worker api * chore: add success exit * enable nx cache * remove nx cache * Feat/manual claim test (#213) * add manual claim test * got past last error * fixing stuff as i go * remove manual overrides for relay url. use cayenne which seems to work fine now * test working but wrong derived pubkey * more debugging * fix tests * remove local overrides * Added lit action fixes * it works * use cayenne * added 2 signatures * built * add check for sig properties before conversion * update config * update config * feat: add UNKNOWN_SIGNATURE_ERROR * updates for claim key comments and abstractions * fix typescript errors with nodejs app * Feature/easier local node testing (#215) * fix typescript errors with nodejs app * config and docs for testing against a local node * local testing works * restore cayenne contracts * add env var docs * cleanup * feat: script to enable/disable nx build cache * chore: update text * feat: add bun test script * chore: make test exit * chore: bun test lit node client * Update executeJs for claim processing from execution response * chage claim test * add new error type * ref loop to map stmt * add lit actions comment * add claim combiner test * update comments * disallow webauthn authentication * add explicit return type * make cayenne use 3 nodes by default (#217) * update key claim combiner and types * Feature/fixes to manual test for local chronicle node (#218) * added a sleep to the manual test so there's time for the minted PKP to propagate to the local chronicle replica * debug: false * add address conversion * update api docs for v3 * format account addr to eip-55 * add casing normalize to eth sign message check * bump version to 3.0.1 * bump version 3.0.2 * update project id * update api docs * add auth method scopes and pkp helper method * add pkp helper methods * Hash the toSign parameter before signing in tests (#220) * [Merge Branch] Feature/lit 1498 js sdk merge e2e nodejs branch into v3 (#221) * update ecdsa sdk * refactor combiination entry point for new method signature * update ecdsa-sdk from ecdsa wasm * updates for new cait sith ecdsa-sdk * fixes to key remapping * update to crypto tests for ecdsa sdk * update tests for sign recombination * remove unused import * Add new ECDSA signature types * remove enum from types * add enum for ecdsa key type. * update enums * remove static v value from test * update ecdsa-sdk with new recid calculation * fix update to ecdsa-sdk for recid fixes * Integrate new BLS WASM * Update crypto wrappers around BLS WASM * Add return types to utility functions * Use generics in IEither * Use generics in IEither * Refactor param validation, add coverage, use IEither to return error instead of throwing * Fix map * Fix crypto package logic + tests * Update encryption helpers and integrate new BLS encryption to lit-node-client-nodejs package * Remove jalapeno support and make serrano the default * Build fixes + bug fixes * Make demo app use TS * Use better names, fixes * Fix bug, make errors more verbose * Update encryption logic in demo app * Couple of important bug fixes + tidy up * Demo using human-readable strings * Update comments and JSDocs * Fix bugs, update all e2e & manual tests, simplify encryptString to just arrayify utf-16 strings * Update bls-sdk,crypto with verify_signature, implement demo-locked-express-app * Add getSignedToken + verification to e2e tests * Update manual_tests for signed JWT tests * Cleanup * Fix types * Use cayenne as default * Update to cayenne contracts * fix tsc error * rebuilt wasm module * bump major to 3 -> 3.0.0 * add sig type * fix test and sig combination logic * update logic for removing postifxed polarity on signature * upgrade signature combination for cait sith changes * update test * upgrade crypto and ecdsa lib for hd key signature and public key derivation * add support for public key derivation * update claim and signing tests * add auth callback statement * updates for new enums on nodes * add hd key support * update claim impls * add rootkeys to handshake * add mint claim callback * update claim types per node updates * remove key id from signing request * chore: update pkgs in lit auth example * Revert "chore: update pkgs in lit auth example" This reverts commit 83263dd. * Merge pull request #194 from LIT-Protocol/feat/update-mint-relay feat: support new mint and fetch endpoints * merge of pr #194 fixes * implement relay fetch call * add telem endpoint * fix build issues from merge * fix types * migrate hd pubkey method from lit-node-client to lit-core * update claim endpoint * updates for key claiming * wip update contracts * update manifest urls and add access token headers on fetch * move sig reformatting to client * read auth method acc token from cfg * update contract-client * updates for cayenne * update lit config for auth method pass through * update sig recomb for new key type value * update tests * update contract addresses for cayenne * add contract ignore statement * update contract sdk bindings * update contracts lookup for cayenne * update claim types for explicit claim processing types. * add check for expiration on auth sig generation * update type comment * fix import * change network for demo * update relay endpoints * update relay url * update relayer endpoint * update import * get rp id from origin domain * remove check for webauthn from claim * add logging of request id on http request failure * update function name * revery webauthn create options url change * Published Version 2.2.54 * fmt * update baseProvider claimKey * type update * [Master <> V3 Merge] Feature/lit 1322 js sdk merge in v3 to revamp branch (#209) * Feature/lit 856 add sych support (#186) * start stych refactor * add basic token validation for otp authentication * updates from testing * remove stale types * remove test data from test source * type fixes * typo * fmt * type updates * initigrate both otp auth methods * version 2.2.42 * fix provider options union * fix base provider relay body * Published Version 2.2.43 * Use setup-node GH action with yarn caching (#180) * Use setup-node GH action with yarn caching * Add step name * fix url route formatting * Published Version 2.2.44 --alpha * add public goods network (#190) * Feature/pkp sui (#185) * feat: add pkp-sui * feat: add pkp-sui test * fix typo * change to use bs58 * fix pkp-sui test fix typo Devnet is reset weekly, Testnet was reset on May 11 --------- Co-authored-by: Yoonhyoung-Lee <[email protected]> * Publish version 2.2.45 * feat: add optimismGoerli * Published version 2.2.46 * feat: add manual tests on optimismGoerli * docs: update pkp-sui readme (#191) Co-authored-by: Yoonhyoung-Lee <[email protected]> * added waev chain (#192) * Pass in statement from authCallbackParams to signSessionKey (#193) * wip: support new mint endpoint * wip: update lit-auth-client demo app * wip: expand provider options, export stytch * wip: local testing * chore: remove logs, local relay * misc: update copy in demo app * fix: different type to represent data for registering auth methods * fix: handle parsing err * fix: set routes * Fix/humanize acc (#196) * updates from contract abi import * update test * feat: option to not build into react app * Published version 2.2.49 * chore: update pkgs in lit auth example * feat: support WC v2 for lit-connect-modal (#197) * Revert to 3118e29 * Revert "chore: update pkgs in lit auth example" This reverts commit 3118e29. * Revert "feat: support WC v2 for lit-connect-modal (#197)" This reverts commit a3b83cd. * [V2/V3] [Feat] Update lit modal to support wallet connect (#198) * feat: support wc v2 for lit-connect-modal * chore: remove old file * - moved lit-connect-model dependency * Update esbuilder/lit-connect-modal/esbuild.js Co-authored-by: Adarsh-Kumar28 <[email protected]> Signed-off-by: Anson <[email protected]> * fix: minor changes required --------- Signed-off-by: Anson <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * Published version 2.2.50 * chore: update pkgs * docs: update lit-connect-modal demo readme Signed-off-by: sarah z <[email protected]> * fix webauth options generation url endpoint * Published Version 2.2.53 * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * [V2/V3] feat: add handshake body checks on 'successful' handhshakes (#207) * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * fix: build issues * revery webauthn create options url change * Published Version 2.2.54 * explicit any types --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Co-authored-by: Bean <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * add connect call to claimKeyId * remove access list contract * update contract addresses * remove allow list * remove access control conditions contract * add WithAuthMethodSigning type * update contract manifest * update deployment addresses * remove twillio otp auth provider * remove duplicated package * feat: ability to npm link and unlink packages * feat: add scripts to either bun/npm link * getSignatures works * fix: publish version * feat: ES2021 to make "replaceAll" work * fix: add chore back to be able to publish * fix: had to add "DOM" to use global "crypto" * feat: add script to generate config * feat: add flatten object * fix: when lit action is used as pure serverless function * fix: general worker api * chore: add success exit * enable nx cache * remove nx cache * Feat/manual claim test (#213) * add manual claim test * got past last error * fixing stuff as i go * remove manual overrides for relay url. use cayenne which seems to work fine now * test working but wrong derived pubkey * more debugging * fix tests * remove local overrides * Added lit action fixes * it works * use cayenne * added 2 signatures * built * add check for sig properties before conversion * update config * update config * feat: add UNKNOWN_SIGNATURE_ERROR * updates for claim key comments and abstractions * fix typescript errors with nodejs app * Feature/easier local node testing (#215) * fix typescript errors with nodejs app * config and docs for testing against a local node * local testing works * restore cayenne contracts * add env var docs * cleanup * feat: script to enable/disable nx build cache * chore: update text * feat: add bun test script * chore: make test exit * chore: bun test lit node client * Update executeJs for claim processing from execution response * chage claim test * add new error type * ref loop to map stmt * add lit actions comment * add claim combiner test * update comments * disallow webauthn authentication * add explicit return type * make cayenne use 3 nodes by default (#217) * update key claim combiner and types * Feature/fixes to manual test for local chronicle node (#218) * added a sleep to the manual test so there's time for the minted PKP to propagate to the local chronicle replica * debug: false * first pass * add address conversion * update api docs for v3 * format account addr to eip-55 * add casing normalize to eth sign message check * bump version to 3.0.1 * bump version 3.0.2 * feat: add e2e-nodejs tests * feat: add the ability to test by group * update project id * update api docs * feat: add test to LitNodeClientNodejs * docs: update * fix: access controls conditions tests * add auth method scopes and pkp helper method * add pkp helper methods * feat: add contracts-sdk tests * fix: min nodes * chore: update contracts * fix: add allowJs: true * feat: add more tests * wip * fix: pkp sign recover works * wip * fix: use sha256 to check dataSigned * Hash the toSign parameter before signing in tests (#220) * wip: all new e2e tests passed so far, continue.. * feat: pkp sui works * 🚀 all unit tests passed, next e2e nodejs * update: github CI * chore: change to use html instead of react for testing * ci update * chore: indentation * fix: error message * Empty-Commit * fix: to use pkpSign & passed all pkp-ethers tests * fix: pkp client works too * 🚀 OK. All Good * docs: update * resolve comments --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Co-authored-by: Josh Long <[email protected]> Co-authored-by: Howard Tam <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * This is an empty commit * [Merge Branch] Feature/lit 1498 js sdk merge e2e nodejs branch into v3 (#221) (#222) * update ecdsa sdk * refactor combiination entry point for new method signature * update ecdsa-sdk from ecdsa wasm * updates for new cait sith ecdsa-sdk * fixes to key remapping * update to crypto tests for ecdsa sdk * update tests for sign recombination * remove unused import * Add new ECDSA signature types * remove enum from types * add enum for ecdsa key type. * update enums * remove static v value from test * update ecdsa-sdk with new recid calculation * fix update to ecdsa-sdk for recid fixes * Integrate new BLS WASM * Update crypto wrappers around BLS WASM * Add return types to utility functions * Use generics in IEither * Use generics in IEither * Refactor param validation, add coverage, use IEither to return error instead of throwing * Fix map * Fix crypto package logic + tests * Update encryption helpers and integrate new BLS encryption to lit-node-client-nodejs package * Remove jalapeno support and make serrano the default * Build fixes + bug fixes * Make demo app use TS * Use better names, fixes * Fix bug, make errors more verbose * Update encryption logic in demo app * Couple of important bug fixes + tidy up * Demo using human-readable strings * Update comments and JSDocs * Fix bugs, update all e2e & manual tests, simplify encryptString to just arrayify utf-16 strings * Update bls-sdk,crypto with verify_signature, implement demo-locked-express-app * Add getSignedToken + verification to e2e tests * Update manual_tests for signed JWT tests * Cleanup * Fix types * Use cayenne as default * Update to cayenne contracts * fix tsc error * rebuilt wasm module * bump major to 3 -> 3.0.0 * add sig type * fix test and sig combination logic * update logic for removing postifxed polarity on signature * upgrade signature combination for cait sith changes * update test * upgrade crypto and ecdsa lib for hd key signature and public key derivation * add support for public key derivation * update claim and signing tests * add auth callback statement * updates for new enums on nodes * add hd key support * update claim impls * add rootkeys to handshake * add mint claim callback * update claim types per node updates * remove key id from signing request * chore: update pkgs in lit auth example * Revert "chore: update pkgs in lit auth example" This reverts commit 83263dd. * Merge pull request #194 from LIT-Protocol/feat/update-mint-relay feat: support new mint and fetch endpoints * merge of pr #194 fixes * implement relay fetch call * add telem endpoint * fix build issues from merge * fix types * migrate hd pubkey method from lit-node-client to lit-core * update claim endpoint * updates for key claiming * wip update contracts * update manifest urls and add access token headers on fetch * move sig reformatting to client * read auth method acc token from cfg * update contract-client * updates for cayenne * update lit config for auth method pass through * update sig recomb for new key type value * update tests * update contract addresses for cayenne * add contract ignore statement * update contract sdk bindings * update contracts lookup for cayenne * update claim types for explicit claim processing types. * add check for expiration on auth sig generation * update type comment * fix import * change network for demo * update relay endpoints * update relay url * update relayer endpoint * update import * get rp id from origin domain * remove check for webauthn from claim * add logging of request id on http request failure * update function name * revery webauthn create options url change * Published Version 2.2.54 * fmt * update baseProvider claimKey * type update * [Master <> V3 Merge] Feature/lit 1322 js sdk merge in v3 to revamp branch (#209) * Feature/lit 856 add sych support (#186) * start stych refactor * add basic token validation for otp authentication * updates from testing * remove stale types * remove test data from test source * type fixes * typo * fmt * type updates * initigrate both otp auth methods * version 2.2.42 * fix provider options union * fix base provider relay body * Published Version 2.2.43 * Use setup-node GH action with yarn caching (#180) * Use setup-node GH action with yarn caching * Add step name * fix url route formatting * Published Version 2.2.44 --alpha * add public goods network (#190) * Feature/pkp sui (#185) * feat: add pkp-sui * feat: add pkp-sui test * fix typo * change to use bs58 * fix pkp-sui test fix typo Devnet is reset weekly, Testnet was reset on May 11 --------- * Publish version 2.2.45 * feat: add optimismGoerli * Published version 2.2.46 * feat: add manual tests on optimismGoerli * docs: update pkp-sui readme (#191) * added waev chain (#192) * Pass in statement from authCallbackParams to signSessionKey (#193) * wip: support new mint endpoint * wip: update lit-auth-client demo app * wip: expand provider options, export stytch * wip: local testing * chore: remove logs, local relay * misc: update copy in demo app * fix: different type to represent data for registering auth methods * fix: handle parsing err * fix: set routes * Fix/humanize acc (#196) * updates from contract abi import * update test * feat: option to not build into react app * Published version 2.2.49 * chore: update pkgs in lit auth example * feat: support WC v2 for lit-connect-modal (#197) * Revert to 3118e29 * Revert "chore: update pkgs in lit auth example" This reverts commit 3118e29. * Revert "feat: support WC v2 for lit-connect-modal (#197)" This reverts commit a3b83cd. * [V2/V3] [Feat] Update lit modal to support wallet connect (#198) * feat: support wc v2 for lit-connect-modal * chore: remove old file * - moved lit-connect-model dependency * Update esbuilder/lit-connect-modal/esbuild.js * fix: minor changes required --------- * Published version 2.2.50 * chore: update pkgs * docs: update lit-connect-modal demo readme * fix webauth options generation url endpoint * Published Version 2.2.53 * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * [V2/V3] feat: add handshake body checks on 'successful' handhshakes (#207) * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * fix: build issues * revery webauthn create options url change * Published Version 2.2.54 * explicit any types --------- * add connect call to claimKeyId * remove access list contract * update contract addresses * remove allow list * remove access control conditions contract * add WithAuthMethodSigning type * update contract manifest * update deployment addresses * remove twillio otp auth provider * remove duplicated package * feat: ability to npm link and unlink packages * feat: add scripts to either bun/npm link * getSignatures works * fix: publish version * feat: ES2021 to make "replaceAll" work * fix: add chore back to be able to publish * fix: had to add "DOM" to use global "crypto" * feat: add script to generate config * feat: add flatten object * fix: when lit action is used as pure serverless function * fix: general worker api * chore: add success exit * enable nx cache * remove nx cache * Feat/manual claim test (#213) * add manual claim test * got past last error * fixing stuff as i go * remove manual overrides for relay url. use cayenne which seems to work fine now * test working but wrong derived pubkey * more debugging * fix tests * remove local overrides * Added lit action fixes * it works * use cayenne * added 2 signatures * built * add check for sig properties before conversion * update config * update config * feat: add UNKNOWN_SIGNATURE_ERROR * updates for claim key comments and abstractions * fix typescript errors with nodejs app * Feature/easier local node testing (#215) * fix typescript errors with nodejs app * config and docs for testing against a local node * local testing works * restore cayenne contracts * add env var docs * cleanup * feat: script to enable/disable nx build cache * chore: update text * feat: add bun test script * chore: make test exit * chore: bun test lit node client * Update executeJs for claim processing from execution response * chage claim test * add new error type * ref loop to map stmt * add lit actions comment * add claim combiner test * update comments * disallow webauthn authentication * add explicit return type * make cayenne use 3 nodes by default (#217) * update key claim combiner and types * Feature/fixes to manual test for local chronicle node (#218) * added a sleep to the manual test so there's time for the minted PKP to propagate to the local chronicle replica * debug: false * first pass * add address conversion * update api docs for v3 * format account addr to eip-55 * add casing normalize to eth sign message check * bump version to 3.0.1 * bump version 3.0.2 * feat: add e2e-nodejs tests * feat: add the ability to test by group * update project id * update api docs * feat: add test to LitNodeClientNodejs * docs: update * fix: access controls conditions tests * add auth method scopes and pkp helper method * add pkp helper methods * feat: add contracts-sdk tests * fix: min nodes * chore: update contracts * fix: add allowJs: true * feat: add more tests * wip * fix: pkp sign recover works * wip * fix: use sha256 to check dataSigned * Hash the toSign parameter before signing in tests (#220) * wip: all new e2e tests passed so far, continue.. * feat: pkp sui works * 🚀 all unit tests passed, next e2e nodejs * update: github CI * chore: change to use html instead of react for testing * ci update * chore: indentation * fix: error message * Empty-Commit * fix: to use pkpSign & passed all pkp-ethers tests * fix: pkp client works too * 🚀 OK. All Good * docs: update * resolve comments --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Co-authored-by: Josh Long <[email protected]> Co-authored-by: Howard Tam <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * test: all good. ready go publish 3.0.3 * docs: update * merge * sessionSigs works❗️ --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Co-authored-by: Josh Long <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: Howard Tam <[email protected]>
joshLong145
pushed a commit
that referenced
this pull request
Nov 28, 2023
* update ecdsa sdk * refactor combiination entry point for new method signature * update ecdsa-sdk from ecdsa wasm * updates for new cait sith ecdsa-sdk * fixes to key remapping * update to crypto tests for ecdsa sdk * update tests for sign recombination * remove unused import * Add new ECDSA signature types * remove enum from types * add enum for ecdsa key type. * update enums * remove static v value from test * update ecdsa-sdk with new recid calculation * fix update to ecdsa-sdk for recid fixes * Integrate new BLS WASM * Update crypto wrappers around BLS WASM * Add return types to utility functions * Use generics in IEither * Use generics in IEither * Refactor param validation, add coverage, use IEither to return error instead of throwing * Fix map * Fix crypto package logic + tests * Update encryption helpers and integrate new BLS encryption to lit-node-client-nodejs package * Remove jalapeno support and make serrano the default * Build fixes + bug fixes * Make demo app use TS * Use better names, fixes * Fix bug, make errors more verbose * Update encryption logic in demo app * Couple of important bug fixes + tidy up * Demo using human-readable strings * Update comments and JSDocs * Fix bugs, update all e2e & manual tests, simplify encryptString to just arrayify utf-16 strings * Update bls-sdk,crypto with verify_signature, implement demo-locked-express-app * Add getSignedToken + verification to e2e tests * Update manual_tests for signed JWT tests * Cleanup * Fix types * Use cayenne as default * Update to cayenne contracts * fix tsc error * rebuilt wasm module * bump major to 3 -> 3.0.0 * add sig type * fix test and sig combination logic * update logic for removing postifxed polarity on signature * upgrade signature combination for cait sith changes * update test * upgrade crypto and ecdsa lib for hd key signature and public key derivation * add support for public key derivation * update claim and signing tests * add auth callback statement * updates for new enums on nodes * add hd key support * update claim impls * add rootkeys to handshake * add mint claim callback * update claim types per node updates * remove key id from signing request * chore: update pkgs in lit auth example * Revert "chore: update pkgs in lit auth example" This reverts commit 83263dd. * Merge pull request #194 from LIT-Protocol/feat/update-mint-relay feat: support new mint and fetch endpoints * merge of pr #194 fixes * implement relay fetch call * add telem endpoint * fix build issues from merge * fix types * migrate hd pubkey method from lit-node-client to lit-core * update claim endpoint * updates for key claiming * wip update contracts * update manifest urls and add access token headers on fetch * move sig reformatting to client * read auth method acc token from cfg * update contract-client * updates for cayenne * update lit config for auth method pass through * update sig recomb for new key type value * update tests * update contract addresses for cayenne * add contract ignore statement * update contract sdk bindings * update contracts lookup for cayenne * update claim types for explicit claim processing types. * add check for expiration on auth sig generation * update type comment * fix import * change network for demo * update relay endpoints * update relay url * update relayer endpoint * update import * get rp id from origin domain * remove check for webauthn from claim * add logging of request id on http request failure * update function name * fmt * update baseProvider claimKey * type update * [Master <> V3 Merge] Feature/lit 1322 js sdk merge in v3 to revamp branch (#209) * Feature/lit 856 add sych support (#186) * start stych refactor * add basic token validation for otp authentication * updates from testing * remove stale types * remove test data from test source * type fixes * typo * fmt * type updates * initigrate both otp auth methods * version 2.2.42 * fix provider options union * fix base provider relay body * Published Version 2.2.43 * Use setup-node GH action with yarn caching (#180) * Use setup-node GH action with yarn caching * Add step name * fix url route formatting * Published Version 2.2.44 --alpha * add public goods network (#190) * Feature/pkp sui (#185) * feat: add pkp-sui * feat: add pkp-sui test * fix typo * change to use bs58 * fix pkp-sui test fix typo Devnet is reset weekly, Testnet was reset on May 11 --------- Co-authored-by: Yoonhyoung-Lee <[email protected]> * Publish version 2.2.45 * feat: add optimismGoerli * Published version 2.2.46 * feat: add manual tests on optimismGoerli * docs: update pkp-sui readme (#191) Co-authored-by: Yoonhyoung-Lee <[email protected]> * added waev chain (#192) * Pass in statement from authCallbackParams to signSessionKey (#193) * wip: support new mint endpoint * wip: update lit-auth-client demo app * wip: expand provider options, export stytch * wip: local testing * chore: remove logs, local relay * misc: update copy in demo app * fix: different type to represent data for registering auth methods * fix: handle parsing err * fix: set routes * Fix/humanize acc (#196) * updates from contract abi import * update test * feat: option to not build into react app * Published version 2.2.49 * chore: update pkgs in lit auth example * feat: support WC v2 for lit-connect-modal (#197) * Revert to 3118e29 * Revert "chore: update pkgs in lit auth example" This reverts commit 3118e29. * Revert "feat: support WC v2 for lit-connect-modal (#197)" This reverts commit a3b83cd. * [V2/V3] [Feat] Update lit modal to support wallet connect (#198) * feat: support wc v2 for lit-connect-modal * chore: remove old file * - moved lit-connect-model dependency * Update esbuilder/lit-connect-modal/esbuild.js Co-authored-by: Adarsh-Kumar28 <[email protected]> Signed-off-by: Anson <[email protected]> * fix: minor changes required --------- Signed-off-by: Anson <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * Published version 2.2.50 * chore: update pkgs * docs: update lit-connect-modal demo readme Signed-off-by: sarah z <[email protected]> * fix webauth options generation url endpoint * Published Version 2.2.53 * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * [V2/V3] feat: add handshake body checks on 'successful' handhshakes (#207) * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * fix: build issues * revery webauthn create options url change * Published Version 2.2.54 * explicit any types --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Co-authored-by: Bean <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * add connect call to claimKeyId * remove access list contract * update contract addresses * remove allow list * remove access control conditions contract * add WithAuthMethodSigning type * update contract manifest * update deployment addresses * remove twillio otp auth provider * remove duplicated package * feat: ability to npm link and unlink packages * feat: add scripts to either bun/npm link * getSignatures works * fix: publish version * feat: ES2021 to make "replaceAll" work * fix: add chore back to be able to publish * fix: had to add "DOM" to use global "crypto" * feat: add script to generate config * feat: add flatten object * fix: when lit action is used as pure serverless function * fix: general worker api * chore: add success exit * enable nx cache * remove nx cache * Feat/manual claim test (#213) * add manual claim test * got past last error * fixing stuff as i go * remove manual overrides for relay url. use cayenne which seems to work fine now * test working but wrong derived pubkey * more debugging * fix tests * remove local overrides * Added lit action fixes * it works * use cayenne * added 2 signatures * built * add check for sig properties before conversion * update config * update config * feat: add UNKNOWN_SIGNATURE_ERROR * updates for claim key comments and abstractions * fix typescript errors with nodejs app * Feature/easier local node testing (#215) * fix typescript errors with nodejs app * config and docs for testing against a local node * local testing works * restore cayenne contracts * add env var docs * cleanup * feat: script to enable/disable nx build cache * chore: update text * feat: add bun test script * chore: make test exit * chore: bun test lit node client * Update executeJs for claim processing from execution response * chage claim test * add new error type * ref loop to map stmt * add lit actions comment * add claim combiner test * update comments * disallow webauthn authentication * add explicit return type * make cayenne use 3 nodes by default (#217) * update key claim combiner and types * Feature/fixes to manual test for local chronicle node (#218) * added a sleep to the manual test so there's time for the minted PKP to propagate to the local chronicle replica * debug: false * add address conversion * update api docs for v3 * format account addr to eip-55 * add casing normalize to eth sign message check * bump version to 3.0.1 * bump version 3.0.2 * update project id * update api docs * add auth method scopes and pkp helper method * add pkp helper methods * Hash the toSign parameter before signing in tests (#220) * [Merge Branch] Feature/lit 1498 js sdk merge e2e nodejs branch into v3 (#221) * update ecdsa sdk * refactor combiination entry point for new method signature * update ecdsa-sdk from ecdsa wasm * updates for new cait sith ecdsa-sdk * fixes to key remapping * update to crypto tests for ecdsa sdk * update tests for sign recombination * remove unused import * Add new ECDSA signature types * remove enum from types * add enum for ecdsa key type. * update enums * remove static v value from test * update ecdsa-sdk with new recid calculation * fix update to ecdsa-sdk for recid fixes * Integrate new BLS WASM * Update crypto wrappers around BLS WASM * Add return types to utility functions * Use generics in IEither * Use generics in IEither * Refactor param validation, add coverage, use IEither to return error instead of throwing * Fix map * Fix crypto package logic + tests * Update encryption helpers and integrate new BLS encryption to lit-node-client-nodejs package * Remove jalapeno support and make serrano the default * Build fixes + bug fixes * Make demo app use TS * Use better names, fixes * Fix bug, make errors more verbose * Update encryption logic in demo app * Couple of important bug fixes + tidy up * Demo using human-readable strings * Update comments and JSDocs * Fix bugs, update all e2e & manual tests, simplify encryptString to just arrayify utf-16 strings * Update bls-sdk,crypto with verify_signature, implement demo-locked-express-app * Add getSignedToken + verification to e2e tests * Update manual_tests for signed JWT tests * Cleanup * Fix types * Use cayenne as default * Update to cayenne contracts * fix tsc error * rebuilt wasm module * bump major to 3 -> 3.0.0 * add sig type * fix test and sig combination logic * update logic for removing postifxed polarity on signature * upgrade signature combination for cait sith changes * update test * upgrade crypto and ecdsa lib for hd key signature and public key derivation * add support for public key derivation * update claim and signing tests * add auth callback statement * updates for new enums on nodes * add hd key support * update claim impls * add rootkeys to handshake * add mint claim callback * update claim types per node updates * remove key id from signing request * chore: update pkgs in lit auth example * Revert "chore: update pkgs in lit auth example" This reverts commit 83263dd. * Merge pull request #194 from LIT-Protocol/feat/update-mint-relay feat: support new mint and fetch endpoints * merge of pr #194 fixes * implement relay fetch call * add telem endpoint * fix build issues from merge * fix types * migrate hd pubkey method from lit-node-client to lit-core * update claim endpoint * updates for key claiming * wip update contracts * update manifest urls and add access token headers on fetch * move sig reformatting to client * read auth method acc token from cfg * update contract-client * updates for cayenne * update lit config for auth method pass through * update sig recomb for new key type value * update tests * update contract addresses for cayenne * add contract ignore statement * update contract sdk bindings * update contracts lookup for cayenne * update claim types for explicit claim processing types. * add check for expiration on auth sig generation * update type comment * fix import * change network for demo * update relay endpoints * update relay url * update relayer endpoint * update import * get rp id from origin domain * remove check for webauthn from claim * add logging of request id on http request failure * update function name * revery webauthn create options url change * Published Version 2.2.54 * fmt * update baseProvider claimKey * type update * [Master <> V3 Merge] Feature/lit 1322 js sdk merge in v3 to revamp branch (#209) * Feature/lit 856 add sych support (#186) * start stych refactor * add basic token validation for otp authentication * updates from testing * remove stale types * remove test data from test source * type fixes * typo * fmt * type updates * initigrate both otp auth methods * version 2.2.42 * fix provider options union * fix base provider relay body * Published Version 2.2.43 * Use setup-node GH action with yarn caching (#180) * Use setup-node GH action with yarn caching * Add step name * fix url route formatting * Published Version 2.2.44 --alpha * add public goods network (#190) * Feature/pkp sui (#185) * feat: add pkp-sui * feat: add pkp-sui test * fix typo * change to use bs58 * fix pkp-sui test fix typo Devnet is reset weekly, Testnet was reset on May 11 --------- Co-authored-by: Yoonhyoung-Lee <[email protected]> * Publish version 2.2.45 * feat: add optimismGoerli * Published version 2.2.46 * feat: add manual tests on optimismGoerli * docs: update pkp-sui readme (#191) Co-authored-by: Yoonhyoung-Lee <[email protected]> * added waev chain (#192) * Pass in statement from authCallbackParams to signSessionKey (#193) * wip: support new mint endpoint * wip: update lit-auth-client demo app * wip: expand provider options, export stytch * wip: local testing * chore: remove logs, local relay * misc: update copy in demo app * fix: different type to represent data for registering auth methods * fix: handle parsing err * fix: set routes * Fix/humanize acc (#196) * updates from contract abi import * update test * feat: option to not build into react app * Published version 2.2.49 * chore: update pkgs in lit auth example * feat: support WC v2 for lit-connect-modal (#197) * Revert to 3118e29 * Revert "chore: update pkgs in lit auth example" This reverts commit 3118e29. * Revert "feat: support WC v2 for lit-connect-modal (#197)" This reverts commit a3b83cd. * [V2/V3] [Feat] Update lit modal to support wallet connect (#198) * feat: support wc v2 for lit-connect-modal * chore: remove old file * - moved lit-connect-model dependency * Update esbuilder/lit-connect-modal/esbuild.js Co-authored-by: Adarsh-Kumar28 <[email protected]> Signed-off-by: Anson <[email protected]> * fix: minor changes required --------- Signed-off-by: Anson <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * Published version 2.2.50 * chore: update pkgs * docs: update lit-connect-modal demo readme Signed-off-by: sarah z <[email protected]> * fix webauth options generation url endpoint * Published Version 2.2.53 * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * [V2/V3] feat: add handshake body checks on 'successful' handhshakes (#207) * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * fix: build issues * revery webauthn create options url change * Published Version 2.2.54 * explicit any types --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Co-authored-by: Bean <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * add connect call to claimKeyId * remove access list contract * update contract addresses * remove allow list * remove access control conditions contract * add WithAuthMethodSigning type * update contract manifest * update deployment addresses * remove twillio otp auth provider * remove duplicated package * feat: ability to npm link and unlink packages * feat: add scripts to either bun/npm link * getSignatures works * fix: publish version * feat: ES2021 to make "replaceAll" work * fix: add chore back to be able to publish * fix: had to add "DOM" to use global "crypto" * feat: add script to generate config * feat: add flatten object * fix: when lit action is used as pure serverless function * fix: general worker api * chore: add success exit * enable nx cache * remove nx cache * Feat/manual claim test (#213) * add manual claim test * got past last error * fixing stuff as i go * remove manual overrides for relay url. use cayenne which seems to work fine now * test working but wrong derived pubkey * more debugging * fix tests * remove local overrides * Added lit action fixes * it works * use cayenne * added 2 signatures * built * add check for sig properties before conversion * update config * update config * feat: add UNKNOWN_SIGNATURE_ERROR * updates for claim key comments and abstractions * fix typescript errors with nodejs app * Feature/easier local node testing (#215) * fix typescript errors with nodejs app * config and docs for testing against a local node * local testing works * restore cayenne contracts * add env var docs * cleanup * feat: script to enable/disable nx build cache * chore: update text * feat: add bun test script * chore: make test exit * chore: bun test lit node client * Update executeJs for claim processing from execution response * chage claim test * add new error type * ref loop to map stmt * add lit actions comment * add claim combiner test * update comments * disallow webauthn authentication * add explicit return type * make cayenne use 3 nodes by default (#217) * update key claim combiner and types * Feature/fixes to manual test for local chronicle node (#218) * added a sleep to the manual test so there's time for the minted PKP to propagate to the local chronicle replica * debug: false * first pass * add address conversion * update api docs for v3 * format account addr to eip-55 * add casing normalize to eth sign message check * bump version to 3.0.1 * bump version 3.0.2 * feat: add e2e-nodejs tests * feat: add the ability to test by group * update project id * update api docs * feat: add test to LitNodeClientNodejs * docs: update * fix: access controls conditions tests * add auth method scopes and pkp helper method * add pkp helper methods * feat: add contracts-sdk tests * fix: min nodes * chore: update contracts * fix: add allowJs: true * feat: add more tests * wip * fix: pkp sign recover works * wip * fix: use sha256 to check dataSigned * Hash the toSign parameter before signing in tests (#220) * wip: all new e2e tests passed so far, continue.. * feat: pkp sui works * 🚀 all unit tests passed, next e2e nodejs * update: github CI * chore: change to use html instead of react for testing * ci update * chore: indentation * fix: error message * Empty-Commit * fix: to use pkpSign & passed all pkp-ethers tests * fix: pkp client works too * 🚀 OK. All Good * docs: update * resolve comments --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Co-authored-by: Josh Long <[email protected]> Co-authored-by: Howard Tam <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * This is an empty commit * [Merge Branch] Feature/lit 1498 js sdk merge e2e nodejs branch into v3 (#221) (#222) * update ecdsa sdk * refactor combiination entry point for new method signature * update ecdsa-sdk from ecdsa wasm * updates for new cait sith ecdsa-sdk * fixes to key remapping * update to crypto tests for ecdsa sdk * update tests for sign recombination * remove unused import * Add new ECDSA signature types * remove enum from types * add enum for ecdsa key type. * update enums * remove static v value from test * update ecdsa-sdk with new recid calculation * fix update to ecdsa-sdk for recid fixes * Integrate new BLS WASM * Update crypto wrappers around BLS WASM * Add return types to utility functions * Use generics in IEither * Use generics in IEither * Refactor param validation, add coverage, use IEither to return error instead of throwing * Fix map * Fix crypto package logic + tests * Update encryption helpers and integrate new BLS encryption to lit-node-client-nodejs package * Remove jalapeno support and make serrano the default * Build fixes + bug fixes * Make demo app use TS * Use better names, fixes * Fix bug, make errors more verbose * Update encryption logic in demo app * Couple of important bug fixes + tidy up * Demo using human-readable strings * Update comments and JSDocs * Fix bugs, update all e2e & manual tests, simplify encryptString to just arrayify utf-16 strings * Update bls-sdk,crypto with verify_signature, implement demo-locked-express-app * Add getSignedToken + verification to e2e tests * Update manual_tests for signed JWT tests * Cleanup * Fix types * Use cayenne as default * Update to cayenne contracts * fix tsc error * rebuilt wasm module * bump major to 3 -> 3.0.0 * add sig type * fix test and sig combination logic * update logic for removing postifxed polarity on signature * upgrade signature combination for cait sith changes * update test * upgrade crypto and ecdsa lib for hd key signature and public key derivation * add support for public key derivation * update claim and signing tests * add auth callback statement * updates for new enums on nodes * add hd key support * update claim impls * add rootkeys to handshake * add mint claim callback * update claim types per node updates * remove key id from signing request * chore: update pkgs in lit auth example * Revert "chore: update pkgs in lit auth example" This reverts commit 83263dd. * Merge pull request #194 from LIT-Protocol/feat/update-mint-relay feat: support new mint and fetch endpoints * merge of pr #194 fixes * implement relay fetch call * add telem endpoint * fix build issues from merge * fix types * migrate hd pubkey method from lit-node-client to lit-core * update claim endpoint * updates for key claiming * wip update contracts * update manifest urls and add access token headers on fetch * move sig reformatting to client * read auth method acc token from cfg * update contract-client * updates for cayenne * update lit config for auth method pass through * update sig recomb for new key type value * update tests * update contract addresses for cayenne * add contract ignore statement * update contract sdk bindings * update contracts lookup for cayenne * update claim types for explicit claim processing types. * add check for expiration on auth sig generation * update type comment * fix import * change network for demo * update relay endpoints * update relay url * update relayer endpoint * update import * get rp id from origin domain * remove check for webauthn from claim * add logging of request id on http request failure * update function name * revery webauthn create options url change * Published Version 2.2.54 * fmt * update baseProvider claimKey * type update * [Master <> V3 Merge] Feature/lit 1322 js sdk merge in v3 to revamp branch (#209) * Feature/lit 856 add sych support (#186) * start stych refactor * add basic token validation for otp authentication * updates from testing * remove stale types * remove test data from test source * type fixes * typo * fmt * type updates * initigrate both otp auth methods * version 2.2.42 * fix provider options union * fix base provider relay body * Published Version 2.2.43 * Use setup-node GH action with yarn caching (#180) * Use setup-node GH action with yarn caching * Add step name * fix url route formatting * Published Version 2.2.44 --alpha * add public goods network (#190) * Feature/pkp sui (#185) * feat: add pkp-sui * feat: add pkp-sui test * fix typo * change to use bs58 * fix pkp-sui test fix typo Devnet is reset weekly, Testnet was reset on May 11 --------- * Publish version 2.2.45 * feat: add optimismGoerli * Published version 2.2.46 * feat: add manual tests on optimismGoerli * docs: update pkp-sui readme (#191) * added waev chain (#192) * Pass in statement from authCallbackParams to signSessionKey (#193) * wip: support new mint endpoint * wip: update lit-auth-client demo app * wip: expand provider options, export stytch * wip: local testing * chore: remove logs, local relay * misc: update copy in demo app * fix: different type to represent data for registering auth methods * fix: handle parsing err * fix: set routes * Fix/humanize acc (#196) * updates from contract abi import * update test * feat: option to not build into react app * Published version 2.2.49 * chore: update pkgs in lit auth example * feat: support WC v2 for lit-connect-modal (#197) * Revert to 3118e29 * Revert "chore: update pkgs in lit auth example" This reverts commit 3118e29. * Revert "feat: support WC v2 for lit-connect-modal (#197)" This reverts commit a3b83cd. * [V2/V3] [Feat] Update lit modal to support wallet connect (#198) * feat: support wc v2 for lit-connect-modal * chore: remove old file * - moved lit-connect-model dependency * Update esbuilder/lit-connect-modal/esbuild.js * fix: minor changes required --------- * Published version 2.2.50 * chore: update pkgs * docs: update lit-connect-modal demo readme * fix webauth options generation url endpoint * Published Version 2.2.53 * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * [V2/V3] feat: add handshake body checks on 'successful' handhshakes (#207) * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * fix: build issues * revery webauthn create options url change * Published Version 2.2.54 * explicit any types --------- * add connect call to claimKeyId * remove access list contract * update contract addresses * remove allow list * remove access control conditions contract * add WithAuthMethodSigning type * update contract manifest * update deployment addresses * remove twillio otp auth provider * remove duplicated package * feat: ability to npm link and unlink packages * feat: add scripts to either bun/npm link * getSignatures works * fix: publish version * feat: ES2021 to make "replaceAll" work * fix: add chore back to be able to publish * fix: had to add "DOM" to use global "crypto" * feat: add script to generate config * feat: add flatten object * fix: when lit action is used as pure serverless function * fix: general worker api * chore: add success exit * enable nx cache * remove nx cache * Feat/manual claim test (#213) * add manual claim test * got past last error * fixing stuff as i go * remove manual overrides for relay url. use cayenne which seems to work fine now * test working but wrong derived pubkey * more debugging * fix tests * remove local overrides * Added lit action fixes * it works * use cayenne * added 2 signatures * built * add check for sig properties before conversion * update config * update config * feat: add UNKNOWN_SIGNATURE_ERROR * updates for claim key comments and abstractions * fix typescript errors with nodejs app * Feature/easier local node testing (#215) * fix typescript errors with nodejs app * config and docs for testing against a local node * local testing works * restore cayenne contracts * add env var docs * cleanup * feat: script to enable/disable nx build cache * chore: update text * feat: add bun test script * chore: make test exit * chore: bun test lit node client * Update executeJs for claim processing from execution response * chage claim test * add new error type * ref loop to map stmt * add lit actions comment * add claim combiner test * update comments * disallow webauthn authentication * add explicit return type * make cayenne use 3 nodes by default (#217) * update key claim combiner and types * Feature/fixes to manual test for local chronicle node (#218) * added a sleep to the manual test so there's time for the minted PKP to propagate to the local chronicle replica * debug: false * first pass * add address conversion * update api docs for v3 * format account addr to eip-55 * add casing normalize to eth sign message check * bump version to 3.0.1 * bump version 3.0.2 * feat: add e2e-nodejs tests * feat: add the ability to test by group * update project id * update api docs * feat: add test to LitNodeClientNodejs * docs: update * fix: access controls conditions tests * add auth method scopes and pkp helper method * add pkp helper methods * feat: add contracts-sdk tests * fix: min nodes * chore: update contracts * fix: add allowJs: true * feat: add more tests * wip * fix: pkp sign recover works * wip * fix: use sha256 to check dataSigned * Hash the toSign parameter before signing in tests (#220) * wip: all new e2e tests passed so far, continue.. * feat: pkp sui works * 🚀 all unit tests passed, next e2e nodejs * update: github CI * chore: change to use html instead of react for testing * ci update * chore: indentation * fix: error message * Empty-Commit * fix: to use pkpSign & passed all pkp-ethers tests * fix: pkp client works too * 🚀 OK. All Good * docs: update * resolve comments --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Co-authored-by: Josh Long <[email protected]> Co-authored-by: Howard Tam <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * test: all good. ready go publish 3.0.3 * docs: update * update contract-sdk * remove duplicate type file * update CHANGELOG * fix auth client claim pubkey generator * remove stale contract data * fix logging and make user id check optional * error message log and action key id flag * Bump version 3.0.4 * fix contracts-sdk & e2e tests * fix typeo * bump version 3.0.5 * some fixes to make the manual tests work with node changes (#227) * update (#226) Update examples to be on latest V3 SDK packages * make alertWhenUnauthorized be false by default (#229) * update docs * Fix/controller auth method (#230) * add support for controller auth methods in pkp base * fix defined checks Signed-off-by: Bean <[email protected]> --------- Signed-off-by: Bean <[email protected]> * Feat: Validate boolean conditions in safeParams for Encryption (#231) * feat: Validate boolean conditions in safeParams for encryption + its test * refac: Update validate function name with is prefix * Remove broken examples (#232) Will keep `demo-pkp-social-auth-next-ts`, because update seems straightforward, but will be addressed in another PR * Feature/lit 1598 js sdk v3 fix unable to use sessionsigs to pkpsign (#234) * fix: build issue due to app not found * fix: pkp session sigs signing * feat: script to generate demo app * feat: demo app * update: contracts * chore * fix: e2e nodejs works * feat: add demo * feat: update bump script to include tag * Published version 3.0.6 * fix: Validate boolean Access Control Conditions (#235) * fix: Validate boolean Access Control Conditions * refac: Remove logs & manual test * Fix/claim return (#237) * fix object length check * update comment * Published version 3.0.11 * Feature/lit 1697 js sdk fix combine shares when above threshold (#238) * fix: session sigs threshold requirement * fix: use log * Update PKP social auth project to be on cayenne (#233) * Update project to be on cayenne * Add/claim props e2e (#239) * fix property names on claim-key test * fix claim tests * fix: don't block if null (#240) * add auth method support to executeJs and helper methods (#243) * add auth method support to executeJs and helper methods * use non related signature to pkp for test * remove auth method check on the auth sig condition. * fix test case for auth sig address * revert condition check * publish version 3.0.15 * Lit 1693/add explicit stytch authentication factors (#242) * email-stytch provider implementation * move to implicit auth factor through generic on provider * update provider enum * Add other auth types and return explicit type per factor * update comments * remove user id requirment from base stytch provider * add more init tests * Feature/lit 1799 fix req data mapping in js sdk (#244) * Bump Version 3.0.16 * Fix tests for providers * change check for auth to auth sig and session sig defined * update contract gen * fmt * add authMethod pass through to lit actions * Fix/executeJS array normalizing (#249) * add normalization fix * use different prop names for signature data * feat: refactor normalizeParams * fix jsparam undefined case, adds test --------- Co-authored-by: Ansonhkg <[email protected]> * feat: ability to add scope when minting (#251) * Feature/lit 1765 js sdk provider not set in pkpethers (#250) * pkpethers - tableland works * feat: lit config & pkp-ethers update * fix tests & interfaces * update e2e tests * Published version 3.0.18@cayenne * mint by auth method (#253) * mint by auth method * remove url * feat: fix authmethod type 6 * add a note * feat: add enums * remove declare * rename from 'mint' to 'mintWithAuth' for better clarity * fix: ignore_dirs * feat: add logs to e2e nodejs tests * Published version 3.0.19 * Feature/lit 1862 js sdk add a abstract getauthmethodid public static function (#254) * feat: public static to get auth id by auth method * fix: import * Published version 3.0.20 * fix: allowing custom args to be passed (#256) * feat: update e2e tests * update social demo app (#255) * WIP * wip2 - awaiting verifyAndMintPKPThroughRelayer to be implemented * fix: verifyAndMintPKPThroughRelayer with custom args * update pkg * remove comment * rm lock --------- Signed-off-by: Anson <[email protected]> * clean up demos * publish and add a little readme thing * make a change to claim and mint to add in tx options (#257) Signed-off-by: VoR0220 <[email protected]> * fix encryptFileAndZipWithMetadata node (#246) * fix(nacl): remove require hack (#263) A hack was added a year ago to suppress a webpack complaint. Other packages import crypto and don't seem to contain this hack. The metro bundler doesn't allow for conditional requires / substitutions, and as such causes react-native to fail loading the crypto library. This PR removes the hack. I have not checked if webpack still complains but am hoping Chris can chime in. * Published version 3.0.23 * feat: Add missing chains to Cayenne (#264) * Published version 3.0.24 * feat: Store blockhash from handshake + use it in SIWE (#248) * feat: Store blockhash from handshake + use it in SIWE * feat: Pass blockhash instead of client in authSig functions * refac: Cleanup * feat: Client getter for blockhash + Manual tests * refac: Remove comments * refac: latest_blockhash -> latestBlockhash * test: Display result of manual tests * test: Node E2E test for creating authSig by fetching the blockhash from the client * fmt * fix types for provider call * fmt * gen * Feat/lit 1826 send challenge for attestation and check it as well (#247) * it all works, yay * gen contracts * fix up tests * remove unused thing * add checkNodeAttestation boolean config option * better attestation * remove custom code to test on internaldev * check ip and port against report * check ip and port against attestation report * remove unused params * moving to get certs in js * i built stuff * it works * fully working in nodejs and also browser * fix valid cert test * sync package version * push readme changes * add back attestation checking from bad merge * add default for cayenne for attestation check * add explicit attestation check disable in e2e tests * fmt --------- Co-authored-by: Josh Long <[email protected]> * fix #268 (#269) --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Signed-off-by: Bean <[email protected]> Signed-off-by: VoR0220 <[email protected]> Co-authored-by: Howard Tam <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Anson <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> Co-authored-by: deb <[email protected]> Co-authored-by: RJ Catalano <[email protected]> Co-authored-by: Valerio Massimo <[email protected]> Co-authored-by: Eric Lewis <[email protected]>
joshLong145
pushed a commit
that referenced
this pull request
Nov 29, 2023
* update enums * remove static v value from test * update ecdsa-sdk with new recid calculation * fix update to ecdsa-sdk for recid fixes * Integrate new BLS WASM * Update crypto wrappers around BLS WASM * Add return types to utility functions * Use generics in IEither * Use generics in IEither * Refactor param validation, add coverage, use IEither to return error instead of throwing * Fix map * Fix crypto package logic + tests * Update encryption helpers and integrate new BLS encryption to lit-node-client-nodejs package * Remove jalapeno support and make serrano the default * Build fixes + bug fixes * Make demo app use TS * Use better names, fixes * Fix bug, make errors more verbose * Update encryption logic in demo app * Couple of important bug fixes + tidy up * Demo using human-readable strings * Update comments and JSDocs * Fix bugs, update all e2e & manual tests, simplify encryptString to just arrayify utf-16 strings * Update bls-sdk,crypto with verify_signature, implement demo-locked-express-app * Add getSignedToken + verification to e2e tests * Update manual_tests for signed JWT tests * Cleanup * Fix types * Use cayenne as default * Update to cayenne contracts * fix tsc error * rebuilt wasm module * bump major to 3 -> 3.0.0 * add sig type * fix test and sig combination logic * update logic for removing postifxed polarity on signature * upgrade signature combination for cait sith changes * update test * upgrade crypto and ecdsa lib for hd key signature and public key derivation * add support for public key derivation * update claim and signing tests * add auth callback statement * updates for new enums on nodes * add hd key support * update claim impls * add rootkeys to handshake * add mint claim callback * update claim types per node updates * remove key id from signing request * chore: update pkgs in lit auth example * Revert "chore: update pkgs in lit auth example" This reverts commit 83263dd. * Merge pull request #194 from LIT-Protocol/feat/update-mint-relay feat: support new mint and fetch endpoints * merge of pr #194 fixes * implement relay fetch call * add telem endpoint * fix build issues from merge * fix types * migrate hd pubkey method from lit-node-client to lit-core * update claim endpoint * updates for key claiming * wip update contracts * update manifest urls and add access token headers on fetch * move sig reformatting to client * read auth method acc token from cfg * update contract-client * updates for cayenne * update lit config for auth method pass through * update sig recomb for new key type value * update tests * update contract addresses for cayenne * add contract ignore statement * update contract sdk bindings * update contracts lookup for cayenne * update claim types for explicit claim processing types. * add check for expiration on auth sig generation * update type comment * fix import * change network for demo * update relay endpoints * update relay url * update relayer endpoint * update import * get rp id from origin domain * remove check for webauthn from claim * add logging of request id on http request failure * update function name * fmt * update baseProvider claimKey * type update * [Master <> V3 Merge] Feature/lit 1322 js sdk merge in v3 to revamp branch (#209) * Feature/lit 856 add sych support (#186) * start stych refactor * add basic token validation for otp authentication * updates from testing * remove stale types * remove test data from test source * type fixes * typo * fmt * type updates * initigrate both otp auth methods * version 2.2.42 * fix provider options union * fix base provider relay body * Published Version 2.2.43 * Use setup-node GH action with yarn caching (#180) * Use setup-node GH action with yarn caching * Add step name * fix url route formatting * Published Version 2.2.44 --alpha * add public goods network (#190) * Feature/pkp sui (#185) * feat: add pkp-sui * feat: add pkp-sui test * fix typo * change to use bs58 * fix pkp-sui test fix typo Devnet is reset weekly, Testnet was reset on May 11 --------- Co-authored-by: Yoonhyoung-Lee <[email protected]> * Publish version 2.2.45 * feat: add optimismGoerli * Published version 2.2.46 * feat: add manual tests on optimismGoerli * docs: update pkp-sui readme (#191) Co-authored-by: Yoonhyoung-Lee <[email protected]> * added waev chain (#192) * Pass in statement from authCallbackParams to signSessionKey (#193) * wip: support new mint endpoint * wip: update lit-auth-client demo app * wip: expand provider options, export stytch * wip: local testing * chore: remove logs, local relay * misc: update copy in demo app * fix: different type to represent data for registering auth methods * fix: handle parsing err * fix: set routes * Fix/humanize acc (#196) * updates from contract abi import * update test * feat: option to not build into react app * Published version 2.2.49 * chore: update pkgs in lit auth example * feat: support WC v2 for lit-connect-modal (#197) * Revert to 3118e29 * Revert "chore: update pkgs in lit auth example" This reverts commit 3118e29. * Revert "feat: support WC v2 for lit-connect-modal (#197)" This reverts commit a3b83cd. * [V2/V3] [Feat] Update lit modal to support wallet connect (#198) * feat: support wc v2 for lit-connect-modal * chore: remove old file * - moved lit-connect-model dependency * Update esbuilder/lit-connect-modal/esbuild.js Co-authored-by: Adarsh-Kumar28 <[email protected]> Signed-off-by: Anson <[email protected]> * fix: minor changes required --------- Signed-off-by: Anson <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * Published version 2.2.50 * chore: update pkgs * docs: update lit-connect-modal demo readme Signed-off-by: sarah z <[email protected]> * fix webauth options generation url endpoint * Published Version 2.2.53 * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * [V2/V3] feat: add handshake body checks on 'successful' handhshakes (#207) * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * fix: build issues * revery webauthn create options url change * Published Version 2.2.54 * explicit any types --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Co-authored-by: Bean <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * add connect call to claimKeyId * remove access list contract * update contract addresses * remove allow list * remove access control conditions contract * add WithAuthMethodSigning type * update contract manifest * update deployment addresses * remove twillio otp auth provider * remove duplicated package * feat: ability to npm link and unlink packages * feat: add scripts to either bun/npm link * getSignatures works * fix: publish version * feat: ES2021 to make "replaceAll" work * fix: add chore back to be able to publish * fix: had to add "DOM" to use global "crypto" * feat: add script to generate config * feat: add flatten object * fix: when lit action is used as pure serverless function * fix: general worker api * chore: add success exit * enable nx cache * remove nx cache * Feat/manual claim test (#213) * add manual claim test * got past last error * fixing stuff as i go * remove manual overrides for relay url. use cayenne which seems to work fine now * test working but wrong derived pubkey * more debugging * fix tests * remove local overrides * Added lit action fixes * it works * use cayenne * added 2 signatures * built * add check for sig properties before conversion * update config * update config * feat: add UNKNOWN_SIGNATURE_ERROR * updates for claim key comments and abstractions * fix typescript errors with nodejs app * Feature/easier local node testing (#215) * fix typescript errors with nodejs app * config and docs for testing against a local node * local testing works * restore cayenne contracts * add env var docs * cleanup * feat: script to enable/disable nx build cache * chore: update text * feat: add bun test script * chore: make test exit * chore: bun test lit node client * Update executeJs for claim processing from execution response * chage claim test * add new error type * ref loop to map stmt * add lit actions comment * add claim combiner test * update comments * disallow webauthn authentication * add explicit return type * make cayenne use 3 nodes by default (#217) * update key claim combiner and types * Feature/fixes to manual test for local chronicle node (#218) * added a sleep to the manual test so there's time for the minted PKP to propagate to the local chronicle replica * debug: false * add address conversion * update api docs for v3 * format account addr to eip-55 * add casing normalize to eth sign message check * bump version to 3.0.1 * bump version 3.0.2 * update project id * update api docs * add auth method scopes and pkp helper method * add pkp helper methods * Hash the toSign parameter before signing in tests (#220) * [Merge Branch] Feature/lit 1498 js sdk merge e2e nodejs branch into v3 (#221) * update ecdsa sdk * refactor combiination entry point for new method signature * update ecdsa-sdk from ecdsa wasm * updates for new cait sith ecdsa-sdk * fixes to key remapping * update to crypto tests for ecdsa sdk * update tests for sign recombination * remove unused import * Add new ECDSA signature types * remove enum from types * add enum for ecdsa key type. * update enums * remove static v value from test * update ecdsa-sdk with new recid calculation * fix update to ecdsa-sdk for recid fixes * Integrate new BLS WASM * Update crypto wrappers around BLS WASM * Add return types to utility functions * Use generics in IEither * Use generics in IEither * Refactor param validation, add coverage, use IEither to return error instead of throwing * Fix map * Fix crypto package logic + tests * Update encryption helpers and integrate new BLS encryption to lit-node-client-nodejs package * Remove jalapeno support and make serrano the default * Build fixes + bug fixes * Make demo app use TS * Use better names, fixes * Fix bug, make errors more verbose * Update encryption logic in demo app * Couple of important bug fixes + tidy up * Demo using human-readable strings * Update comments and JSDocs * Fix bugs, update all e2e & manual tests, simplify encryptString to just arrayify utf-16 strings * Update bls-sdk,crypto with verify_signature, implement demo-locked-express-app * Add getSignedToken + verification to e2e tests * Update manual_tests for signed JWT tests * Cleanup * Fix types * Use cayenne as default * Update to cayenne contracts * fix tsc error * rebuilt wasm module * bump major to 3 -> 3.0.0 * add sig type * fix test and sig combination logic * update logic for removing postifxed polarity on signature * upgrade signature combination for cait sith changes * update test * upgrade crypto and ecdsa lib for hd key signature and public key derivation * add support for public key derivation * update claim and signing tests * add auth callback statement * updates for new enums on nodes * add hd key support * update claim impls * add rootkeys to handshake * add mint claim callback * update claim types per node updates * remove key id from signing request * chore: update pkgs in lit auth example * Revert "chore: update pkgs in lit auth example" This reverts commit 83263dd. * Merge pull request #194 from LIT-Protocol/feat/update-mint-relay feat: support new mint and fetch endpoints * merge of pr #194 fixes * implement relay fetch call * add telem endpoint * fix build issues from merge * fix types * migrate hd pubkey method from lit-node-client to lit-core * update claim endpoint * updates for key claiming * wip update contracts * update manifest urls and add access token headers on fetch * move sig reformatting to client * read auth method acc token from cfg * update contract-client * updates for cayenne * update lit config for auth method pass through * update sig recomb for new key type value * update tests * update contract addresses for cayenne * add contract ignore statement * update contract sdk bindings * update contracts lookup for cayenne * update claim types for explicit claim processing types. * add check for expiration on auth sig generation * update type comment * fix import * change network for demo * update relay endpoints * update relay url * update relayer endpoint * update import * get rp id from origin domain * remove check for webauthn from claim * add logging of request id on http request failure * update function name * revery webauthn create options url change * Published Version 2.2.54 * fmt * update baseProvider claimKey * type update * [Master <> V3 Merge] Feature/lit 1322 js sdk merge in v3 to revamp branch (#209) * Feature/lit 856 add sych support (#186) * start stych refactor * add basic token validation for otp authentication * updates from testing * remove stale types * remove test data from test source * type fixes * typo * fmt * type updates * initigrate both otp auth methods * version 2.2.42 * fix provider options union * fix base provider relay body * Published Version 2.2.43 * Use setup-node GH action with yarn caching (#180) * Use setup-node GH action with yarn caching * Add step name * fix url route formatting * Published Version 2.2.44 --alpha * add public goods network (#190) * Feature/pkp sui (#185) * feat: add pkp-sui * feat: add pkp-sui test * fix typo * change to use bs58 * fix pkp-sui test fix typo Devnet is reset weekly, Testnet was reset on May 11 --------- Co-authored-by: Yoonhyoung-Lee <[email protected]> * Publish version 2.2.45 * feat: add optimismGoerli * Published version 2.2.46 * feat: add manual tests on optimismGoerli * docs: update pkp-sui readme (#191) Co-authored-by: Yoonhyoung-Lee <[email protected]> * added waev chain (#192) * Pass in statement from authCallbackParams to signSessionKey (#193) * wip: support new mint endpoint * wip: update lit-auth-client demo app * wip: expand provider options, export stytch * wip: local testing * chore: remove logs, local relay * misc: update copy in demo app * fix: different type to represent data for registering auth methods * fix: handle parsing err * fix: set routes * Fix/humanize acc (#196) * updates from contract abi import * update test * feat: option to not build into react app * Published version 2.2.49 * chore: update pkgs in lit auth example * feat: support WC v2 for lit-connect-modal (#197) * Revert to 3118e29 * Revert "chore: update pkgs in lit auth example" This reverts commit 3118e29. * Revert "feat: support WC v2 for lit-connect-modal (#197)" This reverts commit a3b83cd. * [V2/V3] [Feat] Update lit modal to support wallet connect (#198) * feat: support wc v2 for lit-connect-modal * chore: remove old file * - moved lit-connect-model dependency * Update esbuilder/lit-connect-modal/esbuild.js Co-authored-by: Adarsh-Kumar28 <[email protected]> Signed-off-by: Anson <[email protected]> * fix: minor changes required --------- Signed-off-by: Anson <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * Published version 2.2.50 * chore: update pkgs * docs: update lit-connect-modal demo readme Signed-off-by: sarah z <[email protected]> * fix webauth options generation url endpoint * Published Version 2.2.53 * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * [V2/V3] feat: add handshake body checks on 'successful' handhshakes (#207) * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * fix: build issues * revery webauthn create options url change * Published Version 2.2.54 * explicit any types --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Co-authored-by: Bean <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * add connect call to claimKeyId * remove access list contract * update contract addresses * remove allow list * remove access control conditions contract * add WithAuthMethodSigning type * update contract manifest * update deployment addresses * remove twillio otp auth provider * remove duplicated package * feat: ability to npm link and unlink packages * feat: add scripts to either bun/npm link * getSignatures works * fix: publish version * feat: ES2021 to make "replaceAll" work * fix: add chore back to be able to publish * fix: had to add "DOM" to use global "crypto" * feat: add script to generate config * feat: add flatten object * fix: when lit action is used as pure serverless function * fix: general worker api * chore: add success exit * enable nx cache * remove nx cache * Feat/manual claim test (#213) * add manual claim test * got past last error * fixing stuff as i go * remove manual overrides for relay url. use cayenne which seems to work fine now * test working but wrong derived pubkey * more debugging * fix tests * remove local overrides * Added lit action fixes * it works * use cayenne * added 2 signatures * built * add check for sig properties before conversion * update config * update config * feat: add UNKNOWN_SIGNATURE_ERROR * updates for claim key comments and abstractions * fix typescript errors with nodejs app * Feature/easier local node testing (#215) * fix typescript errors with nodejs app * config and docs for testing against a local node * local testing works * restore cayenne contracts * add env var docs * cleanup * feat: script to enable/disable nx build cache * chore: update text * feat: add bun test script * chore: make test exit * chore: bun test lit node client * Update executeJs for claim processing from execution response * chage claim test * add new error type * ref loop to map stmt * add lit actions comment * add claim combiner test * update comments * disallow webauthn authentication * add explicit return type * make cayenne use 3 nodes by default (#217) * update key claim combiner and types * Feature/fixes to manual test for local chronicle node (#218) * added a sleep to the manual test so there's time for the minted PKP to propagate to the local chronicle replica * debug: false * first pass * add address conversion * update api docs for v3 * format account addr to eip-55 * add casing normalize to eth sign message check * bump version to 3.0.1 * bump version 3.0.2 * feat: add e2e-nodejs tests * feat: add the ability to test by group * update project id * update api docs * feat: add test to LitNodeClientNodejs * docs: update * fix: access controls conditions tests * add auth method scopes and pkp helper method * add pkp helper methods * feat: add contracts-sdk tests * fix: min nodes * chore: update contracts * fix: add allowJs: true * feat: add more tests * wip * fix: pkp sign recover works * wip * fix: use sha256 to check dataSigned * Hash the toSign parameter before signing in tests (#220) * wip: all new e2e tests passed so far, continue.. * feat: pkp sui works * 🚀 all unit tests passed, next e2e nodejs * update: github CI * chore: change to use html instead of react for testing * ci update * chore: indentation * fix: error message * Empty-Commit * fix: to use pkpSign & passed all pkp-ethers tests * fix: pkp client works too * 🚀 OK. All Good * docs: update * resolve comments --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Co-authored-by: Josh Long <[email protected]> Co-authored-by: Howard Tam <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * This is an empty commit * [Merge Branch] Feature/lit 1498 js sdk merge e2e nodejs branch into v3 (#221) (#222) * update ecdsa sdk * refactor combiination entry point for new method signature * update ecdsa-sdk from ecdsa wasm * updates for new cait sith ecdsa-sdk * fixes to key remapping * update to crypto tests for ecdsa sdk * update tests for sign recombination * remove unused import * Add new ECDSA signature types * remove enum from types * add enum for ecdsa key type. * update enums * remove static v value from test * update ecdsa-sdk with new recid calculation * fix update to ecdsa-sdk for recid fixes * Integrate new BLS WASM * Update crypto wrappers around BLS WASM * Add return types to utility functions * Use generics in IEither * Use generics in IEither * Refactor param validation, add coverage, use IEither to return error instead of throwing * Fix map * Fix crypto package logic + tests * Update encryption helpers and integrate new BLS encryption to lit-node-client-nodejs package * Remove jalapeno support and make serrano the default * Build fixes + bug fixes * Make demo app use TS * Use better names, fixes * Fix bug, make errors more verbose * Update encryption logic in demo app * Couple of important bug fixes + tidy up * Demo using human-readable strings * Update comments and JSDocs * Fix bugs, update all e2e & manual tests, simplify encryptString to just arrayify utf-16 strings * Update bls-sdk,crypto with verify_signature, implement demo-locked-express-app * Add getSignedToken + verification to e2e tests * Update manual_tests for signed JWT tests * Cleanup * Fix types * Use cayenne as default * Update to cayenne contracts * fix tsc error * rebuilt wasm module * bump major to 3 -> 3.0.0 * add sig type * fix test and sig combination logic * update logic for removing postifxed polarity on signature * upgrade signature combination for cait sith changes * update test * upgrade crypto and ecdsa lib for hd key signature and public key derivation * add support for public key derivation * update claim and signing tests * add auth callback statement * updates for new enums on nodes * add hd key support * update claim impls * add rootkeys to handshake * add mint claim callback * update claim types per node updates * remove key id from signing request * chore: update pkgs in lit auth example * Revert "chore: update pkgs in lit auth example" This reverts commit 83263dd. * Merge pull request #194 from LIT-Protocol/feat/update-mint-relay feat: support new mint and fetch endpoints * merge of pr #194 fixes * implement relay fetch call * add telem endpoint * fix build issues from merge * fix types * migrate hd pubkey method from lit-node-client to lit-core * update claim endpoint * updates for key claiming * wip update contracts * update manifest urls and add access token headers on fetch * move sig reformatting to client * read auth method acc token from cfg * update contract-client * updates for cayenne * update lit config for auth method pass through * update sig recomb for new key type value * update tests * update contract addresses for cayenne * add contract ignore statement * update contract sdk bindings * update contracts lookup for cayenne * update claim types for explicit claim processing types. * add check for expiration on auth sig generation * update type comment * fix import * change network for demo * update relay endpoints * update relay url * update relayer endpoint * update import * get rp id from origin domain * remove check for webauthn from claim * add logging of request id on http request failure * update function name * revery webauthn create options url change * Published Version 2.2.54 * fmt * update baseProvider claimKey * type update * [Master <> V3 Merge] Feature/lit 1322 js sdk merge in v3 to revamp branch (#209) * Feature/lit 856 add sych support (#186) * start stych refactor * add basic token validation for otp authentication * updates from testing * remove stale types * remove test data from test source * type fixes * typo * fmt * type updates * initigrate both otp auth methods * version 2.2.42 * fix provider options union * fix base provider relay body * Published Version 2.2.43 * Use setup-node GH action with yarn caching (#180) * Use setup-node GH action with yarn caching * Add step name * fix url route formatting * Published Version 2.2.44 --alpha * add public goods network (#190) * Feature/pkp sui (#185) * feat: add pkp-sui * feat: add pkp-sui test * fix typo * change to use bs58 * fix pkp-sui test fix typo Devnet is reset weekly, Testnet was reset on May 11 --------- * Publish version 2.2.45 * feat: add optimismGoerli * Published version 2.2.46 * feat: add manual tests on optimismGoerli * docs: update pkp-sui readme (#191) * added waev chain (#192) * Pass in statement from authCallbackParams to signSessionKey (#193) * wip: support new mint endpoint * wip: update lit-auth-client demo app * wip: expand provider options, export stytch * wip: local testing * chore: remove logs, local relay * misc: update copy in demo app * fix: different type to represent data for registering auth methods * fix: handle parsing err * fix: set routes * Fix/humanize acc (#196) * updates from contract abi import * update test * feat: option to not build into react app * Published version 2.2.49 * chore: update pkgs in lit auth example * feat: support WC v2 for lit-connect-modal (#197) * Revert to 3118e29 * Revert "chore: update pkgs in lit auth example" This reverts commit 3118e29. * Revert "feat: support WC v2 for lit-connect-modal (#197)" This reverts commit a3b83cd. * [V2/V3] [Feat] Update lit modal to support wallet connect (#198) * feat: support wc v2 for lit-connect-modal * chore: remove old file * - moved lit-connect-model dependency * Update esbuilder/lit-connect-modal/esbuild.js * fix: minor changes required --------- * Published version 2.2.50 * chore: update pkgs * docs: update lit-connect-modal demo readme * fix webauth options generation url endpoint * Published Version 2.2.53 * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * [V2/V3] feat: add handshake body checks on 'successful' handhshakes (#207) * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * fix: build issues * revery webauthn create options url change * Published Version 2.2.54 * explicit any types --------- * add connect call to claimKeyId * remove access list contract * update contract addresses * remove allow list * remove access control conditions contract * add WithAuthMethodSigning type * update contract manifest * update deployment addresses * remove twillio otp auth provider * remove duplicated package * feat: ability to npm link and unlink packages * feat: add scripts to either bun/npm link * getSignatures works * fix: publish version * feat: ES2021 to make "replaceAll" work * fix: add chore back to be able to publish * fix: had to add "DOM" to use global "crypto" * feat: add script to generate config * feat: add flatten object * fix: when lit action is used as pure serverless function * fix: general worker api * chore: add success exit * enable nx cache * remove nx cache * Feat/manual claim test (#213) * add manual claim test * got past last error * fixing stuff as i go * remove manual overrides for relay url. use cayenne which seems to work fine now * test working but wrong derived pubkey * more debugging * fix tests * remove local overrides * Added lit action fixes * it works * use cayenne * added 2 signatures * built * add check for sig properties before conversion * update config * update config * feat: add UNKNOWN_SIGNATURE_ERROR * updates for claim key comments and abstractions * fix typescript errors with nodejs app * Feature/easier local node testing (#215) * fix typescript errors with nodejs app * config and docs for testing against a local node * local testing works * restore cayenne contracts * add env var docs * cleanup * feat: script to enable/disable nx build cache * chore: update text * feat: add bun test script * chore: make test exit * chore: bun test lit node client * Update executeJs for claim processing from execution response * chage claim test * add new error type * ref loop to map stmt * add lit actions comment * add claim combiner test * update comments * disallow webauthn authentication * add explicit return type * make cayenne use 3 nodes by default (#217) * update key claim combiner and types * Feature/fixes to manual test for local chronicle node (#218) * added a sleep to the manual test so there's time for the minted PKP to propagate to the local chronicle replica * debug: false * first pass * add address conversion * update api docs for v3 * format account addr to eip-55 * add casing normalize to eth sign message check * bump version to 3.0.1 * bump version 3.0.2 * feat: add e2e-nodejs tests * feat: add the ability to test by group * update project id * update api docs * feat: add test to LitNodeClientNodejs * docs: update * fix: access controls conditions tests * add auth method scopes and pkp helper method * add pkp helper methods * feat: add contracts-sdk tests * fix: min nodes * chore: update contracts * fix: add allowJs: true * feat: add more tests * wip * fix: pkp sign recover works * wip * fix: use sha256 to check dataSigned * Hash the toSign parameter before signing in tests (#220) * wip: all new e2e tests passed so far, continue.. * feat: pkp sui works * 🚀 all unit tests passed, next e2e nodejs * update: github CI * chore: change to use html instead of react for testing * ci update * chore: indentation * fix: error message * Empty-Commit * fix: to use pkpSign & passed all pkp-ethers tests * fix: pkp client works too * 🚀 OK. All Good * docs: update * resolve comments --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Co-authored-by: Josh Long <[email protected]> Co-authored-by: Howard Tam <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * test: all good. ready go publish 3.0.3 * docs: update * update contract-sdk * remove duplicate type file * update CHANGELOG * fix auth client claim pubkey generator * remove stale contract data * fix logging and make user id check optional * error message log and action key id flag * Bump version 3.0.4 * fix contracts-sdk & e2e tests * fix typeo * bump version 3.0.5 * some fixes to make the manual tests work with node changes (#227) * update (#226) Update examples to be on latest V3 SDK packages * make alertWhenUnauthorized be false by default (#229) * update docs * Fix/controller auth method (#230) * add support for controller auth methods in pkp base * fix defined checks Signed-off-by: Bean <[email protected]> --------- Signed-off-by: Bean <[email protected]> * Feat: Validate boolean conditions in safeParams for Encryption (#231) * feat: Validate boolean conditions in safeParams for encryption + its test * refac: Update validate function name with is prefix * Remove broken examples (#232) Will keep `demo-pkp-social-auth-next-ts`, because update seems straightforward, but will be addressed in another PR * Feature/lit 1598 js sdk v3 fix unable to use sessionsigs to pkpsign (#234) * fix: build issue due to app not found * fix: pkp session sigs signing * feat: script to generate demo app * feat: demo app * update: contracts * chore * fix: e2e nodejs works * feat: add demo * feat: update bump script to include tag * Published version 3.0.6 * fix: Validate boolean Access Control Conditions (#235) * fix: Validate boolean Access Control Conditions * refac: Remove logs & manual test * Fix/claim return (#237) * fix object length check * update comment * Published version 3.0.11 * Feature/lit 1697 js sdk fix combine shares when above threshold (#238) * fix: session sigs threshold requirement * fix: use log * Update PKP social auth project to be on cayenne (#233) * Update project to be on cayenne * Add/claim props e2e (#239) * fix property names on claim-key test * fix claim tests * fix: don't block if null (#240) * add auth method support to executeJs and helper methods (#243) * add auth method support to executeJs and helper methods * use non related signature to pkp for test * remove auth method check on the auth sig condition. * fix test case for auth sig address * revert condition check * publish version 3.0.15 * Lit 1693/add explicit stytch authentication factors (#242) * email-stytch provider implementation * move to implicit auth factor through generic on provider * update provider enum * Add other auth types and return explicit type per factor * update comments * remove user id requirment from base stytch provider * add more init tests * Feature/lit 1799 fix req data mapping in js sdk (#244) * Bump Version 3.0.16 * Fix tests for providers * change check for auth to auth sig and session sig defined * update contract gen * fmt * add authMethod pass through to lit actions * Fix/executeJS array normalizing (#249) * add normalization fix * use different prop names for signature data * feat: refactor normalizeParams * fix jsparam undefined case, adds test --------- Co-authored-by: Ansonhkg <[email protected]> * feat: ability to add scope when minting (#251) * Feature/lit 1765 js sdk provider not set in pkpethers (#250) * pkpethers - tableland works * feat: lit config & pkp-ethers update * fix tests & interfaces * update e2e tests * Published version 3.0.18@cayenne * mint by auth method (#253) * mint by auth method * remove url * feat: fix authmethod type 6 * add a note * feat: add enums * remove declare * rename from 'mint' to 'mintWithAuth' for better clarity * fix: ignore_dirs * feat: add logs to e2e nodejs tests * Published version 3.0.19 * Feature/lit 1862 js sdk add a abstract getauthmethodid public static function (#254) * feat: public static to get auth id by auth method * fix: import * Published version 3.0.20 * fix: allowing custom args to be passed (#256) * feat: update e2e tests * update social demo app (#255) * WIP * wip2 - awaiting verifyAndMintPKPThroughRelayer to be implemented * fix: verifyAndMintPKPThroughRelayer with custom args * update pkg * remove comment * rm lock --------- Signed-off-by: Anson <[email protected]> * clean up demos * publish and add a little readme thing * make a change to claim and mint to add in tx options (#257) Signed-off-by: VoR0220 <[email protected]> * fix encryptFileAndZipWithMetadata node (#246) * fix(nacl): remove require hack (#263) A hack was added a year ago to suppress a webpack complaint. Other packages import crypto and don't seem to contain this hack. The metro bundler doesn't allow for conditional requires / substitutions, and as such causes react-native to fail loading the crypto library. This PR removes the hack. I have not checked if webpack still complains but am hoping Chris can chime in. * Published version 3.0.23 * feat: Add missing chains to Cayenne (#264) * Published version 3.0.24 * add new logging package * wip * updates for logging structure * feat: Store blockhash from handshake + use it in SIWE (#248) * feat: Store blockhash from handshake + use it in SIWE * feat: Pass blockhash instead of client in authSig functions * refac: Cleanup * feat: Client getter for blockhash + Manual tests * refac: Remove comments * refac: latest_blockhash -> latestBlockhash * test: Display result of manual tests * test: Node E2E test for creating authSig by fetching the blockhash from the client * add new logger utilties * logging fixes * add tests * add new logging support * fix hashing * fmt * fix types for provider call * fmt * gen * change log to logError * update pkg version * add colors * gen * add colors to request id * add more logs to tracing * update logging in connection logic * fix rlnft abi --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Signed-off-by: Bean <[email protected]> Signed-off-by: VoR0220 <[email protected]> Co-authored-by: Howard Tam <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Anson <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> Co-authored-by: deb <[email protected]> Co-authored-by: RJ Catalano <[email protected]> Co-authored-by: Valerio Massimo <[email protected]> Co-authored-by: Eric Lewis <[email protected]>
joshLong145
pushed a commit
that referenced
this pull request
Nov 29, 2023
* Add new ECDSA signature types * remove enum from types * add enum for ecdsa key type. * update enums * remove static v value from test * update ecdsa-sdk with new recid calculation * fix update to ecdsa-sdk for recid fixes * Integrate new BLS WASM * Update crypto wrappers around BLS WASM * Add return types to utility functions * Use generics in IEither * Use generics in IEither * Refactor param validation, add coverage, use IEither to return error instead of throwing * Fix map * Fix crypto package logic + tests * Update encryption helpers and integrate new BLS encryption to lit-node-client-nodejs package * Remove jalapeno support and make serrano the default * Build fixes + bug fixes * Make demo app use TS * Use better names, fixes * Fix bug, make errors more verbose * Update encryption logic in demo app * Couple of important bug fixes + tidy up * Demo using human-readable strings * Update comments and JSDocs * Fix bugs, update all e2e & manual tests, simplify encryptString to just arrayify utf-16 strings * Update bls-sdk,crypto with verify_signature, implement demo-locked-express-app * Add getSignedToken + verification to e2e tests * Update manual_tests for signed JWT tests * Cleanup * Fix types * Use cayenne as default * Update to cayenne contracts * fix tsc error * rebuilt wasm module * bump major to 3 -> 3.0.0 * add sig type * fix test and sig combination logic * update logic for removing postifxed polarity on signature * upgrade signature combination for cait sith changes * update test * upgrade crypto and ecdsa lib for hd key signature and public key derivation * add support for public key derivation * update claim and signing tests * add auth callback statement * updates for new enums on nodes * add hd key support * update claim impls * add rootkeys to handshake * add mint claim callback * update claim types per node updates * remove key id from signing request * chore: update pkgs in lit auth example * Revert "chore: update pkgs in lit auth example" This reverts commit 83263dd. * Merge pull request #194 from LIT-Protocol/feat/update-mint-relay feat: support new mint and fetch endpoints * merge of pr #194 fixes * implement relay fetch call * add telem endpoint * fix build issues from merge * fix types * migrate hd pubkey method from lit-node-client to lit-core * update claim endpoint * updates for key claiming * wip update contracts * update manifest urls and add access token headers on fetch * move sig reformatting to client * read auth method acc token from cfg * update contract-client * updates for cayenne * update lit config for auth method pass through * update sig recomb for new key type value * update tests * update contract addresses for cayenne * add contract ignore statement * update contract sdk bindings * update contracts lookup for cayenne * update claim types for explicit claim processing types. * add check for expiration on auth sig generation * update type comment * fix import * change network for demo * update relay endpoints * update relay url * update relayer endpoint * update import * get rp id from origin domain * remove check for webauthn from claim * add logging of request id on http request failure * update function name * fmt * update baseProvider claimKey * type update * [Master <> V3 Merge] Feature/lit 1322 js sdk merge in v3 to revamp branch (#209) * Feature/lit 856 add sych support (#186) * start stych refactor * add basic token validation for otp authentication * updates from testing * remove stale types * remove test data from test source * type fixes * typo * fmt * type updates * initigrate both otp auth methods * version 2.2.42 * fix provider options union * fix base provider relay body * Published Version 2.2.43 * Use setup-node GH action with yarn caching (#180) * Use setup-node GH action with yarn caching * Add step name * fix url route formatting * Published Version 2.2.44 --alpha * add public goods network (#190) * Feature/pkp sui (#185) * feat: add pkp-sui * feat: add pkp-sui test * fix typo * change to use bs58 * fix pkp-sui test fix typo Devnet is reset weekly, Testnet was reset on May 11 --------- Co-authored-by: Yoonhyoung-Lee <[email protected]> * Publish version 2.2.45 * feat: add optimismGoerli * Published version 2.2.46 * feat: add manual tests on optimismGoerli * docs: update pkp-sui readme (#191) Co-authored-by: Yoonhyoung-Lee <[email protected]> * added waev chain (#192) * Pass in statement from authCallbackParams to signSessionKey (#193) * wip: support new mint endpoint * wip: update lit-auth-client demo app * wip: expand provider options, export stytch * wip: local testing * chore: remove logs, local relay * misc: update copy in demo app * fix: different type to represent data for registering auth methods * fix: handle parsing err * fix: set routes * Fix/humanize acc (#196) * updates from contract abi import * update test * feat: option to not build into react app * Published version 2.2.49 * chore: update pkgs in lit auth example * feat: support WC v2 for lit-connect-modal (#197) * Revert to 3118e29 * Revert "chore: update pkgs in lit auth example" This reverts commit 3118e29. * Revert "feat: support WC v2 for lit-connect-modal (#197)" This reverts commit a3b83cd. * [V2/V3] [Feat] Update lit modal to support wallet connect (#198) * feat: support wc v2 for lit-connect-modal * chore: remove old file * - moved lit-connect-model dependency * Update esbuilder/lit-connect-modal/esbuild.js Co-authored-by: Adarsh-Kumar28 <[email protected]> Signed-off-by: Anson <[email protected]> * fix: minor changes required --------- Signed-off-by: Anson <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * Published version 2.2.50 * chore: update pkgs * docs: update lit-connect-modal demo readme Signed-off-by: sarah z <[email protected]> * fix webauth options generation url endpoint * Published Version 2.2.53 * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * [V2/V3] feat: add handshake body checks on 'successful' handhshakes (#207) * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * fix: build issues * revery webauthn create options url change * Published Version 2.2.54 * explicit any types --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Co-authored-by: Bean <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * add connect call to claimKeyId * remove access list contract * update contract addresses * remove allow list * remove access control conditions contract * add WithAuthMethodSigning type * update contract manifest * update deployment addresses * remove twillio otp auth provider * remove duplicated package * feat: ability to npm link and unlink packages * feat: add scripts to either bun/npm link * getSignatures works * fix: publish version * feat: ES2021 to make "replaceAll" work * fix: add chore back to be able to publish * fix: had to add "DOM" to use global "crypto" * feat: add script to generate config * feat: add flatten object * fix: when lit action is used as pure serverless function * fix: general worker api * chore: add success exit * enable nx cache * remove nx cache * Feat/manual claim test (#213) * add manual claim test * got past last error * fixing stuff as i go * remove manual overrides for relay url. use cayenne which seems to work fine now * test working but wrong derived pubkey * more debugging * fix tests * remove local overrides * Added lit action fixes * it works * use cayenne * added 2 signatures * built * add check for sig properties before conversion * update config * update config * feat: add UNKNOWN_SIGNATURE_ERROR * updates for claim key comments and abstractions * fix typescript errors with nodejs app * Feature/easier local node testing (#215) * fix typescript errors with nodejs app * config and docs for testing against a local node * local testing works * restore cayenne contracts * add env var docs * cleanup * feat: script to enable/disable nx build cache * chore: update text * feat: add bun test script * chore: make test exit * chore: bun test lit node client * Update executeJs for claim processing from execution response * chage claim test * add new error type * ref loop to map stmt * add lit actions comment * add claim combiner test * update comments * disallow webauthn authentication * add explicit return type * make cayenne use 3 nodes by default (#217) * update key claim combiner and types * Feature/fixes to manual test for local chronicle node (#218) * added a sleep to the manual test so there's time for the minted PKP to propagate to the local chronicle replica * debug: false * add address conversion * update api docs for v3 * format account addr to eip-55 * add casing normalize to eth sign message check * bump version to 3.0.1 * bump version 3.0.2 * update project id * update api docs * add auth method scopes and pkp helper method * add pkp helper methods * Hash the toSign parameter before signing in tests (#220) * [Merge Branch] Feature/lit 1498 js sdk merge e2e nodejs branch into v3 (#221) * update ecdsa sdk * refactor combiination entry point for new method signature * update ecdsa-sdk from ecdsa wasm * updates for new cait sith ecdsa-sdk * fixes to key remapping * update to crypto tests for ecdsa sdk * update tests for sign recombination * remove unused import * Add new ECDSA signature types * remove enum from types * add enum for ecdsa key type. * update enums * remove static v value from test * update ecdsa-sdk with new recid calculation * fix update to ecdsa-sdk for recid fixes * Integrate new BLS WASM * Update crypto wrappers around BLS WASM * Add return types to utility functions * Use generics in IEither * Use generics in IEither * Refactor param validation, add coverage, use IEither to return error instead of throwing * Fix map * Fix crypto package logic + tests * Update encryption helpers and integrate new BLS encryption to lit-node-client-nodejs package * Remove jalapeno support and make serrano the default * Build fixes + bug fixes * Make demo app use TS * Use better names, fixes * Fix bug, make errors more verbose * Update encryption logic in demo app * Couple of important bug fixes + tidy up * Demo using human-readable strings * Update comments and JSDocs * Fix bugs, update all e2e & manual tests, simplify encryptString to just arrayify utf-16 strings * Update bls-sdk,crypto with verify_signature, implement demo-locked-express-app * Add getSignedToken + verification to e2e tests * Update manual_tests for signed JWT tests * Cleanup * Fix types * Use cayenne as default * Update to cayenne contracts * fix tsc error * rebuilt wasm module * bump major to 3 -> 3.0.0 * add sig type * fix test and sig combination logic * update logic for removing postifxed polarity on signature * upgrade signature combination for cait sith changes * update test * upgrade crypto and ecdsa lib for hd key signature and public key derivation * add support for public key derivation * update claim and signing tests * add auth callback statement * updates for new enums on nodes * add hd key support * update claim impls * add rootkeys to handshake * add mint claim callback * update claim types per node updates * remove key id from signing request * chore: update pkgs in lit auth example * Revert "chore: update pkgs in lit auth example" This reverts commit 83263dd. * Merge pull request #194 from LIT-Protocol/feat/update-mint-relay feat: support new mint and fetch endpoints * merge of pr #194 fixes * implement relay fetch call * add telem endpoint * fix build issues from merge * fix types * migrate hd pubkey method from lit-node-client to lit-core * update claim endpoint * updates for key claiming * wip update contracts * update manifest urls and add access token headers on fetch * move sig reformatting to client * read auth method acc token from cfg * update contract-client * updates for cayenne * update lit config for auth method pass through * update sig recomb for new key type value * update tests * update contract addresses for cayenne * add contract ignore statement * update contract sdk bindings * update contracts lookup for cayenne * update claim types for explicit claim processing types. * add check for expiration on auth sig generation * update type comment * fix import * change network for demo * update relay endpoints * update relay url * update relayer endpoint * update import * get rp id from origin domain * remove check for webauthn from claim * add logging of request id on http request failure * update function name * revery webauthn create options url change * Published Version 2.2.54 * fmt * update baseProvider claimKey * type update * [Master <> V3 Merge] Feature/lit 1322 js sdk merge in v3 to revamp branch (#209) * Feature/lit 856 add sych support (#186) * start stych refactor * add basic token validation for otp authentication * updates from testing * remove stale types * remove test data from test source * type fixes * typo * fmt * type updates * initigrate both otp auth methods * version 2.2.42 * fix provider options union * fix base provider relay body * Published Version 2.2.43 * Use setup-node GH action with yarn caching (#180) * Use setup-node GH action with yarn caching * Add step name * fix url route formatting * Published Version 2.2.44 --alpha * add public goods network (#190) * Feature/pkp sui (#185) * feat: add pkp-sui * feat: add pkp-sui test * fix typo * change to use bs58 * fix pkp-sui test fix typo Devnet is reset weekly, Testnet was reset on May 11 --------- Co-authored-by: Yoonhyoung-Lee <[email protected]> * Publish version 2.2.45 * feat: add optimismGoerli * Published version 2.2.46 * feat: add manual tests on optimismGoerli * docs: update pkp-sui readme (#191) Co-authored-by: Yoonhyoung-Lee <[email protected]> * added waev chain (#192) * Pass in statement from authCallbackParams to signSessionKey (#193) * wip: support new mint endpoint * wip: update lit-auth-client demo app * wip: expand provider options, export stytch * wip: local testing * chore: remove logs, local relay * misc: update copy in demo app * fix: different type to represent data for registering auth methods * fix: handle parsing err * fix: set routes * Fix/humanize acc (#196) * updates from contract abi import * update test * feat: option to not build into react app * Published version 2.2.49 * chore: update pkgs in lit auth example * feat: support WC v2 for lit-connect-modal (#197) * Revert to 3118e29 * Revert "chore: update pkgs in lit auth example" This reverts commit 3118e29. * Revert "feat: support WC v2 for lit-connect-modal (#197)" This reverts commit a3b83cd. * [V2/V3] [Feat] Update lit modal to support wallet connect (#198) * feat: support wc v2 for lit-connect-modal * chore: remove old file * - moved lit-connect-model dependency * Update esbuilder/lit-connect-modal/esbuild.js Co-authored-by: Adarsh-Kumar28 <[email protected]> Signed-off-by: Anson <[email protected]> * fix: minor changes required --------- Signed-off-by: Anson <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * Published version 2.2.50 * chore: update pkgs * docs: update lit-connect-modal demo readme Signed-off-by: sarah z <[email protected]> * fix webauth options generation url endpoint * Published Version 2.2.53 * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * [V2/V3] feat: add handshake body checks on 'successful' handhshakes (#207) * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * fix: build issues * revery webauthn create options url change * Published Version 2.2.54 * explicit any types --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Co-authored-by: Bean <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * add connect call to claimKeyId * remove access list contract * update contract addresses * remove allow list * remove access control conditions contract * add WithAuthMethodSigning type * update contract manifest * update deployment addresses * remove twillio otp auth provider * remove duplicated package * feat: ability to npm link and unlink packages * feat: add scripts to either bun/npm link * getSignatures works * fix: publish version * feat: ES2021 to make "replaceAll" work * fix: add chore back to be able to publish * fix: had to add "DOM" to use global "crypto" * feat: add script to generate config * feat: add flatten object * fix: when lit action is used as pure serverless function * fix: general worker api * chore: add success exit * enable nx cache * remove nx cache * Feat/manual claim test (#213) * add manual claim test * got past last error * fixing stuff as i go * remove manual overrides for relay url. use cayenne which seems to work fine now * test working but wrong derived pubkey * more debugging * fix tests * remove local overrides * Added lit action fixes * it works * use cayenne * added 2 signatures * built * add check for sig properties before conversion * update config * update config * feat: add UNKNOWN_SIGNATURE_ERROR * updates for claim key comments and abstractions * fix typescript errors with nodejs app * Feature/easier local node testing (#215) * fix typescript errors with nodejs app * config and docs for testing against a local node * local testing works * restore cayenne contracts * add env var docs * cleanup * feat: script to enable/disable nx build cache * chore: update text * feat: add bun test script * chore: make test exit * chore: bun test lit node client * Update executeJs for claim processing from execution response * chage claim test * add new error type * ref loop to map stmt * add lit actions comment * add claim combiner test * update comments * disallow webauthn authentication * add explicit return type * make cayenne use 3 nodes by default (#217) * update key claim combiner and types * Feature/fixes to manual test for local chronicle node (#218) * added a sleep to the manual test so there's time for the minted PKP to propagate to the local chronicle replica * debug: false * first pass * add address conversion * update api docs for v3 * format account addr to eip-55 * add casing normalize to eth sign message check * bump version to 3.0.1 * bump version 3.0.2 * feat: add e2e-nodejs tests * feat: add the ability to test by group * update project id * update api docs * feat: add test to LitNodeClientNodejs * docs: update * fix: access controls conditions tests * add auth method scopes and pkp helper method * add pkp helper methods * feat: add contracts-sdk tests * fix: min nodes * chore: update contracts * fix: add allowJs: true * feat: add more tests * wip * fix: pkp sign recover works * wip * fix: use sha256 to check dataSigned * Hash the toSign parameter before signing in tests (#220) * wip: all new e2e tests passed so far, continue.. * feat: pkp sui works * 🚀 all unit tests passed, next e2e nodejs * update: github CI * chore: change to use html instead of react for testing * ci update * chore: indentation * fix: error message * Empty-Commit * fix: to use pkpSign & passed all pkp-ethers tests * fix: pkp client works too * 🚀 OK. All Good * docs: update * resolve comments --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Co-authored-by: Josh Long <[email protected]> Co-authored-by: Howard Tam <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * This is an empty commit * [Merge Branch] Feature/lit 1498 js sdk merge e2e nodejs branch into v3 (#221) (#222) * update ecdsa sdk * refactor combiination entry point for new method signature * update ecdsa-sdk from ecdsa wasm * updates for new cait sith ecdsa-sdk * fixes to key remapping * update to crypto tests for ecdsa sdk * update tests for sign recombination * remove unused import * Add new ECDSA signature types * remove enum from types * add enum for ecdsa key type. * update enums * remove static v value from test * update ecdsa-sdk with new recid calculation * fix update to ecdsa-sdk for recid fixes * Integrate new BLS WASM * Update crypto wrappers around BLS WASM * Add return types to utility functions * Use generics in IEither * Use generics in IEither * Refactor param validation, add coverage, use IEither to return error instead of throwing * Fix map * Fix crypto package logic + tests * Update encryption helpers and integrate new BLS encryption to lit-node-client-nodejs package * Remove jalapeno support and make serrano the default * Build fixes + bug fixes * Make demo app use TS * Use better names, fixes * Fix bug, make errors more verbose * Update encryption logic in demo app * Couple of important bug fixes + tidy up * Demo using human-readable strings * Update comments and JSDocs * Fix bugs, update all e2e & manual tests, simplify encryptString to just arrayify utf-16 strings * Update bls-sdk,crypto with verify_signature, implement demo-locked-express-app * Add getSignedToken + verification to e2e tests * Update manual_tests for signed JWT tests * Cleanup * Fix types * Use cayenne as default * Update to cayenne contracts * fix tsc error * rebuilt wasm module * bump major to 3 -> 3.0.0 * add sig type * fix test and sig combination logic * update logic for removing postifxed polarity on signature * upgrade signature combination for cait sith changes * update test * upgrade crypto and ecdsa lib for hd key signature and public key derivation * add support for public key derivation * update claim and signing tests * add auth callback statement * updates for new enums on nodes * add hd key support * update claim impls * add rootkeys to handshake * add mint claim callback * update claim types per node updates * remove key id from signing request * chore: update pkgs in lit auth example * Revert "chore: update pkgs in lit auth example" This reverts commit 83263dd. * Merge pull request #194 from LIT-Protocol/feat/update-mint-relay feat: support new mint and fetch endpoints * merge of pr #194 fixes * implement relay fetch call * add telem endpoint * fix build issues from merge * fix types * migrate hd pubkey method from lit-node-client to lit-core * update claim endpoint * updates for key claiming * wip update contracts * update manifest urls and add access token headers on fetch * move sig reformatting to client * read auth method acc token from cfg * update contract-client * updates for cayenne * update lit config for auth method pass through * update sig recomb for new key type value * update tests * update contract addresses for cayenne * add contract ignore statement * update contract sdk bindings * update contracts lookup for cayenne * update claim types for explicit claim processing types. * add check for expiration on auth sig generation * update type comment * fix import * change network for demo * update relay endpoints * update relay url * update relayer endpoint * update import * get rp id from origin domain * remove check for webauthn from claim * add logging of request id on http request failure * update function name * revery webauthn create options url change * Published Version 2.2.54 * fmt * update baseProvider claimKey * type update * [Master <> V3 Merge] Feature/lit 1322 js sdk merge in v3 to revamp branch (#209) * Feature/lit 856 add sych support (#186) * start stych refactor * add basic token validation for otp authentication * updates from testing * remove stale types * remove test data from test source * type fixes * typo * fmt * type updates * initigrate both otp auth methods * version 2.2.42 * fix provider options union * fix base provider relay body * Published Version 2.2.43 * Use setup-node GH action with yarn caching (#180) * Use setup-node GH action with yarn caching * Add step name * fix url route formatting * Published Version 2.2.44 --alpha * add public goods network (#190) * Feature/pkp sui (#185) * feat: add pkp-sui * feat: add pkp-sui test * fix typo * change to use bs58 * fix pkp-sui test fix typo Devnet is reset weekly, Testnet was reset on May 11 --------- * Publish version 2.2.45 * feat: add optimismGoerli * Published version 2.2.46 * feat: add manual tests on optimismGoerli * docs: update pkp-sui readme (#191) * added waev chain (#192) * Pass in statement from authCallbackParams to signSessionKey (#193) * wip: support new mint endpoint * wip: update lit-auth-client demo app * wip: expand provider options, export stytch * wip: local testing * chore: remove logs, local relay * misc: update copy in demo app * fix: different type to represent data for registering auth methods * fix: handle parsing err * fix: set routes * Fix/humanize acc (#196) * updates from contract abi import * update test * feat: option to not build into react app * Published version 2.2.49 * chore: update pkgs in lit auth example * feat: support WC v2 for lit-connect-modal (#197) * Revert to 3118e29 * Revert "chore: update pkgs in lit auth example" This reverts commit 3118e29. * Revert "feat: support WC v2 for lit-connect-modal (#197)" This reverts commit a3b83cd. * [V2/V3] [Feat] Update lit modal to support wallet connect (#198) * feat: support wc v2 for lit-connect-modal * chore: remove old file * - moved lit-connect-model dependency * Update esbuilder/lit-connect-modal/esbuild.js * fix: minor changes required --------- * Published version 2.2.50 * chore: update pkgs * docs: update lit-connect-modal demo readme * fix webauth options generation url endpoint * Published Version 2.2.53 * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * [V2/V3] feat: add handshake body checks on 'successful' handhshakes (#207) * feat: add handshake body checks on 'successful' handhshakes * fix: remove throwing error * fix: build issues * revery webauthn create options url change * Published Version 2.2.54 * explicit any types --------- * add connect call to claimKeyId * remove access list contract * update contract addresses * remove allow list * remove access control conditions contract * add WithAuthMethodSigning type * update contract manifest * update deployment addresses * remove twillio otp auth provider * remove duplicated package * feat: ability to npm link and unlink packages * feat: add scripts to either bun/npm link * getSignatures works * fix: publish version * feat: ES2021 to make "replaceAll" work * fix: add chore back to be able to publish * fix: had to add "DOM" to use global "crypto" * feat: add script to generate config * feat: add flatten object * fix: when lit action is used as pure serverless function * fix: general worker api * chore: add success exit * enable nx cache * remove nx cache * Feat/manual claim test (#213) * add manual claim test * got past last error * fixing stuff as i go * remove manual overrides for relay url. use cayenne which seems to work fine now * test working but wrong derived pubkey * more debugging * fix tests * remove local overrides * Added lit action fixes * it works * use cayenne * added 2 signatures * built * add check for sig properties before conversion * update config * update config * feat: add UNKNOWN_SIGNATURE_ERROR * updates for claim key comments and abstractions * fix typescript errors with nodejs app * Feature/easier local node testing (#215) * fix typescript errors with nodejs app * config and docs for testing against a local node * local testing works * restore cayenne contracts * add env var docs * cleanup * feat: script to enable/disable nx build cache * chore: update text * feat: add bun test script * chore: make test exit * chore: bun test lit node client * Update executeJs for claim processing from execution response * chage claim test * add new error type * ref loop to map stmt * add lit actions comment * add claim combiner test * update comments * disallow webauthn authentication * add explicit return type * make cayenne use 3 nodes by default (#217) * update key claim combiner and types * Feature/fixes to manual test for local chronicle node (#218) * added a sleep to the manual test so there's time for the minted PKP to propagate to the local chronicle replica * debug: false * first pass * add address conversion * update api docs for v3 * format account addr to eip-55 * add casing normalize to eth sign message check * bump version to 3.0.1 * bump version 3.0.2 * feat: add e2e-nodejs tests * feat: add the ability to test by group * update project id * update api docs * feat: add test to LitNodeClientNodejs * docs: update * fix: access controls conditions tests * add auth method scopes and pkp helper method * add pkp helper methods * feat: add contracts-sdk tests * fix: min nodes * chore: update contracts * fix: add allowJs: true * feat: add more tests * wip * fix: pkp sign recover works * wip * fix: use sha256 to check dataSigned * Hash the toSign parameter before signing in tests (#220) * wip: all new e2e tests passed so far, continue.. * feat: pkp sui works * 🚀 all unit tests passed, next e2e nodejs * update: github CI * chore: change to use html instead of react for testing * ci update * chore: indentation * fix: error message * Empty-Commit * fix: to use pkpSign & passed all pkp-ethers tests * fix: pkp client works too * 🚀 OK. All Good * docs: update * resolve comments --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Co-authored-by: Josh Long <[email protected]> Co-authored-by: Howard Tam <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> * test: all good. ready go publish 3.0.3 * docs: update * update contract-sdk * remove duplicate type file * update CHANGELOG * fix auth client claim pubkey generator * remove stale contract data * fix logging and make user id check optional * error message log and action key id flag * Bump version 3.0.4 * fix contracts-sdk & e2e tests * fix typeo * bump version 3.0.5 * some fixes to make the manual tests work with node changes (#227) * update (#226) Update examples to be on latest V3 SDK packages * make alertWhenUnauthorized be false by default (#229) * update docs * Fix/controller auth method (#230) * add support for controller auth methods in pkp base * fix defined checks Signed-off-by: Bean <[email protected]> --------- Signed-off-by: Bean <[email protected]> * Feat: Validate boolean conditions in safeParams for Encryption (#231) * feat: Validate boolean conditions in safeParams for encryption + its test * refac: Update validate function name with is prefix * Remove broken examples (#232) Will keep `demo-pkp-social-auth-next-ts`, because update seems straightforward, but will be addressed in another PR * Feature/lit 1598 js sdk v3 fix unable to use sessionsigs to pkpsign (#234) * fix: build issue due to app not found * fix: pkp session sigs signing * feat: script to generate demo app * feat: demo app * update: contracts * chore * fix: e2e nodejs works * feat: add demo * feat: update bump script to include tag * Published version 3.0.6 * fix: Validate boolean Access Control Conditions (#235) * fix: Validate boolean Access Control Conditions * refac: Remove logs & manual test * Fix/claim return (#237) * fix object length check * update comment * Published version 3.0.11 * Feature/lit 1697 js sdk fix combine shares when above threshold (#238) * fix: session sigs threshold requirement * fix: use log * Update PKP social auth project to be on cayenne (#233) * Update project to be on cayenne * Add/claim props e2e (#239) * fix property names on claim-key test * fix claim tests * fix: don't block if null (#240) * add auth method support to executeJs and helper methods (#243) * add auth method support to executeJs and helper methods * use non related signature to pkp for test * remove auth method check on the auth sig condition. * fix test case for auth sig address * revert condition check * publish version 3.0.15 * Lit 1693/add explicit stytch authentication factors (#242) * email-stytch provider implementation * move to implicit auth factor through generic on provider * update provider enum * Add other auth types and return explicit type per factor * update comments * remove user id requirment from base stytch provider * add more init tests * Feature/lit 1799 fix req data mapping in js sdk (#244) * Bump Version 3.0.16 * Fix tests for providers * change check for auth to auth sig and session sig defined * update contract gen * fmt * add authMethod pass through to lit actions * Fix/executeJS array normalizing (#249) * add normalization fix * use different prop names for signature data * feat: refactor normalizeParams * fix jsparam undefined case, adds test --------- Co-authored-by: Ansonhkg <[email protected]> * feat: ability to add scope when minting (#251) * Feature/lit 1765 js sdk provider not set in pkpethers (#250) * pkpethers - tableland works * feat: lit config & pkp-ethers update * fix tests & interfaces * update e2e tests * Published version 3.0.18@cayenne * mint by auth method (#253) * mint by auth method * remove url * feat: fix authmethod type 6 * add a note * feat: add enums * remove declare * rename from 'mint' to 'mintWithAuth' for better clarity * fix: ignore_dirs * feat: add logs to e2e nodejs tests * Published version 3.0.19 * Feature/lit 1862 js sdk add a abstract getauthmethodid public static function (#254) * feat: public static to get auth id by auth method * fix: import * Published version 3.0.20 * fix: allowing custom args to be passed (#256) * feat: update e2e tests * update social demo app (#255) * WIP * wip2 - awaiting verifyAndMintPKPThroughRelayer to be implemented * fix: verifyAndMintPKPThroughRelayer with custom args * update pkg * remove comment * rm lock --------- Signed-off-by: Anson <[email protected]> * clean up demos * publish and add a little readme thing * make a change to claim and mint to add in tx options (#257) Signed-off-by: VoR0220 <[email protected]> * fix encryptFileAndZipWithMetadata node (#246) * fix(nacl): remove require hack (#263) A hack was added a year ago to suppress a webpack complaint. Other packages import crypto and don't seem to contain this hack. The metro bundler doesn't allow for conditional requires / substitutions, and as such causes react-native to fail loading the crypto library. This PR removes the hack. I have not checked if webpack still complains but am hoping Chris can chime in. * Published version 3.0.23 * feat: Add missing chains to Cayenne (#264) * Published version 3.0.24 * feat: Store blockhash from handshake + use it in SIWE (#248) * feat: Store blockhash from handshake + use it in SIWE * feat: Pass blockhash instead of client in authSig functions * refac: Cleanup * feat: Client getter for blockhash + Manual tests * refac: Remove comments * refac: latest_blockhash -> latestBlockhash * test: Display result of manual tests * test: Node E2E test for creating authSig by fetching the blockhash from the client * fmt * fix types for provider call * fmt * gen * Feat/lit 1826 send challenge for attestation and check it as well (#247) * it all works, yay * gen contracts * fix up tests * remove unused thing * add checkNodeAttestation boolean config option * better attestation * remove custom code to test on internaldev * check ip and port against report * check ip and port against attestation report * remove unused params * moving to get certs in js * i built stuff * it works * fully working in nodejs and also browser * fix valid cert test * sync package version * push readme changes * add back attestation checking from bad merge * add default for cayenne for attestation check * add explicit attestation check disable in e2e tests * fmt --------- Co-authored-by: Josh Long <[email protected]> * fix #268 (#269) * wip * util for auth method id parsing * add validator url test * port connection logic for dynamic urls * update auto gen * add threshold test * update autogen * fix ci tsc errors * add network context log to handshake * remove import * update lockfile --------- Signed-off-by: Anson <[email protected]> Signed-off-by: sarah z <[email protected]> Signed-off-by: Bean <[email protected]> Signed-off-by: VoR0220 <[email protected]> Co-authored-by: Howard Tam <[email protected]> Co-authored-by: sarahzdev <[email protected]> Co-authored-by: sarah z <[email protected]> Co-authored-by: Anson <[email protected]> Co-authored-by: Howard <[email protected]> Co-authored-by: Chris Cassano <[email protected]> Co-authored-by: yhl125 <[email protected]> Co-authored-by: Yoonhyoung-Lee <[email protected]> Co-authored-by: Adarsh-Kumar28 <[email protected]> Co-authored-by: deb <[email protected]> Co-authored-by: RJ Catalano <[email protected]> Co-authored-by: Valerio Massimo <[email protected]> Co-authored-by: Eric Lewis <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a sleep to the manual-test.ts so that the minted PKP has time to propagate to the local chronicle node replica.