mirror of
https://github.com/tlsnotary/tlsn-extension.git
synced 2026-01-08 20:48:03 -05:00
Alpha.12 (#193)
This commit is contained in:
1902
package-lock.json
generated
1902
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user