ethr-did-resolver
Advanced tools
Comparing version 5.0.4 to 6.0.0
@@ -798,3 +798,3 @@ var basex = require('@ethersproject/basex'); | ||
const baseDIDDocument = { | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld'], | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/secp256k1recovery-2020/v2'], | ||
id: did, | ||
@@ -850,3 +850,3 @@ verificationMethod: [], | ||
controller: did, | ||
blockchainAccountId: `${currentEvent.delegate}@eip155:${chainId}` | ||
blockchainAccountId: `eip155:${chainId}:${currentEvent.delegate}` | ||
}; | ||
@@ -948,3 +948,3 @@ break; | ||
controller: did, | ||
blockchainAccountId: `${controller}@eip155:${chainId}` | ||
blockchainAccountId: `eip155:${chainId}:${controller}` | ||
}]; | ||
@@ -951,0 +951,0 @@ |
@@ -511,3 +511,3 @@ import { Base58 } from '@ethersproject/basex'; | ||
const baseDIDDocument = { | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld'], | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/secp256k1recovery-2020/v2'], | ||
id: did, | ||
@@ -563,3 +563,3 @@ verificationMethod: [], | ||
controller: did, | ||
blockchainAccountId: `${currentEvent.delegate}@eip155:${chainId}` | ||
blockchainAccountId: `eip155:${chainId}:${currentEvent.delegate}` | ||
}; | ||
@@ -661,3 +661,3 @@ break; | ||
controller: did, | ||
blockchainAccountId: `${controller}@eip155:${chainId}` | ||
blockchainAccountId: `eip155:${chainId}:${controller}` | ||
}]; | ||
@@ -664,0 +664,0 @@ |
@@ -794,3 +794,3 @@ import { Base58 } from '@ethersproject/basex'; | ||
const baseDIDDocument = { | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld'], | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/secp256k1recovery-2020/v2'], | ||
id: did, | ||
@@ -846,3 +846,3 @@ verificationMethod: [], | ||
controller: did, | ||
blockchainAccountId: `${currentEvent.delegate}@eip155:${chainId}` | ||
blockchainAccountId: `eip155:${chainId}:${currentEvent.delegate}` | ||
}; | ||
@@ -944,3 +944,3 @@ break; | ||
controller: did, | ||
blockchainAccountId: `${controller}@eip155:${chainId}` | ||
blockchainAccountId: `eip155:${chainId}:${controller}` | ||
}]; | ||
@@ -947,0 +947,0 @@ |
@@ -795,3 +795,3 @@ (function (global, factory) { | ||
const baseDIDDocument = { | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld'], | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/secp256k1recovery-2020/v2'], | ||
id: did, | ||
@@ -847,3 +847,3 @@ verificationMethod: [], | ||
controller: did, | ||
blockchainAccountId: `${currentEvent.delegate}@eip155:${chainId}` | ||
blockchainAccountId: `eip155:${chainId}:${currentEvent.delegate}` | ||
}; | ||
@@ -945,3 +945,3 @@ break; | ||
controller: did, | ||
blockchainAccountId: `${controller}@eip155:${chainId}` | ||
blockchainAccountId: `eip155:${chainId}:${controller}` | ||
}]; | ||
@@ -948,0 +948,0 @@ |
{ | ||
"name": "ethr-did-resolver", | ||
"version": "5.0.4", | ||
"version": "6.0.0", | ||
"description": "Resolve DID documents for ethereum addresses and public keys", | ||
@@ -5,0 +5,0 @@ "source": "src/index.ts", |
@@ -45,3 +45,3 @@ [![npm](https://img.shields.io/npm/dt/ethr-did-resolver.svg)](https://www.npmjs.com/package/ethr-did-resolver) | ||
"https://www.w3.org/ns/did/v1", | ||
"https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld" | ||
"https://w3id.org/security/suites/secp256k1recovery-2020/v2" | ||
], | ||
@@ -54,3 +54,3 @@ "id": "did:ethr:0xb9c5714089478a327f09197987f16f9e5d936e8a", | ||
"controller": "did:ethr:0xb9c5714089478a327f09197987f16f9e5d936e8a", | ||
"blockchainAccountId": "0xb9c5714089478a327f09197987f16f9e5d936e8a" | ||
"blockchainAccountId": "eip155:1:0xb9c5714089478a327f09197987f16f9e5d936e8a" | ||
} | ||
@@ -57,0 +57,0 @@ ], |
@@ -25,6 +25,3 @@ import { Resolver } from 'did-resolver' | ||
didDocument: { | ||
'@context': [ | ||
'https://www.w3.org/ns/did/v1', | ||
'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', | ||
], | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/secp256k1recovery-2020/v2'], | ||
id: 'did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388', | ||
@@ -36,3 +33,3 @@ verificationMethod: [ | ||
controller: 'did:ethr:0x26bf14321004e770e7a8b080b7a526d8eed8b388', | ||
blockchainAccountId: '0x26bF14321004e770E7A8b080b7a526d8eed8b388@eip155:1', | ||
blockchainAccountId: 'eip155:1:0x26bF14321004e770E7A8b080b7a526d8eed8b388', | ||
}, | ||
@@ -57,6 +54,3 @@ ], | ||
didDocument: { | ||
'@context': [ | ||
'https://www.w3.org/ns/did/v1', | ||
'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', | ||
], | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/secp256k1recovery-2020/v2'], | ||
id: did, | ||
@@ -68,3 +62,3 @@ verificationMethod: [ | ||
controller: did, | ||
blockchainAccountId: `${checksumAddr}@eip155:3`, | ||
blockchainAccountId: `eip155:3:${checksumAddr}`, | ||
}, | ||
@@ -89,6 +83,3 @@ ], | ||
didDocument: { | ||
'@context': [ | ||
'https://www.w3.org/ns/did/v1', | ||
'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', | ||
], | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/secp256k1recovery-2020/v2'], | ||
id: did, | ||
@@ -100,3 +91,3 @@ verificationMethod: [ | ||
controller: did, | ||
blockchainAccountId: `${checksumAddr}@eip155:4`, | ||
blockchainAccountId: `eip155:4:${checksumAddr}`, | ||
}, | ||
@@ -121,6 +112,3 @@ ], | ||
didDocument: { | ||
'@context': [ | ||
'https://www.w3.org/ns/did/v1', | ||
'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', | ||
], | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/secp256k1recovery-2020/v2'], | ||
id: did, | ||
@@ -132,3 +120,3 @@ verificationMethod: [ | ||
controller: did, | ||
blockchainAccountId: `${checksumAddr}@eip155:42`, | ||
blockchainAccountId: `eip155:42:${checksumAddr}`, | ||
}, | ||
@@ -151,6 +139,3 @@ ], | ||
didDocument: { | ||
'@context': [ | ||
'https://www.w3.org/ns/did/v1', | ||
'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', | ||
], | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/secp256k1recovery-2020/v2'], | ||
id: did, | ||
@@ -162,3 +147,3 @@ verificationMethod: [ | ||
controller: did, | ||
blockchainAccountId: `${checksumAddr}@eip155:30`, | ||
blockchainAccountId: `eip155:30:${checksumAddr}`, | ||
}, | ||
@@ -181,6 +166,3 @@ ], | ||
didDocument: { | ||
'@context': [ | ||
'https://www.w3.org/ns/did/v1', | ||
'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', | ||
], | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/secp256k1recovery-2020/v2'], | ||
id: did, | ||
@@ -192,3 +174,3 @@ verificationMethod: [ | ||
controller: did, | ||
blockchainAccountId: `${checksumAddr}@eip155:31`, | ||
blockchainAccountId: `eip155:31:${checksumAddr}`, | ||
}, | ||
@@ -211,6 +193,3 @@ ], | ||
didDocument: { | ||
'@context': [ | ||
'https://www.w3.org/ns/did/v1', | ||
'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', | ||
], | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/secp256k1recovery-2020/v2'], | ||
id: did, | ||
@@ -222,3 +201,3 @@ verificationMethod: [ | ||
controller: did, | ||
blockchainAccountId: '0xF3beAC30C498D9E26865F34fCAa57dBB935b0D74@eip155:30', | ||
blockchainAccountId: 'eip155:30:0xF3beAC30C498D9E26865F34fCAa57dBB935b0D74', | ||
}, | ||
@@ -259,6 +238,3 @@ { | ||
didDocument: { | ||
'@context': [ | ||
'https://www.w3.org/ns/did/v1', | ||
'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', | ||
], | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/secp256k1recovery-2020/v2'], | ||
id: did, | ||
@@ -270,3 +246,3 @@ verificationMethod: [ | ||
controller: did, | ||
blockchainAccountId: '0x7a988202a04f00436f73972DF4dEfD80c3A6BD13@eip155:1313161554', | ||
blockchainAccountId: 'eip155:1313161554:0x7a988202a04f00436f73972DF4dEfD80c3A6BD13', | ||
}, | ||
@@ -273,0 +249,0 @@ { |
@@ -55,6 +55,3 @@ import { Contract, ContractFactory } from '@ethersproject/contracts' | ||
didDocument: { | ||
'@context': [ | ||
'https://www.w3.org/ns/did/v1', | ||
'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', | ||
], | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/secp256k1recovery-2020/v2'], | ||
id: did, | ||
@@ -66,3 +63,3 @@ verificationMethod: [ | ||
controller: did, | ||
blockchainAccountId: `${identity}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${identity}`, | ||
}, | ||
@@ -84,6 +81,3 @@ ], | ||
didDocument: { | ||
'@context': [ | ||
'https://www.w3.org/ns/did/v1', | ||
'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', | ||
], | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/secp256k1recovery-2020/v2'], | ||
id: pubdid, | ||
@@ -95,3 +89,3 @@ verificationMethod: [ | ||
controller: pubdid, | ||
blockchainAccountId: `${identity}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${identity}`, | ||
}, | ||
@@ -122,6 +116,3 @@ { | ||
didDocument: { | ||
'@context': [ | ||
'https://www.w3.org/ns/did/v1', | ||
'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', | ||
], | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/secp256k1recovery-2020/v2'], | ||
id: did, | ||
@@ -133,3 +124,3 @@ verificationMethod: [ | ||
controller: did, | ||
blockchainAccountId: `${controller}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${controller}`, | ||
}, | ||
@@ -149,6 +140,3 @@ ], | ||
expect(didDocument).toEqual({ | ||
'@context': [ | ||
'https://www.w3.org/ns/did/v1', | ||
'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', | ||
], | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/secp256k1recovery-2020/v2'], | ||
id: pubdid, | ||
@@ -160,3 +148,3 @@ verificationMethod: [ | ||
controller: pubdid, | ||
blockchainAccountId: `${controller}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${controller}`, | ||
}, | ||
@@ -185,6 +173,3 @@ ], | ||
didDocument: { | ||
'@context': [ | ||
'https://www.w3.org/ns/did/v1', | ||
'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', | ||
], | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/secp256k1recovery-2020/v2'], | ||
id: did, | ||
@@ -196,3 +181,3 @@ verificationMethod: [ | ||
controller: did, | ||
blockchainAccountId: `${controller}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${controller}`, | ||
}, | ||
@@ -203,3 +188,3 @@ { | ||
controller: did, | ||
blockchainAccountId: `${delegate1}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${delegate1}`, | ||
}, | ||
@@ -226,6 +211,3 @@ ], | ||
didDocument: { | ||
'@context': [ | ||
'https://www.w3.org/ns/did/v1', | ||
'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', | ||
], | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/secp256k1recovery-2020/v2'], | ||
id: did, | ||
@@ -237,3 +219,3 @@ verificationMethod: [ | ||
controller: did, | ||
blockchainAccountId: `${controller}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${controller}`, | ||
}, | ||
@@ -244,3 +226,3 @@ { | ||
controller: did, | ||
blockchainAccountId: `${delegate1}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${delegate1}`, | ||
}, | ||
@@ -251,3 +233,3 @@ { | ||
controller: did, | ||
blockchainAccountId: `${delegate2}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${delegate2}`, | ||
}, | ||
@@ -279,3 +261,3 @@ ], | ||
controller: did, | ||
blockchainAccountId: `${controller}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${controller}`, | ||
}, | ||
@@ -286,3 +268,3 @@ { | ||
controller: did, | ||
blockchainAccountId: `${delegate1}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${delegate1}`, | ||
}, | ||
@@ -317,3 +299,3 @@ ], | ||
controller: did, | ||
blockchainAccountId: `${controller}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${controller}`, | ||
}, | ||
@@ -347,3 +329,3 @@ ], | ||
controller: did, | ||
blockchainAccountId: `${controller}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${controller}`, | ||
}, | ||
@@ -354,3 +336,3 @@ { | ||
controller: did, | ||
blockchainAccountId: `${delegate2}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${delegate2}`, | ||
}, | ||
@@ -385,3 +367,3 @@ ], | ||
controller: did, | ||
blockchainAccountId: `${controller}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${controller}`, | ||
}, | ||
@@ -392,3 +374,3 @@ { | ||
controller: did, | ||
blockchainAccountId: `${delegate2}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${delegate2}`, | ||
}, | ||
@@ -424,3 +406,3 @@ { | ||
controller: did, | ||
blockchainAccountId: `${controller}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${controller}`, | ||
}, | ||
@@ -431,3 +413,3 @@ { | ||
controller: did, | ||
blockchainAccountId: `${delegate2}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${delegate2}`, | ||
}, | ||
@@ -472,3 +454,3 @@ { | ||
controller: did, | ||
blockchainAccountId: `${controller}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${controller}`, | ||
}, | ||
@@ -479,3 +461,3 @@ { | ||
controller: did, | ||
blockchainAccountId: `${delegate2}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${delegate2}`, | ||
}, | ||
@@ -533,3 +515,3 @@ { | ||
controller: keyAgrDid, | ||
blockchainAccountId: `${keyAgreementController}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${keyAgreementController}`, | ||
}, | ||
@@ -568,3 +550,3 @@ { | ||
controller: did, | ||
blockchainAccountId: `${controller}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${controller}`, | ||
}, | ||
@@ -575,3 +557,3 @@ { | ||
controller: did, | ||
blockchainAccountId: `${delegate2}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${delegate2}`, | ||
}, | ||
@@ -637,3 +619,3 @@ { | ||
controller: did, | ||
blockchainAccountId: `${controller}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${controller}`, | ||
}, | ||
@@ -644,3 +626,3 @@ { | ||
controller: did, | ||
blockchainAccountId: `${delegate2}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${delegate2}`, | ||
}, | ||
@@ -691,3 +673,3 @@ { | ||
controller: did, | ||
blockchainAccountId: `${controller}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${controller}`, | ||
}, | ||
@@ -698,3 +680,3 @@ { | ||
controller: did, | ||
blockchainAccountId: `${delegate2}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${delegate2}`, | ||
}, | ||
@@ -736,3 +718,3 @@ { | ||
controller: did, | ||
blockchainAccountId: `${controller}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${controller}`, | ||
}, | ||
@@ -743,3 +725,3 @@ { | ||
controller: did, | ||
blockchainAccountId: `${delegate2}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${delegate2}`, | ||
}, | ||
@@ -776,3 +758,3 @@ ], | ||
controller: did, | ||
blockchainAccountId: `${controller}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${controller}`, | ||
}, | ||
@@ -783,3 +765,3 @@ { | ||
controller: did, | ||
blockchainAccountId: `${delegate2}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${delegate2}`, | ||
}, | ||
@@ -835,3 +817,3 @@ ], | ||
type: 'EcdsaSecp256k1RecoveryMethod2020', | ||
blockchainAccountId: `${address}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${address}`, | ||
}, | ||
@@ -876,3 +858,3 @@ { | ||
controller: identifier, | ||
blockchainAccountId: `${address}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${address}`, | ||
}, | ||
@@ -931,6 +913,3 @@ { | ||
didDocument: { | ||
'@context': [ | ||
'https://www.w3.org/ns/did/v1', | ||
'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', | ||
], | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/secp256k1recovery-2020/v2'], | ||
id: virginDID, | ||
@@ -942,3 +921,3 @@ verificationMethod: [ | ||
controller: virginDID, | ||
blockchainAccountId: `${virginAddress}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${virginAddress}`, | ||
}, | ||
@@ -965,6 +944,3 @@ ], | ||
didDocument: { | ||
'@context': [ | ||
'https://www.w3.org/ns/did/v1', | ||
'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', | ||
], | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/secp256k1recovery-2020/v2'], | ||
id: deactivatedDid, | ||
@@ -976,3 +952,3 @@ verificationMethod: [ | ||
controller: deactivatedDid, | ||
blockchainAccountId: `${accounts[6]}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${accounts[6]}`, | ||
}, | ||
@@ -1005,3 +981,3 @@ ], | ||
controller: identifier, | ||
blockchainAccountId: `${address}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${address}`, | ||
}, | ||
@@ -1043,3 +1019,3 @@ ], | ||
controller: identifier, | ||
blockchainAccountId: `${address}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${address}`, | ||
}, | ||
@@ -1088,3 +1064,3 @@ { | ||
controller: identifier, | ||
blockchainAccountId: `${address}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${address}`, | ||
}, | ||
@@ -1095,3 +1071,3 @@ { | ||
controller: identifier, | ||
blockchainAccountId: `${delegateAddress1}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${delegateAddress1}`, | ||
}, | ||
@@ -1132,3 +1108,3 @@ ], | ||
controller: identifier, | ||
blockchainAccountId: `${address}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${address}`, | ||
}, | ||
@@ -1158,3 +1134,3 @@ ], | ||
controller: identifier, | ||
blockchainAccountId: `${delegate}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${delegate}`, | ||
}) | ||
@@ -1180,3 +1156,3 @@ // await expiry | ||
controller: identifier, | ||
blockchainAccountId: `${address}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${address}`, | ||
}, | ||
@@ -1187,3 +1163,3 @@ { | ||
controller: identifier, | ||
blockchainAccountId: `${delegate}@eip155:1337`, | ||
blockchainAccountId: `eip155:1337:${delegate}`, | ||
}, | ||
@@ -1190,0 +1166,0 @@ ], |
@@ -124,6 +124,3 @@ import { Base58 } from '@ethersproject/basex' | ||
const baseDIDDocument: DIDDocument = { | ||
'@context': [ | ||
'https://www.w3.org/ns/did/v1', | ||
'https://identity.foundation/EcdsaSecp256k1RecoverySignature2020/lds-ecdsa-secp256k1-recovery2020-0.0.jsonld', | ||
], | ||
'@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/secp256k1recovery-2020/v2'], | ||
id: did, | ||
@@ -178,3 +175,3 @@ verificationMethod: [], | ||
controller: did, | ||
blockchainAccountId: `${currentEvent.delegate}@eip155:${chainId}`, | ||
blockchainAccountId: `eip155:${chainId}:${currentEvent.delegate}`, | ||
} | ||
@@ -269,3 +266,3 @@ break | ||
controller: did, | ||
blockchainAccountId: `${controller}@eip155:${chainId}`, | ||
blockchainAccountId: `eip155:${chainId}:${controller}`, | ||
}, | ||
@@ -272,0 +269,0 @@ ] |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
523278
6495