File tree Expand file tree Collapse file tree 5 files changed +21
-20
lines changed Expand file tree Collapse file tree 5 files changed +21
-20
lines changed Original file line number Diff line number Diff line change 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" ,
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" ,
9494 "webpack-ext-reloader" : " ^1.1.12" ,
9595 "zip-webpack-plugin" : " ^4.0.1"
9696 }
97- }
97+ }
Original file line number Diff line number Diff 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 = {
Original file line number Diff line number Diff 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
558559async 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' ) ;
Original file line number Diff line number Diff line change 11export 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 ' ;
33export const RENDEZVOUS_API = 'wss://explorer.tlsnotary.org' ;
44export const NOTARY_PROXY = 'wss://notary.pse.dev/proxy' ;
55export const MAX_RECV = 16384 ;
You can’t perform that action at this time.
0 commit comments