diff --git a/.changeset/kind-pots-yell.md b/.changeset/kind-pots-yell.md new file mode 100644 index 0000000000..b4c7e9736f --- /dev/null +++ b/.changeset/kind-pots-yell.md @@ -0,0 +1,5 @@ +--- +'@credo-ts/cheqd': patch +--- + +Populate contexts for Cheqd DID Document Records in wallet diff --git a/packages/cheqd/src/anoncreds/utils/identifiers.ts b/packages/cheqd/src/anoncreds/utils/identifiers.ts index 3d33f99a70..94a5780934 100644 --- a/packages/cheqd/src/anoncreds/utils/identifiers.ts +++ b/packages/cheqd/src/anoncreds/utils/identifiers.ts @@ -12,6 +12,9 @@ const QUERY = `([?][^#]*)?` const VERSION_ID = `(.*?)` const FRAGMENT = `([#].*)?` +export const ED25519_SUITE_CONTEXT_URL_2018 = 'https://w3id.org/security/suites/ed25519-2018/v1' +export const ED25519_SUITE_CONTEXT_URL_2020 = 'https://w3id.org/security/suites/ed25519-2020/v1' + export const cheqdSdkAnonCredsRegistryIdentifierRegex = new RegExp( `^did:cheqd:${NETWORK}:${IDENTIFIER}${PATH}${QUERY}${FRAGMENT}$` ) diff --git a/packages/cheqd/src/dids/CheqdDidRegistrar.ts b/packages/cheqd/src/dids/CheqdDidRegistrar.ts index f315e5182a..f1a37ab8cf 100644 --- a/packages/cheqd/src/dids/CheqdDidRegistrar.ts +++ b/packages/cheqd/src/dids/CheqdDidRegistrar.ts @@ -25,9 +25,15 @@ import { getKeyFromVerificationMethod, JsonTransformer, VerificationMethod, + SECURITY_JWS_CONTEXT_URL, + DID_V1_CONTEXT_URL, } from '@credo-ts/core' -import { parseCheqdDid } from '../anoncreds/utils/identifiers' +import { + ED25519_SUITE_CONTEXT_URL_2018, + ED25519_SUITE_CONTEXT_URL_2020, + parseCheqdDid, +} from '../anoncreds/utils/identifiers' import { CheqdLedgerService } from '../ledger' import { @@ -39,6 +45,11 @@ import { export class CheqdDidRegistrar implements DidRegistrar { public readonly supportedMethods = ['cheqd'] + private contextMapping = { + Ed25519VerificationKey2018: ED25519_SUITE_CONTEXT_URL_2018, + Ed25519VerificationKey2020: ED25519_SUITE_CONTEXT_URL_2020, + JsonWebKey2020: SECURITY_JWS_CONTEXT_URL, + } public async create(agentContext: AgentContext, options: CheqdDidCreateOptions): Promise { const didRepository = agentContext.dependencyManager.resolve(DidRepository) @@ -90,18 +101,6 @@ export class CheqdDidRegistrar implements DidRegistrar { network: withoutDidDocumentOptions.options.network as CheqdNetwork, publicKey: TypedArrayEncoder.toHex(key.publicKey), }) - - const contextMapping = { - Ed25519VerificationKey2018: 'https://w3id.org/security/suites/ed25519-2018/v1', - Ed25519VerificationKey2020: 'https://w3id.org/security/suites/ed25519-2020/v1', - JsonWebKey2020: 'https://w3id.org/security/suites/jws-2020/v1', - } - const contextUrl = contextMapping[verificationMethod.type] - - // Add the context to the did document - // NOTE: cheqd sdk uses https://www.w3.org/ns/did/v1 while Credo did doc uses https://w3id.org/did/v1 - // We should align these at some point. For now we just return a consistent value. - didDocument.context = ['https://www.w3.org/ns/did/v1', contextUrl] } else { return { didDocumentMetadata: {}, @@ -113,6 +112,25 @@ export class CheqdDidRegistrar implements DidRegistrar { } } + // Normalize context to an array + const contextSet = new Set( + typeof didDocument.context === 'string' + ? [didDocument.context] + : Array.isArray(didDocument.context) + ? didDocument.context + : [] + ) + + for (const verificationMethod of didDocument.verificationMethod || []) { + const contextUrl = this.contextMapping[verificationMethod.type as keyof typeof this.contextMapping] + if (contextUrl) { + contextSet.add(contextUrl) + } + } + + // Add Cheqd default context to the did document + didDocument.context = Array.from(contextSet.add(DID_V1_CONTEXT_URL)) + const didDocumentJson = didDocument.toJSON() as DIDDocument const payloadToSign = await createMsgCreateDidDocPayloadToSign(didDocumentJson, versionId) @@ -162,6 +180,7 @@ export class CheqdDidRegistrar implements DidRegistrar { const verificationMethod = options.secret?.verificationMethod let didDocument: DidDocument let didRecord: DidRecord | null + let contextSet: Set try { if (options.didDocument && validateSpecCompliantPayload(options.didDocument)) { @@ -178,6 +197,14 @@ export class CheqdDidRegistrar implements DidRegistrar { }, } } + // Normalize existing context to an array + contextSet = new Set( + typeof didDocument.context === 'string' + ? [didDocument.context] + : Array.isArray(didDocument.context) + ? didDocument.context + : [] + ) if (verificationMethod) { const privateKey = verificationMethod.privateKey @@ -213,6 +240,10 @@ export class CheqdDidRegistrar implements DidRegistrar { VerificationMethod ) ) + const contextUrl = this.contextMapping[verificationMethod.type as keyof typeof this.contextMapping] + if (contextUrl) { + contextSet.add(contextUrl) + } } } else { return { @@ -224,7 +255,8 @@ export class CheqdDidRegistrar implements DidRegistrar { }, } } - + // Add Cheqd default context to the did document + didDocument.context = Array.from(contextSet.add(DID_V1_CONTEXT_URL)) const payloadToSign = await createMsgCreateDidDocPayloadToSign(didDocument as DIDDocument, versionId) const signInputs = await this.signPayload(agentContext, payloadToSign, didDocument.verificationMethod) @@ -300,7 +332,7 @@ export class CheqdDidRegistrar implements DidRegistrar { didState: { state: 'finished', did: didDocument.id, - didDocument: JsonTransformer.fromJSON(didDocument, DidDocument), + didDocument: JsonTransformer.fromJSON(didRecord.didDocument, DidDocument), secret: options.secret, }, } diff --git a/packages/cheqd/tests/cheqd-did-registrar.e2e.test.ts b/packages/cheqd/tests/cheqd-did-registrar.e2e.test.ts index 51df2b0ec1..a0f677df5e 100644 --- a/packages/cheqd/tests/cheqd-did-registrar.e2e.test.ts +++ b/packages/cheqd/tests/cheqd-did-registrar.e2e.test.ts @@ -2,7 +2,6 @@ import type { CheqdDidCreateOptions } from '../src' import type { DidDocument } from '@credo-ts/core' import { - SECURITY_JWS_CONTEXT_URL, DidDocumentBuilder, getEd25519VerificationKey2018, getJsonWebKey2020, @@ -127,7 +126,7 @@ describe('Cheqd DID registrar', () => { didDocument, }, }) - + expect(updateResult.didState.didDocument?.toJSON()).toMatchObject(didDocument.toJSON()) const deactivateResult = await agent.dids.deactivate({ did }) expect(deactivateResult.didState.didDocument?.toJSON()).toMatchObject(didDocument.toJSON()) expect(deactivateResult.didState.state).toEqual('finished') @@ -148,7 +147,6 @@ describe('Cheqd DID registrar', () => { const createResult = await agent.dids.create({ method: 'cheqd', didDocument: new DidDocumentBuilder(did) - .addContext(SECURITY_JWS_CONTEXT_URL) .addController(did) .addAuthentication(`${did}#${ed25519Key.fingerprint}`) .addVerificationMethod( @@ -168,7 +166,10 @@ describe('Cheqd DID registrar', () => { }) expect(createResult.didState.didDocument?.toJSON()).toMatchObject({ - '@context': ['https://w3id.org/did/v1', 'https://w3id.org/security/suites/jws-2020/v1'], + '@context': [ + 'https://www.w3.org/ns/did/v1', + 'https://w3id.org/security/suites/ed25519-2018/v1', + ], verificationMethod: [ { controller: did, @@ -189,7 +190,6 @@ describe('Cheqd DID registrar', () => { const createResult = await agent.dids.create({ method: 'cheqd', didDocument: new DidDocumentBuilder(did) - .addContext(SECURITY_JWS_CONTEXT_URL) .addController(did) .addAuthentication(`${did}#${p256Key.fingerprint}`) .addVerificationMethod( diff --git a/packages/cheqd/tests/cheqd-did-resolver.e2e.test.ts b/packages/cheqd/tests/cheqd-did-resolver.e2e.test.ts index e5a861d224..5bbc016dc4 100644 --- a/packages/cheqd/tests/cheqd-did-resolver.e2e.test.ts +++ b/packages/cheqd/tests/cheqd-did-resolver.e2e.test.ts @@ -82,7 +82,10 @@ describe('Cheqd DID resolver', () => { }) expect(JsonTransformer.toJSON(resolveResult)).toMatchObject({ didDocument: { - '@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2020/v1'], + '@context': [ + 'https://www.w3.org/ns/did/v1', + 'https://w3id.org/security/suites/ed25519-2020/v1', + ], id: did, controller: [did], verificationMethod: [ diff --git a/packages/cheqd/tests/cheqd-ld-proof.e2e.test.ts b/packages/cheqd/tests/cheqd-ld-proof.e2e.test.ts new file mode 100644 index 0000000000..f08e0573d0 --- /dev/null +++ b/packages/cheqd/tests/cheqd-ld-proof.e2e.test.ts @@ -0,0 +1,345 @@ +import type { EventReplaySubject } from '../../core/tests' +import type { CheqdDidCreateOptions } from '../src' +import type { Key } from '@credo-ts/core' + +import { + DidDocumentBuilder, + getEd25519VerificationKey2018, + KeyType, + utils, + Agent, + TypedArrayEncoder, + DifPresentationExchangeProofFormatService, + JsonLdCredentialFormatService, + CredentialsModule, + V2CredentialProtocol, + ProofsModule, + V2ProofProtocol, + CacheModule, + InMemoryLruCache, + W3cCredentialsModule, + CredentialState, + CredentialExchangeRecord, + JsonTransformer, + ProofEventTypes, + CredentialEventTypes, +} from '@credo-ts/core' + +import { setupEventReplaySubjects, setupSubjectTransports, testLogger } from '../../core/tests' +import { getInMemoryAgentOptions, makeConnection, waitForCredentialRecordSubject } from '../../core/tests/helpers' + +import { cheqdPayerSeeds, getCheqdModules } from './setupCheqdModule' + +const did = `did:cheqd:testnet:${utils.uuid()}` +let ed25519Key: Key + +const signCredentialOptions = { + credential: { + '@context': [ + 'https://www.w3.org/2018/credentials/v1', + 'https://w3id.org/citizenship/v1', + 'https://w3id.org/security/bbs/v1', + ], + id: 'https://issuer.oidp.uscis.gov/credentials/83627465', + type: ['VerifiableCredential', 'PermanentResidentCard'], + issuer: did, + issuanceDate: '2019-12-03T12:19:52Z', + expirationDate: '2029-12-03T12:19:52Z', + identifier: '83627465', + name: 'Permanent Resident Card', + credentialSubject: { + id: 'did:example:b34ca6cd37bbf23', + type: ['PermanentResident', 'Person'], + givenName: 'JOHN', + familyName: 'SMITH', + gender: 'Male', + image: 'data:image/png;base64,iVBORw0KGgokJggg==', + residentSince: '2015-01-01', + description: 'Government of Example Permanent Resident Card.', + lprCategory: 'C09', + lprNumber: '999-999-999', + commuterClassification: 'C1', + birthCountry: 'Bahamas', + birthDate: '1958-07-17', + }, + }, + options: { + proofType: 'Ed25519Signature2018', + proofPurpose: 'assertionMethod', + }, +} + +const jsonLdCredentialFormat = new JsonLdCredentialFormatService() +const jsonLdProofFormat = new DifPresentationExchangeProofFormatService() + +const getCheqdJsonLdModules = () => + ({ + ...getCheqdModules(cheqdPayerSeeds[0]), + credentials: new CredentialsModule({ + credentialProtocols: [ + new V2CredentialProtocol({ + credentialFormats: [jsonLdCredentialFormat], + }), + ], + }), + proofs: new ProofsModule({ + proofProtocols: [ + new V2ProofProtocol({ + proofFormats: [jsonLdProofFormat], + }), + ], + }), + cache: new CacheModule({ + cache: new InMemoryLruCache({ limit: 100 }), + }), + w3cCredentials: new W3cCredentialsModule({}), + } as const) + +// TODO: extract these very specific tests to the jsonld format +describe('Cheqd V2 Credentials - JSON-LD - Ed25519', () => { + let faberAgent: Agent> + let faberReplay: EventReplaySubject + let aliceAgent: Agent> + let aliceReplay: EventReplaySubject + let aliceConnectionId: string + + beforeAll(async () => { + faberAgent = new Agent( + getInMemoryAgentOptions( + 'Faber Agent Indy/JsonLD', + { + endpoints: ['rxjs:faber'], + }, + getCheqdJsonLdModules() + ) + ) + aliceAgent = new Agent( + getInMemoryAgentOptions( + 'Alice Agent Indy/JsonLD', + { + endpoints: ['rxjs:alice'], + }, + getCheqdJsonLdModules() + ) + ) + + setupSubjectTransports([faberAgent, aliceAgent]) + ;[faberReplay, aliceReplay] = setupEventReplaySubjects( + [faberAgent, aliceAgent], + [CredentialEventTypes.CredentialStateChanged, ProofEventTypes.ProofStateChanged] + ) + await faberAgent.initialize() + await aliceAgent.initialize() + ;[, { id: aliceConnectionId }] = await makeConnection(faberAgent, aliceAgent) + + await faberAgent.context.wallet.createKey({ + privateKey: TypedArrayEncoder.fromString('testseed000000000000000000000001'), + keyType: KeyType.Ed25519, + }) + }) + + afterAll(async () => { + await faberAgent.shutdown() + await faberAgent.wallet.delete() + await aliceAgent.shutdown() + await aliceAgent.wallet.delete() + }) + + it('should create a did:cheqd did using custom did document containing Ed25519 key', async () => { + ed25519Key = await faberAgent.wallet.createKey({ + keyType: KeyType.Ed25519, + }) + + const createResult = await faberAgent.dids.create({ + method: 'cheqd', + didDocument: new DidDocumentBuilder(did) + .addController(did) + .addAuthentication(`${did}#${ed25519Key.fingerprint}`) + .addVerificationMethod( + getEd25519VerificationKey2018({ + key: ed25519Key, + controller: did, + id: `${did}#${ed25519Key.fingerprint}`, + }) + ) + .addAssertionMethod(`${did}#${ed25519Key.fingerprint}`) + .build(), + }) + + expect(createResult).toMatchObject({ + didState: { + state: 'finished', + }, + }) + + expect(createResult.didState.didDocument?.toJSON()).toMatchObject({ + '@context': [ + 'https://www.w3.org/ns/did/v1', + 'https://w3id.org/security/suites/ed25519-2018/v1', + ], + verificationMethod: [ + { + controller: did, + type: 'Ed25519VerificationKey2018', + publicKeyBase58: ed25519Key.publicKeyBase58, + }, + ], + }) + }) + + test('Alice starts with V2 (ld format, Ed25519 signature) credential proposal to Faber', async () => { + testLogger.test('Alice sends (v2 jsonld) credential proposal to Faber') + + const credentialExchangeRecord = await aliceAgent.credentials.proposeCredential({ + connectionId: aliceConnectionId, + protocolVersion: 'v2', + credentialFormats: { + jsonld: signCredentialOptions, + }, + comment: 'v2 propose credential test for W3C Credentials', + }) + + expect(credentialExchangeRecord.connectionId).toEqual(aliceConnectionId) + expect(credentialExchangeRecord.protocolVersion).toEqual('v2') + expect(credentialExchangeRecord.state).toEqual(CredentialState.ProposalSent) + expect(credentialExchangeRecord.threadId).not.toBeNull() + + testLogger.test('Faber waits for credential proposal from Alice') + let faberCredentialRecord = await waitForCredentialRecordSubject(faberReplay, { + threadId: credentialExchangeRecord.threadId, + state: CredentialState.ProposalReceived, + }) + + testLogger.test('Faber sends credential offer to Alice') + await faberAgent.credentials.acceptProposal({ + credentialRecordId: faberCredentialRecord.id, + comment: 'V2 W3C Offer', + }) + + testLogger.test('Alice waits for credential offer from Faber') + let aliceCredentialRecord = await waitForCredentialRecordSubject(aliceReplay, { + threadId: faberCredentialRecord.threadId, + state: CredentialState.OfferReceived, + }) + + const offerMessage = await aliceAgent.credentials.findOfferMessage(aliceCredentialRecord.id) + expect(JsonTransformer.toJSON(offerMessage)).toMatchObject({ + '@type': 'https://didcomm.org/issue-credential/2.0/offer-credential', + '@id': expect.any(String), + comment: 'V2 W3C Offer', + formats: [ + { + attach_id: expect.any(String), + format: 'aries/ld-proof-vc-detail@v1.0', + }, + ], + 'offers~attach': [ + { + '@id': expect.any(String), + 'mime-type': 'application/json', + data: expect.any(Object), + lastmod_time: undefined, + byte_count: undefined, + }, + ], + '~thread': { + thid: expect.any(String), + pthid: undefined, + sender_order: undefined, + received_orders: undefined, + }, + '~service': undefined, + '~attach': undefined, + '~please_ack': undefined, + '~timing': undefined, + '~transport': undefined, + '~l10n': undefined, + credential_preview: expect.any(Object), + replacement_id: undefined, + }) + expect(aliceCredentialRecord.id).not.toBeNull() + expect(aliceCredentialRecord.type).toBe(CredentialExchangeRecord.type) + + const offerCredentialExchangeRecord = await aliceAgent.credentials.acceptOffer({ + credentialRecordId: aliceCredentialRecord.id, + credentialFormats: { + jsonld: {}, + }, + }) + + expect(offerCredentialExchangeRecord.connectionId).toEqual(aliceConnectionId) + expect(offerCredentialExchangeRecord.protocolVersion).toEqual('v2') + expect(offerCredentialExchangeRecord.state).toEqual(CredentialState.RequestSent) + expect(offerCredentialExchangeRecord.threadId).not.toBeNull() + + testLogger.test('Faber waits for credential request from Alice') + await waitForCredentialRecordSubject(faberReplay, { + threadId: aliceCredentialRecord.threadId, + state: CredentialState.RequestReceived, + }) + + testLogger.test('Faber sends credential to Alice') + + await faberAgent.credentials.acceptRequest({ + credentialRecordId: faberCredentialRecord.id, + comment: 'V2 Indy Credential', + }) + + testLogger.test('Alice waits for credential from Faber') + aliceCredentialRecord = await waitForCredentialRecordSubject(aliceReplay, { + threadId: faberCredentialRecord.threadId, + state: CredentialState.CredentialReceived, + }) + + testLogger.test('Alice sends credential ack to Faber') + await aliceAgent.credentials.acceptCredential({ credentialRecordId: aliceCredentialRecord.id }) + + testLogger.test('Faber waits for credential ack from Alice') + faberCredentialRecord = await waitForCredentialRecordSubject(faberReplay, { + threadId: faberCredentialRecord.threadId, + state: CredentialState.Done, + }) + expect(aliceCredentialRecord).toMatchObject({ + type: CredentialExchangeRecord.type, + id: expect.any(String), + createdAt: expect.any(Date), + threadId: expect.any(String), + connectionId: expect.any(String), + state: CredentialState.CredentialReceived, + }) + + const credentialMessage = await faberAgent.credentials.findCredentialMessage(faberCredentialRecord.id) + expect(JsonTransformer.toJSON(credentialMessage)).toMatchObject({ + '@type': 'https://didcomm.org/issue-credential/2.0/issue-credential', + '@id': expect.any(String), + comment: 'V2 Indy Credential', + formats: [ + { + attach_id: expect.any(String), + format: 'aries/ld-proof-vc@v1.0', + }, + ], + 'credentials~attach': [ + { + '@id': expect.any(String), + 'mime-type': 'application/json', + data: expect.any(Object), + lastmod_time: undefined, + byte_count: undefined, + }, + ], + '~thread': { + thid: expect.any(String), + pthid: undefined, + sender_order: undefined, + received_orders: undefined, + }, + '~please_ack': { on: ['RECEIPT'] }, + '~service': undefined, + '~attach': undefined, + '~timing': undefined, + '~transport': undefined, + '~l10n': undefined, + }) + }) +}) diff --git a/packages/core/src/decorators/signature/SignatureDecoratorUtils.test.ts b/packages/core/src/decorators/signature/SignatureDecoratorUtils.test.ts index e3fbdbfe11..f50606bc92 100644 --- a/packages/core/src/decorators/signature/SignatureDecoratorUtils.test.ts +++ b/packages/core/src/decorators/signature/SignatureDecoratorUtils.test.ts @@ -19,7 +19,7 @@ describe('Decorators | Signature | SignatureDecoratorUtils', () => { const data = { did: 'did', did_doc: { - '@context': 'https://w3id.org/did/v1', + '@context': 'https://www.w3.org/ns/did/v1', service: [ { id: 'did:example:123456789abcdefghi#did-communication', @@ -35,9 +35,9 @@ describe('Decorators | Signature | SignatureDecoratorUtils', () => { const signedData = new SignatureDecorator({ signatureType: 'https://didcomm.org/signature/1.0/ed25519Sha512_single', - signature: 'zOSmKNCHKqOJGDJ6OlfUXTPJiirEAXrFn1kPiFDZfvG5hNTBKhsSzqAvlg44apgWBu7O57vGWZsXBF2BWZ5JAw', + signature: 'TeVQ7m4v7y4Gg80JZWN50H9GjWc3XFDQJ3QpoY2kuAK1ZzX9a_7Tls-X-GI9-JLCysPKzB5EnzAy3EIPi082BA', signatureData: - 'AAAAAAAAAAB7ImRpZCI6ImRpZCIsImRpZF9kb2MiOnsiQGNvbnRleHQiOiJodHRwczovL3czaWQub3JnL2RpZC92MSIsInNlcnZpY2UiOlt7ImlkIjoiZGlkOmV4YW1wbGU6MTIzNDU2Nzg5YWJjZGVmZ2hpI2RpZC1jb21tdW5pY2F0aW9uIiwidHlwZSI6ImRpZC1jb21tdW5pY2F0aW9uIiwicHJpb3JpdHkiOjAsInJlY2lwaWVudEtleXMiOlsic29tZVZlcmtleSJdLCJyb3V0aW5nS2V5cyI6W10sInNlcnZpY2VFbmRwb2ludCI6Imh0dHBzOi8vYWdlbnQuZXhhbXBsZS5jb20vIn1dfX0', + 'AAAAAAAAAAB7ImRpZCI6ImRpZCIsImRpZF9kb2MiOnsiQGNvbnRleHQiOiJodHRwczovL3d3dy53My5vcmcvbnMvZGlkL3YxIiwic2VydmljZSI6W3siaWQiOiJkaWQ6ZXhhbXBsZToxMjM0NTY3ODlhYmNkZWZnaGkjZGlkLWNvbW11bmljYXRpb24iLCJ0eXBlIjoiZGlkLWNvbW11bmljYXRpb24iLCJwcmlvcml0eSI6MCwicmVjaXBpZW50S2V5cyI6WyJzb21lVmVya2V5Il0sInJvdXRpbmdLZXlzIjpbXSwic2VydmljZUVuZHBvaW50IjoiaHR0cHM6Ly9hZ2VudC5leGFtcGxlLmNvbS8ifV19fQ', signer: 'GjZWsBLgZCR18aL468JAT7w9CZRiBnpxUPPgyQxh4voa', }) diff --git a/packages/core/src/modules/connections/__tests__/ConnectionService.test.ts b/packages/core/src/modules/connections/__tests__/ConnectionService.test.ts index 39e46b91a9..efa35000e0 100644 --- a/packages/core/src/modules/connections/__tests__/ConnectionService.test.ts +++ b/packages/core/src/modules/connections/__tests__/ConnectionService.test.ts @@ -260,7 +260,7 @@ describe('ConnectionService', () => { const processedConnection = await connectionService.processRequest(messageContext, outOfBand) expect(processedConnection.state).toBe(DidExchangeState.RequestReceived) - expect(processedConnection.theirDid).toBe('did:peer:1zQmW2esSyEVGzrh3CFt1eQZUHEAb3Li1hyPudPhSoFevrFY') + expect(processedConnection.theirDid).toBe('did:peer:1zQmcLh1CQfxn2rCN4xBkgjrozMJAdmHEchbjrzsxNPzXUZa') expect(processedConnection.theirLabel).toBe('test-label') expect(processedConnection.threadId).toBe(connectionRequest.id) expect(processedConnection.imageUrl).toBe(connectionImageUrl) @@ -319,7 +319,7 @@ describe('ConnectionService', () => { const processedConnection = await connectionService.processRequest(messageContext, outOfBand) expect(processedConnection.state).toBe(DidExchangeState.RequestReceived) - expect(processedConnection.theirDid).toBe('did:peer:1zQmW2esSyEVGzrh3CFt1eQZUHEAb3Li1hyPudPhSoFevrFY') + expect(processedConnection.theirDid).toBe('did:peer:1zQmcLh1CQfxn2rCN4xBkgjrozMJAdmHEchbjrzsxNPzXUZa') expect(processedConnection.theirLabel).toBe('test-label') expect(processedConnection.threadId).toBe(connectionRequest.id) diff --git a/packages/core/src/modules/connections/models/did/DidDoc.ts b/packages/core/src/modules/connections/models/did/DidDoc.ts index d40a4aaeca..6ae02e1707 100644 --- a/packages/core/src/modules/connections/models/did/DidDoc.ts +++ b/packages/core/src/modules/connections/models/did/DidDoc.ts @@ -6,6 +6,7 @@ import { Expose } from 'class-transformer' import { Equals, IsArray, IsString, ValidateNested } from 'class-validator' import { ServiceTransformer, DidCommV1Service, IndyAgentService } from '../../../dids/domain/service' +import { DID_V1_CONTEXT_URL } from '../../../vc' import { AuthenticationTransformer } from './authentication' import { PublicKeyTransformer } from './publicKey' @@ -14,8 +15,8 @@ type DidDocOptions = Pick { did, didDocument: { '@context': [ - 'https://w3id.org/did/v1', + 'https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1', 'https://w3id.org/security/suites/x25519-2019/v1', ], diff --git a/packages/core/src/modules/dids/__tests__/__fixtures__/didExample123.json b/packages/core/src/modules/dids/__tests__/__fixtures__/didExample123.json index 92b7eceb91..e41fed4b3b 100644 --- a/packages/core/src/modules/dids/__tests__/__fixtures__/didExample123.json +++ b/packages/core/src/modules/dids/__tests__/__fixtures__/didExample123.json @@ -1,5 +1,5 @@ { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "id": "did:example:123", "alsoKnownAs": ["did:example:456"], "controller": ["did:example:456"], diff --git a/packages/core/src/modules/dids/__tests__/__fixtures__/didExample123DidcommV2Service.json b/packages/core/src/modules/dids/__tests__/__fixtures__/didExample123DidcommV2Service.json index d07b599648..c1a44ba7f6 100644 --- a/packages/core/src/modules/dids/__tests__/__fixtures__/didExample123DidcommV2Service.json +++ b/packages/core/src/modules/dids/__tests__/__fixtures__/didExample123DidcommV2Service.json @@ -1,5 +1,5 @@ { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "id": "did:example:123", "service": [ { diff --git a/packages/core/src/modules/dids/__tests__/__fixtures__/didExample456Invalid.json b/packages/core/src/modules/dids/__tests__/__fixtures__/didExample456Invalid.json index 83b25c0e48..8c5e7f362b 100644 --- a/packages/core/src/modules/dids/__tests__/__fixtures__/didExample456Invalid.json +++ b/packages/core/src/modules/dids/__tests__/__fixtures__/didExample456Invalid.json @@ -1,5 +1,5 @@ { - "@context": "https://w3id.org/did/v1", + "@context": "https://www.w3.org/ns/did/v1", "id": "did:example:456", "alsoKnownAs": "did:example:123", "controller": "did:example:123", diff --git a/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyBls12381g1.json b/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyBls12381g1.json index 64ea24fb7e..b1fd24db16 100644 --- a/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyBls12381g1.json +++ b/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyBls12381g1.json @@ -1,5 +1,5 @@ { - "@context": ["https://w3id.org/did/v1", "https://w3id.org/security/bbs/v1"], + "@context": ["https://www.w3.org/ns/did/v1", "https://w3id.org/security/bbs/v1"], "id": "did:key:z3tEFALUKUzzCAvytMHX8X4SnsNsq6T5tC5Zb18oQEt1FqNcJXqJ3AA9umgzA9yoqPBeWA", "verificationMethod": [ { diff --git a/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyBls12381g1g2.json b/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyBls12381g1g2.json index 898bf59d77..8ac99ce9a5 100644 --- a/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyBls12381g1g2.json +++ b/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyBls12381g1g2.json @@ -1,5 +1,5 @@ { - "@context": ["https://w3id.org/did/v1", "https://w3id.org/security/bbs/v1"], + "@context": ["https://www.w3.org/ns/did/v1", "https://w3id.org/security/bbs/v1"], "id": "did:key:z5TcESXuYUE9aZWYwSdrUEGK1HNQFHyTt4aVpaCTVZcDXQmUheFwfNZmRksaAbBneNm5KyE52SdJeRCN1g6PJmF31GsHWwFiqUDujvasK3wTiDr3vvkYwEJHt7H5RGEKYEp1ErtQtcEBgsgY2DA9JZkHj1J9HZ8MRDTguAhoFtR4aTBQhgnkP4SwVbxDYMEZoF2TMYn3s", "verificationMethod": [ { diff --git a/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyBls12381g2.json b/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyBls12381g2.json index 29724406d1..e85e4d8d76 100644 --- a/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyBls12381g2.json +++ b/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyBls12381g2.json @@ -1,5 +1,5 @@ { - "@context": ["https://w3id.org/did/v1", "https://w3id.org/security/bbs/v1"], + "@context": ["https://www.w3.org/ns/did/v1", "https://w3id.org/security/bbs/v1"], "id": "did:key:zUC71nmwvy83x1UzNKbZbS7N9QZx8rqpQx3Ee3jGfKiEkZngTKzsRoqobX6wZdZF5F93pSGYYco3gpK9tc53ruWUo2tkBB9bxPCFBUjq2th8FbtT4xih6y6Q1K9EL4Th86NiCGT", "verificationMethod": [ { diff --git a/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyEd25519.json b/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyEd25519.json index 8cfad8b6d1..2099d040b5 100644 --- a/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyEd25519.json +++ b/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyEd25519.json @@ -1,6 +1,6 @@ { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/ed25519-2018/v1", "https://w3id.org/security/suites/x25519-2019/v1" ], diff --git a/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyK256.json b/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyK256.json index aae86c5876..658de1ab8a 100644 --- a/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyK256.json +++ b/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyK256.json @@ -1,5 +1,5 @@ { - "@context": ["https://w3id.org/did/v1", "https://w3id.org/security/suites/jws-2020/v1"], + "@context": ["https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/jws-2020/v1"], "id": "did:key:zQ3shjRPgHQQbTtXyofk1ygghRJ75RZpXmWBMY1BKnhyz7zKp", "verificationMethod": [ { diff --git a/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyP256.json b/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyP256.json index 5465e191de..2b3a492fee 100644 --- a/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyP256.json +++ b/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyP256.json @@ -1,5 +1,5 @@ { - "@context": ["https://w3id.org/did/v1", "https://w3id.org/security/suites/jws-2020/v1"], + "@context": ["https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/jws-2020/v1"], "id": "did:key:zDnaerx9CtbPJ1q36T5Ln5wYt3MQYeGRG5ehnPAmxcf5mDZpv", "verificationMethod": [ { diff --git a/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyP384.json b/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyP384.json index b5249b1afc..df52a93835 100644 --- a/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyP384.json +++ b/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyP384.json @@ -1,5 +1,5 @@ { - "@context": ["https://w3id.org/did/v1", "https://w3id.org/security/suites/jws-2020/v1"], + "@context": ["https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/jws-2020/v1"], "id": "did:key:z82Lm1MpAkeJcix9K8TMiLd5NMAhnwkjjCBeWHXyu3U4oT2MVJJKXkcVBgjGhnLBn2Kaau9", "verificationMethod": [ { diff --git a/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyP521.json b/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyP521.json index bafea05578..9b09b3e554 100644 --- a/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyP521.json +++ b/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyP521.json @@ -1,5 +1,5 @@ { - "@context": ["https://w3id.org/did/v1", "https://w3id.org/security/suites/jws-2020/v1"], + "@context": ["https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/jws-2020/v1"], "id": "did:key:z2J9gaYxrKVpdoG9A4gRnmpnRCcxU6agDtFVVBVdn1JedouoZN7SzcyREXXzWgt3gGiwpoHq7K68X4m32D8HgzG8wv3sY5j7", "verificationMethod": [ { diff --git a/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyX25519.json b/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyX25519.json index ad660d24f3..94fb6451d8 100644 --- a/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyX25519.json +++ b/packages/core/src/modules/dids/__tests__/__fixtures__/didKeyX25519.json @@ -1,5 +1,5 @@ { - "@context": ["https://w3id.org/did/v1", "https://w3id.org/security/suites/x25519-2019/v1"], + "@context": ["https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/x25519-2019/v1"], "id": "did:key:z6LShLeXRTzevtwcfehaGEzCMyL3bNsAeKCwcqwJxyCo63yE", "keyAgreement": [ { diff --git a/packages/core/src/modules/dids/__tests__/__fixtures__/didPeer1zQmY.json b/packages/core/src/modules/dids/__tests__/__fixtures__/didPeer1zQmY.json index 4a33648df6..36ad9568a5 100644 --- a/packages/core/src/modules/dids/__tests__/__fixtures__/didPeer1zQmY.json +++ b/packages/core/src/modules/dids/__tests__/__fixtures__/didPeer1zQmY.json @@ -1,6 +1,6 @@ { - "@context": ["https://w3id.org/did/v1"], - "id": "did:peer:1zQmchWGXSsHohSMrgts5oxG76zAfG49RkMZbhrYqPJeVXc1", + "@context": ["https://www.w3.org/ns/did/v1"], + "id": "did:peer:1zQmfUsTQProCfdpDrNbHsKoJEwKWpUKn2bqK63f4e9K3cko", "service": [ { "id": "#service-0", diff --git a/packages/core/src/modules/dids/__tests__/dids-registrar.test.ts b/packages/core/src/modules/dids/__tests__/dids-registrar.test.ts index 457cb2d73d..7c20178b12 100644 --- a/packages/core/src/modules/dids/__tests__/dids-registrar.test.ts +++ b/packages/core/src/modules/dids/__tests__/dids-registrar.test.ts @@ -43,7 +43,7 @@ describe('dids', () => { did: 'did:key:z6MkpGR4gs4Rc3Zph4vj8wRnjnAxgAPSxcR8MAVKutWspQzc', didDocument: { '@context': [ - 'https://w3id.org/did/v1', + 'https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1', 'https://w3id.org/security/suites/x25519-2019/v1', ], @@ -108,7 +108,7 @@ describe('dids', () => { did: 'did:peer:0z6Mkuo91yRhTWDrFkdNBcLXAbvtUiq2J9E4QQcfYZt4hevkh', didDocument: { '@context': [ - 'https://w3id.org/did/v1', + 'https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1', 'https://w3id.org/security/suites/x25519-2019/v1', ], diff --git a/packages/core/src/modules/dids/__tests__/dids-resolver.test.ts b/packages/core/src/modules/dids/__tests__/dids-resolver.test.ts index feba6ee688..2211433a02 100644 --- a/packages/core/src/modules/dids/__tests__/dids-resolver.test.ts +++ b/packages/core/src/modules/dids/__tests__/dids-resolver.test.ts @@ -20,7 +20,7 @@ describe('dids', () => { expect(JsonTransformer.toJSON(did)).toMatchObject({ didDocument: { '@context': [ - 'https://w3id.org/did/v1', + 'https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1', 'https://w3id.org/security/suites/x25519-2019/v1', ], @@ -70,7 +70,7 @@ describe('dids', () => { expect(JsonTransformer.toJSON(did)).toMatchObject({ didDocument: { '@context': [ - 'https://w3id.org/did/v1', + 'https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1', 'https://w3id.org/security/suites/x25519-2019/v1', ], diff --git a/packages/core/src/modules/dids/domain/DidDocument.ts b/packages/core/src/modules/dids/domain/DidDocument.ts index 8486613341..84ff936e68 100644 --- a/packages/core/src/modules/dids/domain/DidDocument.ts +++ b/packages/core/src/modules/dids/domain/DidDocument.ts @@ -39,7 +39,7 @@ interface DidDocumentOptions { export class DidDocument { @Expose({ name: '@context' }) @IsStringOrStringArray() - public context: string | string[] = ['https://w3id.org/did/v1'] + public context: string | string[] = ['https://www.w3.org/ns/did/v1'] @IsString() public id!: string diff --git a/packages/core/src/modules/dids/methods/jwk/__tests__/JwkDidRegistrar.test.ts b/packages/core/src/modules/dids/methods/jwk/__tests__/JwkDidRegistrar.test.ts index a8ce088b2c..2f3ac45bdd 100644 --- a/packages/core/src/modules/dids/methods/jwk/__tests__/JwkDidRegistrar.test.ts +++ b/packages/core/src/modules/dids/methods/jwk/__tests__/JwkDidRegistrar.test.ts @@ -57,7 +57,7 @@ describe('DidRegistrar', () => { state: 'finished', did: 'did:jwk:eyJrdHkiOiJFQyIsImNydiI6IlAtMjU2IiwieCI6ImFjYklRaXVNczNpOF91c3pFakoydHBUdFJNNEVVM3l6OTFQSDZDZEgyVjAiLCJ5IjoiX0tjeUxqOXZXTXB0bm1LdG00NkdxRHo4d2Y3NEk1TEtncmwyR3pIM25TRSJ9', didDocument: { - '@context': ['https://w3id.org/did/v1', 'https://w3id.org/security/suites/jws-2020/v1'], + '@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/jws-2020/v1'], id: 'did:jwk:eyJrdHkiOiJFQyIsImNydiI6IlAtMjU2IiwieCI6ImFjYklRaXVNczNpOF91c3pFakoydHBUdFJNNEVVM3l6OTFQSDZDZEgyVjAiLCJ5IjoiX0tjeUxqOXZXTXB0bm1LdG00NkdxRHo4d2Y3NEk1TEtncmwyR3pIM25TRSJ9', verificationMethod: [ { diff --git a/packages/core/src/modules/dids/methods/jwk/__tests__/__fixtures__/p256DidJwkEyJjcnYi0i.ts b/packages/core/src/modules/dids/methods/jwk/__tests__/__fixtures__/p256DidJwkEyJjcnYi0i.ts index f042e88502..32fa3060cf 100644 --- a/packages/core/src/modules/dids/methods/jwk/__tests__/__fixtures__/p256DidJwkEyJjcnYi0i.ts +++ b/packages/core/src/modules/dids/methods/jwk/__tests__/__fixtures__/p256DidJwkEyJjcnYi0i.ts @@ -1,5 +1,5 @@ export const p256DidJwkEyJjcnYi0iFixture = { - '@context': ['https://w3id.org/did/v1', 'https://w3id.org/security/suites/jws-2020/v1'], + '@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/jws-2020/v1'], id: 'did:jwk:eyJrdHkiOiJFQyIsImNydiI6IlAtMjU2IiwieCI6ImFjYklRaXVNczNpOF91c3pFakoydHBUdFJNNEVVM3l6OTFQSDZDZEgyVjAiLCJ5IjoiX0tjeUxqOXZXTXB0bm1LdG00NkdxRHo4d2Y3NEk1TEtncmwyR3pIM25TRSJ9', verificationMethod: [ { diff --git a/packages/core/src/modules/dids/methods/jwk/__tests__/__fixtures__/x25519DidJwkEyJrdHkiOiJ.ts b/packages/core/src/modules/dids/methods/jwk/__tests__/__fixtures__/x25519DidJwkEyJrdHkiOiJ.ts index dba397342f..824d80f02b 100644 --- a/packages/core/src/modules/dids/methods/jwk/__tests__/__fixtures__/x25519DidJwkEyJrdHkiOiJ.ts +++ b/packages/core/src/modules/dids/methods/jwk/__tests__/__fixtures__/x25519DidJwkEyJrdHkiOiJ.ts @@ -1,5 +1,5 @@ export const x25519DidJwkEyJrdHkiOiJFixture = { - '@context': ['https://w3id.org/did/v1', 'https://w3id.org/security/suites/jws-2020/v1'], + '@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/jws-2020/v1'], id: 'did:jwk:eyJrdHkiOiJPS1AiLCJjcnYiOiJYMjU1MTkiLCJ1c2UiOiJlbmMiLCJ4IjoiM3A3YmZYdDl3YlRUVzJIQzdPUTFOei1EUThoYmVHZE5yZngtRkctSUswOCJ9', verificationMethod: [ { diff --git a/packages/core/src/modules/dids/methods/key/__tests__/__fixtures__/didKeyz6MksLe.json b/packages/core/src/modules/dids/methods/key/__tests__/__fixtures__/didKeyz6MksLe.json index 4182e6d1ff..b590a0f78c 100644 --- a/packages/core/src/modules/dids/methods/key/__tests__/__fixtures__/didKeyz6MksLe.json +++ b/packages/core/src/modules/dids/methods/key/__tests__/__fixtures__/didKeyz6MksLe.json @@ -1,6 +1,6 @@ { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/ed25519-2018/v1", "https://w3id.org/security/suites/x25519-2019/v1" ], diff --git a/packages/core/src/modules/dids/methods/peer/__tests__/DidPeer.test.ts b/packages/core/src/modules/dids/methods/peer/__tests__/DidPeer.test.ts index 160860bf03..69b1c8811a 100644 --- a/packages/core/src/modules/dids/methods/peer/__tests__/DidPeer.test.ts +++ b/packages/core/src/modules/dids/methods/peer/__tests__/DidPeer.test.ts @@ -11,7 +11,7 @@ describe('didPeer', () => { ).toBe(true) expect( isValidPeerDid( - 'did:peer:4zQmXU3HDFaMvdiuUh7eC2hUzFxZHgaKUJpiCAkSDfRE6qSn:z2gxx5mnuv7Tuc5GxjJ3BgJ69g1ucM27iVW9xYSg9tbBjjGLKsWGSpEwqQPbCdCt4qs1aoB3HSM4eoUQALBvR52hCEq2quLwo5RzuZBjZZmuNf6FXvVCrRLQdMG52QJ285W5MUd3hK9QGCUoCNAHJprhtpvcJpoohcg5otvuHeZiffYDRWrfxKUGS83X4X7Hp2vYqdFPgBQcwoveyJcyYByu7zT3Fn8faMffCE5oP125gwsHxjkquEnCy3RMbf64NVL9bLDDk391k7W4HyScbLyh7ooJcWaDDjiFMtoi1J856cDocYtxZ7rjmWmG15pgTcBLX7o8ebKhWCrFSMWtspRuKs9VFaY366Sjce5ZxTUsBWUMCpWhQZxeZQ2h42UST5XiJJ7TV1E13a3ttWrHijPcHgX1MvvDAPGKVgU2jXSgH8bCL4mKuVjdEm4Kx5wMdDW88ougUFuLfwhXkDfP7sYAfuaCFWx286kWqkfYdopcGntPjCvDu6uonghRmxeC2qNfXkYmk3ZQJXzsxgQToixevEvfxQgFY1uuNo5288zJPQcfLHtTvgxEhHxD5wwYYeGFqgV6FTg9mZVU5xqg7w6456cLuZNPuARkfpZK78xMEUHtnr95tK91UY' + 'did:peer:4zQmUgFc9wpM9XnHRwUMoe7Q2JNR3ohxGi3X7kZSULHUoshW:zqnSoyMuJhPmvnGSRJyrk4V9ENoEdPsCM5bEUsbjb4eT1GHC57x9bT3AqddWsUdCYvtzfkBBhoPrX9gX5ekVX7BNb4ekzP2qTSATWsJdfFSpTtHXzNaK4RUifSvmpjqueV9cqGgdJQtQwy8Nx2UWpLdFPeuDWxWVzkP28tPhDqAnU6b4bht8qRtNMyyf3mSij2Cq3ccJe6HnruCFCEbapB2wUmbBzJBEMyzEFJmM1ghXm21qWjyb5Bq819xXSmAHo2hY8E5e6V2etNSfpi37fVa5zQmqSMPjqAqejP2RM4poF5F4J9ZqitA9LyuEUFnrYjfuYCZGUa2geZfAHAQ9MShXxPkVyMfjgGE4VjfaUjFncxXCcNhoeULJ843s65J4derLxTB9G3V9Lbk5zrjQYNbMWRHH8DtcrCL73vPPV4CmM1FsRquvS6W3j4p8rENxzLKiekrxfn6oMRH32e6AgZokPQn177G5sjaBDyoj5ZRkNdosDEWdN6F8qYp3K5a2hwBeVLLzUm3WpLjty4QAJmNcbKLVwgEhDHWqfzqmnEB1LgBwV1YXsSsbX25gmpP1tKUTYV4k5yErhAemgDRCChBiRS4tk2pDSSwFCEhDZAp75nfUYgZkXDX1pA2bqLfv' ) ).toBe(true) expect(isValidPeerDid('did:peer:4zQmXU3HDFaMvdiuUh7eC2hUzFxZHgaKUJpiCAkSDfRE6qSn')).toBe(true) @@ -50,7 +50,7 @@ describe('didPeer', () => { // NumAlgo 4 expect( getNumAlgoFromPeerDid( - 'did:peer:4zQmXU3HDFaMvdiuUh7eC2hUzFxZHgaKUJpiCAkSDfRE6qSn:z2gxx5mnuv7Tuc5GxjJ3BgJ69g1ucM27iVW9xYSg9tbBjjGLKsWGSpEwqQPbCdCt4qs1aoB3HSM4eoUQALBvR52hCEq2quLwo5RzuZBjZZmuNf6FXvVCrRLQdMG52QJ285W5MUd3hK9QGCUoCNAHJprhtpvcJpoohcg5otvuHeZiffYDRWrfxKUGS83X4X7Hp2vYqdFPgBQcwoveyJcyYByu7zT3Fn8faMffCE5oP125gwsHxjkquEnCy3RMbf64NVL9bLDDk391k7W4HyScbLyh7ooJcWaDDjiFMtoi1J856cDocYtxZ7rjmWmG15pgTcBLX7o8ebKhWCrFSMWtspRuKs9VFaY366Sjce5ZxTUsBWUMCpWhQZxeZQ2h42UST5XiJJ7TV1E13a3ttWrHijPcHgX1MvvDAPGKVgU2jXSgH8bCL4mKuVjdEm4Kx5wMdDW88ougUFuLfwhXkDfP7sYAfuaCFWx286kWqkfYdopcGntPjCvDu6uonghRmxeC2qNfXkYmk3ZQJXzsxgQToixevEvfxQgFY1uuNo5288zJPQcfLHtTvgxEhHxD5wwYYeGFqgV6FTg9mZVU5xqg7w6456cLuZNPuARkfpZK78xMEUHtnr95tK91UY' + 'did:peer:4zQmUgFc9wpM9XnHRwUMoe7Q2JNR3ohxGi3X7kZSULHUoshW:zqnSoyMuJhPmvnGSRJyrk4V9ENoEdPsCM5bEUsbjb4eT1GHC57x9bT3AqddWsUdCYvtzfkBBhoPrX9gX5ekVX7BNb4ekzP2qTSATWsJdfFSpTtHXzNaK4RUifSvmpjqueV9cqGgdJQtQwy8Nx2UWpLdFPeuDWxWVzkP28tPhDqAnU6b4bht8qRtNMyyf3mSij2Cq3ccJe6HnruCFCEbapB2wUmbBzJBEMyzEFJmM1ghXm21qWjyb5Bq819xXSmAHo2hY8E5e6V2etNSfpi37fVa5zQmqSMPjqAqejP2RM4poF5F4J9ZqitA9LyuEUFnrYjfuYCZGUa2geZfAHAQ9MShXxPkVyMfjgGE4VjfaUjFncxXCcNhoeULJ843s65J4derLxTB9G3V9Lbk5zrjQYNbMWRHH8DtcrCL73vPPV4CmM1FsRquvS6W3j4p8rENxzLKiekrxfn6oMRH32e6AgZokPQn177G5sjaBDyoj5ZRkNdosDEWdN6F8qYp3K5a2hwBeVLLzUm3WpLjty4QAJmNcbKLVwgEhDHWqfzqmnEB1LgBwV1YXsSsbX25gmpP1tKUTYV4k5yErhAemgDRCChBiRS4tk2pDSSwFCEhDZAp75nfUYgZkXDX1pA2bqLfv' ) ).toBe(PeerDidNumAlgo.ShortFormAndLongForm) }) diff --git a/packages/core/src/modules/dids/methods/peer/__tests__/PeerDidRegistrar.test.ts b/packages/core/src/modules/dids/methods/peer/__tests__/PeerDidRegistrar.test.ts index 67763939ba..8e5bec99a4 100644 --- a/packages/core/src/modules/dids/methods/peer/__tests__/PeerDidRegistrar.test.ts +++ b/packages/core/src/modules/dids/methods/peer/__tests__/PeerDidRegistrar.test.ts @@ -190,9 +190,9 @@ describe('DidRegistrar', () => { didRegistrationMetadata: {}, didState: { state: 'finished', - did: 'did:peer:1zQmUTNcSy2J2sAmX6Ad2bdPvhVnHPUaod8Skpt8DWPpZaiL', + did: 'did:peer:1zQmbvrBNuBynkbtTDT61wg346fFAZFbpLGshKihF2YkMsK3', didDocument: { - '@context': ['https://w3id.org/did/v1'], + '@context': ['https://www.w3.org/ns/did/v1'], alsoKnownAs: undefined, controller: undefined, verificationMethod: [ @@ -218,14 +218,14 @@ describe('DidRegistrar', () => { keyAgreement: undefined, capabilityInvocation: undefined, capabilityDelegation: undefined, - id: 'did:peer:1zQmUTNcSy2J2sAmX6Ad2bdPvhVnHPUaod8Skpt8DWPpZaiL', + id: 'did:peer:1zQmbvrBNuBynkbtTDT61wg346fFAZFbpLGshKihF2YkMsK3', }, }, }) }) it('should store the did with the did document', async () => { - const did = 'did:peer:1zQmUTNcSy2J2sAmX6Ad2bdPvhVnHPUaod8Skpt8DWPpZaiL' + const did = 'did:peer:1zQmbvrBNuBynkbtTDT61wg346fFAZFbpLGshKihF2YkMsK3' const { didState } = await peerDidRegistrar.create(agentContext, { method: 'peer', @@ -288,7 +288,7 @@ describe('DidRegistrar', () => { state: 'finished', did: 'did:peer:2.Vz6MkkjPVCX7M8D6jJSCQNzYb4T6giuSN8Fm463gWNZ65DMSc.SeyJzIjoiaHR0cHM6Ly9leGFtcGxlLmNvbSIsInQiOiJkaWQtY29tbXVuaWNhdGlvbiIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbIiNrZXktMSJdLCJhIjpbImRpZGNvbW0vYWlwMjtlbnY9cmZjMTkiXX0', didDocument: { - '@context': ['https://w3id.org/did/v1'], + '@context': ['https://www.w3.org/ns/did/v1'], id: 'did:peer:2.Vz6MkkjPVCX7M8D6jJSCQNzYb4T6giuSN8Fm463gWNZ65DMSc.SeyJzIjoiaHR0cHM6Ly9leGFtcGxlLmNvbSIsInQiOiJkaWQtY29tbXVuaWNhdGlvbiIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbIiNrZXktMSJdLCJhIjpbImRpZGNvbW0vYWlwMjtlbnY9cmZjMTkiXX0', service: [ { @@ -373,8 +373,8 @@ describe('DidRegistrar', () => { }) const longFormDid = - 'did:peer:4zQmUJdJN7h66RpdeNEkNQ1tpUpN9nr2LcDz4Ftd3xKSgmn4:zD6dcwCdYV2zR4EBGTpxfEaRDLEq3ncjbutZpYTrMcGqaWip2P8vT6LrSH4cCVWfTdZgpuzBV4qY3ZasBMAs8M12JWstLTQHRVtu5ongsGvHCaWdWGS5cQaK6KLABnpBB5KgjPAN391Eekn1Zm4e14atfuj6gKHGp6V41GEumQFGM3YDwijVH82prvah5CqhRx6gXh4CYXu8MJVKiY5HBFdWyNLBtzaPWasGSEdLXYx6FcDv21igJfpcVbwQHwbU43wszfPypKiL9GDyys2n5zAWek5nQFGmDwrF65Vqy74CMFt8fZcvfBc1PTXSexhEwZkUY5inmeBbLXjbJU33FpWK6GxyDANxq5opQeRtAzUCtqeWxdafK56LYUes1THq6DzEKN2VirvvqygtnfPSJUfQWcRYixXq6bGGk5bjt14YygT7mALy5Ne6APGysjnNfH1MA3hrfEM9Ho8tuGSA2JeDvqYebV41chQDfKWoJrsG2bdFwZGgnkb3aBPHd4qyPvEdWiFLawR4mNj8qrtTagX1CyWvcAiWMKbspo5mVvCqP1SJuuT451X4uRBXazC9JGD2k7P63p71HU25zff4LvYkLeU8izcdBva1Tu4RddJN7jMFg4ifkTeZscFfbLPejFTmEDNRFswK1e' - const shortFormDid = 'did:peer:4zQmUJdJN7h66RpdeNEkNQ1tpUpN9nr2LcDz4Ftd3xKSgmn4' + 'did:peer:4zQmZJVsg5xdo5gVX3HCEvwp29MxrCMvnBnPM2TTYqXjLseo:z72PjTR6nroWmhFJuXs5WUQ8NxVGvXQSLQKxsztQRxqcbNMndPt2GXVKX3fjbRX9h9qfjZWUBvvnmceMz1hyvdfdBnADMJQNeCcdivUypvyiFWkgq8DCTkjcQkjZqc7dubX5E8cd2npbrXbfmkw9sRPGi7vFxfdLCKiskUW2mpksEXwXvxZ8VFd56ZPqfStaajERmqiSU9vSxWfXC8SrwbcaHWm9KAWE5yYHKvUCtNqDB7VxNw5ApwkqpLajn58UANRHgCz2yf5bTvfRCWuUtdFe3n8aroc6chpMtS6j3RwxsL12kSjnWm24vEdsqq3KbGVanLeEFQ1HjKBFxwRsJrxGfT7wVPUbKu7hWemuf6cz2tZ5kPhAHVxWjahHNTATZXKzM8oDEn3PYC34pjkgZP6BeLeeAyK1hzcjCghaN6bdpTbYhSUqWKi6oaccX11gS6JLAt1ryUzG3sCeurVTUVrf1GntJpGkiPWRQhU66MpT4K7L7kZgrmcF8eL95pSbtZqhkQCyrsurKaVmNfwrCfNRr9JzxnXprbmjs4tikDVfSBk4TkDKcXck1YkZ6CjA8S1yHWKo7pGGfw3425SGAfXXLrYA29tAaQyxDKGjsFWorwKMUGdRA8psZgnFptcrwi1moAdn7cTExBFPr9PSk' + const shortFormDid = 'did:peer:4zQmZJVsg5xdo5gVX3HCEvwp29MxrCMvnBnPM2TTYqXjLseo' expect(JsonTransformer.toJSON(result)).toMatchObject({ didDocumentMetadata: {}, didRegistrationMetadata: {}, @@ -382,7 +382,7 @@ describe('DidRegistrar', () => { state: 'finished', did: longFormDid, didDocument: { - '@context': ['https://w3id.org/did/v1'], + '@context': ['https://www.w3.org/ns/did/v1'], id: longFormDid, alsoKnownAs: [shortFormDid], service: [ @@ -412,8 +412,8 @@ describe('DidRegistrar', () => { it('should store the did without the did document', async () => { const longFormDid = - 'did:peer:4zQmUJdJN7h66RpdeNEkNQ1tpUpN9nr2LcDz4Ftd3xKSgmn4:zD6dcwCdYV2zR4EBGTpxfEaRDLEq3ncjbutZpYTrMcGqaWip2P8vT6LrSH4cCVWfTdZgpuzBV4qY3ZasBMAs8M12JWstLTQHRVtu5ongsGvHCaWdWGS5cQaK6KLABnpBB5KgjPAN391Eekn1Zm4e14atfuj6gKHGp6V41GEumQFGM3YDwijVH82prvah5CqhRx6gXh4CYXu8MJVKiY5HBFdWyNLBtzaPWasGSEdLXYx6FcDv21igJfpcVbwQHwbU43wszfPypKiL9GDyys2n5zAWek5nQFGmDwrF65Vqy74CMFt8fZcvfBc1PTXSexhEwZkUY5inmeBbLXjbJU33FpWK6GxyDANxq5opQeRtAzUCtqeWxdafK56LYUes1THq6DzEKN2VirvvqygtnfPSJUfQWcRYixXq6bGGk5bjt14YygT7mALy5Ne6APGysjnNfH1MA3hrfEM9Ho8tuGSA2JeDvqYebV41chQDfKWoJrsG2bdFwZGgnkb3aBPHd4qyPvEdWiFLawR4mNj8qrtTagX1CyWvcAiWMKbspo5mVvCqP1SJuuT451X4uRBXazC9JGD2k7P63p71HU25zff4LvYkLeU8izcdBva1Tu4RddJN7jMFg4ifkTeZscFfbLPejFTmEDNRFswK1e' - const shortFormDid = 'did:peer:4zQmUJdJN7h66RpdeNEkNQ1tpUpN9nr2LcDz4Ftd3xKSgmn4' + 'did:peer:4zQmZJVsg5xdo5gVX3HCEvwp29MxrCMvnBnPM2TTYqXjLseo:z72PjTR6nroWmhFJuXs5WUQ8NxVGvXQSLQKxsztQRxqcbNMndPt2GXVKX3fjbRX9h9qfjZWUBvvnmceMz1hyvdfdBnADMJQNeCcdivUypvyiFWkgq8DCTkjcQkjZqc7dubX5E8cd2npbrXbfmkw9sRPGi7vFxfdLCKiskUW2mpksEXwXvxZ8VFd56ZPqfStaajERmqiSU9vSxWfXC8SrwbcaHWm9KAWE5yYHKvUCtNqDB7VxNw5ApwkqpLajn58UANRHgCz2yf5bTvfRCWuUtdFe3n8aroc6chpMtS6j3RwxsL12kSjnWm24vEdsqq3KbGVanLeEFQ1HjKBFxwRsJrxGfT7wVPUbKu7hWemuf6cz2tZ5kPhAHVxWjahHNTATZXKzM8oDEn3PYC34pjkgZP6BeLeeAyK1hzcjCghaN6bdpTbYhSUqWKi6oaccX11gS6JLAt1ryUzG3sCeurVTUVrf1GntJpGkiPWRQhU66MpT4K7L7kZgrmcF8eL95pSbtZqhkQCyrsurKaVmNfwrCfNRr9JzxnXprbmjs4tikDVfSBk4TkDKcXck1YkZ6CjA8S1yHWKo7pGGfw3425SGAfXXLrYA29tAaQyxDKGjsFWorwKMUGdRA8psZgnFptcrwi1moAdn7cTExBFPr9PSk' + const shortFormDid = 'did:peer:4zQmZJVsg5xdo5gVX3HCEvwp29MxrCMvnBnPM2TTYqXjLseo' await peerDidRegistrar.create(agentContext, { method: 'peer', didDocument, diff --git a/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer0z6MksLe.json b/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer0z6MksLe.json index 21142434f5..5c6d804b36 100644 --- a/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer0z6MksLe.json +++ b/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer0z6MksLe.json @@ -1,7 +1,7 @@ { "id": "did:peer:0z6MksLeew51QS6Ca6tVKM56LQNbxCNVcLHv4xXj4jMkAhPWU", "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/ed25519-2018/v1", "https://w3id.org/security/suites/x25519-2019/v1" ], diff --git a/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer1zQmR-did-comm-service.json b/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer1zQmR-did-comm-service.json index addf924368..b8a9e3aaa0 100644 --- a/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer1zQmR-did-comm-service.json +++ b/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer1zQmR-did-comm-service.json @@ -1,5 +1,5 @@ { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "id": "did:peer:1zQmRYBx1pL86DrsxoJ2ZD3w42d7Ng92ErPgFsCSqg8Q1h4i", "keyAgreement": [ { diff --git a/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer1zQmR.json b/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer1zQmR.json index f20f5c2aab..4548516624 100644 --- a/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer1zQmR.json +++ b/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer1zQmR.json @@ -1,6 +1,6 @@ { - "@context": ["https://w3id.org/did/v1"], - "id": "did:peer:1zQmXv3d2vqC2Q9JrnrFqqj5h8vzcNAumL1UZbb1TGh58j2c", + "@context": ["https://www.w3.org/ns/did/v1"], + "id": "did:peer:1zQmNk9AGrzCx91RSW9BmWAtLhFRjyDpo8ZmJxKFEPVKxJSw", "authentication": [ { "id": "#6MkqRYqQiSgvZQdnBytw86Qbs2ZWUkGv22od935YF4s8M7V", diff --git a/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer1zQmZ.json b/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer1zQmZ.json index 659ccf98d4..189574890b 100644 --- a/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer1zQmZ.json +++ b/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer1zQmZ.json @@ -1,5 +1,5 @@ { - "@context": ["https://w3id.org/did/v1", "https://w3id.org/did/v2"], + "@context": ["https://www.w3.org/ns/did/v1", "https://w3id.org/did/v2"], "id": "did:peer:1zQmZdT2jawCX5T1RKUB7ro83gQuiKbuHwuHi8G1NypB8BTr", "authentication": [ { diff --git a/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer2Ez6LSe3YyteKQAcaPy.json b/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer2Ez6LSe3YyteKQAcaPy.json index 306a153c92..e791620b1e 100644 --- a/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer2Ez6LSe3YyteKQAcaPy.json +++ b/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer2Ez6LSe3YyteKQAcaPy.json @@ -1,5 +1,5 @@ { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "id": "did:peer:2.Ez6LSe3YyteKQVXSgGfZyCzbLq9K34zjAfap4EuaWJjbo5Gwk.Vz6MkvLvjZVc9jWJVs8M3qNZeRsnXXZGFjzcRJDH9vvdJMgHB.SeyJ0IjoiZG0iLCJzIjp7InVyaSI6Imh0dHBzOi8vdXMtZWFzdC5wcm92ZW4ubWVkaWF0b3IuaW5kaWNpb3RlY2guaW8vbWVzc2FnZSIsImEiOlsiZGlkY29tbS92MiIsImRpZGNvbW0vYWlwMjtlbnY9cmZjMTkiXX19.SeyJ0IjoiZG0iLCJzIjp7InVyaSI6IndzczovL3dzLnVzLWVhc3QucHJvdmVuLm1lZGlhdG9yLmluZGljaW90ZWNoLmlvL3dzIiwiYSI6WyJkaWRjb21tL3YyIiwiZGlkY29tbS9haXAyO2Vudj1yZmMxOSJdfX0.SeyJzIjogImh0dHBzOi8vdXMtZWFzdC5wcm92ZW4ubWVkaWF0b3IuaW5kaWNpb3RlY2guaW8vbWVzc2FnZSIsICJhIjogWyJkaWRjb21tL2FpcDEiLCJkaWRjb21tL2FpcDI7ZW52PXJmYzE5Il0sICJyZWNpcGllbnRLZXlzIjogWyIja2V5LTIiXSwgInQiOiAiZGlkLWNvbW11bmljYXRpb24ifQ.SeyJzIjogIndzczovL3dzLnVzLWVhc3QucHJvdmVuLm1lZGlhdG9yLmluZGljaW90ZWNoLmlvL3dzIiwgImEiOiBbImRpZGNvbW0vYWlwMSIsImRpZGNvbW0vYWlwMjtlbnY9cmZjMTkiXSwgInJlY2lwaWVudEtleXMiOiBbIiNrZXktMiJdLCAidCI6ICJkaWQtY29tbXVuaWNhdGlvbiJ9", "service": [ { diff --git a/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer4zQmUJdJ.json b/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer4zQmUJdJ.json index 79a8c2a0d1..baf854c383 100644 --- a/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer4zQmUJdJ.json +++ b/packages/core/src/modules/dids/methods/peer/__tests__/__fixtures__/didPeer4zQmUJdJ.json @@ -1,11 +1,11 @@ { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "verificationMethod": [ { "id": "#41fb2ec7-1f8b-42bf-91a2-4ef9092ddc16", "type": "Ed25519VerificationKey2018", "publicKeyBase58": "7H8ScGrunfcGBwMhhRakDMYguLAWiNWhQ2maYH84J8fE", - "controller": "did:peer:4zQmUJdJN7h66RpdeNEkNQ1tpUpN9nr2LcDz4Ftd3xKSgmn4:zD6dcwCdYV2zR4EBGTpxfEaRDLEq3ncjbutZpYTrMcGqaWip2P8vT6LrSH4cCVWfTdZgpuzBV4qY3ZasBMAs8M12JWstLTQHRVtu5ongsGvHCaWdWGS5cQaK6KLABnpBB5KgjPAN391Eekn1Zm4e14atfuj6gKHGp6V41GEumQFGM3YDwijVH82prvah5CqhRx6gXh4CYXu8MJVKiY5HBFdWyNLBtzaPWasGSEdLXYx6FcDv21igJfpcVbwQHwbU43wszfPypKiL9GDyys2n5zAWek5nQFGmDwrF65Vqy74CMFt8fZcvfBc1PTXSexhEwZkUY5inmeBbLXjbJU33FpWK6GxyDANxq5opQeRtAzUCtqeWxdafK56LYUes1THq6DzEKN2VirvvqygtnfPSJUfQWcRYixXq6bGGk5bjt14YygT7mALy5Ne6APGysjnNfH1MA3hrfEM9Ho8tuGSA2JeDvqYebV41chQDfKWoJrsG2bdFwZGgnkb3aBPHd4qyPvEdWiFLawR4mNj8qrtTagX1CyWvcAiWMKbspo5mVvCqP1SJuuT451X4uRBXazC9JGD2k7P63p71HU25zff4LvYkLeU8izcdBva1Tu4RddJN7jMFg4ifkTeZscFfbLPejFTmEDNRFswK1e" + "controller": "did:peer:4zQmZJVsg5xdo5gVX3HCEvwp29MxrCMvnBnPM2TTYqXjLseo:z72PjTR6nroWmhFJuXs5WUQ8NxVGvXQSLQKxsztQRxqcbNMndPt2GXVKX3fjbRX9h9qfjZWUBvvnmceMz1hyvdfdBnADMJQNeCcdivUypvyiFWkgq8DCTkjcQkjZqc7dubX5E8cd2npbrXbfmkw9sRPGi7vFxfdLCKiskUW2mpksEXwXvxZ8VFd56ZPqfStaajERmqiSU9vSxWfXC8SrwbcaHWm9KAWE5yYHKvUCtNqDB7VxNw5ApwkqpLajn58UANRHgCz2yf5bTvfRCWuUtdFe3n8aroc6chpMtS6j3RwxsL12kSjnWm24vEdsqq3KbGVanLeEFQ1HjKBFxwRsJrxGfT7wVPUbKu7hWemuf6cz2tZ5kPhAHVxWjahHNTATZXKzM8oDEn3PYC34pjkgZP6BeLeeAyK1hzcjCghaN6bdpTbYhSUqWKi6oaccX11gS6JLAt1ryUzG3sCeurVTUVrf1GntJpGkiPWRQhU66MpT4K7L7kZgrmcF8eL95pSbtZqhkQCyrsurKaVmNfwrCfNRr9JzxnXprbmjs4tikDVfSBk4TkDKcXck1YkZ6CjA8S1yHWKo7pGGfw3425SGAfXXLrYA29tAaQyxDKGjsFWorwKMUGdRA8psZgnFptcrwi1moAdn7cTExBFPr9PSk" } ], "service": [ @@ -19,6 +19,6 @@ } ], "authentication": ["#41fb2ec7-1f8b-42bf-91a2-4ef9092ddc16"], - "id": "did:peer:4zQmUJdJN7h66RpdeNEkNQ1tpUpN9nr2LcDz4Ftd3xKSgmn4:zD6dcwCdYV2zR4EBGTpxfEaRDLEq3ncjbutZpYTrMcGqaWip2P8vT6LrSH4cCVWfTdZgpuzBV4qY3ZasBMAs8M12JWstLTQHRVtu5ongsGvHCaWdWGS5cQaK6KLABnpBB5KgjPAN391Eekn1Zm4e14atfuj6gKHGp6V41GEumQFGM3YDwijVH82prvah5CqhRx6gXh4CYXu8MJVKiY5HBFdWyNLBtzaPWasGSEdLXYx6FcDv21igJfpcVbwQHwbU43wszfPypKiL9GDyys2n5zAWek5nQFGmDwrF65Vqy74CMFt8fZcvfBc1PTXSexhEwZkUY5inmeBbLXjbJU33FpWK6GxyDANxq5opQeRtAzUCtqeWxdafK56LYUes1THq6DzEKN2VirvvqygtnfPSJUfQWcRYixXq6bGGk5bjt14YygT7mALy5Ne6APGysjnNfH1MA3hrfEM9Ho8tuGSA2JeDvqYebV41chQDfKWoJrsG2bdFwZGgnkb3aBPHd4qyPvEdWiFLawR4mNj8qrtTagX1CyWvcAiWMKbspo5mVvCqP1SJuuT451X4uRBXazC9JGD2k7P63p71HU25zff4LvYkLeU8izcdBva1Tu4RddJN7jMFg4ifkTeZscFfbLPejFTmEDNRFswK1e", - "alsoKnownAs": ["did:peer:4zQmUJdJN7h66RpdeNEkNQ1tpUpN9nr2LcDz4Ftd3xKSgmn4"] + "id": "did:peer:4zQmZJVsg5xdo5gVX3HCEvwp29MxrCMvnBnPM2TTYqXjLseo:z72PjTR6nroWmhFJuXs5WUQ8NxVGvXQSLQKxsztQRxqcbNMndPt2GXVKX3fjbRX9h9qfjZWUBvvnmceMz1hyvdfdBnADMJQNeCcdivUypvyiFWkgq8DCTkjcQkjZqc7dubX5E8cd2npbrXbfmkw9sRPGi7vFxfdLCKiskUW2mpksEXwXvxZ8VFd56ZPqfStaajERmqiSU9vSxWfXC8SrwbcaHWm9KAWE5yYHKvUCtNqDB7VxNw5ApwkqpLajn58UANRHgCz2yf5bTvfRCWuUtdFe3n8aroc6chpMtS6j3RwxsL12kSjnWm24vEdsqq3KbGVanLeEFQ1HjKBFxwRsJrxGfT7wVPUbKu7hWemuf6cz2tZ5kPhAHVxWjahHNTATZXKzM8oDEn3PYC34pjkgZP6BeLeeAyK1hzcjCghaN6bdpTbYhSUqWKi6oaccX11gS6JLAt1ryUzG3sCeurVTUVrf1GntJpGkiPWRQhU66MpT4K7L7kZgrmcF8eL95pSbtZqhkQCyrsurKaVmNfwrCfNRr9JzxnXprbmjs4tikDVfSBk4TkDKcXck1YkZ6CjA8S1yHWKo7pGGfw3425SGAfXXLrYA29tAaQyxDKGjsFWorwKMUGdRA8psZgnFptcrwi1moAdn7cTExBFPr9PSk", + "alsoKnownAs": ["did:peer:4zQmZJVsg5xdo5gVX3HCEvwp29MxrCMvnBnPM2TTYqXjLseo"] } diff --git a/packages/core/src/modules/dids/methods/peer/__tests__/peerDidNumAlgo4.test.ts b/packages/core/src/modules/dids/methods/peer/__tests__/peerDidNumAlgo4.test.ts index b6c09a663c..0d0a7f74bd 100644 --- a/packages/core/src/modules/dids/methods/peer/__tests__/peerDidNumAlgo4.test.ts +++ b/packages/core/src/modules/dids/methods/peer/__tests__/peerDidNumAlgo4.test.ts @@ -37,7 +37,7 @@ describe('peerDidNumAlgo4', () => { const peerDidDocument = didToNumAlgo4DidDocument(longFormDid) expect(longFormDid).toBe( - 'did:peer:4zQmXU3HDFaMvdiuUh7eC2hUzFxZHgaKUJpiCAkSDfRE6qSn:z2gxx5mnuv7Tuc5GxjJ3BgJ69g1ucM27iVW9xYSg9tbBjjGLKsWGSpEwqQPbCdCt4qs1aoB3HSM4eoUQALBvR52hCEq2quLwo5RzuZBjZZmuNf6FXvVCrRLQdMG52QJ285W5MUd3hK9QGCUoCNAHJprhtpvcJpoohcg5otvuHeZiffYDRWrfxKUGS83X4X7Hp2vYqdFPgBQcwoveyJcyYByu7zT3Fn8faMffCE5oP125gwsHxjkquEnCy3RMbf64NVL9bLDDk391k7W4HyScbLyh7ooJcWaDDjiFMtoi1J856cDocYtxZ7rjmWmG15pgTcBLX7o8ebKhWCrFSMWtspRuKs9VFaY366Sjce5ZxTUsBWUMCpWhQZxeZQ2h42UST5XiJJ7TV1E13a3ttWrHijPcHgX1MvvDAPGKVgU2jXSgH8bCL4mKuVjdEm4Kx5wMdDW88ougUFuLfwhXkDfP7sYAfuaCFWx286kWqkfYdopcGntPjCvDu6uonghRmxeC2qNfXkYmk3ZQJXzsxgQToixevEvfxQgFY1uuNo5288zJPQcfLHtTvgxEhHxD5wwYYeGFqgV6FTg9mZVU5xqg7w6456cLuZNPuARkfpZK78xMEUHtnr95tK91UY' + 'did:peer:4zQmUgFc9wpM9XnHRwUMoe7Q2JNR3ohxGi3X7kZSULHUoshW:zqnSoyMuJhPmvnGSRJyrk4V9ENoEdPsCM5bEUsbjb4eT1GHC57x9bT3AqddWsUdCYvtzfkBBhoPrX9gX5ekVX7BNb4ekzP2qTSATWsJdfFSpTtHXzNaK4RUifSvmpjqueV9cqGgdJQtQwy8Nx2UWpLdFPeuDWxWVzkP28tPhDqAnU6b4bht8qRtNMyyf3mSij2Cq3ccJe6HnruCFCEbapB2wUmbBzJBEMyzEFJmM1ghXm21qWjyb5Bq819xXSmAHo2hY8E5e6V2etNSfpi37fVa5zQmqSMPjqAqejP2RM4poF5F4J9ZqitA9LyuEUFnrYjfuYCZGUa2geZfAHAQ9MShXxPkVyMfjgGE4VjfaUjFncxXCcNhoeULJ843s65J4derLxTB9G3V9Lbk5zrjQYNbMWRHH8DtcrCL73vPPV4CmM1FsRquvS6W3j4p8rENxzLKiekrxfn6oMRH32e6AgZokPQn177G5sjaBDyoj5ZRkNdosDEWdN6F8qYp3K5a2hwBeVLLzUm3WpLjty4QAJmNcbKLVwgEhDHWqfzqmnEB1LgBwV1YXsSsbX25gmpP1tKUTYV4k5yErhAemgDRCChBiRS4tk2pDSSwFCEhDZAp75nfUYgZkXDX1pA2bqLfv' ) expect(longFormDid).toBe(peerDidDocument.id) }) diff --git a/packages/core/src/storage/migration/__tests__/__fixtures__/alice-8-connections-0.1.json b/packages/core/src/storage/migration/__tests__/__fixtures__/alice-8-connections-0.1.json index ece0f42270..35ae03e029 100644 --- a/packages/core/src/storage/migration/__tests__/__fixtures__/alice-8-connections-0.1.json +++ b/packages/core/src/storage/migration/__tests__/__fixtures__/alice-8-connections-0.1.json @@ -6,7 +6,7 @@ "createdAt": "2022-04-30T13:02:21.577Z", "did": "XajWZZmHGAWUvYCi7CApaG", "didDoc": { - "@context": "https://w3id.org/did/v1", + "@context": "https://www.w3.org/ns/did/v1", "publicKey": [ { "id": "XajWZZmHGAWUvYCi7CApaG#1", @@ -36,7 +36,7 @@ "verkey": "HfkCHGAHTz3j33TRDkKMabYLdnr2FKuWcaXTLzZkZcCp", "theirDid": "3KAjJWF5NjiDTUm6JpPBQD", "theirDidDoc": { - "@context": "https://w3id.org/did/v1", + "@context": "https://www.w3.org/ns/did/v1", "publicKey": [ { "id": "3KAjJWF5NjiDTUm6JpPBQD#1", @@ -98,7 +98,7 @@ "createdAt": "2022-04-30T13:02:21.608Z", "did": "SDqTzbVuCowusqGBNbNDjH", "didDoc": { - "@context": "https://w3id.org/did/v1", + "@context": "https://www.w3.org/ns/did/v1", "publicKey": [ { "id": "SDqTzbVuCowusqGBNbNDjH#1", @@ -128,7 +128,7 @@ "verkey": "EkJ7p82VB3a3AfuEWGS3gc1dPyY1BZ4PaVEztjwh1nVq", "theirDid": "YUH4t3KMkEJiXgmqsncrY9", "theirDidDoc": { - "@context": "https://w3id.org/did/v1", + "@context": "https://www.w3.org/ns/did/v1", "publicKey": [ { "id": "YUH4t3KMkEJiXgmqsncrY9#1", @@ -187,15 +187,15 @@ "metadata": {}, "id": "7781341d-be29-441b-9b79-4a957d8c6d37", "createdAt": "2022-04-30T13:02:21.628Z", - "did": "RtH4qxVPL1Dpmdv7GytjBv", + "did": "3KAjJWF5NjiDTUm6JpPBQD", "didDoc": { - "@context": "https://w3id.org/did/v1", + "@context": "https://www.w3.org/ns/did/v1", "publicKey": [ { "id": "RtH4qxVPL1Dpmdv7GytjBv#1", - "controller": "RtH4qxVPL1Dpmdv7GytjBv", + "controller": "3KAjJWF5NjiDTUm6JpPBQD", "type": "Ed25519VerificationKey2018", - "publicKeyBase58": "EZdqDkqBSfiepgMZ15jsZvtxTwjiz5diBtjJBnvvMvQF" + "publicKeyBase58": "2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy" } ], "service": [ @@ -204,7 +204,7 @@ "serviceEndpoint": "rxjs:alice", "type": "IndyAgent", "priority": 0, - "recipientKeys": ["EZdqDkqBSfiepgMZ15jsZvtxTwjiz5diBtjJBnvvMvQF"], + "recipientKeys": ["2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy"], "routingKeys": [] } ], @@ -214,12 +214,12 @@ "type": "Ed25519SignatureAuthentication2018" } ], - "id": "RtH4qxVPL1Dpmdv7GytjBv" + "id": "3KAjJWF5NjiDTUm6JpPBQD" }, - "verkey": "EZdqDkqBSfiepgMZ15jsZvtxTwjiz5diBtjJBnvvMvQF", + "verkey": "2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy", "theirDid": "Ak15GBhMYpdS8XX3QDMv31", "theirDidDoc": { - "@context": "https://w3id.org/did/v1", + "@context": "https://www.w3.org/ns/did/v1", "publicKey": [ { "id": "Ak15GBhMYpdS8XX3QDMv31#1", @@ -254,7 +254,7 @@ "@type": "https://didcomm.org/connections/1.0/invitation", "@id": "21ef606f-b25b-48c6-bafa-e79193732413", "label": "Agent: PopulateWallet", - "recipientKeys": ["EZdqDkqBSfiepgMZ15jsZvtxTwjiz5diBtjJBnvvMvQF"], + "recipientKeys": ["2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy"], "serviceEndpoint": "rxjs:alice", "routingKeys": [] }, @@ -266,11 +266,11 @@ "tags": { "state": "requested", "role": "inviter", - "invitationKey": "EZdqDkqBSfiepgMZ15jsZvtxTwjiz5diBtjJBnvvMvQF", + "invitationKey": "2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy", "threadId": "a0c0e4d2-1501-42a2-a09b-7d5adc90b353", - "verkey": "EZdqDkqBSfiepgMZ15jsZvtxTwjiz5diBtjJBnvvMvQF", + "verkey": "2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy", "theirKey": "6JwodG44KanZhhSvDS3dNmWjmWyeVFYRPxVaBntqmSCi", - "did": "RtH4qxVPL1Dpmdv7GytjBv", + "did": "3KAjJWF5NjiDTUm6JpPBQD", "theirDid": "Ak15GBhMYpdS8XX3QDMv31" } }, @@ -281,7 +281,7 @@ "createdAt": "2022-04-30T13:02:21.635Z", "did": "WewvCdyBi4HL8ogyGviYVS", "didDoc": { - "@context": "https://w3id.org/did/v1", + "@context": "https://www.w3.org/ns/did/v1", "publicKey": [ { "id": "WewvCdyBi4HL8ogyGviYVS#1", @@ -339,7 +339,7 @@ "createdAt": "2022-04-30T13:02:21.641Z", "did": "TMnQftvJJJwoYogYkQgVjg", "didDoc": { - "@context": "https://w3id.org/did/v1", + "@context": "https://www.w3.org/ns/did/v1", "publicKey": [ { "id": "TMnQftvJJJwoYogYkQgVjg#1", @@ -369,7 +369,7 @@ "verkey": "FNEqnwqHoU6WVmYkQFeosoaESjx8wCAzFpFdMdEg3iH7", "theirDid": "9jTqUnV4k5ucxbyxumAaV7", "theirDidDoc": { - "@context": "https://w3id.org/did/v1", + "@context": "https://www.w3.org/ns/did/v1", "publicKey": [ { "id": "9jTqUnV4k5ucxbyxumAaV7#1", @@ -431,7 +431,7 @@ "createdAt": "2022-04-30T13:02:21.646Z", "did": "GkEeb96MGT94K1HyQQzpj1", "didDoc": { - "@context": "https://w3id.org/did/v1", + "@context": "https://www.w3.org/ns/did/v1", "publicKey": [ { "id": "GkEeb96MGT94K1HyQQzpj1#1", @@ -461,7 +461,7 @@ "verkey": "9akAmyoFVow6cWTg2M4LSVTckqbrCjuS3fQpQ8Zrm2eS", "theirDid": "YKc7qhYN1TckZAMUf7jgwc", "theirDidDoc": { - "@context": "https://w3id.org/did/v1", + "@context": "https://www.w3.org/ns/did/v1", "publicKey": [ { "id": "YKc7qhYN1TckZAMUf7jgwc#1", @@ -523,7 +523,7 @@ "createdAt": "2022-04-20T13:02:21.646Z", "did": "WSwJQMBHGZbQsq9LDBTWjX", "didDoc": { - "@context": "https://w3id.org/did/v1", + "@context": "https://www.w3.org/ns/did/v1", "publicKey": [ { "id": "WSwJQMBHGZbQsq9LDBTWjX#1", @@ -581,7 +581,7 @@ "createdAt": "2022-04-30T13:02:21.653Z", "did": "Ud6AWCk6WrwfYKZUw5tJmt", "didDoc": { - "@context": "https://w3id.org/did/v1", + "@context": "https://www.w3.org/ns/did/v1", "publicKey": [ { "id": "Ud6AWCk6WrwfYKZUw5tJmt#1", diff --git a/packages/core/src/storage/migration/__tests__/__fixtures__/alice-8-dids-0.2.json b/packages/core/src/storage/migration/__tests__/__fixtures__/alice-8-dids-0.2.json index e6ee2718a1..0c20dae7b4 100644 --- a/packages/core/src/storage/migration/__tests__/__fixtures__/alice-8-dids-0.2.json +++ b/packages/core/src/storage/migration/__tests__/__fixtures__/alice-8-dids-0.2.json @@ -21,7 +21,7 @@ "id": "did:peer:1zQmWxKCTkKYQvzdUshMWy7b8vy3Y7uLtB9hp6BbQhKEtQCd", "role": "created", "didDocument": { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "id": "did:peer:1zQmWxKCTkKYQvzdUshMWy7b8vy3Y7uLtB9hp6BbQhKEtQCd", "service": [ { @@ -73,7 +73,7 @@ "id": "did:peer:1zQmavZzrLPRYRGd5CgyKV4GBZG43eGzjic9FHXc7jLHY14W", "role": "received", "didDocument": { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "id": "did:peer:1zQmavZzrLPRYRGd5CgyKV4GBZG43eGzjic9FHXc7jLHY14W", "service": [ { @@ -123,7 +123,7 @@ "id": "did:peer:1zQmZqQYzwqsYjj7z8kixxDXf9nux8TAsqj2izSpX1oCrd7q", "role": "created", "didDocument": { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "id": "did:peer:1zQmZqQYzwqsYjj7z8kixxDXf9nux8TAsqj2izSpX1oCrd7q", "service": [ { @@ -173,7 +173,7 @@ "id": "did:peer:1zQmRnGYmYBdSinH2953ZgfHWEpqp5W6kJmmYBgRaCs4Yudx", "role": "created", "didDocument": { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "id": "did:peer:1zQmRnGYmYBdSinH2953ZgfHWEpqp5W6kJmmYBgRaCs4Yudx", "service": [ { @@ -225,7 +225,7 @@ "id": "did:peer:1zQmb9oo8fn8AZ7rWh1DAfTbM3mnPp9Hq2bJFdHiqjnZX2Ce", "role": "received", "didDocument": { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "id": "did:peer:1zQmb9oo8fn8AZ7rWh1DAfTbM3mnPp9Hq2bJFdHiqjnZX2Ce", "service": [ { @@ -275,7 +275,7 @@ "id": "did:peer:1zQmSzC6uhWYcxtkr2fBepr66kjvSHuRsSfbmei7nrGj7HfN", "role": "received", "didDocument": { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "id": "did:peer:1zQmSzC6uhWYcxtkr2fBepr66kjvSHuRsSfbmei7nrGj7HfN", "service": [ { @@ -325,7 +325,7 @@ "id": "did:peer:1zQmPaCELen1JWMWmhVZS16nDmrAC9yGKQcJCcBs5spXakA3", "role": "received", "didDocument": { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "id": "did:peer:1zQmPaCELen1JWMWmhVZS16nDmrAC9yGKQcJCcBs5spXakA3", "service": [ { @@ -375,7 +375,7 @@ "id": "did:peer:1zQmUo1HoiciJS628w4SHweg4Pzs4bZLM4KLZgroSmUwBw7S", "role": "created", "didDocument": { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "id": "did:peer:1zQmUo1HoiciJS628w4SHweg4Pzs4bZLM4KLZgroSmUwBw7S", "service": [ { diff --git a/packages/core/src/storage/migration/__tests__/__fixtures__/alice-8-dids-0.3.json b/packages/core/src/storage/migration/__tests__/__fixtures__/alice-8-dids-0.3.json index c0a6597833..be584f0fd9 100644 --- a/packages/core/src/storage/migration/__tests__/__fixtures__/alice-8-dids-0.3.json +++ b/packages/core/src/storage/migration/__tests__/__fixtures__/alice-8-dids-0.3.json @@ -21,7 +21,7 @@ "id": "did:peer:1zQmWxKCTkKYQvzdUshMWy7b8vy3Y7uLtB9hp6BbQhKEtQCd", "role": "created", "didDocument": { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "id": "did:peer:1zQmWxKCTkKYQvzdUshMWy7b8vy3Y7uLtB9hp6BbQhKEtQCd", "service": [ { @@ -73,7 +73,7 @@ "id": "did:peer:1zQmavZzrLPRYRGd5CgyKV4GBZG43eGzjic9FHXc7jLHY14W", "role": "received", "didDocument": { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "id": "did:peer:1zQmavZzrLPRYRGd5CgyKV4GBZG43eGzjic9FHXc7jLHY14W", "service": [ { @@ -123,7 +123,7 @@ "id": "did:peer:1zQmZqQYzwqsYjj7z8kixxDXf9nux8TAsqj2izSpX1oCrd7q", "role": "created", "didDocument": { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "id": "did:peer:1zQmZqQYzwqsYjj7z8kixxDXf9nux8TAsqj2izSpX1oCrd7q", "service": [ { @@ -173,7 +173,7 @@ "id": "did:peer:1zQmRnGYmYBdSinH2953ZgfHWEpqp5W6kJmmYBgRaCs4Yudx", "role": "created", "didDocument": { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "id": "did:peer:1zQmRnGYmYBdSinH2953ZgfHWEpqp5W6kJmmYBgRaCs4Yudx", "service": [ { @@ -225,7 +225,7 @@ "id": "did:peer:1zQmb9oo8fn8AZ7rWh1DAfTbM3mnPp9Hq2bJFdHiqjnZX2Ce", "role": "received", "didDocument": { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "id": "did:peer:1zQmb9oo8fn8AZ7rWh1DAfTbM3mnPp9Hq2bJFdHiqjnZX2Ce", "service": [ { @@ -275,7 +275,7 @@ "id": "did:peer:1zQmSzC6uhWYcxtkr2fBepr66kjvSHuRsSfbmei7nrGj7HfN", "role": "received", "didDocument": { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "id": "did:peer:1zQmSzC6uhWYcxtkr2fBepr66kjvSHuRsSfbmei7nrGj7HfN", "service": [ { @@ -325,7 +325,7 @@ "id": "did:peer:1zQmPaCELen1JWMWmhVZS16nDmrAC9yGKQcJCcBs5spXakA3", "role": "received", "didDocument": { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "id": "did:peer:1zQmPaCELen1JWMWmhVZS16nDmrAC9yGKQcJCcBs5spXakA3", "service": [ { @@ -375,7 +375,7 @@ "id": "did:peer:1zQmUo1HoiciJS628w4SHweg4Pzs4bZLM4KLZgroSmUwBw7S", "role": "created", "didDocument": { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "id": "did:peer:1zQmUo1HoiciJS628w4SHweg4Pzs4bZLM4KLZgroSmUwBw7S", "service": [ { diff --git a/packages/core/src/storage/migration/__tests__/__snapshots__/0.1.test.ts.snap b/packages/core/src/storage/migration/__tests__/__snapshots__/0.1.test.ts.snap index d39faf48e5..ff8ed941b8 100644 --- a/packages/core/src/storage/migration/__tests__/__snapshots__/0.1.test.ts.snap +++ b/packages/core/src/storage/migration/__tests__/__snapshots__/0.1.test.ts.snap @@ -927,7 +927,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "invitationId": "21ef606f-b25b-48c6-bafa-e79193732413", "invitationRequestsThreadIds": undefined, "recipientKeyFingerprints": [ - "z6Mkt1tsp15cnDD7wBCFgehiR2SxHX1aPxt4sueE24twH9Bd", + "z6MkfiPMPxCQeSDZGMkCvm1Y2rBoPsmw4ZHMv71jXtcWRRiM", ], "role": "sender", "state": "done", @@ -937,7 +937,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "value": { "_tags": { "recipientKeyFingerprints": [ - "z6Mkt1tsp15cnDD7wBCFgehiR2SxHX1aPxt4sueE24twH9Bd", + "z6MkfiPMPxCQeSDZGMkCvm1Y2rBoPsmw4ZHMv71jXtcWRRiM", ], }, "alias": undefined, @@ -966,7 +966,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "accept": undefined, "id": "#inline", "recipientKeys": [ - "did:key:z6Mkt1tsp15cnDD7wBCFgehiR2SxHX1aPxt4sueE24twH9Bd", + "did:key:z6MkfiPMPxCQeSDZGMkCvm1Y2rBoPsmw4ZHMv71jXtcWRRiM", ], "routingKeys": [], "serviceEndpoint": "rxjs:alice", @@ -1255,35 +1255,35 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "id": "7781341d-be29-441b-9b79-4a957d8c6d37", "tags": { "connectionTypes": [], - "did": "did:peer:1zQmSMBVNMDrh7fyE8bkAmk1ZatshjinpsEqPA3nx8JYjuKb", - "invitationDid": "did:peer:2.SeyJzIjoicnhqczphbGljZSIsInQiOiJkaWQtY29tbXVuaWNhdGlvbiIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbImRpZDprZXk6ejZNa3QxdHNwMTVjbkREN3dCQ0ZnZWhpUjJTeEhYMWFQeHQ0c3VlRTI0dHdIOUJkI3o2TWt0MXRzcDE1Y25ERDd3QkNGZ2VoaVIyU3hIWDFhUHh0NHN1ZUUyNHR3SDlCZCJdLCJyIjpbXX0", - "invitationKey": "EZdqDkqBSfiepgMZ15jsZvtxTwjiz5diBtjJBnvvMvQF", + "did": "did:peer:1zQmVxHfU6ZgzxZfwAm6W5t4HKeupKctxpF6FaHgBmnvhEho", + "invitationDid": "did:peer:2.SeyJzIjoicnhqczphbGljZSIsInQiOiJkaWQtY29tbXVuaWNhdGlvbiIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbImRpZDprZXk6ejZNa2ZpUE1QeENRZVNEWkdNa0N2bTFZMnJCb1BzbXc0WkhNdjcxalh0Y1dSUmlNI3o2TWtmaVBNUHhDUWVTRFpHTWtDdm0xWTJyQm9Qc213NFpITXY3MWpYdGNXUlJpTSJdLCJyIjpbXX0", + "invitationKey": "2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy", "mediatorId": undefined, "outOfBandId": "3-4e4f-41d9-94c4-f49351b811f1", "previousDids": [], "previousTheirDids": [], "role": "responder", "state": "request-received", - "theirDid": "did:peer:1zQmc3BZoTinpVaG3oZ4PmRVN4JMdNZGCmPkS6smmTNLnvEZ", + "theirDid": "did:peer:1zQmc4nkRDFTaXX7DZDbGAuBBmivNV84qh8Ry3pAhVFgXhDy", "theirKey": "6JwodG44KanZhhSvDS3dNmWjmWyeVFYRPxVaBntqmSCi", "threadId": "a0c0e4d2-1501-42a2-a09b-7d5adc90b353", - "verkey": "EZdqDkqBSfiepgMZ15jsZvtxTwjiz5diBtjJBnvvMvQF", + "verkey": "2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy", }, "type": "ConnectionRecord", "value": { "autoAcceptConnection": false, "connectionTypes": [], "createdAt": "2022-04-30T13:02:21.628Z", - "did": "did:peer:1zQmSMBVNMDrh7fyE8bkAmk1ZatshjinpsEqPA3nx8JYjuKb", + "did": "did:peer:1zQmVxHfU6ZgzxZfwAm6W5t4HKeupKctxpF6FaHgBmnvhEho", "id": "7781341d-be29-441b-9b79-4a957d8c6d37", - "invitationDid": "did:peer:2.SeyJzIjoicnhqczphbGljZSIsInQiOiJkaWQtY29tbXVuaWNhdGlvbiIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbImRpZDprZXk6ejZNa3QxdHNwMTVjbkREN3dCQ0ZnZWhpUjJTeEhYMWFQeHQ0c3VlRTI0dHdIOUJkI3o2TWt0MXRzcDE1Y25ERDd3QkNGZ2VoaVIyU3hIWDFhUHh0NHN1ZUUyNHR3SDlCZCJdLCJyIjpbXX0", + "invitationDid": "did:peer:2.SeyJzIjoicnhqczphbGljZSIsInQiOiJkaWQtY29tbXVuaWNhdGlvbiIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbImRpZDprZXk6ejZNa2ZpUE1QeENRZVNEWkdNa0N2bTFZMnJCb1BzbXc0WkhNdjcxalh0Y1dSUmlNI3o2TWtmaVBNUHhDUWVTRFpHTWtDdm0xWTJyQm9Qc213NFpITXY3MWpYdGNXUlJpTSJdLCJyIjpbXX0", "metadata": {}, "outOfBandId": "3-4e4f-41d9-94c4-f49351b811f1", "previousDids": [], "previousTheirDids": [], "role": "responder", "state": "request-received", - "theirDid": "did:peer:1zQmc3BZoTinpVaG3oZ4PmRVN4JMdNZGCmPkS6smmTNLnvEZ", + "theirDid": "did:peer:1zQmc4nkRDFTaXX7DZDbGAuBBmivNV84qh8Ry3pAhVFgXhDy", "theirLabel": "Agent: PopulateWallet2", "threadId": "a0c0e4d2-1501-42a2-a09b-7d5adc90b353", "updatedAt": "2022-01-21T22:50:20.522Z", @@ -1293,7 +1293,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "id": "8f4908ee-15ad-4058-9106-eda26eae735c", "tags": { "connectionTypes": [], - "did": "did:peer:1zQmRAfQ6J5qk4qcbHyoStFVkhusazLT9xQcFhdC9dhhQ1cJ", + "did": "did:peer:1zQmdBUroNDMEZX7An4NZWpuPXsmvYoFm6KkNUr6T2FvoKf2", "invitationDid": "did:peer:2.SeyJzIjoicnhqczpmYWJlciIsInQiOiJkaWQtY29tbXVuaWNhdGlvbiIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbImRpZDprZXk6ejZNa2ZpUE1QeENRZVNEWkdNa0N2bTFZMnJCb1BzbXc0WkhNdjcxalh0Y1dSUmlNI3o2TWtmaVBNUHhDUWVTRFpHTWtDdm0xWTJyQm9Qc213NFpITXY3MWpYdGNXUlJpTSJdLCJyIjpbXX0", "invitationKey": "2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy", "mediatorId": undefined, @@ -1302,7 +1302,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "previousTheirDids": [], "role": "requester", "state": "completed", - "theirDid": "did:peer:1zQmeHpGaZ48DnAP2k3KntXB1vmd8MgLEdcb4EQzqWJDHcbX", + "theirDid": "did:peer:1zQmQCp3iNUVGMDW5zuJQZxSajZQrBeo8jiuq1FPW4ZXVhNr", "theirKey": "2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy", "threadId": "fe287ec6-711b-4582-bb2b-d155aee86e61", "verkey": "HfkCHGAHTz3j33TRDkKMabYLdnr2FKuWcaXTLzZkZcCp", @@ -1312,7 +1312,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "alias": "connection alias", "connectionTypes": [], "createdAt": "2022-04-30T13:02:21.577Z", - "did": "did:peer:1zQmRAfQ6J5qk4qcbHyoStFVkhusazLT9xQcFhdC9dhhQ1cJ", + "did": "did:peer:1zQmdBUroNDMEZX7An4NZWpuPXsmvYoFm6KkNUr6T2FvoKf2", "id": "8f4908ee-15ad-4058-9106-eda26eae735c", "invitationDid": "did:peer:2.SeyJzIjoicnhqczpmYWJlciIsInQiOiJkaWQtY29tbXVuaWNhdGlvbiIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbImRpZDprZXk6ejZNa2ZpUE1QeENRZVNEWkdNa0N2bTFZMnJCb1BzbXc0WkhNdjcxalh0Y1dSUmlNI3o2TWtmaVBNUHhDUWVTRFpHTWtDdm0xWTJyQm9Qc213NFpITXY3MWpYdGNXUlJpTSJdLCJyIjpbXX0", "metadata": {}, @@ -1321,7 +1321,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "previousTheirDids": [], "role": "requester", "state": "completed", - "theirDid": "did:peer:1zQmeHpGaZ48DnAP2k3KntXB1vmd8MgLEdcb4EQzqWJDHcbX", + "theirDid": "did:peer:1zQmQCp3iNUVGMDW5zuJQZxSajZQrBeo8jiuq1FPW4ZXVhNr", "theirLabel": "Agent: PopulateWallet2", "threadId": "fe287ec6-711b-4582-bb2b-d155aee86e61", "updatedAt": "2022-01-21T22:50:20.522Z", @@ -1331,7 +1331,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "id": "9383d8e5-c002-4aae-8300-4a21384c919e", "tags": { "connectionTypes": [], - "did": "did:peer:1zQmP96nW6vbNjzwPt19z1NYqhnAfgnAFqfLHcktkmdUFzhT", + "did": "did:peer:1zQmSL5aqVsh36Ei4r8NkohfkMiaPLjtu3jqzRr9pSqnfTkE", "invitationDid": "did:peer:2.SeyJzIjoicnhqczphbGljZSIsInQiOiJkaWQtY29tbXVuaWNhdGlvbiIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbImRpZDprZXk6ejZNa3RDWkFRTkd2V2I0V0hBandCcVB0WGhaZERZb3JiU0prR1c5dmoxdWh3MUhEI3o2TWt0Q1pBUU5HdldiNFdIQWp3QnFQdFhoWmREWW9yYlNKa0dXOXZqMXVodzFIRCJdLCJyIjpbXX0", "invitationKey": "EkJ7p82VB3a3AfuEWGS3gc1dPyY1BZ4PaVEztjwh1nVq", "mediatorId": undefined, @@ -1340,7 +1340,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "previousTheirDids": [], "role": "responder", "state": "completed", - "theirDid": "did:peer:1zQmXYj3nNwsF37WXXdb8XkCAtsTCBpJJbsLKPPGfi2PWCTU", + "theirDid": "did:peer:1zQmYQSKmHhPGGnvcAshQMpTjKA27DTWwGtGtiGkYBiQJT5M", "theirKey": "J9qc5VredX3YUBbFNoJz5oJpWPcUWURKVDiUv1DvYukX", "threadId": "0b2f1133-ced9-49f1-83a1-eb6ba1c24cdf", "verkey": "EkJ7p82VB3a3AfuEWGS3gc1dPyY1BZ4PaVEztjwh1nVq", @@ -1349,7 +1349,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "value": { "connectionTypes": [], "createdAt": "2022-04-30T13:02:21.608Z", - "did": "did:peer:1zQmP96nW6vbNjzwPt19z1NYqhnAfgnAFqfLHcktkmdUFzhT", + "did": "did:peer:1zQmSL5aqVsh36Ei4r8NkohfkMiaPLjtu3jqzRr9pSqnfTkE", "id": "9383d8e5-c002-4aae-8300-4a21384c919e", "invitationDid": "did:peer:2.SeyJzIjoicnhqczphbGljZSIsInQiOiJkaWQtY29tbXVuaWNhdGlvbiIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbImRpZDprZXk6ejZNa3RDWkFRTkd2V2I0V0hBandCcVB0WGhaZERZb3JiU0prR1c5dmoxdWh3MUhEI3o2TWt0Q1pBUU5HdldiNFdIQWp3QnFQdFhoWmREWW9yYlNKa0dXOXZqMXVodzFIRCJdLCJyIjpbXX0", "metadata": {}, @@ -1358,7 +1358,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "previousTheirDids": [], "role": "responder", "state": "completed", - "theirDid": "did:peer:1zQmXYj3nNwsF37WXXdb8XkCAtsTCBpJJbsLKPPGfi2PWCTU", + "theirDid": "did:peer:1zQmYQSKmHhPGGnvcAshQMpTjKA27DTWwGtGtiGkYBiQJT5M", "theirLabel": "Agent: PopulateWallet2", "threadId": "0b2f1133-ced9-49f1-83a1-eb6ba1c24cdf", "updatedAt": "2022-01-21T22:50:20.522Z", @@ -1380,7 +1380,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "id": "b65c2ccd-277c-4140-9d87-c8dd30e7a98c", "tags": { "connectionTypes": [], - "did": "did:peer:1zQmfDAtfDZcK4trJBsvVTXrBx9uaLCHSUZH9X2LFaAd3JKv", + "did": "did:peer:1zQmctp3J5DumzD4DDtirW6LvbEPPLUih2UacpX25wjqvC8e", "invitationDid": "did:peer:2.SeyJzIjoicnhqczphbGljZSIsInQiOiJkaWQtY29tbXVuaWNhdGlvbiIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbImRpZDprZXk6ejZNa3VXVEVtSDFtVW82Vzk2elNXeUg2MTJoRkhvd1J6TkVzY1BZQkwyQ0NNeUMyI3o2TWt1V1RFbUgxbVVvNlc5NnpTV3lINjEyaEZIb3dSek5Fc2NQWUJMMkNDTXlDMiJdLCJyIjpbXX0", "invitationKey": "G4CCB2mL9Fc32c9jqQKF9w9FUEfaaUzWvNdFVkEBSkQe", "mediatorId": undefined, @@ -1398,7 +1398,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "autoAcceptConnection": true, "connectionTypes": [], "createdAt": "2022-04-30T13:02:21.653Z", - "did": "did:peer:1zQmfDAtfDZcK4trJBsvVTXrBx9uaLCHSUZH9X2LFaAd3JKv", + "did": "did:peer:1zQmctp3J5DumzD4DDtirW6LvbEPPLUih2UacpX25wjqvC8e", "id": "b65c2ccd-277c-4140-9d87-c8dd30e7a98c", "invitationDid": "did:peer:2.SeyJzIjoicnhqczphbGljZSIsInQiOiJkaWQtY29tbXVuaWNhdGlvbiIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbImRpZDprZXk6ejZNa3VXVEVtSDFtVW82Vzk2elNXeUg2MTJoRkhvd1J6TkVzY1BZQkwyQ0NNeUMyI3o2TWt1V1RFbUgxbVVvNlc5NnpTV3lINjEyaEZIb3dSek5Fc2NQWUJMMkNDTXlDMiJdLCJyIjpbXX0", "metadata": {}, @@ -1414,7 +1414,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "id": "da518433-0e55-4b74-a05b-aa75c1095a99", "tags": { "connectionTypes": [], - "did": "did:peer:1zQmPbGa8KDwyjcw9UgwCCgJMV7jU5kKCyvBuwFVc88WxA56", + "did": "did:peer:1zQmfCM4v4QbeYNWSv48dhxxnB6TmAydwj1G4mcS1TrmhBjT", "invitationDid": "did:peer:2.SeyJzIjoicnhqczphbGljZSIsInQiOiJkaWQtY29tbXVuaWNhdGlvbiIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbImRpZDprZXk6ejZNa28zMURORTNncU1SWmoxSk5odjJCSGIxY2FRc2hjZDluamdLa0VRWHNnRlJwI3o2TWtvMzFETkUzZ3FNUlpqMUpOaHYyQkhiMWNhUXNoY2Q5bmpnS2tFUVhzZ0ZScCJdLCJyIjpbXX0", "invitationKey": "9akAmyoFVow6cWTg2M4LSVTckqbrCjuS3fQpQ8Zrm2eS", "mediatorId": undefined, @@ -1423,7 +1423,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "previousTheirDids": [], "role": "responder", "state": "response-sent", - "theirDid": "did:peer:1zQmadmBfngrYSWhYYxZ24fpW29iwhKhQ6CB6euLabbSK6ga", + "theirDid": "did:peer:1zQmNStEDy8UHJCMFjJPJBJD36esBNX6YPa97y2jpRfCyLvG", "theirKey": "J57UsQT3wa4FcivfKpvjgUtaPDScZhFJ8kd5Q2iR5sBT", "threadId": "6eeb6a80-cd75-491d-b2e0-7bae65ced1c3", "verkey": "9akAmyoFVow6cWTg2M4LSVTckqbrCjuS3fQpQ8Zrm2eS", @@ -1433,7 +1433,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "autoAcceptConnection": true, "connectionTypes": [], "createdAt": "2022-04-30T13:02:21.646Z", - "did": "did:peer:1zQmPbGa8KDwyjcw9UgwCCgJMV7jU5kKCyvBuwFVc88WxA56", + "did": "did:peer:1zQmfCM4v4QbeYNWSv48dhxxnB6TmAydwj1G4mcS1TrmhBjT", "id": "da518433-0e55-4b74-a05b-aa75c1095a99", "invitationDid": "did:peer:2.SeyJzIjoicnhqczphbGljZSIsInQiOiJkaWQtY29tbXVuaWNhdGlvbiIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbImRpZDprZXk6ejZNa28zMURORTNncU1SWmoxSk5odjJCSGIxY2FRc2hjZDluamdLa0VRWHNnRlJwI3o2TWtvMzFETkUzZ3FNUlpqMUpOaHYyQkhiMWNhUXNoY2Q5bmpnS2tFUVhzZ0ZScCJdLCJyIjpbXX0", "metadata": {}, @@ -1442,52 +1442,52 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "previousTheirDids": [], "role": "responder", "state": "response-sent", - "theirDid": "did:peer:1zQmadmBfngrYSWhYYxZ24fpW29iwhKhQ6CB6euLabbSK6ga", + "theirDid": "did:peer:1zQmNStEDy8UHJCMFjJPJBJD36esBNX6YPa97y2jpRfCyLvG", "theirLabel": "Agent: PopulateWallet2", "threadId": "6eeb6a80-cd75-491d-b2e0-7bae65ced1c3", "updatedAt": "2022-01-21T22:50:20.522Z", }, }, - "did:peer:1zQmP96nW6vbNjzwPt19z1NYqhnAfgnAFqfLHcktkmdUFzhT": { - "id": "did:peer:1zQmP96nW6vbNjzwPt19z1NYqhnAfgnAFqfLHcktkmdUFzhT", + "did:peer:1zQmNStEDy8UHJCMFjJPJBJD36esBNX6YPa97y2jpRfCyLvG": { + "id": "did:peer:1zQmNStEDy8UHJCMFjJPJBJD36esBNX6YPa97y2jpRfCyLvG", "tags": { - "did": "did:peer:1zQmP96nW6vbNjzwPt19z1NYqhnAfgnAFqfLHcktkmdUFzhT", - "legacyUnqualifiedDid": "SDqTzbVuCowusqGBNbNDjH", + "did": "did:peer:1zQmNStEDy8UHJCMFjJPJBJD36esBNX6YPa97y2jpRfCyLvG", + "legacyUnqualifiedDid": "YKc7qhYN1TckZAMUf7jgwc", "method": "peer", - "methodSpecificIdentifier": "1zQmP96nW6vbNjzwPt19z1NYqhnAfgnAFqfLHcktkmdUFzhT", + "methodSpecificIdentifier": "1zQmNStEDy8UHJCMFjJPJBJD36esBNX6YPa97y2jpRfCyLvG", "recipientKeyFingerprints": [ - "z6MktCZAQNGvWb4WHAjwBqPtXhZdDYorbSJkGW9vj1uhw1HD", + "z6MkwXNXTehVH7YijDmN1PtaXaSaCniTyaVepmY1EJgS15xq", ], - "role": "created", + "role": "received", }, "type": "DidRecord", "value": { "_tags": {}, - "createdAt": "2022-04-30T13:02:21.608Z", - "did": "did:peer:1zQmP96nW6vbNjzwPt19z1NYqhnAfgnAFqfLHcktkmdUFzhT", + "createdAt": "2022-04-30T13:02:21.646Z", + "did": "did:peer:1zQmNStEDy8UHJCMFjJPJBJD36esBNX6YPa97y2jpRfCyLvG", "didDocument": { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", ], "alsoKnownAs": undefined, "assertionMethod": undefined, "authentication": [ - "#EkJ7p82V", + "#J57UsQT3", ], "capabilityDelegation": undefined, "capabilityInvocation": undefined, "controller": undefined, - "id": "did:peer:1zQmP96nW6vbNjzwPt19z1NYqhnAfgnAFqfLHcktkmdUFzhT", + "id": "did:peer:1zQmNStEDy8UHJCMFjJPJBJD36esBNX6YPa97y2jpRfCyLvG", "keyAgreement": undefined, "service": [ { "id": "#IndyAgentService", "priority": 0, "recipientKeys": [ - "EkJ7p82VB3a3AfuEWGS3gc1dPyY1BZ4PaVEztjwh1nVq", + "J57UsQT3wa4FcivfKpvjgUtaPDScZhFJ8kd5Q2iR5sBT", ], "routingKeys": [], - "serviceEndpoint": "rxjs:alice", + "serviceEndpoint": "rxjs:faber", "type": "IndyAgent", }, ], @@ -1496,8 +1496,8 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "blockchainAccountId": undefined, "controller": "#id", "ethereumAddress": undefined, - "id": "#EkJ7p82V", - "publicKeyBase58": "EkJ7p82VB3a3AfuEWGS3gc1dPyY1BZ4PaVEztjwh1nVq", + "id": "#J57UsQT3", + "publicKeyBase58": "J57UsQT3wa4FcivfKpvjgUtaPDScZhFJ8kd5Q2iR5sBT", "publicKeyBase64": undefined, "publicKeyHex": undefined, "publicKeyJwk": undefined, @@ -1507,57 +1507,57 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re }, ], }, - "id": "did:peer:1zQmP96nW6vbNjzwPt19z1NYqhnAfgnAFqfLHcktkmdUFzhT", + "id": "did:peer:1zQmNStEDy8UHJCMFjJPJBJD36esBNX6YPa97y2jpRfCyLvG", "metadata": { "_internal/legacyDid": { - "didDocumentString": "{"@context":"https://w3id.org/did/v1","publicKey":[{"id":"SDqTzbVuCowusqGBNbNDjH#1","controller":"SDqTzbVuCowusqGBNbNDjH","type":"Ed25519VerificationKey2018","publicKeyBase58":"EkJ7p82VB3a3AfuEWGS3gc1dPyY1BZ4PaVEztjwh1nVq"}],"service":[{"id":"SDqTzbVuCowusqGBNbNDjH#IndyAgentService","serviceEndpoint":"rxjs:alice","type":"IndyAgent","priority":0,"recipientKeys":["EkJ7p82VB3a3AfuEWGS3gc1dPyY1BZ4PaVEztjwh1nVq"],"routingKeys":[]}],"authentication":[{"publicKey":"SDqTzbVuCowusqGBNbNDjH#1","type":"Ed25519SignatureAuthentication2018"}],"id":"SDqTzbVuCowusqGBNbNDjH"}", - "unqualifiedDid": "SDqTzbVuCowusqGBNbNDjH", + "didDocumentString": "{"@context":"https://www.w3.org/ns/did/v1","publicKey":[{"id":"YKc7qhYN1TckZAMUf7jgwc#1","controller":"YKc7qhYN1TckZAMUf7jgwc","type":"Ed25519VerificationKey2018","publicKeyBase58":"J57UsQT3wa4FcivfKpvjgUtaPDScZhFJ8kd5Q2iR5sBT"}],"service":[{"id":"YKc7qhYN1TckZAMUf7jgwc#IndyAgentService","serviceEndpoint":"rxjs:faber","type":"IndyAgent","priority":0,"recipientKeys":["J57UsQT3wa4FcivfKpvjgUtaPDScZhFJ8kd5Q2iR5sBT"],"routingKeys":[]}],"authentication":[{"publicKey":"YKc7qhYN1TckZAMUf7jgwc#1","type":"Ed25519SignatureAuthentication2018"}],"id":"YKc7qhYN1TckZAMUf7jgwc"}", + "unqualifiedDid": "YKc7qhYN1TckZAMUf7jgwc", }, }, - "role": "created", + "role": "received", "updatedAt": "2022-01-21T22:50:20.522Z", }, }, - "did:peer:1zQmPbGa8KDwyjcw9UgwCCgJMV7jU5kKCyvBuwFVc88WxA56": { - "id": "did:peer:1zQmPbGa8KDwyjcw9UgwCCgJMV7jU5kKCyvBuwFVc88WxA56", + "did:peer:1zQmNkzNydAs2BdtWxM44sV2gMUtpxUw66nxMVTmswyb9Zhx": { + "id": "did:peer:1zQmNkzNydAs2BdtWxM44sV2gMUtpxUw66nxMVTmswyb9Zhx", "tags": { - "did": "did:peer:1zQmPbGa8KDwyjcw9UgwCCgJMV7jU5kKCyvBuwFVc88WxA56", - "legacyUnqualifiedDid": "GkEeb96MGT94K1HyQQzpj1", + "did": "did:peer:1zQmNkzNydAs2BdtWxM44sV2gMUtpxUw66nxMVTmswyb9Zhx", + "legacyUnqualifiedDid": "9jTqUnV4k5ucxbyxumAaV7", "method": "peer", - "methodSpecificIdentifier": "1zQmPbGa8KDwyjcw9UgwCCgJMV7jU5kKCyvBuwFVc88WxA56", + "methodSpecificIdentifier": "1zQmNkzNydAs2BdtWxM44sV2gMUtpxUw66nxMVTmswyb9Zhx", "recipientKeyFingerprints": [ - "z6Mko31DNE3gqMRZj1JNhv2BHb1caQshcd9njgKkEQXsgFRp", + "z6MkjDJL4X7YGoH6gjamhZR2NzowPZqtJfX5kPuNuWiVdjMr", ], - "role": "created", + "role": "received", }, "type": "DidRecord", "value": { "_tags": {}, - "createdAt": "2022-04-30T13:02:21.646Z", - "did": "did:peer:1zQmPbGa8KDwyjcw9UgwCCgJMV7jU5kKCyvBuwFVc88WxA56", + "createdAt": "2022-04-30T13:02:21.641Z", + "did": "did:peer:1zQmNkzNydAs2BdtWxM44sV2gMUtpxUw66nxMVTmswyb9Zhx", "didDocument": { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", ], "alsoKnownAs": undefined, "assertionMethod": undefined, "authentication": [ - "#9akAmyoF", + "#5m3HUGs6", ], "capabilityDelegation": undefined, "capabilityInvocation": undefined, "controller": undefined, - "id": "did:peer:1zQmPbGa8KDwyjcw9UgwCCgJMV7jU5kKCyvBuwFVc88WxA56", + "id": "did:peer:1zQmNkzNydAs2BdtWxM44sV2gMUtpxUw66nxMVTmswyb9Zhx", "keyAgreement": undefined, "service": [ { "id": "#IndyAgentService", "priority": 0, "recipientKeys": [ - "9akAmyoFVow6cWTg2M4LSVTckqbrCjuS3fQpQ8Zrm2eS", + "5m3HUGs6wFndaEk51zTBXuFwZza2tnGj4NzT5EkUiWaU", ], "routingKeys": [], - "serviceEndpoint": "rxjs:alice", + "serviceEndpoint": "rxjs:faber", "type": "IndyAgent", }, ], @@ -1566,8 +1566,8 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "blockchainAccountId": undefined, "controller": "#id", "ethereumAddress": undefined, - "id": "#9akAmyoF", - "publicKeyBase58": "9akAmyoFVow6cWTg2M4LSVTckqbrCjuS3fQpQ8Zrm2eS", + "id": "#5m3HUGs6", + "publicKeyBase58": "5m3HUGs6wFndaEk51zTBXuFwZza2tnGj4NzT5EkUiWaU", "publicKeyBase64": undefined, "publicKeyHex": undefined, "publicKeyJwk": undefined, @@ -1577,54 +1577,54 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re }, ], }, - "id": "did:peer:1zQmPbGa8KDwyjcw9UgwCCgJMV7jU5kKCyvBuwFVc88WxA56", + "id": "did:peer:1zQmNkzNydAs2BdtWxM44sV2gMUtpxUw66nxMVTmswyb9Zhx", "metadata": { "_internal/legacyDid": { - "didDocumentString": "{"@context":"https://w3id.org/did/v1","publicKey":[{"id":"GkEeb96MGT94K1HyQQzpj1#1","controller":"GkEeb96MGT94K1HyQQzpj1","type":"Ed25519VerificationKey2018","publicKeyBase58":"9akAmyoFVow6cWTg2M4LSVTckqbrCjuS3fQpQ8Zrm2eS"}],"service":[{"id":"GkEeb96MGT94K1HyQQzpj1#IndyAgentService","serviceEndpoint":"rxjs:alice","type":"IndyAgent","priority":0,"recipientKeys":["9akAmyoFVow6cWTg2M4LSVTckqbrCjuS3fQpQ8Zrm2eS"],"routingKeys":[]}],"authentication":[{"publicKey":"GkEeb96MGT94K1HyQQzpj1#1","type":"Ed25519SignatureAuthentication2018"}],"id":"GkEeb96MGT94K1HyQQzpj1"}", - "unqualifiedDid": "GkEeb96MGT94K1HyQQzpj1", + "didDocumentString": "{"@context":"https://www.w3.org/ns/did/v1","publicKey":[{"id":"9jTqUnV4k5ucxbyxumAaV7#1","controller":"9jTqUnV4k5ucxbyxumAaV7","type":"Ed25519VerificationKey2018","publicKeyBase58":"5m3HUGs6wFndaEk51zTBXuFwZza2tnGj4NzT5EkUiWaU"}],"service":[{"id":"9jTqUnV4k5ucxbyxumAaV7#IndyAgentService","serviceEndpoint":"rxjs:faber","type":"IndyAgent","priority":0,"recipientKeys":["5m3HUGs6wFndaEk51zTBXuFwZza2tnGj4NzT5EkUiWaU"],"routingKeys":[]}],"authentication":[{"publicKey":"9jTqUnV4k5ucxbyxumAaV7#1","type":"Ed25519SignatureAuthentication2018"}],"id":"9jTqUnV4k5ucxbyxumAaV7"}", + "unqualifiedDid": "9jTqUnV4k5ucxbyxumAaV7", }, }, - "role": "created", + "role": "received", "updatedAt": "2022-01-21T22:50:20.522Z", }, }, - "did:peer:1zQmRAfQ6J5qk4qcbHyoStFVkhusazLT9xQcFhdC9dhhQ1cJ": { - "id": "did:peer:1zQmRAfQ6J5qk4qcbHyoStFVkhusazLT9xQcFhdC9dhhQ1cJ", + "did:peer:1zQmPZuVfKzdmtdStmwKpaSwRH3sAwaKffNcP9ThfSksmvP4": { + "id": "did:peer:1zQmPZuVfKzdmtdStmwKpaSwRH3sAwaKffNcP9ThfSksmvP4", "tags": { - "did": "did:peer:1zQmRAfQ6J5qk4qcbHyoStFVkhusazLT9xQcFhdC9dhhQ1cJ", - "legacyUnqualifiedDid": "XajWZZmHGAWUvYCi7CApaG", + "did": "did:peer:1zQmPZuVfKzdmtdStmwKpaSwRH3sAwaKffNcP9ThfSksmvP4", + "legacyUnqualifiedDid": "WSwJQMBHGZbQsq9LDBTWjX", "method": "peer", - "methodSpecificIdentifier": "1zQmRAfQ6J5qk4qcbHyoStFVkhusazLT9xQcFhdC9dhhQ1cJ", + "methodSpecificIdentifier": "1zQmPZuVfKzdmtdStmwKpaSwRH3sAwaKffNcP9ThfSksmvP4", "recipientKeyFingerprints": [ - "z6Mkw81EsWQioXYC9YJ7uKHCRh6LTN7sfD9sJbSPBGXmUpzC", + "z6MkvW9GxjjUdL9qpaj2qQW6YBhCjZY7Zkzrks3cgpJaRjxR", ], "role": "created", }, "type": "DidRecord", "value": { "_tags": {}, - "createdAt": "2022-04-30T13:02:21.577Z", - "did": "did:peer:1zQmRAfQ6J5qk4qcbHyoStFVkhusazLT9xQcFhdC9dhhQ1cJ", + "createdAt": "2022-04-20T13:02:21.646Z", + "did": "did:peer:1zQmPZuVfKzdmtdStmwKpaSwRH3sAwaKffNcP9ThfSksmvP4", "didDocument": { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", ], "alsoKnownAs": undefined, "assertionMethod": undefined, "authentication": [ - "#HfkCHGAH", + "#H3tENVV3", ], "capabilityDelegation": undefined, "capabilityInvocation": undefined, "controller": undefined, - "id": "did:peer:1zQmRAfQ6J5qk4qcbHyoStFVkhusazLT9xQcFhdC9dhhQ1cJ", + "id": "did:peer:1zQmPZuVfKzdmtdStmwKpaSwRH3sAwaKffNcP9ThfSksmvP4", "keyAgreement": undefined, "service": [ { "id": "#IndyAgentService", "priority": 0, "recipientKeys": [ - "HfkCHGAHTz3j33TRDkKMabYLdnr2FKuWcaXTLzZkZcCp", + "H3tENVV3HnfNi5tL9qYFh69CuzGG9skW4r8grYLZWXB3", ], "routingKeys": [], "serviceEndpoint": "rxjs:alice", @@ -1636,8 +1636,8 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "blockchainAccountId": undefined, "controller": "#id", "ethereumAddress": undefined, - "id": "#HfkCHGAH", - "publicKeyBase58": "HfkCHGAHTz3j33TRDkKMabYLdnr2FKuWcaXTLzZkZcCp", + "id": "#H3tENVV3", + "publicKeyBase58": "H3tENVV3HnfNi5tL9qYFh69CuzGG9skW4r8grYLZWXB3", "publicKeyBase64": undefined, "publicKeyHex": undefined, "publicKeyJwk": undefined, @@ -1647,57 +1647,57 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re }, ], }, - "id": "did:peer:1zQmRAfQ6J5qk4qcbHyoStFVkhusazLT9xQcFhdC9dhhQ1cJ", + "id": "did:peer:1zQmPZuVfKzdmtdStmwKpaSwRH3sAwaKffNcP9ThfSksmvP4", "metadata": { "_internal/legacyDid": { - "didDocumentString": "{"@context":"https://w3id.org/did/v1","publicKey":[{"id":"XajWZZmHGAWUvYCi7CApaG#1","controller":"XajWZZmHGAWUvYCi7CApaG","type":"Ed25519VerificationKey2018","publicKeyBase58":"HfkCHGAHTz3j33TRDkKMabYLdnr2FKuWcaXTLzZkZcCp"}],"service":[{"id":"XajWZZmHGAWUvYCi7CApaG#IndyAgentService","serviceEndpoint":"rxjs:alice","type":"IndyAgent","priority":0,"recipientKeys":["HfkCHGAHTz3j33TRDkKMabYLdnr2FKuWcaXTLzZkZcCp"],"routingKeys":[]}],"authentication":[{"publicKey":"XajWZZmHGAWUvYCi7CApaG#1","type":"Ed25519SignatureAuthentication2018"}],"id":"XajWZZmHGAWUvYCi7CApaG"}", - "unqualifiedDid": "XajWZZmHGAWUvYCi7CApaG", + "didDocumentString": "{"@context":"https://www.w3.org/ns/did/v1","publicKey":[{"id":"WSwJQMBHGZbQsq9LDBTWjX#1","controller":"WSwJQMBHGZbQsq9LDBTWjX","type":"Ed25519VerificationKey2018","publicKeyBase58":"H3tENVV3HnfNi5tL9qYFh69CuzGG9skW4r8grYLZWXB3"}],"service":[{"id":"WSwJQMBHGZbQsq9LDBTWjX#IndyAgentService","serviceEndpoint":"rxjs:alice","type":"IndyAgent","priority":0,"recipientKeys":["H3tENVV3HnfNi5tL9qYFh69CuzGG9skW4r8grYLZWXB3"],"routingKeys":[]}],"authentication":[{"publicKey":"WSwJQMBHGZbQsq9LDBTWjX#1","type":"Ed25519SignatureAuthentication2018"}],"id":"WSwJQMBHGZbQsq9LDBTWjX"}", + "unqualifiedDid": "WSwJQMBHGZbQsq9LDBTWjX", }, }, "role": "created", "updatedAt": "2022-01-21T22:50:20.522Z", }, }, - "did:peer:1zQmSMBVNMDrh7fyE8bkAmk1ZatshjinpsEqPA3nx8JYjuKb": { - "id": "did:peer:1zQmSMBVNMDrh7fyE8bkAmk1ZatshjinpsEqPA3nx8JYjuKb", + "did:peer:1zQmQCp3iNUVGMDW5zuJQZxSajZQrBeo8jiuq1FPW4ZXVhNr": { + "id": "did:peer:1zQmQCp3iNUVGMDW5zuJQZxSajZQrBeo8jiuq1FPW4ZXVhNr", "tags": { - "did": "did:peer:1zQmSMBVNMDrh7fyE8bkAmk1ZatshjinpsEqPA3nx8JYjuKb", - "legacyUnqualifiedDid": "RtH4qxVPL1Dpmdv7GytjBv", + "did": "did:peer:1zQmQCp3iNUVGMDW5zuJQZxSajZQrBeo8jiuq1FPW4ZXVhNr", + "legacyUnqualifiedDid": "3KAjJWF5NjiDTUm6JpPBQD", "method": "peer", - "methodSpecificIdentifier": "1zQmSMBVNMDrh7fyE8bkAmk1ZatshjinpsEqPA3nx8JYjuKb", + "methodSpecificIdentifier": "1zQmQCp3iNUVGMDW5zuJQZxSajZQrBeo8jiuq1FPW4ZXVhNr", "recipientKeyFingerprints": [ - "z6Mkt1tsp15cnDD7wBCFgehiR2SxHX1aPxt4sueE24twH9Bd", + "z6MkfiPMPxCQeSDZGMkCvm1Y2rBoPsmw4ZHMv71jXtcWRRiM", ], - "role": "created", + "role": "received", }, "type": "DidRecord", "value": { "_tags": {}, - "createdAt": "2022-04-30T13:02:21.628Z", - "did": "did:peer:1zQmSMBVNMDrh7fyE8bkAmk1ZatshjinpsEqPA3nx8JYjuKb", + "createdAt": "2022-04-30T13:02:21.577Z", + "did": "did:peer:1zQmQCp3iNUVGMDW5zuJQZxSajZQrBeo8jiuq1FPW4ZXVhNr", "didDocument": { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", ], "alsoKnownAs": undefined, "assertionMethod": undefined, "authentication": [ - "#EZdqDkqB", + "#2G8Johwy", ], "capabilityDelegation": undefined, "capabilityInvocation": undefined, "controller": undefined, - "id": "did:peer:1zQmSMBVNMDrh7fyE8bkAmk1ZatshjinpsEqPA3nx8JYjuKb", + "id": "did:peer:1zQmQCp3iNUVGMDW5zuJQZxSajZQrBeo8jiuq1FPW4ZXVhNr", "keyAgreement": undefined, "service": [ { "id": "#IndyAgentService", "priority": 0, "recipientKeys": [ - "EZdqDkqBSfiepgMZ15jsZvtxTwjiz5diBtjJBnvvMvQF", + "2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy", ], "routingKeys": [], - "serviceEndpoint": "rxjs:alice", + "serviceEndpoint": "rxjs:faber", "type": "IndyAgent", }, ], @@ -1706,8 +1706,8 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "blockchainAccountId": undefined, "controller": "#id", "ethereumAddress": undefined, - "id": "#EZdqDkqB", - "publicKeyBase58": "EZdqDkqBSfiepgMZ15jsZvtxTwjiz5diBtjJBnvvMvQF", + "id": "#2G8Johwy", + "publicKeyBase58": "2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy", "publicKeyBase64": undefined, "publicKeyHex": undefined, "publicKeyJwk": undefined, @@ -1717,57 +1717,57 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re }, ], }, - "id": "did:peer:1zQmSMBVNMDrh7fyE8bkAmk1ZatshjinpsEqPA3nx8JYjuKb", + "id": "did:peer:1zQmQCp3iNUVGMDW5zuJQZxSajZQrBeo8jiuq1FPW4ZXVhNr", "metadata": { "_internal/legacyDid": { - "didDocumentString": "{"@context":"https://w3id.org/did/v1","publicKey":[{"id":"RtH4qxVPL1Dpmdv7GytjBv#1","controller":"RtH4qxVPL1Dpmdv7GytjBv","type":"Ed25519VerificationKey2018","publicKeyBase58":"EZdqDkqBSfiepgMZ15jsZvtxTwjiz5diBtjJBnvvMvQF"}],"service":[{"id":"RtH4qxVPL1Dpmdv7GytjBv#IndyAgentService","serviceEndpoint":"rxjs:alice","type":"IndyAgent","priority":0,"recipientKeys":["EZdqDkqBSfiepgMZ15jsZvtxTwjiz5diBtjJBnvvMvQF"],"routingKeys":[]}],"authentication":[{"publicKey":"RtH4qxVPL1Dpmdv7GytjBv#1","type":"Ed25519SignatureAuthentication2018"}],"id":"RtH4qxVPL1Dpmdv7GytjBv"}", - "unqualifiedDid": "RtH4qxVPL1Dpmdv7GytjBv", + "didDocumentString": "{"@context":"https://www.w3.org/ns/did/v1","publicKey":[{"id":"3KAjJWF5NjiDTUm6JpPBQD#1","controller":"3KAjJWF5NjiDTUm6JpPBQD","type":"Ed25519VerificationKey2018","publicKeyBase58":"2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy"}],"service":[{"id":"3KAjJWF5NjiDTUm6JpPBQD#IndyAgentService","serviceEndpoint":"rxjs:faber","type":"IndyAgent","priority":0,"recipientKeys":["2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy"],"routingKeys":[]}],"authentication":[{"publicKey":"3KAjJWF5NjiDTUm6JpPBQD#1","type":"Ed25519SignatureAuthentication2018"}],"id":"3KAjJWF5NjiDTUm6JpPBQD"}", + "unqualifiedDid": "3KAjJWF5NjiDTUm6JpPBQD", }, }, - "role": "created", + "role": "received", "updatedAt": "2022-01-21T22:50:20.522Z", }, }, - "did:peer:1zQmXYj3nNwsF37WXXdb8XkCAtsTCBpJJbsLKPPGfi2PWCTU": { - "id": "did:peer:1zQmXYj3nNwsF37WXXdb8XkCAtsTCBpJJbsLKPPGfi2PWCTU", + "did:peer:1zQmSL5aqVsh36Ei4r8NkohfkMiaPLjtu3jqzRr9pSqnfTkE": { + "id": "did:peer:1zQmSL5aqVsh36Ei4r8NkohfkMiaPLjtu3jqzRr9pSqnfTkE", "tags": { - "did": "did:peer:1zQmXYj3nNwsF37WXXdb8XkCAtsTCBpJJbsLKPPGfi2PWCTU", - "legacyUnqualifiedDid": "YUH4t3KMkEJiXgmqsncrY9", + "did": "did:peer:1zQmSL5aqVsh36Ei4r8NkohfkMiaPLjtu3jqzRr9pSqnfTkE", + "legacyUnqualifiedDid": "SDqTzbVuCowusqGBNbNDjH", "method": "peer", - "methodSpecificIdentifier": "1zQmXYj3nNwsF37WXXdb8XkCAtsTCBpJJbsLKPPGfi2PWCTU", + "methodSpecificIdentifier": "1zQmSL5aqVsh36Ei4r8NkohfkMiaPLjtu3jqzRr9pSqnfTkE", "recipientKeyFingerprints": [ - "z6Mkwc6efk75y4Y1agRx4NGpvtrpKxtKvMfgBEdQkHBwU8Xu", + "z6MktCZAQNGvWb4WHAjwBqPtXhZdDYorbSJkGW9vj1uhw1HD", ], - "role": "received", + "role": "created", }, "type": "DidRecord", "value": { "_tags": {}, "createdAt": "2022-04-30T13:02:21.608Z", - "did": "did:peer:1zQmXYj3nNwsF37WXXdb8XkCAtsTCBpJJbsLKPPGfi2PWCTU", + "did": "did:peer:1zQmSL5aqVsh36Ei4r8NkohfkMiaPLjtu3jqzRr9pSqnfTkE", "didDocument": { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", ], "alsoKnownAs": undefined, "assertionMethod": undefined, "authentication": [ - "#J9qc5Vre", + "#EkJ7p82V", ], "capabilityDelegation": undefined, "capabilityInvocation": undefined, "controller": undefined, - "id": "did:peer:1zQmXYj3nNwsF37WXXdb8XkCAtsTCBpJJbsLKPPGfi2PWCTU", + "id": "did:peer:1zQmSL5aqVsh36Ei4r8NkohfkMiaPLjtu3jqzRr9pSqnfTkE", "keyAgreement": undefined, "service": [ { "id": "#IndyAgentService", "priority": 0, "recipientKeys": [ - "J9qc5VredX3YUBbFNoJz5oJpWPcUWURKVDiUv1DvYukX", + "EkJ7p82VB3a3AfuEWGS3gc1dPyY1BZ4PaVEztjwh1nVq", ], "routingKeys": [], - "serviceEndpoint": "rxjs:faber", + "serviceEndpoint": "rxjs:alice", "type": "IndyAgent", }, ], @@ -1776,8 +1776,8 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "blockchainAccountId": undefined, "controller": "#id", "ethereumAddress": undefined, - "id": "#J9qc5Vre", - "publicKeyBase58": "J9qc5VredX3YUBbFNoJz5oJpWPcUWURKVDiUv1DvYukX", + "id": "#EkJ7p82V", + "publicKeyBase58": "EkJ7p82VB3a3AfuEWGS3gc1dPyY1BZ4PaVEztjwh1nVq", "publicKeyBase64": undefined, "publicKeyHex": undefined, "publicKeyJwk": undefined, @@ -1787,54 +1787,54 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re }, ], }, - "id": "did:peer:1zQmXYj3nNwsF37WXXdb8XkCAtsTCBpJJbsLKPPGfi2PWCTU", + "id": "did:peer:1zQmSL5aqVsh36Ei4r8NkohfkMiaPLjtu3jqzRr9pSqnfTkE", "metadata": { "_internal/legacyDid": { - "didDocumentString": "{"@context":"https://w3id.org/did/v1","publicKey":[{"id":"YUH4t3KMkEJiXgmqsncrY9#1","controller":"YUH4t3KMkEJiXgmqsncrY9","type":"Ed25519VerificationKey2018","publicKeyBase58":"J9qc5VredX3YUBbFNoJz5oJpWPcUWURKVDiUv1DvYukX"}],"service":[{"id":"YUH4t3KMkEJiXgmqsncrY9#IndyAgentService","serviceEndpoint":"rxjs:faber","type":"IndyAgent","priority":0,"recipientKeys":["J9qc5VredX3YUBbFNoJz5oJpWPcUWURKVDiUv1DvYukX"],"routingKeys":[]}],"authentication":[{"publicKey":"YUH4t3KMkEJiXgmqsncrY9#1","type":"Ed25519SignatureAuthentication2018"}],"id":"YUH4t3KMkEJiXgmqsncrY9"}", - "unqualifiedDid": "YUH4t3KMkEJiXgmqsncrY9", + "didDocumentString": "{"@context":"https://www.w3.org/ns/did/v1","publicKey":[{"id":"SDqTzbVuCowusqGBNbNDjH#1","controller":"SDqTzbVuCowusqGBNbNDjH","type":"Ed25519VerificationKey2018","publicKeyBase58":"EkJ7p82VB3a3AfuEWGS3gc1dPyY1BZ4PaVEztjwh1nVq"}],"service":[{"id":"SDqTzbVuCowusqGBNbNDjH#IndyAgentService","serviceEndpoint":"rxjs:alice","type":"IndyAgent","priority":0,"recipientKeys":["EkJ7p82VB3a3AfuEWGS3gc1dPyY1BZ4PaVEztjwh1nVq"],"routingKeys":[]}],"authentication":[{"publicKey":"SDqTzbVuCowusqGBNbNDjH#1","type":"Ed25519SignatureAuthentication2018"}],"id":"SDqTzbVuCowusqGBNbNDjH"}", + "unqualifiedDid": "SDqTzbVuCowusqGBNbNDjH", }, }, - "role": "received", + "role": "created", "updatedAt": "2022-01-21T22:50:20.522Z", }, }, - "did:peer:1zQmZ2tdw35SaLncSHhf9zBv3e9QmJmLErZRSLsDdYowPHXy": { - "id": "did:peer:1zQmZ2tdw35SaLncSHhf9zBv3e9QmJmLErZRSLsDdYowPHXy", + "did:peer:1zQmVxHfU6ZgzxZfwAm6W5t4HKeupKctxpF6FaHgBmnvhEho": { + "id": "did:peer:1zQmVxHfU6ZgzxZfwAm6W5t4HKeupKctxpF6FaHgBmnvhEho", "tags": { - "did": "did:peer:1zQmZ2tdw35SaLncSHhf9zBv3e9QmJmLErZRSLsDdYowPHXy", - "legacyUnqualifiedDid": "WSwJQMBHGZbQsq9LDBTWjX", + "did": "did:peer:1zQmVxHfU6ZgzxZfwAm6W5t4HKeupKctxpF6FaHgBmnvhEho", + "legacyUnqualifiedDid": "3KAjJWF5NjiDTUm6JpPBQD", "method": "peer", - "methodSpecificIdentifier": "1zQmZ2tdw35SaLncSHhf9zBv3e9QmJmLErZRSLsDdYowPHXy", + "methodSpecificIdentifier": "1zQmVxHfU6ZgzxZfwAm6W5t4HKeupKctxpF6FaHgBmnvhEho", "recipientKeyFingerprints": [ - "z6MkvW9GxjjUdL9qpaj2qQW6YBhCjZY7Zkzrks3cgpJaRjxR", + "z6MkfiPMPxCQeSDZGMkCvm1Y2rBoPsmw4ZHMv71jXtcWRRiM", ], "role": "created", }, "type": "DidRecord", "value": { "_tags": {}, - "createdAt": "2022-04-20T13:02:21.646Z", - "did": "did:peer:1zQmZ2tdw35SaLncSHhf9zBv3e9QmJmLErZRSLsDdYowPHXy", + "createdAt": "2022-04-30T13:02:21.628Z", + "did": "did:peer:1zQmVxHfU6ZgzxZfwAm6W5t4HKeupKctxpF6FaHgBmnvhEho", "didDocument": { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", ], "alsoKnownAs": undefined, "assertionMethod": undefined, "authentication": [ - "#H3tENVV3", + "#2G8Johwy", ], "capabilityDelegation": undefined, "capabilityInvocation": undefined, "controller": undefined, - "id": "did:peer:1zQmZ2tdw35SaLncSHhf9zBv3e9QmJmLErZRSLsDdYowPHXy", + "id": "did:peer:1zQmVxHfU6ZgzxZfwAm6W5t4HKeupKctxpF6FaHgBmnvhEho", "keyAgreement": undefined, "service": [ { "id": "#IndyAgentService", "priority": 0, "recipientKeys": [ - "H3tENVV3HnfNi5tL9qYFh69CuzGG9skW4r8grYLZWXB3", + "2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy", ], "routingKeys": [], "serviceEndpoint": "rxjs:alice", @@ -1846,8 +1846,8 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "blockchainAccountId": undefined, "controller": "#id", "ethereumAddress": undefined, - "id": "#H3tENVV3", - "publicKeyBase58": "H3tENVV3HnfNi5tL9qYFh69CuzGG9skW4r8grYLZWXB3", + "id": "#2G8Johwy", + "publicKeyBase58": "2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy", "publicKeyBase64": undefined, "publicKeyHex": undefined, "publicKeyJwk": undefined, @@ -1857,57 +1857,57 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re }, ], }, - "id": "did:peer:1zQmZ2tdw35SaLncSHhf9zBv3e9QmJmLErZRSLsDdYowPHXy", + "id": "did:peer:1zQmVxHfU6ZgzxZfwAm6W5t4HKeupKctxpF6FaHgBmnvhEho", "metadata": { "_internal/legacyDid": { - "didDocumentString": "{"@context":"https://w3id.org/did/v1","publicKey":[{"id":"WSwJQMBHGZbQsq9LDBTWjX#1","controller":"WSwJQMBHGZbQsq9LDBTWjX","type":"Ed25519VerificationKey2018","publicKeyBase58":"H3tENVV3HnfNi5tL9qYFh69CuzGG9skW4r8grYLZWXB3"}],"service":[{"id":"WSwJQMBHGZbQsq9LDBTWjX#IndyAgentService","serviceEndpoint":"rxjs:alice","type":"IndyAgent","priority":0,"recipientKeys":["H3tENVV3HnfNi5tL9qYFh69CuzGG9skW4r8grYLZWXB3"],"routingKeys":[]}],"authentication":[{"publicKey":"WSwJQMBHGZbQsq9LDBTWjX#1","type":"Ed25519SignatureAuthentication2018"}],"id":"WSwJQMBHGZbQsq9LDBTWjX"}", - "unqualifiedDid": "WSwJQMBHGZbQsq9LDBTWjX", + "didDocumentString": "{"@context":"https://www.w3.org/ns/did/v1","publicKey":[{"id":"RtH4qxVPL1Dpmdv7GytjBv#1","controller":"3KAjJWF5NjiDTUm6JpPBQD","type":"Ed25519VerificationKey2018","publicKeyBase58":"2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy"}],"service":[{"id":"RtH4qxVPL1Dpmdv7GytjBv#IndyAgentService","serviceEndpoint":"rxjs:alice","type":"IndyAgent","priority":0,"recipientKeys":["2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy"],"routingKeys":[]}],"authentication":[{"publicKey":"RtH4qxVPL1Dpmdv7GytjBv#1","type":"Ed25519SignatureAuthentication2018"}],"id":"3KAjJWF5NjiDTUm6JpPBQD"}", + "unqualifiedDid": "3KAjJWF5NjiDTUm6JpPBQD", }, }, "role": "created", "updatedAt": "2022-01-21T22:50:20.522Z", }, }, - "did:peer:1zQma8LpnJ22GxQdyASV5jP6psacAGtJ6ytk4pVayYp4erRf": { - "id": "did:peer:1zQma8LpnJ22GxQdyASV5jP6psacAGtJ6ytk4pVayYp4erRf", + "did:peer:1zQmYQSKmHhPGGnvcAshQMpTjKA27DTWwGtGtiGkYBiQJT5M": { + "id": "did:peer:1zQmYQSKmHhPGGnvcAshQMpTjKA27DTWwGtGtiGkYBiQJT5M", "tags": { - "did": "did:peer:1zQma8LpnJ22GxQdyASV5jP6psacAGtJ6ytk4pVayYp4erRf", - "legacyUnqualifiedDid": "TMnQftvJJJwoYogYkQgVjg", + "did": "did:peer:1zQmYQSKmHhPGGnvcAshQMpTjKA27DTWwGtGtiGkYBiQJT5M", + "legacyUnqualifiedDid": "YUH4t3KMkEJiXgmqsncrY9", "method": "peer", - "methodSpecificIdentifier": "1zQma8LpnJ22GxQdyASV5jP6psacAGtJ6ytk4pVayYp4erRf", + "methodSpecificIdentifier": "1zQmYQSKmHhPGGnvcAshQMpTjKA27DTWwGtGtiGkYBiQJT5M", "recipientKeyFingerprints": [ - "z6MktpVtPC5j91aycGPT5pceiu8EGKDzM5RLwqAZBuCgxw4V", + "z6Mkwc6efk75y4Y1agRx4NGpvtrpKxtKvMfgBEdQkHBwU8Xu", ], - "role": "created", + "role": "received", }, "type": "DidRecord", "value": { "_tags": {}, - "createdAt": "2022-04-30T13:02:21.641Z", - "did": "did:peer:1zQma8LpnJ22GxQdyASV5jP6psacAGtJ6ytk4pVayYp4erRf", + "createdAt": "2022-04-30T13:02:21.608Z", + "did": "did:peer:1zQmYQSKmHhPGGnvcAshQMpTjKA27DTWwGtGtiGkYBiQJT5M", "didDocument": { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", ], "alsoKnownAs": undefined, "assertionMethod": undefined, "authentication": [ - "#FNEqnwqH", + "#J9qc5Vre", ], "capabilityDelegation": undefined, "capabilityInvocation": undefined, "controller": undefined, - "id": "did:peer:1zQma8LpnJ22GxQdyASV5jP6psacAGtJ6ytk4pVayYp4erRf", + "id": "did:peer:1zQmYQSKmHhPGGnvcAshQMpTjKA27DTWwGtGtiGkYBiQJT5M", "keyAgreement": undefined, "service": [ { "id": "#IndyAgentService", "priority": 0, "recipientKeys": [ - "FNEqnwqHoU6WVmYkQFeosoaESjx8wCAzFpFdMdEg3iH7", + "J9qc5VredX3YUBbFNoJz5oJpWPcUWURKVDiUv1DvYukX", ], "routingKeys": [], - "serviceEndpoint": "rxjs:alice", + "serviceEndpoint": "rxjs:faber", "type": "IndyAgent", }, ], @@ -1916,8 +1916,8 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "blockchainAccountId": undefined, "controller": "#id", "ethereumAddress": undefined, - "id": "#FNEqnwqH", - "publicKeyBase58": "FNEqnwqHoU6WVmYkQFeosoaESjx8wCAzFpFdMdEg3iH7", + "id": "#J9qc5Vre", + "publicKeyBase58": "J9qc5VredX3YUBbFNoJz5oJpWPcUWURKVDiUv1DvYukX", "publicKeyBase64": undefined, "publicKeyHex": undefined, "publicKeyJwk": undefined, @@ -1927,57 +1927,57 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re }, ], }, - "id": "did:peer:1zQma8LpnJ22GxQdyASV5jP6psacAGtJ6ytk4pVayYp4erRf", + "id": "did:peer:1zQmYQSKmHhPGGnvcAshQMpTjKA27DTWwGtGtiGkYBiQJT5M", "metadata": { "_internal/legacyDid": { - "didDocumentString": "{"@context":"https://w3id.org/did/v1","publicKey":[{"id":"TMnQftvJJJwoYogYkQgVjg#1","controller":"TMnQftvJJJwoYogYkQgVjg","type":"Ed25519VerificationKey2018","publicKeyBase58":"FNEqnwqHoU6WVmYkQFeosoaESjx8wCAzFpFdMdEg3iH7"}],"service":[{"id":"TMnQftvJJJwoYogYkQgVjg#IndyAgentService","serviceEndpoint":"rxjs:alice","type":"IndyAgent","priority":0,"recipientKeys":["FNEqnwqHoU6WVmYkQFeosoaESjx8wCAzFpFdMdEg3iH7"],"routingKeys":[]}],"authentication":[{"publicKey":"TMnQftvJJJwoYogYkQgVjg#1","type":"Ed25519SignatureAuthentication2018"}],"id":"TMnQftvJJJwoYogYkQgVjg"}", - "unqualifiedDid": "TMnQftvJJJwoYogYkQgVjg", + "didDocumentString": "{"@context":"https://www.w3.org/ns/did/v1","publicKey":[{"id":"YUH4t3KMkEJiXgmqsncrY9#1","controller":"YUH4t3KMkEJiXgmqsncrY9","type":"Ed25519VerificationKey2018","publicKeyBase58":"J9qc5VredX3YUBbFNoJz5oJpWPcUWURKVDiUv1DvYukX"}],"service":[{"id":"YUH4t3KMkEJiXgmqsncrY9#IndyAgentService","serviceEndpoint":"rxjs:faber","type":"IndyAgent","priority":0,"recipientKeys":["J9qc5VredX3YUBbFNoJz5oJpWPcUWURKVDiUv1DvYukX"],"routingKeys":[]}],"authentication":[{"publicKey":"YUH4t3KMkEJiXgmqsncrY9#1","type":"Ed25519SignatureAuthentication2018"}],"id":"YUH4t3KMkEJiXgmqsncrY9"}", + "unqualifiedDid": "YUH4t3KMkEJiXgmqsncrY9", }, }, - "role": "created", + "role": "received", "updatedAt": "2022-01-21T22:50:20.522Z", }, }, - "did:peer:1zQmadmBfngrYSWhYYxZ24fpW29iwhKhQ6CB6euLabbSK6ga": { - "id": "did:peer:1zQmadmBfngrYSWhYYxZ24fpW29iwhKhQ6CB6euLabbSK6ga", + "did:peer:1zQmYfrkcLycyPxZZSrSw3LEMYZNLJLD3HjQ1VpSV692bcZx": { + "id": "did:peer:1zQmYfrkcLycyPxZZSrSw3LEMYZNLJLD3HjQ1VpSV692bcZx", "tags": { - "did": "did:peer:1zQmadmBfngrYSWhYYxZ24fpW29iwhKhQ6CB6euLabbSK6ga", - "legacyUnqualifiedDid": "YKc7qhYN1TckZAMUf7jgwc", + "did": "did:peer:1zQmYfrkcLycyPxZZSrSw3LEMYZNLJLD3HjQ1VpSV692bcZx", + "legacyUnqualifiedDid": "WewvCdyBi4HL8ogyGviYVS", "method": "peer", - "methodSpecificIdentifier": "1zQmadmBfngrYSWhYYxZ24fpW29iwhKhQ6CB6euLabbSK6ga", + "methodSpecificIdentifier": "1zQmYfrkcLycyPxZZSrSw3LEMYZNLJLD3HjQ1VpSV692bcZx", "recipientKeyFingerprints": [ - "z6MkwXNXTehVH7YijDmN1PtaXaSaCniTyaVepmY1EJgS15xq", + "z6MkvcgxQSsX5WA8vcBokLZ46znnhRBH6aKAGYnonEUfUnQV", ], - "role": "received", + "role": "created", }, "type": "DidRecord", "value": { "_tags": {}, - "createdAt": "2022-04-30T13:02:21.646Z", - "did": "did:peer:1zQmadmBfngrYSWhYYxZ24fpW29iwhKhQ6CB6euLabbSK6ga", + "createdAt": "2022-04-30T13:02:21.635Z", + "did": "did:peer:1zQmYfrkcLycyPxZZSrSw3LEMYZNLJLD3HjQ1VpSV692bcZx", "didDocument": { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", ], "alsoKnownAs": undefined, "assertionMethod": undefined, "authentication": [ - "#J57UsQT3", + "#HARupCd5", ], "capabilityDelegation": undefined, "capabilityInvocation": undefined, "controller": undefined, - "id": "did:peer:1zQmadmBfngrYSWhYYxZ24fpW29iwhKhQ6CB6euLabbSK6ga", + "id": "did:peer:1zQmYfrkcLycyPxZZSrSw3LEMYZNLJLD3HjQ1VpSV692bcZx", "keyAgreement": undefined, "service": [ { "id": "#IndyAgentService", "priority": 0, "recipientKeys": [ - "J57UsQT3wa4FcivfKpvjgUtaPDScZhFJ8kd5Q2iR5sBT", + "HARupCd5jxffp7M74mbDFuEnsquRgh4oaXsswxWeZZd7", ], "routingKeys": [], - "serviceEndpoint": "rxjs:faber", + "serviceEndpoint": "rxjs:alice", "type": "IndyAgent", }, ], @@ -1986,8 +1986,8 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "blockchainAccountId": undefined, "controller": "#id", "ethereumAddress": undefined, - "id": "#J57UsQT3", - "publicKeyBase58": "J57UsQT3wa4FcivfKpvjgUtaPDScZhFJ8kd5Q2iR5sBT", + "id": "#HARupCd5", + "publicKeyBase58": "HARupCd5jxffp7M74mbDFuEnsquRgh4oaXsswxWeZZd7", "publicKeyBase64": undefined, "publicKeyHex": undefined, "publicKeyJwk": undefined, @@ -1997,24 +1997,24 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re }, ], }, - "id": "did:peer:1zQmadmBfngrYSWhYYxZ24fpW29iwhKhQ6CB6euLabbSK6ga", + "id": "did:peer:1zQmYfrkcLycyPxZZSrSw3LEMYZNLJLD3HjQ1VpSV692bcZx", "metadata": { "_internal/legacyDid": { - "didDocumentString": "{"@context":"https://w3id.org/did/v1","publicKey":[{"id":"YKc7qhYN1TckZAMUf7jgwc#1","controller":"YKc7qhYN1TckZAMUf7jgwc","type":"Ed25519VerificationKey2018","publicKeyBase58":"J57UsQT3wa4FcivfKpvjgUtaPDScZhFJ8kd5Q2iR5sBT"}],"service":[{"id":"YKc7qhYN1TckZAMUf7jgwc#IndyAgentService","serviceEndpoint":"rxjs:faber","type":"IndyAgent","priority":0,"recipientKeys":["J57UsQT3wa4FcivfKpvjgUtaPDScZhFJ8kd5Q2iR5sBT"],"routingKeys":[]}],"authentication":[{"publicKey":"YKc7qhYN1TckZAMUf7jgwc#1","type":"Ed25519SignatureAuthentication2018"}],"id":"YKc7qhYN1TckZAMUf7jgwc"}", - "unqualifiedDid": "YKc7qhYN1TckZAMUf7jgwc", + "didDocumentString": "{"@context":"https://www.w3.org/ns/did/v1","publicKey":[{"id":"WewvCdyBi4HL8ogyGviYVS#1","controller":"WewvCdyBi4HL8ogyGviYVS","type":"Ed25519VerificationKey2018","publicKeyBase58":"HARupCd5jxffp7M74mbDFuEnsquRgh4oaXsswxWeZZd7"}],"service":[{"id":"WewvCdyBi4HL8ogyGviYVS#IndyAgentService","serviceEndpoint":"rxjs:alice","type":"IndyAgent","priority":0,"recipientKeys":["HARupCd5jxffp7M74mbDFuEnsquRgh4oaXsswxWeZZd7"],"routingKeys":[]}],"authentication":[{"publicKey":"WewvCdyBi4HL8ogyGviYVS#1","type":"Ed25519SignatureAuthentication2018"}],"id":"WewvCdyBi4HL8ogyGviYVS"}", + "unqualifiedDid": "WewvCdyBi4HL8ogyGviYVS", }, }, - "role": "received", + "role": "created", "updatedAt": "2022-01-21T22:50:20.522Z", }, }, - "did:peer:1zQmc3BZoTinpVaG3oZ4PmRVN4JMdNZGCmPkS6smmTNLnvEZ": { - "id": "did:peer:1zQmc3BZoTinpVaG3oZ4PmRVN4JMdNZGCmPkS6smmTNLnvEZ", + "did:peer:1zQmc4nkRDFTaXX7DZDbGAuBBmivNV84qh8Ry3pAhVFgXhDy": { + "id": "did:peer:1zQmc4nkRDFTaXX7DZDbGAuBBmivNV84qh8Ry3pAhVFgXhDy", "tags": { - "did": "did:peer:1zQmc3BZoTinpVaG3oZ4PmRVN4JMdNZGCmPkS6smmTNLnvEZ", + "did": "did:peer:1zQmc4nkRDFTaXX7DZDbGAuBBmivNV84qh8Ry3pAhVFgXhDy", "legacyUnqualifiedDid": "Ak15GBhMYpdS8XX3QDMv31", "method": "peer", - "methodSpecificIdentifier": "1zQmc3BZoTinpVaG3oZ4PmRVN4JMdNZGCmPkS6smmTNLnvEZ", + "methodSpecificIdentifier": "1zQmc4nkRDFTaXX7DZDbGAuBBmivNV84qh8Ry3pAhVFgXhDy", "recipientKeyFingerprints": [ "z6MkjmCrDWJVf8H2pCHcu11UDs4jb6FVu8nn5yQW24rrgez6", ], @@ -2024,10 +2024,10 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "value": { "_tags": {}, "createdAt": "2022-04-30T13:02:21.628Z", - "did": "did:peer:1zQmc3BZoTinpVaG3oZ4PmRVN4JMdNZGCmPkS6smmTNLnvEZ", + "did": "did:peer:1zQmc4nkRDFTaXX7DZDbGAuBBmivNV84qh8Ry3pAhVFgXhDy", "didDocument": { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", ], "alsoKnownAs": undefined, "assertionMethod": undefined, @@ -2037,7 +2037,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "capabilityDelegation": undefined, "capabilityInvocation": undefined, "controller": undefined, - "id": "did:peer:1zQmc3BZoTinpVaG3oZ4PmRVN4JMdNZGCmPkS6smmTNLnvEZ", + "id": "did:peer:1zQmc4nkRDFTaXX7DZDbGAuBBmivNV84qh8Ry3pAhVFgXhDy", "keyAgreement": undefined, "service": [ { @@ -2067,10 +2067,10 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re }, ], }, - "id": "did:peer:1zQmc3BZoTinpVaG3oZ4PmRVN4JMdNZGCmPkS6smmTNLnvEZ", + "id": "did:peer:1zQmc4nkRDFTaXX7DZDbGAuBBmivNV84qh8Ry3pAhVFgXhDy", "metadata": { "_internal/legacyDid": { - "didDocumentString": "{"@context":"https://w3id.org/did/v1","publicKey":[{"id":"Ak15GBhMYpdS8XX3QDMv31#1","controller":"Ak15GBhMYpdS8XX3QDMv31","type":"Ed25519VerificationKey2018","publicKeyBase58":"6JwodG44KanZhhSvDS3dNmWjmWyeVFYRPxVaBntqmSCi"}],"service":[{"id":"Ak15GBhMYpdS8XX3QDMv31#IndyAgentService","serviceEndpoint":"rxjs:faber","type":"IndyAgent","priority":0,"recipientKeys":["6JwodG44KanZhhSvDS3dNmWjmWyeVFYRPxVaBntqmSCi"],"routingKeys":[]}],"authentication":[{"publicKey":"Ak15GBhMYpdS8XX3QDMv31#1","type":"Ed25519SignatureAuthentication2018"}],"id":"Ak15GBhMYpdS8XX3QDMv31"}", + "didDocumentString": "{"@context":"https://www.w3.org/ns/did/v1","publicKey":[{"id":"Ak15GBhMYpdS8XX3QDMv31#1","controller":"Ak15GBhMYpdS8XX3QDMv31","type":"Ed25519VerificationKey2018","publicKeyBase58":"6JwodG44KanZhhSvDS3dNmWjmWyeVFYRPxVaBntqmSCi"}],"service":[{"id":"Ak15GBhMYpdS8XX3QDMv31#IndyAgentService","serviceEndpoint":"rxjs:faber","type":"IndyAgent","priority":0,"recipientKeys":["6JwodG44KanZhhSvDS3dNmWjmWyeVFYRPxVaBntqmSCi"],"routingKeys":[]}],"authentication":[{"publicKey":"Ak15GBhMYpdS8XX3QDMv31#1","type":"Ed25519SignatureAuthentication2018"}],"id":"Ak15GBhMYpdS8XX3QDMv31"}", "unqualifiedDid": "Ak15GBhMYpdS8XX3QDMv31", }, }, @@ -2078,46 +2078,46 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "updatedAt": "2022-01-21T22:50:20.522Z", }, }, - "did:peer:1zQmcXZepLE55VGCMELEFjMd4nKrzp3GGyRR3r3MYermagui": { - "id": "did:peer:1zQmcXZepLE55VGCMELEFjMd4nKrzp3GGyRR3r3MYermagui", + "did:peer:1zQmctp3J5DumzD4DDtirW6LvbEPPLUih2UacpX25wjqvC8e": { + "id": "did:peer:1zQmctp3J5DumzD4DDtirW6LvbEPPLUih2UacpX25wjqvC8e", "tags": { - "did": "did:peer:1zQmcXZepLE55VGCMELEFjMd4nKrzp3GGyRR3r3MYermagui", - "legacyUnqualifiedDid": "9jTqUnV4k5ucxbyxumAaV7", + "did": "did:peer:1zQmctp3J5DumzD4DDtirW6LvbEPPLUih2UacpX25wjqvC8e", + "legacyUnqualifiedDid": "Ud6AWCk6WrwfYKZUw5tJmt", "method": "peer", - "methodSpecificIdentifier": "1zQmcXZepLE55VGCMELEFjMd4nKrzp3GGyRR3r3MYermagui", + "methodSpecificIdentifier": "1zQmctp3J5DumzD4DDtirW6LvbEPPLUih2UacpX25wjqvC8e", "recipientKeyFingerprints": [ - "z6MkjDJL4X7YGoH6gjamhZR2NzowPZqtJfX5kPuNuWiVdjMr", + "z6MkuWTEmH1mUo6W96zSWyH612hFHowRzNEscPYBL2CCMyC2", ], - "role": "received", + "role": "created", }, "type": "DidRecord", "value": { "_tags": {}, - "createdAt": "2022-04-30T13:02:21.641Z", - "did": "did:peer:1zQmcXZepLE55VGCMELEFjMd4nKrzp3GGyRR3r3MYermagui", + "createdAt": "2022-04-30T13:02:21.653Z", + "did": "did:peer:1zQmctp3J5DumzD4DDtirW6LvbEPPLUih2UacpX25wjqvC8e", "didDocument": { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", ], "alsoKnownAs": undefined, "assertionMethod": undefined, "authentication": [ - "#5m3HUGs6", + "#G4CCB2mL", ], "capabilityDelegation": undefined, "capabilityInvocation": undefined, "controller": undefined, - "id": "did:peer:1zQmcXZepLE55VGCMELEFjMd4nKrzp3GGyRR3r3MYermagui", + "id": "did:peer:1zQmctp3J5DumzD4DDtirW6LvbEPPLUih2UacpX25wjqvC8e", "keyAgreement": undefined, "service": [ { "id": "#IndyAgentService", "priority": 0, "recipientKeys": [ - "5m3HUGs6wFndaEk51zTBXuFwZza2tnGj4NzT5EkUiWaU", + "G4CCB2mL9Fc32c9jqQKF9w9FUEfaaUzWvNdFVkEBSkQe", ], "routingKeys": [], - "serviceEndpoint": "rxjs:faber", + "serviceEndpoint": "rxjs:alice", "type": "IndyAgent", }, ], @@ -2126,8 +2126,8 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "blockchainAccountId": undefined, "controller": "#id", "ethereumAddress": undefined, - "id": "#5m3HUGs6", - "publicKeyBase58": "5m3HUGs6wFndaEk51zTBXuFwZza2tnGj4NzT5EkUiWaU", + "id": "#G4CCB2mL", + "publicKeyBase58": "G4CCB2mL9Fc32c9jqQKF9w9FUEfaaUzWvNdFVkEBSkQe", "publicKeyBase64": undefined, "publicKeyHex": undefined, "publicKeyJwk": undefined, @@ -2137,54 +2137,54 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re }, ], }, - "id": "did:peer:1zQmcXZepLE55VGCMELEFjMd4nKrzp3GGyRR3r3MYermagui", + "id": "did:peer:1zQmctp3J5DumzD4DDtirW6LvbEPPLUih2UacpX25wjqvC8e", "metadata": { "_internal/legacyDid": { - "didDocumentString": "{"@context":"https://w3id.org/did/v1","publicKey":[{"id":"9jTqUnV4k5ucxbyxumAaV7#1","controller":"9jTqUnV4k5ucxbyxumAaV7","type":"Ed25519VerificationKey2018","publicKeyBase58":"5m3HUGs6wFndaEk51zTBXuFwZza2tnGj4NzT5EkUiWaU"}],"service":[{"id":"9jTqUnV4k5ucxbyxumAaV7#IndyAgentService","serviceEndpoint":"rxjs:faber","type":"IndyAgent","priority":0,"recipientKeys":["5m3HUGs6wFndaEk51zTBXuFwZza2tnGj4NzT5EkUiWaU"],"routingKeys":[]}],"authentication":[{"publicKey":"9jTqUnV4k5ucxbyxumAaV7#1","type":"Ed25519SignatureAuthentication2018"}],"id":"9jTqUnV4k5ucxbyxumAaV7"}", - "unqualifiedDid": "9jTqUnV4k5ucxbyxumAaV7", + "didDocumentString": "{"@context":"https://www.w3.org/ns/did/v1","publicKey":[{"id":"Ud6AWCk6WrwfYKZUw5tJmt#1","controller":"Ud6AWCk6WrwfYKZUw5tJmt","type":"Ed25519VerificationKey2018","publicKeyBase58":"G4CCB2mL9Fc32c9jqQKF9w9FUEfaaUzWvNdFVkEBSkQe"}],"service":[{"id":"Ud6AWCk6WrwfYKZUw5tJmt#IndyAgentService","serviceEndpoint":"rxjs:alice","type":"IndyAgent","priority":0,"recipientKeys":["G4CCB2mL9Fc32c9jqQKF9w9FUEfaaUzWvNdFVkEBSkQe"],"routingKeys":[]}],"authentication":[{"publicKey":"Ud6AWCk6WrwfYKZUw5tJmt#1","type":"Ed25519SignatureAuthentication2018"}],"id":"Ud6AWCk6WrwfYKZUw5tJmt"}", + "unqualifiedDid": "Ud6AWCk6WrwfYKZUw5tJmt", }, }, - "role": "received", + "role": "created", "updatedAt": "2022-01-21T22:50:20.522Z", }, }, - "did:peer:1zQmduuYkxRKJuVyvDqttdd9eDfBwDnF1DAU5FFQo4whx7Uw": { - "id": "did:peer:1zQmduuYkxRKJuVyvDqttdd9eDfBwDnF1DAU5FFQo4whx7Uw", + "did:peer:1zQmdBUroNDMEZX7An4NZWpuPXsmvYoFm6KkNUr6T2FvoKf2": { + "id": "did:peer:1zQmdBUroNDMEZX7An4NZWpuPXsmvYoFm6KkNUr6T2FvoKf2", "tags": { - "did": "did:peer:1zQmduuYkxRKJuVyvDqttdd9eDfBwDnF1DAU5FFQo4whx7Uw", - "legacyUnqualifiedDid": "WewvCdyBi4HL8ogyGviYVS", + "did": "did:peer:1zQmdBUroNDMEZX7An4NZWpuPXsmvYoFm6KkNUr6T2FvoKf2", + "legacyUnqualifiedDid": "XajWZZmHGAWUvYCi7CApaG", "method": "peer", - "methodSpecificIdentifier": "1zQmduuYkxRKJuVyvDqttdd9eDfBwDnF1DAU5FFQo4whx7Uw", + "methodSpecificIdentifier": "1zQmdBUroNDMEZX7An4NZWpuPXsmvYoFm6KkNUr6T2FvoKf2", "recipientKeyFingerprints": [ - "z6MkvcgxQSsX5WA8vcBokLZ46znnhRBH6aKAGYnonEUfUnQV", + "z6Mkw81EsWQioXYC9YJ7uKHCRh6LTN7sfD9sJbSPBGXmUpzC", ], "role": "created", }, "type": "DidRecord", "value": { "_tags": {}, - "createdAt": "2022-04-30T13:02:21.635Z", - "did": "did:peer:1zQmduuYkxRKJuVyvDqttdd9eDfBwDnF1DAU5FFQo4whx7Uw", + "createdAt": "2022-04-30T13:02:21.577Z", + "did": "did:peer:1zQmdBUroNDMEZX7An4NZWpuPXsmvYoFm6KkNUr6T2FvoKf2", "didDocument": { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", ], "alsoKnownAs": undefined, "assertionMethod": undefined, "authentication": [ - "#HARupCd5", + "#HfkCHGAH", ], "capabilityDelegation": undefined, "capabilityInvocation": undefined, "controller": undefined, - "id": "did:peer:1zQmduuYkxRKJuVyvDqttdd9eDfBwDnF1DAU5FFQo4whx7Uw", + "id": "did:peer:1zQmdBUroNDMEZX7An4NZWpuPXsmvYoFm6KkNUr6T2FvoKf2", "keyAgreement": undefined, "service": [ { "id": "#IndyAgentService", "priority": 0, "recipientKeys": [ - "HARupCd5jxffp7M74mbDFuEnsquRgh4oaXsswxWeZZd7", + "HfkCHGAHTz3j33TRDkKMabYLdnr2FKuWcaXTLzZkZcCp", ], "routingKeys": [], "serviceEndpoint": "rxjs:alice", @@ -2196,8 +2196,8 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "blockchainAccountId": undefined, "controller": "#id", "ethereumAddress": undefined, - "id": "#HARupCd5", - "publicKeyBase58": "HARupCd5jxffp7M74mbDFuEnsquRgh4oaXsswxWeZZd7", + "id": "#HfkCHGAH", + "publicKeyBase58": "HfkCHGAHTz3j33TRDkKMabYLdnr2FKuWcaXTLzZkZcCp", "publicKeyBase64": undefined, "publicKeyHex": undefined, "publicKeyJwk": undefined, @@ -2207,57 +2207,57 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re }, ], }, - "id": "did:peer:1zQmduuYkxRKJuVyvDqttdd9eDfBwDnF1DAU5FFQo4whx7Uw", + "id": "did:peer:1zQmdBUroNDMEZX7An4NZWpuPXsmvYoFm6KkNUr6T2FvoKf2", "metadata": { "_internal/legacyDid": { - "didDocumentString": "{"@context":"https://w3id.org/did/v1","publicKey":[{"id":"WewvCdyBi4HL8ogyGviYVS#1","controller":"WewvCdyBi4HL8ogyGviYVS","type":"Ed25519VerificationKey2018","publicKeyBase58":"HARupCd5jxffp7M74mbDFuEnsquRgh4oaXsswxWeZZd7"}],"service":[{"id":"WewvCdyBi4HL8ogyGviYVS#IndyAgentService","serviceEndpoint":"rxjs:alice","type":"IndyAgent","priority":0,"recipientKeys":["HARupCd5jxffp7M74mbDFuEnsquRgh4oaXsswxWeZZd7"],"routingKeys":[]}],"authentication":[{"publicKey":"WewvCdyBi4HL8ogyGviYVS#1","type":"Ed25519SignatureAuthentication2018"}],"id":"WewvCdyBi4HL8ogyGviYVS"}", - "unqualifiedDid": "WewvCdyBi4HL8ogyGviYVS", + "didDocumentString": "{"@context":"https://www.w3.org/ns/did/v1","publicKey":[{"id":"XajWZZmHGAWUvYCi7CApaG#1","controller":"XajWZZmHGAWUvYCi7CApaG","type":"Ed25519VerificationKey2018","publicKeyBase58":"HfkCHGAHTz3j33TRDkKMabYLdnr2FKuWcaXTLzZkZcCp"}],"service":[{"id":"XajWZZmHGAWUvYCi7CApaG#IndyAgentService","serviceEndpoint":"rxjs:alice","type":"IndyAgent","priority":0,"recipientKeys":["HfkCHGAHTz3j33TRDkKMabYLdnr2FKuWcaXTLzZkZcCp"],"routingKeys":[]}],"authentication":[{"publicKey":"XajWZZmHGAWUvYCi7CApaG#1","type":"Ed25519SignatureAuthentication2018"}],"id":"XajWZZmHGAWUvYCi7CApaG"}", + "unqualifiedDid": "XajWZZmHGAWUvYCi7CApaG", }, }, "role": "created", "updatedAt": "2022-01-21T22:50:20.522Z", }, }, - "did:peer:1zQmeHpGaZ48DnAP2k3KntXB1vmd8MgLEdcb4EQzqWJDHcbX": { - "id": "did:peer:1zQmeHpGaZ48DnAP2k3KntXB1vmd8MgLEdcb4EQzqWJDHcbX", + "did:peer:1zQmfCM4v4QbeYNWSv48dhxxnB6TmAydwj1G4mcS1TrmhBjT": { + "id": "did:peer:1zQmfCM4v4QbeYNWSv48dhxxnB6TmAydwj1G4mcS1TrmhBjT", "tags": { - "did": "did:peer:1zQmeHpGaZ48DnAP2k3KntXB1vmd8MgLEdcb4EQzqWJDHcbX", - "legacyUnqualifiedDid": "3KAjJWF5NjiDTUm6JpPBQD", + "did": "did:peer:1zQmfCM4v4QbeYNWSv48dhxxnB6TmAydwj1G4mcS1TrmhBjT", + "legacyUnqualifiedDid": "GkEeb96MGT94K1HyQQzpj1", "method": "peer", - "methodSpecificIdentifier": "1zQmeHpGaZ48DnAP2k3KntXB1vmd8MgLEdcb4EQzqWJDHcbX", + "methodSpecificIdentifier": "1zQmfCM4v4QbeYNWSv48dhxxnB6TmAydwj1G4mcS1TrmhBjT", "recipientKeyFingerprints": [ - "z6MkfiPMPxCQeSDZGMkCvm1Y2rBoPsmw4ZHMv71jXtcWRRiM", + "z6Mko31DNE3gqMRZj1JNhv2BHb1caQshcd9njgKkEQXsgFRp", ], - "role": "received", + "role": "created", }, "type": "DidRecord", "value": { "_tags": {}, - "createdAt": "2022-04-30T13:02:21.577Z", - "did": "did:peer:1zQmeHpGaZ48DnAP2k3KntXB1vmd8MgLEdcb4EQzqWJDHcbX", + "createdAt": "2022-04-30T13:02:21.646Z", + "did": "did:peer:1zQmfCM4v4QbeYNWSv48dhxxnB6TmAydwj1G4mcS1TrmhBjT", "didDocument": { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", ], "alsoKnownAs": undefined, "assertionMethod": undefined, "authentication": [ - "#2G8Johwy", + "#9akAmyoF", ], "capabilityDelegation": undefined, "capabilityInvocation": undefined, "controller": undefined, - "id": "did:peer:1zQmeHpGaZ48DnAP2k3KntXB1vmd8MgLEdcb4EQzqWJDHcbX", + "id": "did:peer:1zQmfCM4v4QbeYNWSv48dhxxnB6TmAydwj1G4mcS1TrmhBjT", "keyAgreement": undefined, "service": [ { "id": "#IndyAgentService", "priority": 0, "recipientKeys": [ - "2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy", + "9akAmyoFVow6cWTg2M4LSVTckqbrCjuS3fQpQ8Zrm2eS", ], "routingKeys": [], - "serviceEndpoint": "rxjs:faber", + "serviceEndpoint": "rxjs:alice", "type": "IndyAgent", }, ], @@ -2266,8 +2266,8 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "blockchainAccountId": undefined, "controller": "#id", "ethereumAddress": undefined, - "id": "#2G8Johwy", - "publicKeyBase58": "2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy", + "id": "#9akAmyoF", + "publicKeyBase58": "9akAmyoFVow6cWTg2M4LSVTckqbrCjuS3fQpQ8Zrm2eS", "publicKeyBase64": undefined, "publicKeyHex": undefined, "publicKeyJwk": undefined, @@ -2277,54 +2277,54 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re }, ], }, - "id": "did:peer:1zQmeHpGaZ48DnAP2k3KntXB1vmd8MgLEdcb4EQzqWJDHcbX", + "id": "did:peer:1zQmfCM4v4QbeYNWSv48dhxxnB6TmAydwj1G4mcS1TrmhBjT", "metadata": { "_internal/legacyDid": { - "didDocumentString": "{"@context":"https://w3id.org/did/v1","publicKey":[{"id":"3KAjJWF5NjiDTUm6JpPBQD#1","controller":"3KAjJWF5NjiDTUm6JpPBQD","type":"Ed25519VerificationKey2018","publicKeyBase58":"2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy"}],"service":[{"id":"3KAjJWF5NjiDTUm6JpPBQD#IndyAgentService","serviceEndpoint":"rxjs:faber","type":"IndyAgent","priority":0,"recipientKeys":["2G8JohwyJtj69ruWFC3hBkdoaJW5eg31E66ohceVWCvy"],"routingKeys":[]}],"authentication":[{"publicKey":"3KAjJWF5NjiDTUm6JpPBQD#1","type":"Ed25519SignatureAuthentication2018"}],"id":"3KAjJWF5NjiDTUm6JpPBQD"}", - "unqualifiedDid": "3KAjJWF5NjiDTUm6JpPBQD", + "didDocumentString": "{"@context":"https://www.w3.org/ns/did/v1","publicKey":[{"id":"GkEeb96MGT94K1HyQQzpj1#1","controller":"GkEeb96MGT94K1HyQQzpj1","type":"Ed25519VerificationKey2018","publicKeyBase58":"9akAmyoFVow6cWTg2M4LSVTckqbrCjuS3fQpQ8Zrm2eS"}],"service":[{"id":"GkEeb96MGT94K1HyQQzpj1#IndyAgentService","serviceEndpoint":"rxjs:alice","type":"IndyAgent","priority":0,"recipientKeys":["9akAmyoFVow6cWTg2M4LSVTckqbrCjuS3fQpQ8Zrm2eS"],"routingKeys":[]}],"authentication":[{"publicKey":"GkEeb96MGT94K1HyQQzpj1#1","type":"Ed25519SignatureAuthentication2018"}],"id":"GkEeb96MGT94K1HyQQzpj1"}", + "unqualifiedDid": "GkEeb96MGT94K1HyQQzpj1", }, }, - "role": "received", + "role": "created", "updatedAt": "2022-01-21T22:50:20.522Z", }, }, - "did:peer:1zQmfDAtfDZcK4trJBsvVTXrBx9uaLCHSUZH9X2LFaAd3JKv": { - "id": "did:peer:1zQmfDAtfDZcK4trJBsvVTXrBx9uaLCHSUZH9X2LFaAd3JKv", + "did:peer:1zQmfLL2K1xoNdBEcjLCuGH7sq5hUF4zgeWH9WhmZwwucqfa": { + "id": "did:peer:1zQmfLL2K1xoNdBEcjLCuGH7sq5hUF4zgeWH9WhmZwwucqfa", "tags": { - "did": "did:peer:1zQmfDAtfDZcK4trJBsvVTXrBx9uaLCHSUZH9X2LFaAd3JKv", - "legacyUnqualifiedDid": "Ud6AWCk6WrwfYKZUw5tJmt", + "did": "did:peer:1zQmfLL2K1xoNdBEcjLCuGH7sq5hUF4zgeWH9WhmZwwucqfa", + "legacyUnqualifiedDid": "TMnQftvJJJwoYogYkQgVjg", "method": "peer", - "methodSpecificIdentifier": "1zQmfDAtfDZcK4trJBsvVTXrBx9uaLCHSUZH9X2LFaAd3JKv", + "methodSpecificIdentifier": "1zQmfLL2K1xoNdBEcjLCuGH7sq5hUF4zgeWH9WhmZwwucqfa", "recipientKeyFingerprints": [ - "z6MkuWTEmH1mUo6W96zSWyH612hFHowRzNEscPYBL2CCMyC2", + "z6MktpVtPC5j91aycGPT5pceiu8EGKDzM5RLwqAZBuCgxw4V", ], "role": "created", }, "type": "DidRecord", "value": { "_tags": {}, - "createdAt": "2022-04-30T13:02:21.653Z", - "did": "did:peer:1zQmfDAtfDZcK4trJBsvVTXrBx9uaLCHSUZH9X2LFaAd3JKv", + "createdAt": "2022-04-30T13:02:21.641Z", + "did": "did:peer:1zQmfLL2K1xoNdBEcjLCuGH7sq5hUF4zgeWH9WhmZwwucqfa", "didDocument": { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", ], "alsoKnownAs": undefined, "assertionMethod": undefined, "authentication": [ - "#G4CCB2mL", + "#FNEqnwqH", ], "capabilityDelegation": undefined, "capabilityInvocation": undefined, "controller": undefined, - "id": "did:peer:1zQmfDAtfDZcK4trJBsvVTXrBx9uaLCHSUZH9X2LFaAd3JKv", + "id": "did:peer:1zQmfLL2K1xoNdBEcjLCuGH7sq5hUF4zgeWH9WhmZwwucqfa", "keyAgreement": undefined, "service": [ { "id": "#IndyAgentService", "priority": 0, "recipientKeys": [ - "G4CCB2mL9Fc32c9jqQKF9w9FUEfaaUzWvNdFVkEBSkQe", + "FNEqnwqHoU6WVmYkQFeosoaESjx8wCAzFpFdMdEg3iH7", ], "routingKeys": [], "serviceEndpoint": "rxjs:alice", @@ -2336,8 +2336,8 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "blockchainAccountId": undefined, "controller": "#id", "ethereumAddress": undefined, - "id": "#G4CCB2mL", - "publicKeyBase58": "G4CCB2mL9Fc32c9jqQKF9w9FUEfaaUzWvNdFVkEBSkQe", + "id": "#FNEqnwqH", + "publicKeyBase58": "FNEqnwqHoU6WVmYkQFeosoaESjx8wCAzFpFdMdEg3iH7", "publicKeyBase64": undefined, "publicKeyHex": undefined, "publicKeyJwk": undefined, @@ -2347,11 +2347,11 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re }, ], }, - "id": "did:peer:1zQmfDAtfDZcK4trJBsvVTXrBx9uaLCHSUZH9X2LFaAd3JKv", + "id": "did:peer:1zQmfLL2K1xoNdBEcjLCuGH7sq5hUF4zgeWH9WhmZwwucqfa", "metadata": { "_internal/legacyDid": { - "didDocumentString": "{"@context":"https://w3id.org/did/v1","publicKey":[{"id":"Ud6AWCk6WrwfYKZUw5tJmt#1","controller":"Ud6AWCk6WrwfYKZUw5tJmt","type":"Ed25519VerificationKey2018","publicKeyBase58":"G4CCB2mL9Fc32c9jqQKF9w9FUEfaaUzWvNdFVkEBSkQe"}],"service":[{"id":"Ud6AWCk6WrwfYKZUw5tJmt#IndyAgentService","serviceEndpoint":"rxjs:alice","type":"IndyAgent","priority":0,"recipientKeys":["G4CCB2mL9Fc32c9jqQKF9w9FUEfaaUzWvNdFVkEBSkQe"],"routingKeys":[]}],"authentication":[{"publicKey":"Ud6AWCk6WrwfYKZUw5tJmt#1","type":"Ed25519SignatureAuthentication2018"}],"id":"Ud6AWCk6WrwfYKZUw5tJmt"}", - "unqualifiedDid": "Ud6AWCk6WrwfYKZUw5tJmt", + "didDocumentString": "{"@context":"https://www.w3.org/ns/did/v1","publicKey":[{"id":"TMnQftvJJJwoYogYkQgVjg#1","controller":"TMnQftvJJJwoYogYkQgVjg","type":"Ed25519VerificationKey2018","publicKeyBase58":"FNEqnwqHoU6WVmYkQFeosoaESjx8wCAzFpFdMdEg3iH7"}],"service":[{"id":"TMnQftvJJJwoYogYkQgVjg#IndyAgentService","serviceEndpoint":"rxjs:alice","type":"IndyAgent","priority":0,"recipientKeys":["FNEqnwqHoU6WVmYkQFeosoaESjx8wCAzFpFdMdEg3iH7"],"routingKeys":[]}],"authentication":[{"publicKey":"TMnQftvJJJwoYogYkQgVjg#1","type":"Ed25519SignatureAuthentication2018"}],"id":"TMnQftvJJJwoYogYkQgVjg"}", + "unqualifiedDid": "TMnQftvJJJwoYogYkQgVjg", }, }, "role": "created", @@ -2362,7 +2362,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "id": "e3f9bc2b-f0a1-4a2c-ab81-2f0a3488c199", "tags": { "connectionTypes": [], - "did": "did:peer:1zQma8LpnJ22GxQdyASV5jP6psacAGtJ6ytk4pVayYp4erRf", + "did": "did:peer:1zQmfLL2K1xoNdBEcjLCuGH7sq5hUF4zgeWH9WhmZwwucqfa", "invitationDid": "did:peer:2.SeyJzIjoicnhqczpmYWJlciIsInQiOiJkaWQtY29tbXVuaWNhdGlvbiIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbImRpZDprZXk6ejZNa2pESkw0WDdZR29INmdqYW1oWlIyTnpvd1BacXRKZlg1a1B1TnVXaVZkak1yI3o2TWtqREpMNFg3WUdvSDZnamFtaFpSMk56b3dQWnF0SmZYNWtQdU51V2lWZGpNciJdLCJyIjpbXX0", "invitationKey": "5m3HUGs6wFndaEk51zTBXuFwZza2tnGj4NzT5EkUiWaU", "mediatorId": undefined, @@ -2371,7 +2371,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "previousTheirDids": [], "role": "requester", "state": "response-received", - "theirDid": "did:peer:1zQmcXZepLE55VGCMELEFjMd4nKrzp3GGyRR3r3MYermagui", + "theirDid": "did:peer:1zQmNkzNydAs2BdtWxM44sV2gMUtpxUw66nxMVTmswyb9Zhx", "theirKey": "5m3HUGs6wFndaEk51zTBXuFwZza2tnGj4NzT5EkUiWaU", "threadId": "daf3372c-1ee2-4246-a1f4-f62f54f7d68b", "verkey": "FNEqnwqHoU6WVmYkQFeosoaESjx8wCAzFpFdMdEg3iH7", @@ -2381,7 +2381,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "autoAcceptConnection": false, "connectionTypes": [], "createdAt": "2022-04-30T13:02:21.641Z", - "did": "did:peer:1zQma8LpnJ22GxQdyASV5jP6psacAGtJ6ytk4pVayYp4erRf", + "did": "did:peer:1zQmfLL2K1xoNdBEcjLCuGH7sq5hUF4zgeWH9WhmZwwucqfa", "id": "e3f9bc2b-f0a1-4a2c-ab81-2f0a3488c199", "invitationDid": "did:peer:2.SeyJzIjoicnhqczpmYWJlciIsInQiOiJkaWQtY29tbXVuaWNhdGlvbiIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbImRpZDprZXk6ejZNa2pESkw0WDdZR29INmdqYW1oWlIyTnpvd1BacXRKZlg1a1B1TnVXaVZkak1yI3o2TWtqREpMNFg3WUdvSDZnamFtaFpSMk56b3dQWnF0SmZYNWtQdU51V2lWZGpNciJdLCJyIjpbXX0", "metadata": {}, @@ -2390,7 +2390,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "previousTheirDids": [], "role": "requester", "state": "response-received", - "theirDid": "did:peer:1zQmcXZepLE55VGCMELEFjMd4nKrzp3GGyRR3r3MYermagui", + "theirDid": "did:peer:1zQmNkzNydAs2BdtWxM44sV2gMUtpxUw66nxMVTmswyb9Zhx", "theirLabel": "Agent: PopulateWallet2", "threadId": "daf3372c-1ee2-4246-a1f4-f62f54f7d68b", "updatedAt": "2022-01-21T22:50:20.522Z", @@ -2400,7 +2400,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "id": "ee88e2e1-e27e-46a6-a910-f87690109e32", "tags": { "connectionTypes": [], - "did": "did:peer:1zQmduuYkxRKJuVyvDqttdd9eDfBwDnF1DAU5FFQo4whx7Uw", + "did": "did:peer:1zQmYfrkcLycyPxZZSrSw3LEMYZNLJLD3HjQ1VpSV692bcZx", "invitationDid": "did:peer:2.SeyJzIjoicnhqczpmYWJlciIsInQiOiJkaWQtY29tbXVuaWNhdGlvbiIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbImRpZDprZXk6ejZNa21vZDh2cDJuVVJWa3RWQzVjZVFleXIyVlV6MjZpdTJaQU5MTlZnOXBNYXdhI3o2TWttb2Q4dnAyblVSVmt0VkM1Y2VRZXlyMlZVejI2aXUyWkFOTE5WZzlwTWF3YSJdLCJyIjpbXX0", "invitationKey": "8MN6LZnM8t1HmzMNw5Sp8kUVfQkFK1nCUMRSfQBoSNAC", "mediatorId": undefined, @@ -2417,7 +2417,7 @@ exports[`UpdateAssistant | v0.1 - v0.2 should correctly update the connection re "value": { "connectionTypes": [], "createdAt": "2022-04-30T13:02:21.635Z", - "did": "did:peer:1zQmduuYkxRKJuVyvDqttdd9eDfBwDnF1DAU5FFQo4whx7Uw", + "did": "did:peer:1zQmYfrkcLycyPxZZSrSw3LEMYZNLJLD3HjQ1VpSV692bcZx", "id": "ee88e2e1-e27e-46a6-a910-f87690109e32", "invitationDid": "did:peer:2.SeyJzIjoicnhqczpmYWJlciIsInQiOiJkaWQtY29tbXVuaWNhdGlvbiIsInByaW9yaXR5IjowLCJyZWNpcGllbnRLZXlzIjpbImRpZDprZXk6ejZNa21vZDh2cDJuVVJWa3RWQzVjZVFleXIyVlV6MjZpdTJaQU5MTlZnOXBNYXdhI3o2TWttb2Q4dnAyblVSVmt0VkM1Y2VRZXlyMlZVejI2aXUyWkFOTE5WZzlwTWF3YSJdLCJyIjpbXX0", "metadata": {}, diff --git a/packages/core/src/storage/migration/__tests__/__snapshots__/0.2.test.ts.snap b/packages/core/src/storage/migration/__tests__/__snapshots__/0.2.test.ts.snap index 16848424be..c4960cd918 100644 --- a/packages/core/src/storage/migration/__tests__/__snapshots__/0.2.test.ts.snap +++ b/packages/core/src/storage/migration/__tests__/__snapshots__/0.2.test.ts.snap @@ -266,7 +266,7 @@ exports[`UpdateAssistant | v0.2 - v0.3.1 should correctly update the did records "did": "did:peer:1zQmWxKCTkKYQvzdUshMWy7b8vy3Y7uLtB9hp6BbQhKEtQCd", "didDocument": { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", ], "authentication": [ { @@ -331,7 +331,7 @@ exports[`UpdateAssistant | v0.2 - v0.3.1 should correctly update the did records "did": "did:peer:1zQmavZzrLPRYRGd5CgyKV4GBZG43eGzjic9FHXc7jLHY14W", "didDocument": { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", ], "authentication": [ { @@ -394,7 +394,7 @@ exports[`UpdateAssistant | v0.2 - v0.3.1 should correctly update the did records "did": "did:peer:1zQmZqQYzwqsYjj7z8kixxDXf9nux8TAsqj2izSpX1oCrd7q", "didDocument": { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", ], "authentication": [ { @@ -457,7 +457,7 @@ exports[`UpdateAssistant | v0.2 - v0.3.1 should correctly update the did records "did": "did:peer:1zQmRnGYmYBdSinH2953ZgfHWEpqp5W6kJmmYBgRaCs4Yudx", "didDocument": { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", ], "authentication": [ { @@ -522,7 +522,7 @@ exports[`UpdateAssistant | v0.2 - v0.3.1 should correctly update the did records "did": "did:peer:1zQmb9oo8fn8AZ7rWh1DAfTbM3mnPp9Hq2bJFdHiqjnZX2Ce", "didDocument": { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", ], "authentication": [ { @@ -585,7 +585,7 @@ exports[`UpdateAssistant | v0.2 - v0.3.1 should correctly update the did records "did": "did:peer:1zQmSzC6uhWYcxtkr2fBepr66kjvSHuRsSfbmei7nrGj7HfN", "didDocument": { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", ], "authentication": [ { @@ -648,7 +648,7 @@ exports[`UpdateAssistant | v0.2 - v0.3.1 should correctly update the did records "did": "did:peer:1zQmPaCELen1JWMWmhVZS16nDmrAC9yGKQcJCcBs5spXakA3", "didDocument": { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", ], "authentication": [ { @@ -711,7 +711,7 @@ exports[`UpdateAssistant | v0.2 - v0.3.1 should correctly update the did records "did": "did:peer:1zQmUo1HoiciJS628w4SHweg4Pzs4bZLM4KLZgroSmUwBw7S", "didDocument": { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", ], "authentication": [ { diff --git a/packages/core/src/storage/migration/updates/0.1-0.2/__tests__/__fixtures__/didPeer4kgVt6CidfKgo1MoWMqsQX.json b/packages/core/src/storage/migration/updates/0.1-0.2/__tests__/__fixtures__/didPeer4kgVt6CidfKgo1MoWMqsQX.json index 2d5c1298a6..de1cc0ebe7 100644 --- a/packages/core/src/storage/migration/updates/0.1-0.2/__tests__/__fixtures__/didPeer4kgVt6CidfKgo1MoWMqsQX.json +++ b/packages/core/src/storage/migration/updates/0.1-0.2/__tests__/__fixtures__/didPeer4kgVt6CidfKgo1MoWMqsQX.json @@ -1,5 +1,5 @@ { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "verificationMethod": [ { "id": "#5sD8ttxn", @@ -27,5 +27,5 @@ } ], "authentication": ["#5sD8ttxn"], - "id": "did:peer:1zQmcP5YaLwnwfYto5eFGmrV4nFMPVz7LPHHi63zSk7U9CL7" + "id": "did:peer:1zQmTvz3nXjrAd1BE7NUA8nokDKzB49Wi4eYthpJisT8QuTo" } diff --git a/packages/core/src/storage/migration/updates/0.1-0.2/__tests__/__fixtures__/didPeerR1xKJw17sUoXhejEpugMYJ.json b/packages/core/src/storage/migration/updates/0.1-0.2/__tests__/__fixtures__/didPeerR1xKJw17sUoXhejEpugMYJ.json index ff38887fe0..bfbe9b6ffd 100644 --- a/packages/core/src/storage/migration/updates/0.1-0.2/__tests__/__fixtures__/didPeerR1xKJw17sUoXhejEpugMYJ.json +++ b/packages/core/src/storage/migration/updates/0.1-0.2/__tests__/__fixtures__/didPeerR1xKJw17sUoXhejEpugMYJ.json @@ -1,5 +1,5 @@ { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "verificationMethod": [ { "id": "#E6D1m3eE", @@ -26,5 +26,5 @@ "routingKeys": [] } ], - "id": "did:peer:1zQmU1AYVxXvPeQujvUxnSVGUMsqvFNQHN2TMMMQz6TbXor8" + "id": "did:peer:1zQmVE7oiMPo9GBMkpfN8DNZhCnqbqEbCmkGapKQosJ3KEeE" } diff --git a/packages/core/src/storage/migration/updates/0.1-0.2/__tests__/__fixtures__/legacyDidPeer4kgVt6CidfKgo1MoWMqsQX.json b/packages/core/src/storage/migration/updates/0.1-0.2/__tests__/__fixtures__/legacyDidPeer4kgVt6CidfKgo1MoWMqsQX.json index 1fc537664e..700a356166 100644 --- a/packages/core/src/storage/migration/updates/0.1-0.2/__tests__/__fixtures__/legacyDidPeer4kgVt6CidfKgo1MoWMqsQX.json +++ b/packages/core/src/storage/migration/updates/0.1-0.2/__tests__/__fixtures__/legacyDidPeer4kgVt6CidfKgo1MoWMqsQX.json @@ -1,5 +1,5 @@ { - "@context": "https://w3id.org/did/v1", + "@context": "https://www.w3.org/ns/did/v1", "id": "4kgVt6CidfKgo1MoWMqsQX", "service": [ { diff --git a/packages/core/src/storage/migration/updates/0.1-0.2/__tests__/__fixtures__/legacyDidPeerR1xKJw17sUoXhejEpugMYJ.json b/packages/core/src/storage/migration/updates/0.1-0.2/__tests__/__fixtures__/legacyDidPeerR1xKJw17sUoXhejEpugMYJ.json index a9c34bdf48..fb04ba80e6 100644 --- a/packages/core/src/storage/migration/updates/0.1-0.2/__tests__/__fixtures__/legacyDidPeerR1xKJw17sUoXhejEpugMYJ.json +++ b/packages/core/src/storage/migration/updates/0.1-0.2/__tests__/__fixtures__/legacyDidPeerR1xKJw17sUoXhejEpugMYJ.json @@ -1,5 +1,5 @@ { - "@context": "https://w3id.org/did/v1", + "@context": "https://www.w3.org/ns/did/v1", "id": "R1xKJw17sUoXhejEpugMYJ", "publicKey": [ { diff --git a/packages/core/src/utils/__tests__/JsonTransformer.test.ts b/packages/core/src/utils/__tests__/JsonTransformer.test.ts index 0d7158fb80..7c6f1a5ad2 100644 --- a/packages/core/src/utils/__tests__/JsonTransformer.test.ts +++ b/packages/core/src/utils/__tests__/JsonTransformer.test.ts @@ -72,7 +72,7 @@ describe('JsonTransformer', () => { it('transforms JSON string to nested class instance', () => { const didDocumentString = - '{"@context":["https://w3id.org/did/v1"],"id":"did:peer:1zQmRYBx1pL86DrsxoJ2ZD3w42d7Ng92ErPgFsCSqg8Q1h4i","controller": "nowYouAreUnderMyControl", "keyAgreement":[{"id":"#6MkqRYqQiSgvZQdnBytw86Qbs2ZWUkGv22od935YF4s8M7V", "controller": "#id", "type":"Ed25519VerificationKey2018","publicKeyBase58":"ByHnpUCFb1vAfh9CFZ8ZkmUZguURW8nSw889hy6rD8L7"}],"service":[{"id":"#service-0","type":"did-communication","serviceEndpoint":"https://example.com/endpoint","recipientKeys":["#6MkqRYqQiSgvZQdnBytw86Qbs2ZWUkGv22od935YF4s8M7V"],"routingKeys":["did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH#z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH"],"accept":["didcomm/v2","didcomm/aip2;env=rfc587"]}]}' + '{"@context":["https://www.w3.org/ns/did/v1"],"id":"did:peer:1zQmRYBx1pL86DrsxoJ2ZD3w42d7Ng92ErPgFsCSqg8Q1h4i","controller": "nowYouAreUnderMyControl", "keyAgreement":[{"id":"#6MkqRYqQiSgvZQdnBytw86Qbs2ZWUkGv22od935YF4s8M7V", "controller": "#id", "type":"Ed25519VerificationKey2018","publicKeyBase58":"ByHnpUCFb1vAfh9CFZ8ZkmUZguURW8nSw889hy6rD8L7"}],"service":[{"id":"#service-0","type":"did-communication","serviceEndpoint":"https://example.com/endpoint","recipientKeys":["#6MkqRYqQiSgvZQdnBytw86Qbs2ZWUkGv22od935YF4s8M7V"],"routingKeys":["did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH#z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH"],"accept":["didcomm/v2","didcomm/aip2;env=rfc587"]}]}' const didDocument = JsonTransformer.deserialize(didDocumentString, DidDocument) diff --git a/packages/indy-vdr/src/dids/__tests__/IndyVdrIndyDidRegistrar.test.ts b/packages/indy-vdr/src/dids/__tests__/IndyVdrIndyDidRegistrar.test.ts index 136ae0b3a8..b8c7450d61 100644 --- a/packages/indy-vdr/src/dids/__tests__/IndyVdrIndyDidRegistrar.test.ts +++ b/packages/indy-vdr/src/dids/__tests__/IndyVdrIndyDidRegistrar.test.ts @@ -251,7 +251,7 @@ describe('IndyVdrIndyDidRegistrar', () => { state: 'finished', did: 'did:indy:pool1:B6xaJg1c2xU3D9ppCtt1CZ', didDocument: { - '@context': ['https://w3id.org/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1'], + '@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1'], id: 'did:indy:pool1:B6xaJg1c2xU3D9ppCtt1CZ', verificationMethod: [ { @@ -323,7 +323,7 @@ describe('IndyVdrIndyDidRegistrar', () => { state: 'finished', did: 'did:indy:pool1:B6xaJg1c2xU3D9ppCtt1CZ', didDocument: { - '@context': ['https://w3id.org/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1'], + '@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1'], id: 'did:indy:pool1:B6xaJg1c2xU3D9ppCtt1CZ', verificationMethod: [ { @@ -462,7 +462,7 @@ describe('IndyVdrIndyDidRegistrar', () => { did: 'did:indy:pool1:B6xaJg1c2xU3D9ppCtt1CZ', didDocument: { '@context': [ - 'https://w3id.org/did/v1', + 'https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1', 'https://w3id.org/security/suites/x25519-2019/v1', 'https://didcomm.org/messaging/contexts/v2', @@ -625,7 +625,7 @@ describe('IndyVdrIndyDidRegistrar', () => { did: 'did:indy:pool1:B6xaJg1c2xU3D9ppCtt1CZ', didDocument: { '@context': [ - 'https://w3id.org/did/v1', + 'https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1', 'https://w3id.org/security/suites/x25519-2019/v1', 'https://didcomm.org/messaging/contexts/v2', diff --git a/packages/indy-vdr/src/dids/__tests__/__fixtures__/didExample123.json b/packages/indy-vdr/src/dids/__tests__/__fixtures__/didExample123.json index c26715ddc1..5062dd9c5b 100644 --- a/packages/indy-vdr/src/dids/__tests__/__fixtures__/didExample123.json +++ b/packages/indy-vdr/src/dids/__tests__/__fixtures__/didExample123.json @@ -1,5 +1,5 @@ { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "id": "did:example:123", "alsoKnownAs": ["did:example:456"], "controller": ["did:example:456"], diff --git a/packages/indy-vdr/src/dids/__tests__/__fixtures__/didExample123extracontent.json b/packages/indy-vdr/src/dids/__tests__/__fixtures__/didExample123extracontent.json index 81397021cd..bcc06e5775 100644 --- a/packages/indy-vdr/src/dids/__tests__/__fixtures__/didExample123extracontent.json +++ b/packages/indy-vdr/src/dids/__tests__/__fixtures__/didExample123extracontent.json @@ -1,5 +1,5 @@ { - "@context": ["https://w3id.org/did/v1"], + "@context": ["https://www.w3.org/ns/did/v1"], "alsoKnownAs": ["did:example:456"], "controller": ["did:example:456"], "verificationMethod": [ diff --git a/packages/indy-vdr/src/dids/__tests__/__fixtures__/didIndyLjgpST2rjsoxYegQDRm7EL.json b/packages/indy-vdr/src/dids/__tests__/__fixtures__/didIndyLjgpST2rjsoxYegQDRm7EL.json index 49e43fa742..e9f7c65e00 100644 --- a/packages/indy-vdr/src/dids/__tests__/__fixtures__/didIndyLjgpST2rjsoxYegQDRm7EL.json +++ b/packages/indy-vdr/src/dids/__tests__/__fixtures__/didIndyLjgpST2rjsoxYegQDRm7EL.json @@ -1,6 +1,6 @@ { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/ed25519-2018/v1", "https://w3id.org/security/suites/x25519-2019/v1" ], diff --git a/packages/indy-vdr/src/dids/__tests__/__fixtures__/didIndyR1xKJw17sUoXhejEpugMYJ.json b/packages/indy-vdr/src/dids/__tests__/__fixtures__/didIndyR1xKJw17sUoXhejEpugMYJ.json index 68874b6fc2..2204042fa7 100644 --- a/packages/indy-vdr/src/dids/__tests__/__fixtures__/didIndyR1xKJw17sUoXhejEpugMYJ.json +++ b/packages/indy-vdr/src/dids/__tests__/__fixtures__/didIndyR1xKJw17sUoXhejEpugMYJ.json @@ -1,5 +1,5 @@ { - "@context": ["https://w3id.org/did/v1", "https://w3id.org/security/suites/ed25519-2018/v1"], + "@context": ["https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/ed25519-2018/v1"], "id": "did:indy:ns1:R1xKJw17sUoXhejEpugMYJ", "verificationMethod": [ { diff --git a/packages/indy-vdr/src/dids/__tests__/__fixtures__/didIndyWJz9mHyW9BZksioQnRsrAo.json b/packages/indy-vdr/src/dids/__tests__/__fixtures__/didIndyWJz9mHyW9BZksioQnRsrAo.json index 2a58c356ca..40e9bbcff3 100644 --- a/packages/indy-vdr/src/dids/__tests__/__fixtures__/didIndyWJz9mHyW9BZksioQnRsrAo.json +++ b/packages/indy-vdr/src/dids/__tests__/__fixtures__/didIndyWJz9mHyW9BZksioQnRsrAo.json @@ -1,6 +1,6 @@ { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/ed25519-2018/v1", "https://w3id.org/security/suites/x25519-2019/v1", "https://didcomm.org/messaging/contexts/v2" diff --git a/packages/indy-vdr/src/dids/__tests__/__fixtures__/didSovR1xKJw17sUoXhejEpugMYJ.json b/packages/indy-vdr/src/dids/__tests__/__fixtures__/didSovR1xKJw17sUoXhejEpugMYJ.json index 6a6e4ed706..73214b6668 100644 --- a/packages/indy-vdr/src/dids/__tests__/__fixtures__/didSovR1xKJw17sUoXhejEpugMYJ.json +++ b/packages/indy-vdr/src/dids/__tests__/__fixtures__/didSovR1xKJw17sUoXhejEpugMYJ.json @@ -1,6 +1,6 @@ { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/ed25519-2018/v1", "https://w3id.org/security/suites/x25519-2019/v1" ], diff --git a/packages/indy-vdr/src/dids/__tests__/__fixtures__/didSovWJz9mHyW9BZksioQnRsrAo.json b/packages/indy-vdr/src/dids/__tests__/__fixtures__/didSovWJz9mHyW9BZksioQnRsrAo.json index 7b74e0587f..bbba51d917 100644 --- a/packages/indy-vdr/src/dids/__tests__/__fixtures__/didSovWJz9mHyW9BZksioQnRsrAo.json +++ b/packages/indy-vdr/src/dids/__tests__/__fixtures__/didSovWJz9mHyW9BZksioQnRsrAo.json @@ -1,6 +1,6 @@ { "@context": [ - "https://w3id.org/did/v1", + "https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/ed25519-2018/v1", "https://w3id.org/security/suites/x25519-2019/v1", "https://didcomm.org/messaging/contexts/v2" diff --git a/packages/indy-vdr/tests/indy-vdr-did-registrar.e2e.test.ts b/packages/indy-vdr/tests/indy-vdr-did-registrar.e2e.test.ts index dc5521653c..ce5dee6a9a 100644 --- a/packages/indy-vdr/tests/indy-vdr-did-registrar.e2e.test.ts +++ b/packages/indy-vdr/tests/indy-vdr-did-registrar.e2e.test.ts @@ -98,7 +98,7 @@ describe('Indy VDR Indy Did Registrar', () => { state: 'finished', did: expect.stringMatching(didIndyRegex), didDocument: { - '@context': ['https://w3id.org/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1'], + '@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1'], id: expect.stringMatching(didIndyRegex), alsoKnownAs: undefined, controller: undefined, @@ -130,7 +130,7 @@ describe('Indy VDR Indy Did Registrar', () => { }) expect(JsonTransformer.toJSON(didDocument)).toMatchObject({ - '@context': ['https://w3id.org/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1'], + '@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1'], id: did, alsoKnownAs: undefined, controller: undefined, @@ -214,7 +214,7 @@ describe('Indy VDR Indy Did Registrar', () => { state: 'finished', did, didDocument: { - '@context': ['https://w3id.org/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1'], + '@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1'], id: did, alsoKnownAs: undefined, controller: undefined, @@ -243,7 +243,7 @@ describe('Indy VDR Indy Did Registrar', () => { }) expect(JsonTransformer.toJSON(didDocument)).toMatchObject({ - '@context': ['https://w3id.org/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1'], + '@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1'], id: did, alsoKnownAs: undefined, controller: undefined, @@ -292,7 +292,7 @@ describe('Indy VDR Indy Did Registrar', () => { state: 'finished', did, didDocument: { - '@context': ['https://w3id.org/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1'], + '@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1'], id: did, alsoKnownAs: undefined, controller: undefined, @@ -321,7 +321,7 @@ describe('Indy VDR Indy Did Registrar', () => { }) expect(JsonTransformer.toJSON(didDocument)).toMatchObject({ - '@context': ['https://w3id.org/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1'], + '@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1'], id: did, alsoKnownAs: undefined, controller: undefined, @@ -393,7 +393,7 @@ describe('Indy VDR Indy Did Registrar', () => { const expectedDidDocument = { '@context': [ - 'https://w3id.org/did/v1', + 'https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1', 'https://w3id.org/security/suites/x25519-2019/v1', 'https://didcomm.org/messaging/contexts/v2', @@ -545,7 +545,7 @@ describe('Indy VDR Indy Did Registrar', () => { const expectedDidDocument = { '@context': [ - 'https://w3id.org/did/v1', + 'https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1', 'https://w3id.org/security/suites/x25519-2019/v1', 'https://didcomm.org/messaging/contexts/v2', diff --git a/packages/indy-vdr/tests/indy-vdr-indy-did-resolver.e2e.test.ts b/packages/indy-vdr/tests/indy-vdr-indy-did-resolver.e2e.test.ts index b5386cfe79..c770e4ba48 100644 --- a/packages/indy-vdr/tests/indy-vdr-indy-did-resolver.e2e.test.ts +++ b/packages/indy-vdr/tests/indy-vdr-indy-did-resolver.e2e.test.ts @@ -40,7 +40,7 @@ describe('indy-vdr DID Resolver E2E', () => { expect(JsonTransformer.toJSON(didResult)).toMatchObject({ didDocument: { - '@context': ['https://w3id.org/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1'], + '@context': ['https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1'], id: did, alsoKnownAs: undefined, controller: undefined, @@ -82,7 +82,7 @@ describe('indy-vdr DID Resolver E2E', () => { expect(JsonTransformer.toJSON(didResult)).toMatchObject({ didDocument: { '@context': [ - 'https://w3id.org/did/v1', + 'https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1', 'https://w3id.org/security/suites/x25519-2019/v1', 'https://didcomm.org/messaging/contexts/v2', diff --git a/packages/indy-vdr/tests/indy-vdr-sov-did-resolver.e2e.test.ts b/packages/indy-vdr/tests/indy-vdr-sov-did-resolver.e2e.test.ts index 427ff542f0..8bdd07af30 100644 --- a/packages/indy-vdr/tests/indy-vdr-sov-did-resolver.e2e.test.ts +++ b/packages/indy-vdr/tests/indy-vdr-sov-did-resolver.e2e.test.ts @@ -42,7 +42,7 @@ describe('Indy VDR Sov DID Resolver', () => { expect(JsonTransformer.toJSON(didResult)).toMatchObject({ didDocument: { '@context': [ - 'https://w3id.org/did/v1', + 'https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1', 'https://w3id.org/security/suites/x25519-2019/v1', ], @@ -94,7 +94,7 @@ describe('Indy VDR Sov DID Resolver', () => { expect(JsonTransformer.toJSON(didResult)).toMatchObject({ didDocument: { '@context': [ - 'https://w3id.org/did/v1', + 'https://www.w3.org/ns/did/v1', 'https://w3id.org/security/suites/ed25519-2018/v1', 'https://w3id.org/security/suites/x25519-2019/v1', 'https://didcomm.org/messaging/contexts/v2',