From c63f7bde0a51b6d776406a56c315c8c433eabc58 Mon Sep 17 00:00:00 2001 From: rebal67 Date: Tue, 1 Nov 2022 09:27:28 +0100 Subject: [PATCH] added types --- src/resolver.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/resolver.ts b/src/resolver.ts index 25ab12d..150db35 100644 --- a/src/resolver.ts +++ b/src/resolver.ts @@ -154,7 +154,7 @@ export interface JsonWebKey extends Extensible { * @see {@link https://www.w3.org/TR/did-core/#verification-methods} * @see {@link https://www.w3.org/TR/did-core/#verification-method-properties} */ -export interface VerificationMethod { + export interface VerificationMethod { id: string type: string controller: string @@ -165,8 +165,20 @@ export interface VerificationMethod { publicKeyMultibase?: string blockchainAccountId?: string ethereumAddress?: string + conditionWeightedThreshold?: ConditionWeightedThreshold[] + threshold?: number + // TODO add other properties of VerifiableConditions: threshold, conditionThreshold, conditionAnd, conditionOr } +export interface ConditionWeightedThreshold { + condition: { + id: string + controller: string + type: string + publicKeyJwk: JsonWebKey + } + weight: number +} /** * URI params resulting from parsing a DID URI */