Skip to content

Commit 9872a37

Browse files
Codetraumaheeckhau
andauthored
Alpha.11 (#182)
Co-authored-by: Hendrik Eeckhaut <[email protected]>
1 parent f34718f commit 9872a37

File tree

5 files changed

+21
-20
lines changed

5 files changed

+21
-20
lines changed

package-lock.json

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tlsn-extension",
3-
"version": "0.1.0.1000",
3+
"version": "0.1.0.1100",
44
"license": "MIT",
55
"repository": {
66
"type": "git",
@@ -40,7 +40,7 @@
4040
"redux-logger": "^3.0.6",
4141
"redux-thunk": "^2.4.2",
4242
"tailwindcss": "^3.3.3",
43-
"tlsn-js": "0.1.0-alpha.10.0"
43+
"tlsn-js": "0.1.0-alpha.11.0"
4444
},
4545
"devDependencies": {
4646
"@babel/core": "^7.20.12",
@@ -94,4 +94,4 @@
9494
"webpack-ext-reloader": "^1.1.12",
9595
"zip-webpack-plugin": "^4.0.1"
9696
}
97-
}
97+
}

src/entries/Background/ws.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,8 @@ export const endProofRequest = async (data: {
436436
proof: VerifierOutput;
437437
}) => {
438438
const transcript = new Transcript({
439-
sent: data.proof.transcript.sent,
440-
recv: data.proof.transcript.recv,
439+
sent: data.proof.transcript?.sent || [],
440+
recv: data.proof.transcript?.recv || [],
441441
});
442442

443443
state.presentation = {

src/entries/Offscreen/rpc.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -542,12 +542,13 @@ async function verifyProof(proof: PresentationJSON): Promise<{
542542
case '0.1.0-alpha.7':
543543
case '0.1.0-alpha.8':
544544
case '0.1.0-alpha.9':
545+
case '0.1.0-alpha.10':
545546
result = {
546547
sent: 'version not supported',
547548
recv: 'version not supported',
548549
};
549550
break;
550-
case '0.1.0-alpha.10':
551+
case '0.1.0-alpha.11':
551552
result = await verify(proof);
552553
break;
553554
}
@@ -556,14 +557,14 @@ async function verifyProof(proof: PresentationJSON): Promise<{
556557
}
557558

558559
async function verify(proof: PresentationJSON) {
559-
if (proof.version !== '0.1.0-alpha.10') {
560+
if (proof.version !== '0.1.0-alpha.11') {
560561
throw new Error('wrong version');
561562
}
562563
const presentation: TPresentation = await new Presentation(proof.data);
563564
const verifierOutput = await presentation.verify();
564565
const transcript = new Transcript({
565-
sent: verifierOutput.transcript.sent,
566-
recv: verifierOutput.transcript.recv,
566+
sent: verifierOutput.transcript?.sent || [],
567+
recv: verifierOutput.transcript?.recv || [],
567568
});
568569
const vk = await presentation.verifyingKey();
569570
const verifyingKey = Buffer.from(vk.data).toString('hex');

src/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const EXPLORER_API = 'https://explorer.tlsnotary.org';
2-
export const NOTARY_API = 'https://notary.pse.dev/v0.1.0-alpha.10';
2+
export const NOTARY_API = 'https://notary.pse.dev/v0.1.0-alpha.11';
33
export const RENDEZVOUS_API = 'wss://explorer.tlsnotary.org';
44
export const NOTARY_PROXY = 'wss://notary.pse.dev/proxy';
55
export const MAX_RECV = 16384;

0 commit comments

Comments
 (0)