This commit is contained in:
Tanner
2025-06-27 17:58:36 +01:00
committed by GitHub
parent ea12322686
commit cc3264f058
4 changed files with 1099 additions and 819 deletions

1902
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "tlsn-extension",
"version": "0.1.0.1100",
"version": "0.1.0.1200",
"license": "MIT",
"repository": {
"type": "git",
@@ -40,7 +40,7 @@
"redux-logger": "^3.0.6",
"redux-thunk": "^2.4.2",
"tailwindcss": "^3.3.3",
"tlsn-js": "0.1.0-alpha.11.0"
"tlsn-js": "0.1.0-alpha.12.0"
},
"devDependencies": {
"@babel/core": "^7.20.12",

View File

@@ -124,7 +124,7 @@ export const onCreatePresentationRequest = async (request: any) => {
secretsHex: notarizationOutputs.secrets,
notaryUrl: notarizationOutputs.notaryUrl,
websocketProxyUrl: notarizationOutputs.websocketProxyUrl,
reveal: commit,
reveal: { ...commit, server_identity: false },
})) as TPresentation;
const json = await presentation.json();
browser.runtime.sendMessage({
@@ -345,7 +345,7 @@ export const startP2PProver = async (request: any) => {
};
const endRequest = waitForEvent(OffscreenActionTypes.end_p2p_proof_request);
await prover.reveal(commit);
await prover.reveal({ ...commit, server_identity: false });
await endRequest;
};
@@ -436,7 +436,7 @@ async function createProof(options: {
secretsHex: notarizationOutputs.secrets,
notaryUrl: notarizationOutputs.notaryUrl,
websocketProxyUrl: notarizationOutputs.websocketProxyUrl,
reveal: commit,
reveal: { ...commit, server_identity: false },
})) as TPresentation;
const json = await presentation.json();
@@ -533,7 +533,7 @@ async function verifyProof(proof: PresentationJSON): Promise<{
};
switch (proof.version) {
case '0.1.0-alpha.11':
case '0.1.0-alpha.12':
result = await verify(proof);
break;
default:
@@ -548,7 +548,7 @@ async function verifyProof(proof: PresentationJSON): Promise<{
}
async function verify(proof: PresentationJSON) {
if (proof.version !== '0.1.0-alpha.11') {
if (proof.version !== '0.1.0-alpha.12') {
throw new Error('wrong version');
}
const presentation: TPresentation = await new Presentation(proof.data);

View File

@@ -1,5 +1,5 @@
export const EXPLORER_API = 'https://explorer.tlsnotary.org';
export const NOTARY_API = 'https://notary.pse.dev/v0.1.0-alpha.11';
export const NOTARY_API = 'https://notary.pse.dev/v0.1.0-alpha.12';
export const RENDEZVOUS_API = 'wss://explorer.tlsnotary.org';
export const NOTARY_PROXY = 'wss://notary.pse.dev/proxy';
export const MAX_RECV = 16384;