File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -136,21 +136,15 @@ export async function verifyIdentities(
136136    let  txs : TransactionSubmit [ ]  =  [ ] ; 
137137    for  ( let  index  =  0 ;  index  <  identities . length ;  index ++ )  { 
138138        let  identity  =  identities [ index ] ; 
139- 
140139        let  data  =  datas [ index ] ; 
141- 
142140        const  identity_encode  =  context . api . createType ( 'LitentryIdentity' ,  identity ) . toHex ( ) ; 
143- 
144141        const  validation_encode  =  context . api . createType ( 'LitentryValidationData' ,  data ) . toHex ( ) ; 
145- 
146142        const  identity_ciphertext  =  encryptWithTeeShieldingKey ( context . teeShieldingKey ,  identity_encode ) . toString ( 
147143            'hex' 
148144        ) ; 
149- 
150145        const  validation_ciphertext  =  encryptWithTeeShieldingKey ( context . teeShieldingKey ,  validation_encode ) . toString ( 
151146            'hex' 
152147        ) ; 
153- 
154148        const  tx  =  context . api . tx . identityManagement . verifyIdentity ( 
155149            context . mrEnclave , 
156150            `0x${ identity_ciphertext }  , 
@@ -165,11 +159,8 @@ export async function verifyIdentities(
165159
166160    if  ( listening )  { 
167161        const  events  =  ( await  listenEvent ( context . api ,  'identityManagement' ,  [ 'IdentityVerified' ] ) )  as  any ; 
168- 
169162        expect ( events . length ) . to . be . equal ( identities . length ) ; 
170- 
171163        let  results : IdentityGenericEvent [ ]  =  [ ] ; 
172- 
173164        for  ( let  index  =  0 ;  index  <  events . length ;  index ++ )  { 
174165            results . push ( 
175166                createIdentityEvent ( 
@@ -186,7 +177,6 @@ export async function verifyIdentities(
186177} 
187178
188179//vcManagement 
189- 
190180export  async  function  requestVCs ( 
191181    context : IntegrationTestContext , 
192182    signer : KeyringPair , 
Original file line number Diff line number Diff line change @@ -119,7 +119,8 @@ function checkIssuerAttestation() {
119119                break ; 
120120            case  'GROUP_OUT_OF_DATE' :
121121            case  'GROUP_REVOKED' :
122-             case  'CONFIGURATION_NEEDED' : {  // Verify platformInfoBlob for further info if status not OK 
122+             case  'CONFIGURATION_NEEDED' : { 
123+                 // Verify platformInfoBlob for further info if status not OK 
123124                if  ( quote ! [ 'platformInfoBlob' ]  !==  undefined )  { 
124125                }  else  { 
125126                    console . log ( '   [IssuerAttestation] Failed to fetch platformInfoBlob from attestation report' ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments