Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ConditionalProof types #143

Merged
merged 31 commits into from
Mar 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
0a0bcef
fix types
Rebal17 Oct 18, 2022
7ec3e39
added type
Rebal17 Oct 25, 2022
aa5c948
Merge pull request #1 from Tonomy-Foundation/feature/12-verify
Rebal67 Oct 25, 2022
c63f7bd
added types
Rebal17 Nov 1, 2022
1fd98ad
Merge branch 'master' of https://github.com/Tonomy-Foundation/did-res…
Rebal17 Nov 15, 2022
2f7ac16
Merge pull request #2 from Tonomy-Foundation/featture/14-verify-2-thr…
theblockstalk Nov 15, 2022
b6bd3db
added full ConditionalProof2022 VerificationMethod type
theblockstalk Nov 16, 2022
58b9e83
Merge pull request #3 from Tonomy-Foundation/feature/13-delegated-acc…
theblockstalk Nov 23, 2022
b3abec0
change naming
Rebal17 Dec 17, 2022
35133cc
v4.1.0
Rebal17 Dec 17, 2022
2062839
changing package scope
Rebal17 Dec 17, 2022
21c3435
v4.1.1
Rebal17 Dec 17, 2022
41ccdc2
make it public
Rebal17 Dec 17, 2022
8b2a000
fix error
Rebal17 Dec 17, 2022
c5702b0
v4.1.2
Rebal17 Dec 17, 2022
04f806e
add registry to app.json
Rebal17 Dec 17, 2022
3e1e433
v4.1.3
Rebal17 Dec 17, 2022
563003e
changing access
Rebal67 Dec 30, 2022
1572f2f
adding contributors
Rebal67 Dec 30, 2022
d1bdc5f
v4.0.2
Rebal67 Dec 30, 2022
efdc712
lint fix
Rebal67 Dec 30, 2022
0f61b4d
v4.0.3
Rebal67 Dec 30, 2022
2deed6e
fix read me
Rebal67 Dec 30, 2022
5acf1bd
v4.0.4
Rebal67 Dec 30, 2022
b858c5c
Merge branch 'publish'
theblockstalk Mar 7, 2023
69bfdf9
Removed registry
theblockstalk Mar 7, 2023
0b87938
Removed package-lock.json
theblockstalk Mar 7, 2023
b3cd7e3
changed package name back to did-resolver
theblockstalk Mar 7, 2023
cb754d3
changed back yarn.lock
theblockstalk Mar 7, 2023
3e9b73f
changed version back
theblockstalk Mar 7, 2023
7995c6a
Updated ConditionalProof2022 subtypes
theblockstalk Mar 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
},
"author": "Pelle Braendgaard",
"contributors": [
"Mircea Nistor <mircea.nistor@mesh.xyz>"
"Mircea Nistor <mircea.nistor@mesh.xyz>",
"Jack Tanner <jack+public@tonomy.foundation>",
"Rebal Alhaqash <rebal@tonomy.foundation>"
],
"license": "Apache-2.0",
"scripts": {
Expand Down
16 changes: 16 additions & 0 deletions src/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,22 @@ export interface VerificationMethod {
publicKeyMultibase?: string
blockchainAccountId?: string
ethereumAddress?: string

// ConditionalProof2022 subtypes
conditionOr?: VerificationMethod[]
conditionAnd?: VerificationMethod[]
threshold?: number
conditionThreshold?: VerificationMethod[]
conditionWeightedThreshold?: ConditionWeightedThreshold[]
conditionDelegated?: string
relationshipParent?: string[]
relationshipChild?: string[]
relationshipSibling?: string[]
}

export interface ConditionWeightedThreshold {
condition: VerificationMethod
weight: number
}

/**
Expand Down