File tree Expand file tree Collapse file tree 5 files changed +319
-463
lines changed Expand file tree Collapse file tree 5 files changed +319
-463
lines changed Original file line number Diff line number Diff line change 32
32
"url" :
" git+ssh://[email protected] :windingtree/org.id-resolver.git"
33
33
},
34
34
"dependencies" : {
35
- "@windingtree/org.id" : " 3.0.0-beta.6" ,
36
- "@windingtree/org.id-auth" : " 1.0.0-beta.32 " ,
37
- "@windingtree/org.id-core" : " 1.0.0-beta.32 " ,
38
- "@windingtree/org.id-utils" : " 1.0.0-beta.32 " ,
35
+ "@windingtree/org.id" : " ^ 3.0.0-beta.6" ,
36
+ "@windingtree/org.id-auth" : " ^ 1.0.0-beta.45 " ,
37
+ "@windingtree/org.id-core" : " ^ 1.0.0-beta.45 " ,
38
+ "@windingtree/org.id-utils" : " ^ 1.0.0-beta.45 " ,
39
39
"@windingtree/org.json-schema" : " 1.0.1" ,
40
40
"ethers" : " 5.5.3" ,
41
41
"luxon" : " 2.3.0"
Original file line number Diff line number Diff line change @@ -625,23 +625,23 @@ export const OrgIdResolver = (options: ResolverOptions): OrgIdResolverAPI => {
625
625
}
626
626
627
627
const {
628
- accountId ,
628
+ accountAddress ,
629
629
blockchainType,
630
- blockchainId
630
+ chainId
631
631
} = parseBlockchainAccountId ( orgJsonVerificationMethod . blockchainAccountId ) ;
632
632
633
- if ( accountId !== orgIdOwner ) {
633
+ if ( accountAddress !== orgIdOwner ) {
634
634
throw new Error (
635
- `Verification method blockchain account Id "${ orgIdOwner } " is expected but found "${ accountId } " in the VC proof`
635
+ `Verification method blockchain account Id "${ orgIdOwner } " is expected but found "${ accountAddress } " in the VC proof`
636
636
) ;
637
637
}
638
638
639
639
if (
640
640
blockchainType !== selectedChain . config . blockchainType ||
641
- blockchainId !== selectedChain . config . blockchainId
641
+ chainId !== selectedChain . config . blockchainId
642
642
) {
643
643
throw new Error (
644
- `Verification method blockchain type "${ selectedChain . config . blockchainType } " and Id "${ selectedChain . config . blockchainId } " are expected but found "${ blockchainType } " and "${ blockchainId } " in the VC proof`
644
+ `Verification method blockchain type "${ selectedChain . config . blockchainType } " and Id "${ selectedChain . config . blockchainId } " are expected but found "${ blockchainType } " and "${ chainId } " in the VC proof`
645
645
) ;
646
646
}
647
647
Original file line number Diff line number Diff line change 23
23
"id" : " did:orgid:4:0x9300bad07f0b9d904b23781e8bbb05c1219530c51e7e494701db2539b7a5a119#key-1" ,
24
24
"controller" : " did:orgid:4:0x9300bad07f0b9d904b23781e8bbb05c1219530c51e7e494701db2539b7a5a119" ,
25
25
"type" : " EcdsaSecp256k1RecoveryMethod2020" ,
26
- "blockchainAccountId" : " 0xBfD9EebE27d5a2F1113220b53844E5066889035C@ eip155:1337"
26
+ "blockchainAccountId" : " eip155:1337:0xBfD9EebE27d5a2F1113220b53844E5066889035C "
27
27
}
28
28
],
29
29
"service" : [],
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import type {
10
10
FetcherConfig ,
11
11
OrgIdResolverAPI ,
12
12
ResolverOptions
13
- } from '../../ src' ;
13
+ } from '../src' ;
14
14
import { orgIdSetup } from '@windingtree/org.id-test-setup' ;
15
15
import {
16
16
generateSalt ,
@@ -22,7 +22,7 @@ import {
22
22
buildHttpFetcherConfig ,
23
23
parseDid ,
24
24
parseUri
25
- } from '../../ src' ;
25
+ } from '../src' ;
26
26
import chai , { expect } from 'chai' ;
27
27
import chp from 'chai-as-promised' ;
28
28
chai . use ( chp ) ;
@@ -250,7 +250,7 @@ describe('ORGiD DID Resolver', () => {
250
250
"id" : "did:orgid:1337:0x2389deb1e582b49ab388c7ebc16b49e5a95e0b8c92ffa9c74881a9904074de9a#key-100" ,
251
251
"controller" : "did:orgid:1337:0x2389deb1e582b49ab388c7ebc16b49e5a95e0b8c92ffa9c74881a9904074de9a" ,
252
252
"type" : "EcdsaSecp256k1RecoveryMethod2020" ,
253
- "blockchainAccountId" : "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266@ eip155:1337"
253
+ "blockchainAccountId" : "eip155:1337:0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 "
254
254
}
255
255
]
256
256
} ;
@@ -316,7 +316,7 @@ describe('ORGiD DID Resolver', () => {
316
316
"id" : `did:orgid:1337:${ orgIdHash } #key-111` ,
317
317
"controller" : `did:orgid:1337:${ orgIdHash } ` ,
318
318
"type" : "EcdsaSecp256k1RecoveryMethod2020" ,
319
- "blockchainAccountId" : `${ ownerAddress } @ ${ invalidBlockchainType } :1337`
319
+ "blockchainAccountId" : `${ invalidBlockchainType } :1337: ${ ownerAddress } `
320
320
}
321
321
]
322
322
} ;
You can’t perform that action at this time.
0 commit comments