From 55362f1cc4422d9541ba5e23ba1c202f9bba08c8 Mon Sep 17 00:00:00 2001 From: Bean Date: Fri, 2 Feb 2024 07:39:09 -0500 Subject: [PATCH] Ref/run sev att check on mainnets (#339) * add sev snp att check by default on main nets * fmt --- apps/html/index.html | 4 ++-- apps/react/src/app/app.tsx | 2 +- packages/access-control-conditions/package.json | 2 +- packages/auth-browser/package.json | 2 +- packages/auth-helpers/package.json | 2 +- packages/bls-sdk/package.json | 2 +- packages/constants/package.json | 2 +- .../src/lib/constants/autogen_internal.ts | 2 +- packages/contracts-sdk/package.json | 2 +- packages/core/package.json | 2 +- packages/core/src/lib/lit-core.ts | 14 +++++++++++++- packages/crypto/package.json | 2 +- packages/ecdsa-sdk/package.json | 2 +- packages/encryption/package.json | 2 +- packages/lit-auth-client/package.json | 2 +- packages/lit-node-client-nodejs/package.json | 2 +- packages/lit-node-client/package.json | 2 +- packages/logger/package.json | 2 +- packages/misc-browser/package.json | 2 +- packages/misc/package.json | 2 +- packages/nacl/package.json | 2 +- packages/pkp-base/package.json | 2 +- packages/pkp-client/package.json | 2 +- packages/pkp-cosmos/package.json | 2 +- packages/pkp-ethers/package.json | 2 +- packages/pkp-sui/package.json | 2 +- packages/pkp-walletconnect/package.json | 2 +- packages/sev-snp-utils-sdk/package.json | 2 +- packages/types/package.json | 2 +- packages/uint8arrays/package.json | 2 +- typedoc.json | 2 +- 31 files changed, 44 insertions(+), 32 deletions(-) diff --git a/apps/html/index.html b/apps/html/index.html index f36c6e5536..b463411794 100644 --- a/apps/html/index.html +++ b/apps/html/index.html @@ -1,4 +1,4 @@ - + @@ -62,7 +62,7 @@ - (HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Tue, 30 Jan 2024 00:25:57 GMT + (HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Thu, 01 Feb 2024 20:59:26 GMT diff --git a/apps/react/src/app/app.tsx b/apps/react/src/app/app.tsx index 37bcc7b793..e51977dacf 100644 --- a/apps/react/src/app/app.tsx +++ b/apps/react/src/app/app.tsx @@ -1879,7 +1879,7 @@ pre { `, }} /> - (REACT) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-react.mjs Tue, 30 Jan 2024 00:25:58 GMT + (REACT) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-react.mjs Thu, 01 Feb 2024 20:59:26 GMT
diff --git a/packages/access-control-conditions/package.json b/packages/access-control-conditions/package.json index 15bd86a552..e0373de70b 100644 --- a/packages/access-control-conditions/package.json +++ b/packages/access-control-conditions/package.json @@ -24,4 +24,4 @@ "version": "3.1.1", "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/auth-browser/package.json b/packages/auth-browser/package.json index 3bafa13ff2..aa39081955 100644 --- a/packages/auth-browser/package.json +++ b/packages/auth-browser/package.json @@ -33,4 +33,4 @@ "version": "3.1.1", "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/auth-helpers/package.json b/packages/auth-helpers/package.json index f6ff0673f9..cc596c465b 100644 --- a/packages/auth-helpers/package.json +++ b/packages/auth-helpers/package.json @@ -31,4 +31,4 @@ "version": "3.1.1", "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/bls-sdk/package.json b/packages/bls-sdk/package.json index c52f1eaeac..60a66d5d37 100644 --- a/packages/bls-sdk/package.json +++ b/packages/bls-sdk/package.json @@ -30,4 +30,4 @@ "version": "3.1.1", "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/constants/package.json b/packages/constants/package.json index 7e21dc3acc..a173b0e4c5 100644 --- a/packages/constants/package.json +++ b/packages/constants/package.json @@ -23,4 +23,4 @@ "version": "3.1.1", "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/constants/src/lib/constants/autogen_internal.ts b/packages/constants/src/lib/constants/autogen_internal.ts index 76d1fe461a..3014db787a 100644 --- a/packages/constants/src/lib/constants/autogen_internal.ts +++ b/packages/constants/src/lib/constants/autogen_internal.ts @@ -1,4 +1,4 @@ -// Last Modified: 2024-01-30 00:24:05 +// Last Modified: 2024-02-01 20:57:50 // This file is auto-generated by tools/scripts/gen-internal-dev.mjs export const INTERNAL_DEV = [ 'https://167.114.17.204:443', diff --git a/packages/contracts-sdk/package.json b/packages/contracts-sdk/package.json index 42cfb62445..484456e856 100644 --- a/packages/contracts-sdk/package.json +++ b/packages/contracts-sdk/package.json @@ -30,4 +30,4 @@ "version": "3.1.1", "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/core/package.json b/packages/core/package.json index 275100fcbf..c89ff31919 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -27,4 +27,4 @@ ], "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/core/src/lib/lit-core.ts b/packages/core/src/lib/lit-core.ts index cbaab462db..d1610d676b 100644 --- a/packages/core/src/lib/lit-core.ts +++ b/packages/core/src/lib/lit-core.ts @@ -109,6 +109,14 @@ export class LitCore { this.config = { ..._defaultConfig, litNetwork: LitNetwork.Manzano, + checkSevSnpAttestation: true, + } as unknown as LitNodeClientConfig; + break; + case LitNetwork.Habanero: + this.config = { + ..._defaultConfig, + litNetwork: LitNetwork.Habanero, + checkSevSnpAttestation: true, } as unknown as LitNodeClientConfig; break; default: @@ -387,7 +395,11 @@ export class LitCore { ); } - if (this.config.checkNodeAttestation) { + if ( + this.config.checkNodeAttestation || + this.config.litNetwork === LitNetwork.Manzano || + this.config.litNetwork === LitNetwork.Habanero + ) { // check attestation if (!resp.attestation) { logErrorWithRequestId( diff --git a/packages/crypto/package.json b/packages/crypto/package.json index b5acea5d8e..71a0253840 100644 --- a/packages/crypto/package.json +++ b/packages/crypto/package.json @@ -24,4 +24,4 @@ "version": "3.1.1", "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/ecdsa-sdk/package.json b/packages/ecdsa-sdk/package.json index 04c5ca0d5c..5bb921da27 100644 --- a/packages/ecdsa-sdk/package.json +++ b/packages/ecdsa-sdk/package.json @@ -27,4 +27,4 @@ "version": "3.1.1", "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/encryption/package.json b/packages/encryption/package.json index c77b39e99f..94ee0937ba 100644 --- a/packages/encryption/package.json +++ b/packages/encryption/package.json @@ -28,4 +28,4 @@ "version": "3.1.1", "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/lit-auth-client/package.json b/packages/lit-auth-client/package.json index e39b3f6c51..963caf60cf 100644 --- a/packages/lit-auth-client/package.json +++ b/packages/lit-auth-client/package.json @@ -32,4 +32,4 @@ }, "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/lit-node-client-nodejs/package.json b/packages/lit-node-client-nodejs/package.json index 38070d6b86..dd1dee5ebd 100644 --- a/packages/lit-node-client-nodejs/package.json +++ b/packages/lit-node-client-nodejs/package.json @@ -27,4 +27,4 @@ "version": "3.1.1", "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/lit-node-client/package.json b/packages/lit-node-client/package.json index f6e6ff6521..4694ced929 100644 --- a/packages/lit-node-client/package.json +++ b/packages/lit-node-client/package.json @@ -28,4 +28,4 @@ "version": "3.1.1", "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/logger/package.json b/packages/logger/package.json index f2c41ab3ed..1b1a53f91a 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -11,4 +11,4 @@ }, "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/misc-browser/package.json b/packages/misc-browser/package.json index d3d8acd426..4ec689d7a7 100644 --- a/packages/misc-browser/package.json +++ b/packages/misc-browser/package.json @@ -24,4 +24,4 @@ "version": "3.1.1", "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/misc/package.json b/packages/misc/package.json index 2aa8763335..ad11d35efb 100644 --- a/packages/misc/package.json +++ b/packages/misc/package.json @@ -27,4 +27,4 @@ "version": "3.1.1", "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/nacl/package.json b/packages/nacl/package.json index 94e26822ff..023b94bf47 100644 --- a/packages/nacl/package.json +++ b/packages/nacl/package.json @@ -24,4 +24,4 @@ "version": "3.1.1", "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/pkp-base/package.json b/packages/pkp-base/package.json index 836b1c3488..8bad2cf80e 100644 --- a/packages/pkp-base/package.json +++ b/packages/pkp-base/package.json @@ -27,4 +27,4 @@ ], "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/pkp-client/package.json b/packages/pkp-client/package.json index b3cd32fa51..86f07367a8 100644 --- a/packages/pkp-client/package.json +++ b/packages/pkp-client/package.json @@ -27,4 +27,4 @@ ], "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/pkp-cosmos/package.json b/packages/pkp-cosmos/package.json index 4aa93da341..358a86acb3 100644 --- a/packages/pkp-cosmos/package.json +++ b/packages/pkp-cosmos/package.json @@ -27,4 +27,4 @@ ], "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/pkp-ethers/package.json b/packages/pkp-ethers/package.json index 118cfa89b9..fc3c6a67bc 100644 --- a/packages/pkp-ethers/package.json +++ b/packages/pkp-ethers/package.json @@ -23,4 +23,4 @@ "version": "3.1.1", "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/pkp-sui/package.json b/packages/pkp-sui/package.json index e0bf339a44..0aca67dd2e 100644 --- a/packages/pkp-sui/package.json +++ b/packages/pkp-sui/package.json @@ -27,4 +27,4 @@ ], "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/pkp-walletconnect/package.json b/packages/pkp-walletconnect/package.json index fc77947fcd..e9663b7874 100644 --- a/packages/pkp-walletconnect/package.json +++ b/packages/pkp-walletconnect/package.json @@ -34,4 +34,4 @@ ], "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/sev-snp-utils-sdk/package.json b/packages/sev-snp-utils-sdk/package.json index 1fbc580820..d1ce853720 100644 --- a/packages/sev-snp-utils-sdk/package.json +++ b/packages/sev-snp-utils-sdk/package.json @@ -30,4 +30,4 @@ "version": "3.1.1", "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/types/package.json b/packages/types/package.json index 44139ea517..81721ea0d5 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -26,4 +26,4 @@ "version": "3.1.1", "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/packages/uint8arrays/package.json b/packages/uint8arrays/package.json index e58cd6dc10..d460a3c60d 100644 --- a/packages/uint8arrays/package.json +++ b/packages/uint8arrays/package.json @@ -24,4 +24,4 @@ "version": "3.1.1", "main": "./dist/src/index.js", "typings": "./dist/src/index.d.ts" -} \ No newline at end of file +} diff --git a/typedoc.json b/typedoc.json index 40eec7c2b4..d270465685 100644 --- a/typedoc.json +++ b/typedoc.json @@ -31,4 +31,4 @@ ], "out": "doc", "skipErrorChecking": true -} \ No newline at end of file +}