From edd48cf065c1f9c6b478bd8ea0bd85361d3090ad Mon Sep 17 00:00:00 2001 From: Exulansis Date: Fri, 29 Apr 2022 14:06:54 +0200 Subject: [PATCH 1/4] Updated registrar dependency as well as typescript, ts-node versions + build errors --- package.json | 8 ++++---- tests/credential/signedCredential.test.ts | 3 +-- tests/identityWallet/identityWallet.create.test.ts | 3 +-- tests/identityWallet/identityWallet.test.ts | 3 +-- tests/identityWallet/validateJWT.test.ts | 3 +-- tests/integration/authentication.integration.ts | 3 +-- tests/integration/credentialOffer.integration.ts | 3 +-- tests/integration/credentialShare.integration.ts | 3 +-- tests/integration/identity.integration.ts | 3 +-- tests/interactionTokens/jsonWebToken.test.ts | 3 +-- tests/linkedData/index.test.ts | 3 +-- tests/utils/parseAndValidate.test.ts | 3 +-- tests/vaultedKeyProvider/softwareProvider.test.ts | 3 +-- ts/utils/contexts.ts | 2 +- ts/utils/crypto.ts | 2 +- tsconfig.json | 1 + 16 files changed, 19 insertions(+), 30 deletions(-) diff --git a/package.json b/package.json index 34180193..fcc48670 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "homepage": "https://github.com/jolocom/jolocom-lib#readme", "dependencies": { "@hawkingnetwork/ed25519-hd-key-rn": "^1.0.1", - "@jolocom/jolo-did-registrar": "^1.0.0", + "@jolocom/jolo-did-registrar": "1.0.5", "@jolocom/jolo-did-resolver": "^1.0.0", "@jolocom/local-resolver-registrar": "^1.0.1", "@jolocom/native-core": "^1.0.0", @@ -75,7 +75,7 @@ "@types/sinon": "^9.0.5", "bip39": "^3.0.2", "class-transformer": "0.3.1", - "create-hash": "^1.2.0", + "create-hash": "1.2.0", "did-resolver": "2.0.0", "ethereumjs-util": "^6.1.0", "hdkey": "^2.0.1", @@ -111,9 +111,9 @@ "sinon": "^9.0.3", "sinon-chai": "^3.5.0", "source-map-support": "^0.5.19", - "ts-node": "^9.0.0", + "ts-node": "^10.7.0", "typedoc": "^0.14.2", - "typescript": "3.6.3" + "typescript": "4.6.4" }, "config": { "commitizen": { diff --git a/tests/credential/signedCredential.test.ts b/tests/credential/signedCredential.test.ts index 04dc8bb6..21951349 100644 --- a/tests/credential/signedCredential.test.ts +++ b/tests/credential/signedCredential.test.ts @@ -1,6 +1,5 @@ import * as chai from 'chai' import * as sinon from 'sinon' -import * as sinonChai from 'sinon-chai' import { SignedCredential } from '../../ts/credentials/signedCredential/signedCredential' import { mockKeyId, @@ -16,7 +15,7 @@ import * as crypto from '../../ts/utils/crypto' import * as nodeCrypto from 'crypto' import { ErrorCodes } from '../../ts/errors' -chai.use(sinonChai) +chai.use(require('sinon-chai')) describe('SignedCredential', () => { const sandbox = sinon.createSandbox() diff --git a/tests/identityWallet/identityWallet.create.test.ts b/tests/identityWallet/identityWallet.create.test.ts index 530eeda3..935cb708 100644 --- a/tests/identityWallet/identityWallet.create.test.ts +++ b/tests/identityWallet/identityWallet.create.test.ts @@ -1,5 +1,4 @@ import * as chai from 'chai' -import * as sinonChai from 'sinon-chai' import { mockSeed, mockPass, mockJunDid, mockJoloDid } from '../data/didDocument.data' import { JSONWebToken } from '../../ts/interactionTokens/JSONWebToken' import { LocalDidMethod } from '../../ts/didMethods/local/index' @@ -10,7 +9,7 @@ import { authAsIdentityFromKeyProvider } from '../../ts/didMethods/utils' import { recoverJoloKeyProviderFromSeed } from '../../ts/didMethods/jolo/recovery' import { walletUtils } from '@jolocom/native-core' -chai.use(sinonChai) +chai.use(require('sinon-chai')) const expect = chai.expect describe('IdentityWallet', () => { diff --git a/tests/identityWallet/identityWallet.test.ts b/tests/identityWallet/identityWallet.test.ts index 4fdafefd..2b5dcbe2 100644 --- a/tests/identityWallet/identityWallet.test.ts +++ b/tests/identityWallet/identityWallet.test.ts @@ -1,6 +1,5 @@ import * as chai from 'chai' import * as sinon from 'sinon' -import * as sinonChai from 'sinon-chai' import { IdentityWallet } from '../../ts/identityWallet/identityWallet' import { Credential } from '../../ts/credentials/credential/credential' import { SignedCredential } from '../../ts/credentials/signedCredential/signedCredential' @@ -17,7 +16,7 @@ import { ErrorCodes } from '../../ts/errors' import { IVaultedKeyProvider } from '@jolocom/vaulted-key-provider' import { emailVerifiableCredential } from '../data/credential/signedCredential.data' -chai.use(sinonChai) +chai.use(require('sinon-chai')) const expect = chai.expect /* Saves some space during stubbing, helper functions */ diff --git a/tests/identityWallet/validateJWT.test.ts b/tests/identityWallet/validateJWT.test.ts index 22fdb4b6..35a7f414 100644 --- a/tests/identityWallet/validateJWT.test.ts +++ b/tests/identityWallet/validateJWT.test.ts @@ -1,6 +1,5 @@ import * as chai from 'chai' import * as sinon from 'sinon' -import * as sinonChai from 'sinon-chai' import { IdentityWallet } from '../../ts/identityWallet/identityWallet' import { Identity } from '../../ts/identity/identity' import { didDocumentJSON, mockKeyId } from '../data/didDocument.data' @@ -15,7 +14,7 @@ import { JolocomResolver } from '../../ts/didMethods/jolo/resolver' import { IVaultedKeyProvider } from '@jolocom/vaulted-key-provider' import * as validationUtils from '../../ts/utils/validation' -chai.use(sinonChai) +chai.use(require('sinon-chai')) describe('IdentityWallet validate JWT', () => { const sandbox = sinon.createSandbox() diff --git a/tests/integration/authentication.integration.ts b/tests/integration/authentication.integration.ts index 9dab8d9f..2ae369f2 100644 --- a/tests/integration/authentication.integration.ts +++ b/tests/integration/authentication.integration.ts @@ -1,5 +1,4 @@ import * as chai from 'chai' -import * as sinonChai from 'sinon-chai' import { userPass, servicePass } from './integration.data' import { JSONWebToken } from '../../ts/interactionTokens/JSONWebToken' import { keyIdToDid } from '../../ts/utils/helper' @@ -11,7 +10,7 @@ import { } from './identity.integration' import { parseAndValidate } from '../../ts/parse/parseAndValidate' -chai.use(sinonChai) +chai.use(require('sinon-chai')) const expect = chai.expect describe('Integration Test - Token interaction flow Authentication', () => { diff --git a/tests/integration/credentialOffer.integration.ts b/tests/integration/credentialOffer.integration.ts index a6368441..dbeb8327 100644 --- a/tests/integration/credentialOffer.integration.ts +++ b/tests/integration/credentialOffer.integration.ts @@ -1,5 +1,4 @@ import * as chai from 'chai' -import * as sinonChai from 'sinon-chai' import { userPass, servicePass, emailCredJSON } from './integration.data' import { JSONWebToken } from '../../ts/interactionTokens/JSONWebToken' import { keyIdToDid } from '../../ts/utils/helper' @@ -19,7 +18,7 @@ import { CredentialOfferResponse } from '../../ts/interactionTokens/credentialOf import { validateDigestable } from '../../ts/utils/validation' import { parseAndValidate } from '../../ts/parse/parseAndValidate' -chai.use(sinonChai) +chai.use(require('sinon-chai')) const expect = chai.expect describe('Integration Test - Token interaction flow Credential Offer', () => { diff --git a/tests/integration/credentialShare.integration.ts b/tests/integration/credentialShare.integration.ts index 043ecd4d..8436d7d7 100644 --- a/tests/integration/credentialShare.integration.ts +++ b/tests/integration/credentialShare.integration.ts @@ -1,5 +1,4 @@ import * as chai from 'chai' -import * as sinonChai from 'sinon-chai' import { userPass, servicePass, @@ -16,7 +15,7 @@ import { } from './identity.integration' import { parseAndValidate } from '../../ts/parse/parseAndValidate' -chai.use(sinonChai) +chai.use(require('sinon-chai')) const expect = chai.expect describe('Integration Test - Token interaction flow Credential Request and Response', () => { diff --git a/tests/integration/identity.integration.ts b/tests/integration/identity.integration.ts index b28d0bf6..9442b6ad 100644 --- a/tests/integration/identity.integration.ts +++ b/tests/integration/identity.integration.ts @@ -1,5 +1,4 @@ import * as chai from 'chai' -import * as sinonChai from 'sinon-chai' import { IdentityWallet } from '../../ts/identityWallet/identityWallet' import { userPass, @@ -18,7 +17,7 @@ import { SoftwareKeyProvider } from '@jolocom/vaulted-key-provider' import { walletUtils } from '@jolocom/native-core' import { PublicKeySection } from '../../ts/identity/didDocument/sections' -chai.use(sinonChai) +chai.use(require('sinon-chai')) const expect = chai.expect /* global before and after hook for integration tests & shared variables */ diff --git a/tests/interactionTokens/jsonWebToken.test.ts b/tests/interactionTokens/jsonWebToken.test.ts index 4c84c6aa..6b751455 100644 --- a/tests/interactionTokens/jsonWebToken.test.ts +++ b/tests/interactionTokens/jsonWebToken.test.ts @@ -1,7 +1,6 @@ import { expect } from 'chai' import * as sinon from 'sinon' import * as chai from 'chai' -import * as sinonChai from 'sinon-chai' import { JSONWebToken } from '../../ts/interactionTokens/JSONWebToken' import { CredentialRequest } from '../../ts/interactionTokens/credentialRequest' import { simpleCredRequestJSON } from '../data/interactionTokens/credentialRequest.data' @@ -12,7 +11,7 @@ import { } from '../data/interactionTokens/jsonWebToken.data' import { InteractionType } from '../../ts/interactionTokens/types' import { mockDid } from '../data/didDocument.data' -chai.use(sinonChai) +chai.use(require('sinon-chai')) describe('JSONWebToken', () => { let clock diff --git a/tests/linkedData/index.test.ts b/tests/linkedData/index.test.ts index ed1f6213..1251ecbc 100644 --- a/tests/linkedData/index.test.ts +++ b/tests/linkedData/index.test.ts @@ -1,11 +1,10 @@ import * as chai from 'chai' -import * as sinonChai from 'sinon-chai' import { validateJsonLd } from '../../ts/linkedData' import { Identity } from '../../ts/identity/identity' import { DidDocument } from '../../ts/identity/didDocument/didDocument' import { IResolver } from '../../ts/didMethods/types' -chai.use(sinonChai) +chai.use(require('sinon-chai')) const expect = chai.expect const DID_DOC_V0 = { diff --git a/tests/utils/parseAndValidate.test.ts b/tests/utils/parseAndValidate.test.ts index b2f5f930..f189bed8 100644 --- a/tests/utils/parseAndValidate.test.ts +++ b/tests/utils/parseAndValidate.test.ts @@ -1,5 +1,4 @@ import * as chai from 'chai' -import * as sinonChai from 'sinon-chai' import { parseAndValidate } from '../../ts/parse/parseAndValidate' import { testDidDoc0, @@ -17,7 +16,7 @@ import { DidDocument } from '../../ts/identity/didDocument/didDocument' import { SignedCredential } from '../../ts/credentials/signedCredential/signedCredential' import { Identity } from '../../ts/identity/identity' import { JSONWebToken } from '../../ts/interactionTokens/JSONWebToken' -chai.use(sinonChai) +chai.use(require('sinon-chai')) const expect = chai.expect // TODO Add vectors diff --git a/tests/vaultedKeyProvider/softwareProvider.test.ts b/tests/vaultedKeyProvider/softwareProvider.test.ts index de03ae10..25eac30e 100644 --- a/tests/vaultedKeyProvider/softwareProvider.test.ts +++ b/tests/vaultedKeyProvider/softwareProvider.test.ts @@ -1,7 +1,6 @@ import * as chai from 'chai' import * as crypto from 'crypto' import * as sinon from 'sinon' -import * as sinonChai from 'sinon-chai' import { SignedCredential } from '../../ts/credentials/signedCredential/signedCredential' import { testSeed, @@ -25,7 +24,7 @@ import { publicProfileCredJSON, emailCredential } from '../data/identity.data' import { mockDid } from '../data/didDocument.data' import { ErrorCodes } from '../../ts/errors' -chai.use(sinonChai) +chai.use(require('sinon-chai')) describe('Software Vaulted Key Provider', () => { // const vault = SoftwareKeyProvider.fromSeed( // testSeed, diff --git a/ts/utils/contexts.ts b/ts/utils/contexts.ts index 9b0ef06b..8be8d678 100644 --- a/ts/utils/contexts.ts +++ b/ts/utils/contexts.ts @@ -30,8 +30,8 @@ export const defaultContext = [ /* Expanded default context for did documents, more verbose, but works in offline use cases */ export const defaultContextIdentity: ContextEntry[] = [ - //@ts-ignore, the verson is an int, which is not foreseen by the ContextEntry type { + //@ts-ignore, the verson is an int, which is not foreseen by the ContextEntry type '@version': 1.1, id: '@id', type: '@type', diff --git a/ts/utils/crypto.ts b/ts/utils/crypto.ts index c5b6b2fd..fab62982 100644 --- a/ts/utils/crypto.ts +++ b/ts/utils/crypto.ts @@ -1,4 +1,4 @@ -import * as createHash from 'create-hash' +import createHash from 'create-hash' import { getCryptoProvider } from '@jolocom/vaulted-key-provider' import { cryptoUtils } from '@jolocom/native-core' diff --git a/tsconfig.json b/tsconfig.json index 4f0fb9a8..61bba1d3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,7 @@ "removeComments": true, "moduleResolution": "node", "noLib": false, + "esModuleInterop": true, "preserveConstEnums": true, "declaration": true, "sourceMap": true, From 346b24b26fd15f46e73507b3b864bf09455e2388 Mon Sep 17 00:00:00 2001 From: Exulansis Date: Fri, 29 Apr 2022 14:12:49 +0200 Subject: [PATCH 2/4] Updated build files --- js/credentials/credential/credential.d.ts | 15 +- .../signedCredential/signedCredential.d.ts | 35 +- js/identity/didDocument/didDocument.d.ts | 32 +- .../sections/publicKeySection.d.ts | 12 +- .../sections/serviceEndpointsSection.d.ts | 12 +- js/identity/identity.d.ts | 13 +- js/identityWallet/identityWallet.d.ts | 28 +- js/interactionTokens/JSONWebToken.d.ts | 30 +- js/interactionTokens/authentication.d.ts | 6 +- .../credentialOfferRequest.d.ts | 8 +- .../credentialOfferResponse.d.ts | 6 +- js/interactionTokens/credentialRequest.d.ts | 8 +- js/interactionTokens/credentialResponse.d.ts | 6 +- js/interactionTokens/credentialsReceive.d.ts | 3 +- js/interactionTokens/types.d.ts | 7 +- js/linkedData/index.d.ts | 4 +- .../suites/ecdsaKoblitzSignature2016.d.ts | 17 +- package.json | 2 +- yarn.lock | 518 +++++++++++++++++- 19 files changed, 653 insertions(+), 109 deletions(-) diff --git a/js/credentials/credential/credential.d.ts b/js/credentials/credential/credential.d.ts index 190d78bb..bdb1ef30 100644 --- a/js/credentials/credential/credential.d.ts +++ b/js/credentials/credential/credential.d.ts @@ -8,11 +8,16 @@ export declare class Credential { private _type; private _claim; private _name; - id: string; - claim: IClaimSection; - type: string[]; - name: string; - context: JsonLdContext; + get id(): string; + set id(id: string); + get claim(): IClaimSection; + set claim(claim: IClaimSection); + get type(): string[]; + set type(type: string[]); + get name(): string; + set name(name: string); + get context(): JsonLdContext; + set context(context: JsonLdContext); static create({ metadata, claim, subject, }: ISignedCredCreationArgs): Credential; static fromJSON(json: ICredentialAttrs): Credential; toJSON(): ICredentialAttrs; diff --git a/js/credentials/signedCredential/signedCredential.d.ts b/js/credentials/signedCredential/signedCredential.d.ts index 85022780..c8b5e222 100644 --- a/js/credentials/signedCredential/signedCredential.d.ts +++ b/js/credentials/signedCredential/signedCredential.d.ts @@ -19,18 +19,29 @@ export declare class SignedCredential implements IDigestable { private _issued; private _expires?; private _proof; - context: JsonLdContext; - id: string; - issuer: string; - issued: Date; - type: string[]; - signature: string; - readonly signer: ISigner; - expires: Date; - proof: ILinkedDataSignature; - subject: string; - claim: IClaimSection; - name: string; + get context(): JsonLdContext; + set context(context: JsonLdContext); + get id(): string; + set id(id: string); + get issuer(): string; + set issuer(issuer: string); + get issued(): Date; + set issued(issued: Date); + get type(): string[]; + set type(type: string[]); + get signature(): string; + set signature(signature: string); + get signer(): ISigner; + get expires(): Date; + set expires(expiry: Date); + get proof(): ILinkedDataSignature; + set proof(proof: ILinkedDataSignature); + get subject(): string; + set subject(subject: string); + get claim(): IClaimSection; + set claim(claim: IClaimSection); + get name(): string; + set name(name: string); static create(credentialOptions: ISignedCredCreationArgs, issInfo: IIssInfo, expires?: Date): Promise; private prepareSignature; asBytes(): Promise; diff --git a/js/identity/didDocument/didDocument.d.ts b/js/identity/didDocument/didDocument.d.ts index f5de4e35..2faacb5f 100644 --- a/js/identity/didDocument/didDocument.d.ts +++ b/js/identity/didDocument/didDocument.d.ts @@ -15,18 +15,28 @@ export declare class DidDocument implements IDigestable { private _updated; private _proof; private _context; - specVersion: number; - context: ContextEntry[]; - did: string; - authentication: AuthenticationSection[]; - publicKey: PublicKeySection[]; + get specVersion(): number; + set specVersion(specVersion: number); + get context(): ContextEntry[]; + set context(context: ContextEntry[]); + get did(): string; + set did(did: string); + get authentication(): AuthenticationSection[]; + set authentication(authentication: AuthenticationSection[]); + get publicKey(): PublicKeySection[]; + set publicKey(value: PublicKeySection[]); findPublicKeySectionById(keyId: string): PublicKeySection; - service: ServiceEndpointsSection[]; - created: Date; - updated: Date; - readonly signer: ISigner; - signature: string; - proof: ILinkedDataSignature; + get service(): ServiceEndpointsSection[]; + set service(service: ServiceEndpointsSection[]); + get created(): Date; + set created(value: Date); + get updated(): Date; + set updated(value: Date); + get signer(): ISigner; + get signature(): string; + set signature(signature: string); + get proof(): ILinkedDataSignature; + set proof(proof: ILinkedDataSignature); addAuthKeyId(authenticationKeyId: string): void; addAuthKey(authenticationKey: PublicKeySection): void; addPublicKeySection(section: PublicKeySection): void; diff --git a/js/identity/didDocument/sections/publicKeySection.d.ts b/js/identity/didDocument/sections/publicKeySection.d.ts index f2f06891..41820ad2 100644 --- a/js/identity/didDocument/sections/publicKeySection.d.ts +++ b/js/identity/didDocument/sections/publicKeySection.d.ts @@ -6,10 +6,14 @@ export declare class PublicKeySection { private _type; private _controller; private _publicKeyHex; - controller: string; - id: string; - type: string; - publicKeyHex: string; + get controller(): string; + set controller(controller: string); + get id(): string; + set id(id: string); + get type(): string; + set type(type: string); + get publicKeyHex(): string; + set publicKeyHex(keyHex: string); static fromEcdsa(publicKey: Buffer, id: string, did: string): PublicKeySection; toJSON(): IPublicKeySectionAttrs; static fromJSON(json: IPublicKeySectionAttrs): PublicKeySection; diff --git a/js/identity/didDocument/sections/serviceEndpointsSection.d.ts b/js/identity/didDocument/sections/serviceEndpointsSection.d.ts index e2e6482e..20da4c87 100644 --- a/js/identity/didDocument/sections/serviceEndpointsSection.d.ts +++ b/js/identity/didDocument/sections/serviceEndpointsSection.d.ts @@ -5,10 +5,14 @@ export declare class ServiceEndpointsSection { protected _type: string; protected _serviceEndpoint: string; protected _description: string; - id: string; - type: string; - serviceEndpoint: string; - description: string; + get id(): string; + set id(id: string); + get type(): string; + set type(type: string); + get serviceEndpoint(): string; + set serviceEndpoint(service: string); + get description(): string; + set description(description: string); toJSON(): IServiceEndpointSectionAttrs; static fromJSON(json: IServiceEndpointSectionAttrs): ServiceEndpointsSection; } diff --git a/js/identity/identity.d.ts b/js/identity/identity.d.ts index dd8b1655..8e1d6086 100644 --- a/js/identity/identity.d.ts +++ b/js/identity/identity.d.ts @@ -10,11 +10,14 @@ interface IdentityAttributes { export declare class Identity { private _didDocument; private _publicProfileCredential?; - did: string; - didDocument: DidDocument; - readonly serviceEndpointSections: import("./didDocument/sections").ServiceEndpointsSection[]; - readonly publicKeySection: import("./didDocument/sections").PublicKeySection[]; - publicProfile: SignedCredential | undefined; + get did(): string; + set did(did: string); + get didDocument(): DidDocument; + set didDocument(didDocument: DidDocument); + get serviceEndpointSections(): import("./didDocument/sections").ServiceEndpointsSection[]; + get publicKeySection(): import("./didDocument/sections").PublicKeySection[]; + get publicProfile(): SignedCredential | undefined; + set publicProfile(publicProfile: SignedCredential | undefined); static fromDidDocument({ didDocument, publicProfile, }: IIdentityCreateArgs): Identity; toJSON(): IdentityAttributes; static fromJSON(json: IdentityAttributes): Identity; diff --git a/js/identityWallet/identityWallet.d.ts b/js/identityWallet/identityWallet.d.ts index 3efefc5f..a78ccaea 100644 --- a/js/identityWallet/identityWallet.d.ts +++ b/js/identityWallet/identityWallet.d.ts @@ -7,9 +7,11 @@ import { Identity } from '../identity/identity'; import { JSONWebToken } from '../interactionTokens/JSONWebToken'; import { Authentication } from '../interactionTokens/authentication'; import { CredentialRequest } from '../interactionTokens/credentialRequest'; +import { CredentialResponse } from '../interactionTokens/credentialResponse'; import { ISignedCredCreationArgs } from '../credentials/signedCredential/types'; import { CredentialOfferRequest } from '../interactionTokens/credentialOfferRequest'; import { CredentialOfferResponse } from '../interactionTokens/credentialOfferResponse'; +import { CredentialsReceive } from '../interactionTokens/credentialsReceive'; import { CredentialOfferRequestAttrs, CredentialOfferResponseAttrs, IAuthenticationAttrs, ICredentialRequestAttrs, ICredentialResponseAttrs, ICredentialsReceiveAttrs } from '../interactionTokens/interactionTokens.types'; import { KeyTypes } from '@jolocom/vaulted-key-provider'; import { IResolver } from '../didMethods/types'; @@ -22,10 +24,14 @@ export declare class IdentityWallet { private _identity; private _publicKeyMetadata; private _keyProvider; - did: string; - identity: Identity; - didDocument: import("../identity/didDocument/didDocument").DidDocument; - publicKeyMetadata: IKeyMetadata; + get did(): string; + set did(did: string); + get identity(): Identity; + set identity(identity: Identity); + get didDocument(): import("../identity/didDocument/didDocument").DidDocument; + set didDocument(didDocument: import("../identity/didDocument/didDocument").DidDocument); + get publicKeyMetadata(): IKeyMetadata; + set publicKeyMetadata(metadata: IKeyMetadata); constructor({ identity, publicKeyMetadata, vaultedKeyProvider, }: IIdentityWalletCreateArgs); private createSignedCred; private createMessage; @@ -52,15 +58,15 @@ export declare class IdentityWallet { }, pass: string, recieved?: JSONWebToken) => Promise>; interactionTokens: { request: { - auth: ({ expires, aud, pca, ...message }: WithExtraOptions>, pass: string) => Promise>; - offer: ({ expires, aud, pca, ...message }: WithExtraOptions, pass: string) => Promise>; - share: ({ expires, aud, pca, ...message }: WithExtraOptions, pass: string) => Promise>; + auth: ({ expires, aud, pca, ...message }: WithExtraOptions>, pass: string) => Promise>; + offer: ({ expires, aud, pca, ...message }: WithExtraOptions, pass: string) => Promise>; + share: ({ expires, aud, pca, ...message }: WithExtraOptions, pass: string) => Promise>; }; response: { - auth: ({ expires, aud, pca, ...message }: WithExtraOptions>, pass: string, recieved?: JSONWebToken) => Promise>; - offer: ({ expires, aud, pca, ...message }: WithExtraOptions, pass: string, recieved?: JSONWebToken) => Promise>; - share: ({ expires, aud, pca, ...message }: WithExtraOptions, pass: string, recieved?: JSONWebToken) => Promise>; - issue: ({ expires, aud, pca, ...message }: WithExtraOptions, pass: string, recieved?: JSONWebToken) => Promise>; + auth: ({ expires, aud, pca, ...message }: WithExtraOptions>, pass: string, recieved?: JSONWebToken) => Promise>; + offer: ({ expires, aud, pca, ...message }: WithExtraOptions, pass: string, recieved?: JSONWebToken) => Promise>; + share: ({ expires, aud, pca, ...message }: WithExtraOptions, pass: string, recieved?: JSONWebToken) => Promise>; + issue: ({ expires, aud, pca, ...message }: WithExtraOptions, pass: string, recieved?: JSONWebToken) => Promise>; }; }; }; diff --git a/js/interactionTokens/JSONWebToken.d.ts b/js/interactionTokens/JSONWebToken.d.ts index 79f5f232..b41d6a9a 100644 --- a/js/interactionTokens/JSONWebToken.d.ts +++ b/js/interactionTokens/JSONWebToken.d.ts @@ -23,17 +23,25 @@ export declare class JSONWebToken implements IDigestable { private _header; private _signature; private _payload; - payload: IPayloadSection; - signature: string; - issuer: string; - audience: string; - readonly issued: number; - readonly expires: number; - nonce: string; - interactionToken: T; - interactionType: string; - header: IJWTHeader; - readonly signer: { + get payload(): IPayloadSection; + set payload(payload: IPayloadSection); + get signature(): string; + set signature(signature: string); + get issuer(): string; + set issuer(issuer: string); + get audience(): string; + set audience(audience: string); + get issued(): number; + get expires(): number; + get nonce(): string; + set nonce(nonce: string); + get interactionToken(): T; + set interactionToken(interactionToken: T); + get interactionType(): string; + set interactionType(type: string); + get header(): IJWTHeader; + set header(jwtHeader: IJWTHeader); + get signer(): { did: string; keyId: string; }; diff --git a/js/interactionTokens/authentication.d.ts b/js/interactionTokens/authentication.d.ts index 973b49d3..da5f681c 100644 --- a/js/interactionTokens/authentication.d.ts +++ b/js/interactionTokens/authentication.d.ts @@ -2,8 +2,10 @@ import { IAuthenticationAttrs } from './interactionTokens.types'; export declare class Authentication { private _callbackURL; private _description; - callbackURL: string; - description: string; + get callbackURL(): string; + set callbackURL(callbackURL: string); + get description(): string; + set description(description: string); toJSON(): Record; static fromJSON(json: IAuthenticationAttrs): Authentication; } diff --git a/js/interactionTokens/credentialOfferRequest.d.ts b/js/interactionTokens/credentialOfferRequest.d.ts index 55846c55..84fbb8be 100644 --- a/js/interactionTokens/credentialOfferRequest.d.ts +++ b/js/interactionTokens/credentialOfferRequest.d.ts @@ -2,13 +2,15 @@ import { CredentialOffer, CredentialOfferInputRequest, CredentialOfferMetadata, export declare class CredentialOfferRequest { private _callbackURL; private _offeredCredentials; - callbackURL: string; - offeredCredentials: CredentialOffer[]; + get callbackURL(): string; + set callbackURL(callbackURL: string); + get offeredCredentials(): CredentialOffer[]; + set offeredCredentials(offeredCredentials: CredentialOffer[]); getRenderInfoForType(type: string): CredentialOfferRenderInfo | undefined; getMetadataForType(type: string): CredentialOfferMetadata | undefined; getRequestedInputForType(type: string): CredentialOfferInputRequest | undefined; getOfferForType(type: string): CredentialOffer; - readonly offeredTypes: string[]; + get offeredTypes(): string[]; toJSON(): CredentialOfferRequestAttrs; static fromJSON(json: CredentialOfferRequestAttrs): CredentialOfferRequest; } diff --git a/js/interactionTokens/credentialOfferResponse.d.ts b/js/interactionTokens/credentialOfferResponse.d.ts index 6017e566..fe08ca46 100644 --- a/js/interactionTokens/credentialOfferResponse.d.ts +++ b/js/interactionTokens/credentialOfferResponse.d.ts @@ -3,8 +3,10 @@ import { CredentialOfferRequest } from './credentialOfferRequest'; export declare class CredentialOfferResponse { private _callbackURL; private _selectedCredentials; - callbackURL: string; - selectedCredentials: CredentialOfferResponseSelection[]; + get callbackURL(): string; + set callbackURL(callbackURL: string); + get selectedCredentials(): CredentialOfferResponseSelection[]; + set selectedCredentials(selectedCredentials: CredentialOfferResponseSelection[]); satisfiesRequest({ offeredTypes }: CredentialOfferRequest): boolean; toJSON(): CredentialOfferResponseAttrs; static fromJSON(json: CredentialOfferResponseAttrs): CredentialOfferResponse; diff --git a/js/interactionTokens/credentialRequest.d.ts b/js/interactionTokens/credentialRequest.d.ts index 438cc17d..5b29389f 100644 --- a/js/interactionTokens/credentialRequest.d.ts +++ b/js/interactionTokens/credentialRequest.d.ts @@ -3,9 +3,11 @@ import { ISignedCredentialAttrs } from '../credentials/signedCredential/types'; export declare class CredentialRequest { private _callbackURL; private _credentialRequirements; - credentialRequirements: ICredentialRequest[]; - callbackURL: string; - readonly requestedCredentialTypes: string[][]; + get credentialRequirements(): ICredentialRequest[]; + set credentialRequirements(requirements: ICredentialRequest[]); + get callbackURL(): string; + set callbackURL(callback: string); + get requestedCredentialTypes(): string[][]; applyConstraints(credentials: ISignedCredentialAttrs[]): ISignedCredentialAttrs[]; toJSON(): ICredentialRequestAttrs; static fromJSON(json: ICredentialRequestAttrs): CredentialRequest; diff --git a/js/interactionTokens/credentialResponse.d.ts b/js/interactionTokens/credentialResponse.d.ts index f9931533..58c479be 100644 --- a/js/interactionTokens/credentialResponse.d.ts +++ b/js/interactionTokens/credentialResponse.d.ts @@ -4,8 +4,10 @@ import { CredentialRequest } from './credentialRequest'; export declare class CredentialResponse { private _callbackURL; private _suppliedCredentials; - suppliedCredentials: SignedCredential[]; - callbackURL: string; + get suppliedCredentials(): SignedCredential[]; + set suppliedCredentials(suppliedCredentials: SignedCredential[]); + get callbackURL(): string; + set callbackURL(callbackURL: string); satisfiesRequest(cr: CredentialRequest): boolean; toJSON(): ICredentialResponseAttrs; static fromJSON(json: ICredentialResponseAttrs): CredentialResponse; diff --git a/js/interactionTokens/credentialsReceive.d.ts b/js/interactionTokens/credentialsReceive.d.ts index 57878718..02532736 100644 --- a/js/interactionTokens/credentialsReceive.d.ts +++ b/js/interactionTokens/credentialsReceive.d.ts @@ -2,7 +2,8 @@ import { SignedCredential } from '../credentials/signedCredential/signedCredenti import { ICredentialsReceiveAttrs } from './interactionTokens.types'; export declare class CredentialsReceive { private _signedCredentials; - signedCredentials: SignedCredential[]; + get signedCredentials(): SignedCredential[]; + set signedCredentials(signedCredentials: SignedCredential[]); toJSON(): ICredentialsReceiveAttrs; static fromJSON(json: ICredentialsReceiveAttrs): CredentialsReceive; } diff --git a/js/interactionTokens/types.d.ts b/js/interactionTokens/types.d.ts index 55c5ff28..26deddec 100644 --- a/js/interactionTokens/types.d.ts +++ b/js/interactionTokens/types.d.ts @@ -1,4 +1,3 @@ -import { KeyTypes } from '@jolocom/vaulted-key-provider'; export * from '@jolocom/protocol-ts/dist/lib/interactionTokens'; export declare enum SupportedJWA { ES256KR = "ES256K-R", @@ -6,7 +5,7 @@ export declare enum SupportedJWA { EdDSA = "EdDSA" } export declare const KeyTypeToJWA: { - [KeyTypes.ecdsaSecp256k1VerificationKey2019]: SupportedJWA; - [KeyTypes.ecdsaSecp256k1RecoveryMethod2020]: SupportedJWA; - [KeyTypes.ed25519VerificationKey2018]: SupportedJWA; + EcdsaSecp256k1VerificationKey2019: SupportedJWA; + EcdsaSecp256k1RecoveryMethod2020: SupportedJWA; + Ed25519VerificationKey2018: SupportedJWA; }; diff --git a/js/linkedData/index.d.ts b/js/linkedData/index.d.ts index 17dda325..363d8223 100644 --- a/js/linkedData/index.d.ts +++ b/js/linkedData/index.d.ts @@ -1,6 +1,8 @@ /// import { JsonLdObject, SignedJsonLdObject, JsonLdContext } from './types'; +import { Identity } from '../identity/identity'; +import { IResolver } from '../didMethods/types'; export declare const normalizeJsonLd: ({ ["@context"]: _, ...data }: JsonLdObject, context: JsonLdContext) => Promise; export declare const normalizeSignedLdObject: ({ proof, ["@context"]: _, ...data }: SignedJsonLdObject, context: JsonLdContext) => Promise; export declare const digestJsonLd: (signedLdObject: SignedJsonLdObject, context: JsonLdContext) => Promise; -export declare const validateJsonLd: (json: SignedJsonLdObject, resolverOrIdentity?: import("../utils/validation").IdentityOrResolver) => Promise; +export declare const validateJsonLd: (json: SignedJsonLdObject, resolverOrIdentity?: IResolver | Identity) => Promise; diff --git a/js/linkedDataSignature/suites/ecdsaKoblitzSignature2016.d.ts b/js/linkedDataSignature/suites/ecdsaKoblitzSignature2016.d.ts index 33be52c7..454da9b6 100644 --- a/js/linkedDataSignature/suites/ecdsaKoblitzSignature2016.d.ts +++ b/js/linkedDataSignature/suites/ecdsaKoblitzSignature2016.d.ts @@ -7,12 +7,17 @@ export declare class EcdsaLinkedDataSignature implements ILinkedDataSignature, I private _created; private _nonce; private _signatureValue; - created: Date; - type: string; - nonce: string; - signature: string; - creator: string; - readonly signer: { + get created(): Date; + set created(created: Date); + get type(): string; + set type(type: string); + get nonce(): string; + set nonce(nonce: string); + get signature(): string; + set signature(signature: string); + get creator(): string; + set creator(creator: string); + get signer(): { did: string; keyId: string; }; diff --git a/package.json b/package.json index fcc48670..935eff39 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "homepage": "https://github.com/jolocom/jolocom-lib#readme", "dependencies": { "@hawkingnetwork/ed25519-hd-key-rn": "^1.0.1", - "@jolocom/jolo-did-registrar": "1.0.5", + "@jolocom/jolo-did-registrar": "1.0.2", "@jolocom/jolo-did-resolver": "^1.0.0", "@jolocom/local-resolver-registrar": "^1.0.1", "@jolocom/native-core": "^1.0.0", diff --git a/yarn.lock b/yarn.lock index a47548d3..5ff69aef 100644 --- a/yarn.lock +++ b/yarn.lock @@ -221,6 +221,18 @@ resolve-from "^5.0.0" resolve-global "^1.0.0" +"@cspotcode/source-map-consumer@0.8.0": + version "0.8.0" + resolved "https://registry.yarnpkg.com/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz#33bf4b7b39c178821606f669bbc447a6a629786b" + integrity sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg== + +"@cspotcode/source-map-support@0.7.0": + version "0.7.0" + resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.7.0.tgz#4789840aa859e46d2f3173727ab707c66bf344f5" + integrity sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA== + dependencies: + "@cspotcode/source-map-consumer" "0.8.0" + "@decentralized-identity/did-common-typescript@^0.1.19": version "0.1.19" resolved "https://registry.yarnpkg.com/@decentralized-identity/did-common-typescript/-/did-common-typescript-0.1.19.tgz#91c6dd59311e849cbc91fcff81b65c1a966163b6" @@ -245,6 +257,21 @@ minimatch "^3.0.4" strip-json-comments "^3.1.1" +"@ethersproject/abi@5.6.1", "@ethersproject/abi@^5.6.0": + version "5.6.1" + resolved "https://registry.yarnpkg.com/@ethersproject/abi/-/abi-5.6.1.tgz#f7de888edeb56b0a657b672bdd1b3a1135cd14f7" + integrity sha512-0cqssYh6FXjlwKWBmLm3+zH2BNARoS5u/hxbz+LpQmcDB3w0W553h2btWui1/uZp2GBM/SI3KniTuMcYyHpA5w== + dependencies: + "@ethersproject/address" "^5.6.0" + "@ethersproject/bignumber" "^5.6.0" + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/constants" "^5.6.0" + "@ethersproject/hash" "^5.6.0" + "@ethersproject/keccak256" "^5.6.0" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/properties" "^5.6.0" + "@ethersproject/strings" "^5.6.0" + "@ethersproject/abi@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/abi/-/abi-5.0.2.tgz#7fe8f080aa1483fe32cd27bb5b8f2019266af1e2" @@ -260,6 +287,19 @@ "@ethersproject/properties" "^5.0.0" "@ethersproject/strings" "^5.0.0" +"@ethersproject/abstract-provider@5.6.0", "@ethersproject/abstract-provider@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/abstract-provider/-/abstract-provider-5.6.0.tgz#0c4ac7054650dbd9c476cf5907f588bbb6ef3061" + integrity sha512-oPMFlKLN+g+y7a79cLK3WiLcjWFnZQtXWgnLAbHZcN3s7L4v90UHpTOrLk+m3yr0gt+/h9STTM6zrr7PM8uoRw== + dependencies: + "@ethersproject/bignumber" "^5.6.0" + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/networks" "^5.6.0" + "@ethersproject/properties" "^5.6.0" + "@ethersproject/transactions" "^5.6.0" + "@ethersproject/web" "^5.6.0" + "@ethersproject/abstract-provider@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/abstract-provider/-/abstract-provider-5.0.2.tgz#9b4e8f4870f0691463e8d5b092c95dd5275c635d" @@ -273,6 +313,17 @@ "@ethersproject/transactions" "^5.0.0" "@ethersproject/web" "^5.0.0" +"@ethersproject/abstract-signer@5.6.0", "@ethersproject/abstract-signer@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/abstract-signer/-/abstract-signer-5.6.0.tgz#9cd7ae9211c2b123a3b29bf47aab17d4d016e3e7" + integrity sha512-WOqnG0NJKtI8n0wWZPReHtaLkDByPL67tn4nBaDAhmVq8sjHTPbCdz4DRhVu/cfTOvfy9w3iq5QZ7BX7zw56BQ== + dependencies: + "@ethersproject/abstract-provider" "^5.6.0" + "@ethersproject/bignumber" "^5.6.0" + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/properties" "^5.6.0" + "@ethersproject/abstract-signer@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/abstract-signer/-/abstract-signer-5.0.2.tgz#5776f888fda816de1d08ddb0e74778ecb9590f69" @@ -284,6 +335,17 @@ "@ethersproject/logger" "^5.0.0" "@ethersproject/properties" "^5.0.0" +"@ethersproject/address@5.6.0", "@ethersproject/address@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/address/-/address-5.6.0.tgz#13c49836d73e7885fc148ad633afad729da25012" + integrity sha512-6nvhYXjbXsHPS+30sHZ+U4VMagFC/9zAk6Gd/h3S21YW4+yfb0WfRtaAIZ4kfM4rrVwqiy284LP0GtL5HXGLxQ== + dependencies: + "@ethersproject/bignumber" "^5.6.0" + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/keccak256" "^5.6.0" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/rlp" "^5.6.0" + "@ethersproject/address@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/address/-/address-5.0.2.tgz#80d0ddfb7d4bd0d32657747fa4bdd2defef2e00a" @@ -296,6 +358,13 @@ "@ethersproject/rlp" "^5.0.0" bn.js "^4.4.0" +"@ethersproject/base64@5.6.0", "@ethersproject/base64@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/base64/-/base64-5.6.0.tgz#a12c4da2a6fb86d88563216b0282308fc15907c9" + integrity sha512-2Neq8wxJ9xHxCF9TUgmKeSh9BXJ6OAxWfeGWvbauPh8FuHEjamgHilllx8KkSd5ErxyHIX7Xv3Fkcud2kY9ezw== + dependencies: + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/base64@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/base64/-/base64-5.0.2.tgz#48b3bb8d640a963bd8ee196cfeacd592155a0ca8" @@ -303,6 +372,14 @@ dependencies: "@ethersproject/bytes" "^5.0.0" +"@ethersproject/basex@5.6.0", "@ethersproject/basex@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/basex/-/basex-5.6.0.tgz#9ea7209bf0a1c3ddc2a90f180c3a7f0d7d2e8a69" + integrity sha512-qN4T+hQd/Md32MoJpc69rOwLYRUXwjTlhHDIeUkUmiN/JyWkkLLMoG0TqvSQKNqZOMgN5stbUYN6ILC+eD7MEQ== + dependencies: + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/properties" "^5.6.0" + "@ethersproject/basex@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/basex/-/basex-5.0.2.tgz#13029ce0ad63674f4d4dbebf6763181fb22f0e6d" @@ -311,6 +388,15 @@ "@ethersproject/bytes" "^5.0.0" "@ethersproject/properties" "^5.0.0" +"@ethersproject/bignumber@5.6.0", "@ethersproject/bignumber@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/bignumber/-/bignumber-5.6.0.tgz#116c81b075c57fa765a8f3822648cf718a8a0e26" + integrity sha512-VziMaXIUHQlHJmkv1dlcd6GY2PmT0khtAqaMctCIDogxkrarMzA9L94KN1NeXqqOfFD6r0sJT3vCTOFSmZ07DA== + dependencies: + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/logger" "^5.6.0" + bn.js "^4.11.9" + "@ethersproject/bignumber@^5.0.0": version "5.0.5" resolved "https://registry.yarnpkg.com/@ethersproject/bignumber/-/bignumber-5.0.5.tgz#31bd7e75aad46ace345fae69b1f5bb120906af1b" @@ -320,6 +406,13 @@ "@ethersproject/logger" "^5.0.0" bn.js "^4.4.0" +"@ethersproject/bytes@5.6.1", "@ethersproject/bytes@^5.6.0": + version "5.6.1" + resolved "https://registry.yarnpkg.com/@ethersproject/bytes/-/bytes-5.6.1.tgz#24f916e411f82a8a60412344bf4a813b917eefe7" + integrity sha512-NwQt7cKn5+ZE4uDn+X5RAXLp46E1chXoaMmrxAyA0rblpxz8t58lVkrHXoRIn0lz1joQElQ8410GqhTqMOwc6g== + dependencies: + "@ethersproject/logger" "^5.6.0" + "@ethersproject/bytes@^5.0.0": version "5.0.3" resolved "https://registry.yarnpkg.com/@ethersproject/bytes/-/bytes-5.0.3.tgz#b3769963ae0188a35713d343890a903bda20af9c" @@ -327,6 +420,13 @@ dependencies: "@ethersproject/logger" "^5.0.0" +"@ethersproject/constants@5.6.0", "@ethersproject/constants@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/constants/-/constants-5.6.0.tgz#55e3eb0918584d3acc0688e9958b0cedef297088" + integrity sha512-SrdaJx2bK0WQl23nSpV/b1aq293Lh0sUaZT/yYKPDKn4tlAbkH96SPJwIhwSwTsoQQZxuh1jnqsKwyymoiBdWA== + dependencies: + "@ethersproject/bignumber" "^5.6.0" + "@ethersproject/constants@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/constants/-/constants-5.0.2.tgz#f7ac0b320e2bbec1a5950da075015f8bc4e8fed1" @@ -334,6 +434,22 @@ dependencies: "@ethersproject/bignumber" "^5.0.0" +"@ethersproject/contracts@5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/contracts/-/contracts-5.6.0.tgz#60f2cfc7addd99a865c6c8cfbbcec76297386067" + integrity sha512-74Ge7iqTDom0NX+mux8KbRUeJgu1eHZ3iv6utv++sLJG80FVuU9HnHeKVPfjd9s3woFhaFoQGf3B3iH/FrQmgw== + dependencies: + "@ethersproject/abi" "^5.6.0" + "@ethersproject/abstract-provider" "^5.6.0" + "@ethersproject/abstract-signer" "^5.6.0" + "@ethersproject/address" "^5.6.0" + "@ethersproject/bignumber" "^5.6.0" + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/constants" "^5.6.0" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/properties" "^5.6.0" + "@ethersproject/transactions" "^5.6.0" + "@ethersproject/contracts@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/contracts/-/contracts-5.0.2.tgz#f19ed8335ceeb6abb60f5d45641f0a2a62b6fbc5" @@ -349,6 +465,20 @@ "@ethersproject/logger" "^5.0.0" "@ethersproject/properties" "^5.0.0" +"@ethersproject/hash@5.6.0", "@ethersproject/hash@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/hash/-/hash-5.6.0.tgz#d24446a5263e02492f9808baa99b6e2b4c3429a2" + integrity sha512-fFd+k9gtczqlr0/BruWLAu7UAOas1uRRJvOR84uDf4lNZ+bTkGl366qvniUZHKtlqxBRU65MkOobkmvmpHU+jA== + dependencies: + "@ethersproject/abstract-signer" "^5.6.0" + "@ethersproject/address" "^5.6.0" + "@ethersproject/bignumber" "^5.6.0" + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/keccak256" "^5.6.0" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/properties" "^5.6.0" + "@ethersproject/strings" "^5.6.0" + "@ethersproject/hash@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/hash/-/hash-5.0.2.tgz#6d69558786961836d530b8b4a8714eac5388aec7" @@ -359,6 +489,24 @@ "@ethersproject/logger" "^5.0.0" "@ethersproject/strings" "^5.0.0" +"@ethersproject/hdnode@5.6.0", "@ethersproject/hdnode@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/hdnode/-/hdnode-5.6.0.tgz#9dcbe8d629bbbcf144f2cae476337fe92d320998" + integrity sha512-61g3Jp3nwDqJcL/p4nugSyLrpl/+ChXIOtCEM8UDmWeB3JCAt5FoLdOMXQc3WWkc0oM2C0aAn6GFqqMcS/mHTw== + dependencies: + "@ethersproject/abstract-signer" "^5.6.0" + "@ethersproject/basex" "^5.6.0" + "@ethersproject/bignumber" "^5.6.0" + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/pbkdf2" "^5.6.0" + "@ethersproject/properties" "^5.6.0" + "@ethersproject/sha2" "^5.6.0" + "@ethersproject/signing-key" "^5.6.0" + "@ethersproject/strings" "^5.6.0" + "@ethersproject/transactions" "^5.6.0" + "@ethersproject/wordlists" "^5.6.0" + "@ethersproject/hdnode@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/hdnode/-/hdnode-5.0.2.tgz#c4f2152590a64822d0c0feb90f09cc247af657e0" @@ -377,6 +525,25 @@ "@ethersproject/transactions" "^5.0.0" "@ethersproject/wordlists" "^5.0.0" +"@ethersproject/json-wallets@5.6.0", "@ethersproject/json-wallets@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/json-wallets/-/json-wallets-5.6.0.tgz#4c2fc27f17e36c583e7a252fb938bc46f98891e5" + integrity sha512-fmh86jViB9r0ibWXTQipxpAGMiuxoqUf78oqJDlCAJXgnJF024hOOX7qVgqsjtbeoxmcLwpPsXNU0WEe/16qPQ== + dependencies: + "@ethersproject/abstract-signer" "^5.6.0" + "@ethersproject/address" "^5.6.0" + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/hdnode" "^5.6.0" + "@ethersproject/keccak256" "^5.6.0" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/pbkdf2" "^5.6.0" + "@ethersproject/properties" "^5.6.0" + "@ethersproject/random" "^5.6.0" + "@ethersproject/strings" "^5.6.0" + "@ethersproject/transactions" "^5.6.0" + aes-js "3.0.0" + scrypt-js "3.0.1" + "@ethersproject/json-wallets@^5.0.0": version "5.0.4" resolved "https://registry.yarnpkg.com/@ethersproject/json-wallets/-/json-wallets-5.0.4.tgz#e09bf2d34279c6dd2b4a4d4c44db65471bacc68b" @@ -396,6 +563,14 @@ aes-js "3.0.0" scrypt-js "3.0.1" +"@ethersproject/keccak256@5.6.0", "@ethersproject/keccak256@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/keccak256/-/keccak256-5.6.0.tgz#fea4bb47dbf8f131c2e1774a1cecbfeb9d606459" + integrity sha512-tk56BJ96mdj/ksi7HWZVWGjCq0WVl/QvfhFQNeL8fxhBlGoP+L80uDCiQcpJPd+2XxkivS3lwRm3E0CXTfol0w== + dependencies: + "@ethersproject/bytes" "^5.6.0" + js-sha3 "0.8.0" + "@ethersproject/keccak256@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/keccak256/-/keccak256-5.0.2.tgz#7ed4a95bb45ee502cf4532223833740a83602797" @@ -404,11 +579,23 @@ "@ethersproject/bytes" "^5.0.0" js-sha3 "0.5.7" +"@ethersproject/logger@5.6.0", "@ethersproject/logger@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/logger/-/logger-5.6.0.tgz#d7db1bfcc22fd2e4ab574cba0bb6ad779a9a3e7a" + integrity sha512-BiBWllUROH9w+P21RzoxJKzqoqpkyM1pRnEKG69bulE9TSQD8SAIvTQqIMZmmCO8pUNkgLP1wndX1gKghSpBmg== + "@ethersproject/logger@^5.0.0": version "5.0.4" resolved "https://registry.yarnpkg.com/@ethersproject/logger/-/logger-5.0.4.tgz#09fa4765b5691233e3afb6617cb38a700f9dd2e4" integrity sha512-alA2LiAy1LdQ/L1SA9ajUC7MvGAEQLsICEfKK4erX5qhkXE1LwLSPIzobtOWFsMHf2yrXGKBLnnpuVHprI3sAw== +"@ethersproject/networks@5.6.2", "@ethersproject/networks@^5.6.0": + version "5.6.2" + resolved "https://registry.yarnpkg.com/@ethersproject/networks/-/networks-5.6.2.tgz#2bacda62102c0b1fcee408315f2bed4f6fbdf336" + integrity sha512-9uEzaJY7j5wpYGTojGp8U89mSsgQLc40PCMJLMCnFXTs7nhBveZ0t7dbqWUNrepWTszDbFkYD6WlL8DKx5huHA== + dependencies: + "@ethersproject/logger" "^5.6.0" + "@ethersproject/networks@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/networks/-/networks-5.0.2.tgz#a49e82cf071e3618e87e3c5d69fdbcf54dc6766c" @@ -416,6 +603,14 @@ dependencies: "@ethersproject/logger" "^5.0.0" +"@ethersproject/pbkdf2@5.6.0", "@ethersproject/pbkdf2@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/pbkdf2/-/pbkdf2-5.6.0.tgz#04fcc2d7c6bff88393f5b4237d906a192426685a" + integrity sha512-Wu1AxTgJo3T3H6MIu/eejLFok9TYoSdgwRr5oGY1LTLfmGesDoSx05pemsbrPT2gG4cQME+baTSCp5sEo2erZQ== + dependencies: + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/sha2" "^5.6.0" + "@ethersproject/pbkdf2@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/pbkdf2/-/pbkdf2-5.0.2.tgz#d12c5f434bbdf6f52401eddb7d753a713dd9e4ea" @@ -424,6 +619,13 @@ "@ethersproject/bytes" "^5.0.0" "@ethersproject/sha2" "^5.0.0" +"@ethersproject/properties@5.6.0", "@ethersproject/properties@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/properties/-/properties-5.6.0.tgz#38904651713bc6bdd5bdd1b0a4287ecda920fa04" + integrity sha512-szoOkHskajKePTJSZ46uHUWWkbv7TzP2ypdEK6jGMqJaEt2sb0jCgfBo0gH0m2HBpRixMuJ6TBRaQCF7a9DoCg== + dependencies: + "@ethersproject/logger" "^5.6.0" + "@ethersproject/properties@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/properties/-/properties-5.0.2.tgz#2facb62d2f2d968c7b3d0befa5bcc884cc565d3b" @@ -431,6 +633,31 @@ dependencies: "@ethersproject/logger" "^5.0.0" +"@ethersproject/providers@5.6.4": + version "5.6.4" + resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.6.4.tgz#1a49c211b57b0b2703c320819abbbfa35c83dff7" + integrity sha512-WAdknnaZ52hpHV3qPiJmKx401BLpup47h36Axxgre9zT+doa/4GC/Ne48ICPxTm0BqndpToHjpLP1ZnaxyE+vw== + dependencies: + "@ethersproject/abstract-provider" "^5.6.0" + "@ethersproject/abstract-signer" "^5.6.0" + "@ethersproject/address" "^5.6.0" + "@ethersproject/basex" "^5.6.0" + "@ethersproject/bignumber" "^5.6.0" + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/constants" "^5.6.0" + "@ethersproject/hash" "^5.6.0" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/networks" "^5.6.0" + "@ethersproject/properties" "^5.6.0" + "@ethersproject/random" "^5.6.0" + "@ethersproject/rlp" "^5.6.0" + "@ethersproject/sha2" "^5.6.0" + "@ethersproject/strings" "^5.6.0" + "@ethersproject/transactions" "^5.6.0" + "@ethersproject/web" "^5.6.0" + bech32 "1.1.4" + ws "7.4.6" + "@ethersproject/providers@^5.0.0": version "5.0.5" resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.0.5.tgz#fa28498ce9683d1d99f6cb11e1a7fe8d4886e0ce" @@ -453,6 +680,14 @@ "@ethersproject/web" "^5.0.0" ws "7.2.3" +"@ethersproject/random@5.6.0", "@ethersproject/random@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/random/-/random-5.6.0.tgz#1505d1ab6a250e0ee92f436850fa3314b2cb5ae6" + integrity sha512-si0PLcLjq+NG/XHSZz90asNf+YfKEqJGVdxoEkSukzbnBgC8rydbgbUgBbBGLeHN4kAJwUFEKsu3sCXT93YMsw== + dependencies: + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/random@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/random/-/random-5.0.2.tgz#bb58aca69a85e8de506686117f050d03dac69023" @@ -461,6 +696,14 @@ "@ethersproject/bytes" "^5.0.0" "@ethersproject/logger" "^5.0.0" +"@ethersproject/rlp@5.6.0", "@ethersproject/rlp@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/rlp/-/rlp-5.6.0.tgz#55a7be01c6f5e64d6e6e7edb6061aa120962a717" + integrity sha512-dz9WR1xpcTL+9DtOT/aDO+YyxSSdO8YIS0jyZwHHSlAmnxA6cKU3TrTd4Xc/bHayctxTgGLYNuVVoiXE4tTq1g== + dependencies: + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/rlp@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/rlp/-/rlp-5.0.2.tgz#d6b550a2ac5e484f15f0f63337e522004d2e78cd" @@ -469,6 +712,15 @@ "@ethersproject/bytes" "^5.0.0" "@ethersproject/logger" "^5.0.0" +"@ethersproject/sha2@5.6.0", "@ethersproject/sha2@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/sha2/-/sha2-5.6.0.tgz#364c4c11cc753bda36f31f001628706ebadb64d9" + integrity sha512-1tNWCPFLu1n3JM9t4/kytz35DkuF9MxqkGGEHNauEbaARdm2fafnOyw1s0tIQDPKF/7bkP1u3dbrmjpn5CelyA== + dependencies: + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/logger" "^5.6.0" + hash.js "1.1.7" + "@ethersproject/sha2@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/sha2/-/sha2-5.0.2.tgz#baefc78c071be8729b180759eb29267129314252" @@ -478,6 +730,18 @@ "@ethersproject/logger" "^5.0.0" hash.js "1.1.3" +"@ethersproject/signing-key@5.6.0", "@ethersproject/signing-key@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/signing-key/-/signing-key-5.6.0.tgz#4f02e3fb09e22b71e2e1d6dc4bcb5dafa69ce042" + integrity sha512-S+njkhowmLeUu/r7ir8n78OUKx63kBdMCPssePS89So1TH4hZqnWFsThEd/GiXYp9qMxVrydf7KdM9MTGPFukA== + dependencies: + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/properties" "^5.6.0" + bn.js "^4.11.9" + elliptic "6.5.4" + hash.js "1.1.7" + "@ethersproject/signing-key@^5.0.0": version "5.0.3" resolved "https://registry.yarnpkg.com/@ethersproject/signing-key/-/signing-key-5.0.3.tgz#adb84360e147bfd336cb2fe114100120732dc10a" @@ -488,6 +752,18 @@ "@ethersproject/properties" "^5.0.0" elliptic "6.5.3" +"@ethersproject/solidity@5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/solidity/-/solidity-5.6.0.tgz#64657362a596bf7f5630bdc921c07dd78df06dc3" + integrity sha512-YwF52vTNd50kjDzqKaoNNbC/r9kMDPq3YzDWmsjFTRBcIF1y4JCQJ8gB30wsTfHbaxgxelI5BfxQSxD/PbJOww== + dependencies: + "@ethersproject/bignumber" "^5.6.0" + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/keccak256" "^5.6.0" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/sha2" "^5.6.0" + "@ethersproject/strings" "^5.6.0" + "@ethersproject/solidity@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/solidity/-/solidity-5.0.2.tgz#431cee341ec51e022bd897b93fef04521f414756" @@ -499,6 +775,15 @@ "@ethersproject/sha2" "^5.0.0" "@ethersproject/strings" "^5.0.0" +"@ethersproject/strings@5.6.0", "@ethersproject/strings@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/strings/-/strings-5.6.0.tgz#9891b26709153d996bf1303d39a7f4bc047878fd" + integrity sha512-uv10vTtLTZqrJuqBZR862ZQjTIa724wGPWQqZrofaPI/kUsf53TBG0I0D+hQ1qyNtllbNzaW+PDPHHUI6/65Mg== + dependencies: + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/constants" "^5.6.0" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/strings@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/strings/-/strings-5.0.2.tgz#1753408c3c889813fd0992abd76393e3e47a2619" @@ -508,6 +793,21 @@ "@ethersproject/constants" "^5.0.0" "@ethersproject/logger" "^5.0.0" +"@ethersproject/transactions@5.6.0", "@ethersproject/transactions@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/transactions/-/transactions-5.6.0.tgz#4b594d73a868ef6e1529a2f8f94a785e6791ae4e" + integrity sha512-4HX+VOhNjXHZyGzER6E/LVI2i6lf9ejYeWD6l4g50AdmimyuStKc39kvKf1bXWQMg7QNVh+uC7dYwtaZ02IXeg== + dependencies: + "@ethersproject/address" "^5.6.0" + "@ethersproject/bignumber" "^5.6.0" + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/constants" "^5.6.0" + "@ethersproject/keccak256" "^5.6.0" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/properties" "^5.6.0" + "@ethersproject/rlp" "^5.6.0" + "@ethersproject/signing-key" "^5.6.0" + "@ethersproject/transactions@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/transactions/-/transactions-5.0.2.tgz#590ede71fc87b45be7bd46002e18ae52246a2347" @@ -523,6 +823,15 @@ "@ethersproject/rlp" "^5.0.0" "@ethersproject/signing-key" "^5.0.0" +"@ethersproject/units@5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/units/-/units-5.6.0.tgz#e5cbb1906988f5740254a21b9ded6bd51e826d9c" + integrity sha512-tig9x0Qmh8qbo1w8/6tmtyrm/QQRviBh389EQ+d8fP4wDsBrJBf08oZfoiz1/uenKK9M78yAP4PoR7SsVoTjsw== + dependencies: + "@ethersproject/bignumber" "^5.6.0" + "@ethersproject/constants" "^5.6.0" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/units@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/units/-/units-5.0.2.tgz#de1461ff3ad2587e57bf367d056b6b72cfceda78" @@ -532,6 +841,27 @@ "@ethersproject/constants" "^5.0.0" "@ethersproject/logger" "^5.0.0" +"@ethersproject/wallet@5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/wallet/-/wallet-5.6.0.tgz#33d11a806d783864208f348709a5a3badac8e22a" + integrity sha512-qMlSdOSTyp0MBeE+r7SUhr1jjDlC1zAXB8VD84hCnpijPQiSNbxr6GdiLXxpUs8UKzkDiNYYC5DRI3MZr+n+tg== + dependencies: + "@ethersproject/abstract-provider" "^5.6.0" + "@ethersproject/abstract-signer" "^5.6.0" + "@ethersproject/address" "^5.6.0" + "@ethersproject/bignumber" "^5.6.0" + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/hash" "^5.6.0" + "@ethersproject/hdnode" "^5.6.0" + "@ethersproject/json-wallets" "^5.6.0" + "@ethersproject/keccak256" "^5.6.0" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/properties" "^5.6.0" + "@ethersproject/random" "^5.6.0" + "@ethersproject/signing-key" "^5.6.0" + "@ethersproject/transactions" "^5.6.0" + "@ethersproject/wordlists" "^5.6.0" + "@ethersproject/wallet@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/wallet/-/wallet-5.0.2.tgz#714ca8324c1b3b66e51b9b4e0358c882e88caf1d" @@ -553,6 +883,17 @@ "@ethersproject/transactions" "^5.0.0" "@ethersproject/wordlists" "^5.0.0" +"@ethersproject/web@5.6.0", "@ethersproject/web@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/web/-/web-5.6.0.tgz#4bf8b3cbc17055027e1a5dd3c357e37474eaaeb8" + integrity sha512-G/XHj0hV1FxI2teHRfCGvfBUHFmU+YOSbCxlAMqJklxSa7QMiHFQfAxvwY2PFqgvdkxEKwRNr/eCjfAPEm2Ctg== + dependencies: + "@ethersproject/base64" "^5.6.0" + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/properties" "^5.6.0" + "@ethersproject/strings" "^5.6.0" + "@ethersproject/web@^5.0.0": version "5.0.3" resolved "https://registry.yarnpkg.com/@ethersproject/web/-/web-5.0.3.tgz#f5673923009bb855302f0296ddb932da8e42f0a1" @@ -564,6 +905,17 @@ "@ethersproject/properties" "^5.0.0" "@ethersproject/strings" "^5.0.0" +"@ethersproject/wordlists@5.6.0", "@ethersproject/wordlists@^5.6.0": + version "5.6.0" + resolved "https://registry.yarnpkg.com/@ethersproject/wordlists/-/wordlists-5.6.0.tgz#79e62c5276e091d8575f6930ba01a29218ded032" + integrity sha512-q0bxNBfIX3fUuAo9OmjlEYxP40IB8ABgb7HjEZCL5IKubzV3j30CWi2rqQbjTS2HfoyQbfINoKcTVWP4ejwR7Q== + dependencies: + "@ethersproject/bytes" "^5.6.0" + "@ethersproject/hash" "^5.6.0" + "@ethersproject/logger" "^5.6.0" + "@ethersproject/properties" "^5.6.0" + "@ethersproject/strings" "^5.6.0" + "@ethersproject/wordlists@^5.0.0": version "5.0.2" resolved "https://registry.yarnpkg.com/@ethersproject/wordlists/-/wordlists-5.0.2.tgz#eded47314509c8608373fc2b22879ee2b71b7c7c" @@ -605,13 +957,13 @@ resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.2.tgz#26520bf09abe4a5644cd5414e37125a8954241dd" integrity sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw== -"@jolocom/jolo-did-registrar@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@jolocom/jolo-did-registrar/-/jolo-did-registrar-1.0.0.tgz#52b8135aea7d2ff10dfd0cd0ce7429835f53f04c" - integrity sha512-Mvs73svDV+dyMF4vw012bBicC+jxYpym0BWHLrmvT3x7QLMH9kEGJVxG6ArIYJLfb7KpyX3dZhMFcsKlyosnLQ== +"@jolocom/jolo-did-registrar@1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@jolocom/jolo-did-registrar/-/jolo-did-registrar-1.0.2.tgz#ca32dfd923a4d57095c6670d301024b5c986c5d3" + integrity sha512-D+eIIIksEcHqJ7fM3fp0CROsiMKK5OSX+u63fR4iLSNOLBW729KRGAUbZAk/7poeL3HZxaHfsu2OMtNJ4WgJrg== dependencies: "@decentralized-identity/did-common-typescript" "^0.1.19" - "@jolocom/registry-contract" "^1.0.0" + "@jolocom/registry-contract" "1.0.4" detect-node "^2.0.4" form-data "^3.0.0" node-fetch "^2.6.1" @@ -697,6 +1049,13 @@ dependencies: cred-types-jolocom-core "^0.0.11" +"@jolocom/registry-contract@1.0.4": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@jolocom/registry-contract/-/registry-contract-1.0.4.tgz#3cdebd5cf2c54f118b99251fcd00ea2bd61b597a" + integrity sha512-8DOo9dWKN0+4VFSIc5FSXd5pcSW/cTIB+5qSMURt/QHsYJvFjkzmuwWKBuXXJqjxiEkdjVbwFRwu1lPMnxqUVw== + dependencies: + ethers "5.6.4" + "@jolocom/registry-contract@^1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@jolocom/registry-contract/-/registry-contract-1.0.0.tgz#df00e053701b9704be5a69b98cc78d00723a26b2" @@ -768,6 +1127,26 @@ resolved "https://registry.yarnpkg.com/@sinonjs/text-encoding/-/text-encoding-0.7.1.tgz#8da5c6530915653f3a1f38fd5f101d8c3f8079c5" integrity sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ== +"@tsconfig/node10@^1.0.7": + version "1.0.8" + resolved "https://registry.yarnpkg.com/@tsconfig/node10/-/node10-1.0.8.tgz#c1e4e80d6f964fbecb3359c43bd48b40f7cadad9" + integrity sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg== + +"@tsconfig/node12@^1.0.7": + version "1.0.9" + resolved "https://registry.yarnpkg.com/@tsconfig/node12/-/node12-1.0.9.tgz#62c1f6dee2ebd9aead80dc3afa56810e58e1a04c" + integrity sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw== + +"@tsconfig/node14@^1.0.0": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@tsconfig/node14/-/node14-1.0.1.tgz#95f2d167ffb9b8d2068b0b235302fafd4df711f2" + integrity sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg== + +"@tsconfig/node16@^1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.2.tgz#423c77877d0569db20e1fc80885ac4118314010e" + integrity sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA== + "@types/bip39@^2.4.2": version "2.4.2" resolved "https://registry.yarnpkg.com/@types/bip39/-/bip39-2.4.2.tgz#f5d6617212be496bb998d3969f657f77a10c5287" @@ -981,11 +1360,21 @@ acorn-jsx@^5.2.0: resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.2.0.tgz#4c66069173d6fdd68ed85239fc256226182b2ebe" integrity sha512-HiUX/+K2YpkpJ+SzBffkM/AQ2YE03S0U1kjTLVpoJdhZMOWy8qvXVN9JdLqv2QsaQ6MPYQIuNmwD8zOiYUofLQ== +acorn-walk@^8.1.1: + version "8.2.0" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.2.0.tgz#741210f2e2426454508853a2f44d0ab83b7f69c1" + integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA== + acorn@^7.4.0: version "7.4.0" resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.0.tgz#e1ad486e6c54501634c6c397c5c121daa383607c" integrity sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w== +acorn@^8.4.1: + version "8.7.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.7.1.tgz#0197122c843d1bf6d0a5e83220a788f278f63c30" + integrity sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A== + aes-js@3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/aes-js/-/aes-js-3.0.0.tgz#e21df10ad6c2053295bcbb8dab40b09dbea87e4d" @@ -1247,6 +1636,11 @@ bcrypt-pbkdf@^1.0.0: dependencies: tweetnacl "^0.14.3" +bech32@1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/bech32/-/bech32-1.1.4.tgz#e38c9f37bf179b8eb16ae3a772b40c356d4832e9" + integrity sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ== + binary-extensions@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.1.0.tgz#30fa40c9e7fe07dbc895678cd287024dea241dd9" @@ -1281,6 +1675,11 @@ bn.js@^4.0.0, bn.js@^4.11.0, bn.js@^4.11.1, bn.js@^4.11.3, bn.js@^4.11.8, bn.js@ resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.9.tgz#26d556829458f9d1e81fc48952493d0ba3507828" integrity sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw== +bn.js@^4.11.9: + version "4.12.0" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" + integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA== + brace-expansion@^1.1.7: version "1.1.11" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" @@ -1312,7 +1711,7 @@ braces@^3.0.1, braces@~3.0.2: dependencies: fill-range "^7.0.1" -brorand@^1.0.1: +brorand@^1.0.1, brorand@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8= @@ -1691,7 +2090,7 @@ cosmiconfig@^6.0.0: path-type "^4.0.0" yaml "^1.7.2" -create-hash@^1.1.0, create-hash@^1.1.2, create-hash@^1.2.0: +create-hash@1.2.0, create-hash@^1.1.0, create-hash@^1.1.2: version "1.2.0" resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" integrity sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg== @@ -1714,6 +2113,11 @@ create-hmac@^1.1.4, create-hmac@^1.1.7: safe-buffer "^5.0.1" sha.js "^2.4.8" +create-require@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" + integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== + cred-types-jolocom-core@^0.0.11: version "0.0.11" resolved "https://registry.yarnpkg.com/cred-types-jolocom-core/-/cred-types-jolocom-core-0.0.11.tgz#7cc8c23e511590fede0f9a072854f3892127e0ed" @@ -1929,6 +2333,19 @@ elliptic@6.5.3, elliptic@^6.2.3, elliptic@^6.4.1, elliptic@^6.5.2: minimalistic-assert "^1.0.0" minimalistic-crypto-utils "^1.0.0" +elliptic@6.5.4: + version "6.5.4" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" + integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ== + dependencies: + bn.js "^4.11.9" + brorand "^1.1.0" + hash.js "^1.0.0" + hmac-drbg "^1.0.1" + inherits "^2.0.4" + minimalistic-assert "^1.0.1" + minimalistic-crypto-utils "^1.0.1" + emoji-regex@^7.0.1: version "7.0.3" resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" @@ -2207,6 +2624,42 @@ ethers@5.0.5: "@ethersproject/web" "^5.0.0" "@ethersproject/wordlists" "^5.0.0" +ethers@5.6.4: + version "5.6.4" + resolved "https://registry.yarnpkg.com/ethers/-/ethers-5.6.4.tgz#23629e9a7d4bc5802dfb53d4da420d738744b53c" + integrity sha512-62UIfxAQXdf67TeeOaoOoPctm5hUlYgfd0iW3wxfj7qRYKDcvvy0f+sJ3W2/Pyx77R8dblvejA8jokj+lS+ATQ== + dependencies: + "@ethersproject/abi" "5.6.1" + "@ethersproject/abstract-provider" "5.6.0" + "@ethersproject/abstract-signer" "5.6.0" + "@ethersproject/address" "5.6.0" + "@ethersproject/base64" "5.6.0" + "@ethersproject/basex" "5.6.0" + "@ethersproject/bignumber" "5.6.0" + "@ethersproject/bytes" "5.6.1" + "@ethersproject/constants" "5.6.0" + "@ethersproject/contracts" "5.6.0" + "@ethersproject/hash" "5.6.0" + "@ethersproject/hdnode" "5.6.0" + "@ethersproject/json-wallets" "5.6.0" + "@ethersproject/keccak256" "5.6.0" + "@ethersproject/logger" "5.6.0" + "@ethersproject/networks" "5.6.2" + "@ethersproject/pbkdf2" "5.6.0" + "@ethersproject/properties" "5.6.0" + "@ethersproject/providers" "5.6.4" + "@ethersproject/random" "5.6.0" + "@ethersproject/rlp" "5.6.0" + "@ethersproject/sha2" "5.6.0" + "@ethersproject/signing-key" "5.6.0" + "@ethersproject/solidity" "5.6.0" + "@ethersproject/strings" "5.6.0" + "@ethersproject/transactions" "5.6.0" + "@ethersproject/units" "5.6.0" + "@ethersproject/wallet" "5.6.0" + "@ethersproject/web" "5.6.0" + "@ethersproject/wordlists" "5.6.0" + ethjs-util@0.1.6: version "0.1.6" resolved "https://registry.yarnpkg.com/ethjs-util/-/ethjs-util-0.1.6.tgz#f308b62f185f9fe6237132fb2a9818866a5cd536" @@ -2835,7 +3288,7 @@ hash.js@1.1.3: inherits "^2.0.3" minimalistic-assert "^1.0.0" -hash.js@^1.0.0, hash.js@^1.0.3: +hash.js@1.1.7, hash.js@^1.0.0, hash.js@^1.0.3: version "1.1.7" resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42" integrity sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA== @@ -2870,7 +3323,7 @@ highlight.js@^9.13.1: resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.15.8.tgz#f344fda123f36f1a65490e932cf90569e4999971" integrity sha512-RrapkKQWwE+wKdF73VsOa2RQdIoO3mxwJ4P8mhbI6KYJUraUHRKM5w5zQQKXNk0xNL4UVRdulV9SBJcmzJNzVA== -hmac-drbg@^1.0.0: +hmac-drbg@^1.0.0, hmac-drbg@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE= @@ -2980,7 +3433,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, inherits@^2.0.1, inherits@^2.0.3: +inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -3360,6 +3813,11 @@ js-sha3@0.5.7: resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.5.7.tgz#0d4ffd8002d5333aabaf4a23eed2f6374c9f28e7" integrity sha1-DU/9gALVMzqrr0oj7tL2N0yfKOc= +js-sha3@0.8.0: + version "0.8.0" + resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" + integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q== + js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" @@ -4837,7 +5295,7 @@ source-map-resolve@^0.5.0: source-map-url "^0.4.0" urix "^0.1.0" -source-map-support@^0.5.17, source-map-support@^0.5.19: +source-map-support@^0.5.19: version "0.5.19" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw== @@ -5113,15 +5571,23 @@ tough-cookie@~2.4.3: psl "^1.1.24" punycode "^1.4.1" -ts-node@^9.0.0: - version "9.0.0" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-9.0.0.tgz#e7699d2a110cc8c0d3b831715e417688683460b3" - integrity sha512-/TqB4SnererCDR/vb4S/QvSZvzQMJN8daAslg7MeaiHvD8rDZsSfXmNeNumyZZzMned72Xoq/isQljYSt8Ynfg== - dependencies: +ts-node@^10.7.0: + version "10.7.0" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.7.0.tgz#35d503d0fab3e2baa672a0e94f4b40653c2463f5" + integrity sha512-TbIGS4xgJoX2i3do417KSaep1uRAW/Lu+WAL2doDHC0D6ummjirVOXU5/7aiZotbQ5p1Zp9tP7U6cYhA0O7M8A== + dependencies: + "@cspotcode/source-map-support" "0.7.0" + "@tsconfig/node10" "^1.0.7" + "@tsconfig/node12" "^1.0.7" + "@tsconfig/node14" "^1.0.0" + "@tsconfig/node16" "^1.0.2" + acorn "^8.4.1" + acorn-walk "^8.1.1" arg "^4.1.0" + create-require "^1.1.0" diff "^4.0.1" make-error "^1.1.1" - source-map-support "^0.5.17" + v8-compile-cache-lib "^3.0.0" yn "3.1.1" tslib@^1.8.1, tslib@^1.9.0: @@ -5212,10 +5678,10 @@ typescript@3.2.x: resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.2.4.tgz#c585cb952912263d915b462726ce244ba510ef3d" integrity sha512-0RNDbSdEokBeEAkgNbxJ+BLwSManFy9TeXz8uW+48j/xhEXv1ePME60olyzw2XzUqUBNAYFeJadIqAgNqIACwg== -typescript@3.6.3: - version "3.6.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.3.tgz#fea942fabb20f7e1ca7164ff626f1a9f3f70b4da" - integrity sha512-N7bceJL1CtRQ2RiG0AQME13ksR7DiuQh/QehubYcghzv20tnh+MQnQIuJddTmsbqYj+dztchykemz0zFzlvdQw== +typescript@4.6.4: + version "4.6.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9" + integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg== uglify-js@^3.1.4: version "3.7.2" @@ -5275,6 +5741,11 @@ uuid@^3.3.3: resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== +v8-compile-cache-lib@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf" + integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg== + v8-compile-cache@^2.0.3: version "2.1.1" resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.1.1.tgz#54bc3cdd43317bca91e35dcaf305b1a7237de745" @@ -5390,6 +5861,11 @@ ws@7.2.3: resolved "https://registry.yarnpkg.com/ws/-/ws-7.2.3.tgz#a5411e1fb04d5ed0efee76d26d5c46d830c39b46" integrity sha512-HTDl9G9hbkNDk98naoR/cHDws7+EyYMOdL1BmjsZXRUjf7d+MficC4B7HLUPlSiho0vg+CWKrGIt/VJBd1xunQ== +ws@7.4.6: + version "7.4.6" + resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.6.tgz#5654ca8ecdeee47c33a9a4bf6d28e2be2980377c" + integrity sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A== + xmldom@0.1.19: version "0.1.19" resolved "https://registry.yarnpkg.com/xmldom/-/xmldom-0.1.19.tgz#631fc07776efd84118bf25171b37ed4d075a0abc" From 461b90c722184c6c584cbc431aa93d1d1bb1c99a Mon Sep 17 00:00:00 2001 From: Exulansis Date: Fri, 29 Apr 2022 14:15:40 +0200 Subject: [PATCH 3/4] Sync package version with NPM --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 935eff39..4a09edcc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jolocom-lib", - "version": "5.2.1", + "version": "5.3.2", "description": "Unified library for interacting with the Jolocom identity solution", "main": "js/index.js", "files": [ From 463bb1e846ca454d7828a1125b707f5361bb4886 Mon Sep 17 00:00:00 2001 From: Exulansis Date: Fri, 29 Apr 2022 14:16:17 +0200 Subject: [PATCH 4/4] 5.4.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4a09edcc..5ab69b1a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jolocom-lib", - "version": "5.3.2", + "version": "5.4.0", "description": "Unified library for interacting with the Jolocom identity solution", "main": "js/index.js", "files": [