This repository has been archived by the owner on Dec 12, 2024. It is now read-only.
generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 55
ION Reads and Writes #370
Merged
Merged
ION Reads and Writes #370
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
9a0bdea
temp
48aa736
ion did progress
a37cbce
generic DID storage
ff199eb
Merge remote-tracking branch 'origin/main' into 340-ion-reads-writes
3c4a426
merge'
2759457
ion logic
d671331
temp:
dc4e6cd
test ion did handler in unit test
982128a
integration test
fee399f
lint
0f0d429
whoops
ba47a2c
add ion to config
422178d
better tests
01b4410
fix tests
18344fc
return priv key bytes
86607fc
update comment
5ebd390
refer to alice's key properly
7b9cb47
fix int test
6c9804d
options
13efea7
more test fix
4a0d02f
lint
368a076
pr comment
563992d
fix go sum
6cf039a
Merge branch 'main' into 340-ion-reads-writes
decentralgabe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,9 +105,10 @@ func (k *KeyStoreServiceConfig) IsEmpty() bool { | |
type DIDServiceConfig struct { | ||
*BaseServiceConfig | ||
Methods []string `toml:"methods"` | ||
ResolutionMethods []string `toml:"resolution_methods"` | ||
LocalResolutionMethods []string `toml:"local_resolution_methods"` | ||
UniversalResolverURL string `toml:"universal_resolver_url"` | ||
UniversalResolverMethods []string `toml:"universal_resolver_methods"` | ||
IONResolverURL string `toml:"ion_resolver_url"` | ||
} | ||
|
||
func (d *DIDServiceConfig) IsEmpty() bool { | ||
|
@@ -255,9 +256,9 @@ func loadDefaultServicesConfig(config *SSIServiceConfig) { | |
ServiceKeyPassword: "default-password", | ||
}, | ||
DIDConfig: DIDServiceConfig{ | ||
BaseServiceConfig: &BaseServiceConfig{Name: "did"}, | ||
Methods: []string{"key", "web"}, | ||
ResolutionMethods: []string{"key", "peer", "web", "pkh"}, | ||
BaseServiceConfig: &BaseServiceConfig{Name: "did"}, | ||
Methods: []string{"key", "web"}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we want to add ion into the default method? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think so because it requires having a valid write node configured |
||
LocalResolutionMethods: []string{"key", "peer", "web", "pkh"}, | ||
}, | ||
SchemaConfig: SchemaServiceConfig{ | ||
BaseServiceConfig: &BaseServiceConfig{Name: "schema"}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
url doesn't resolve to anything right now, was this a placeholder or will this be the real url?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is in fact our ion node - you'll notice it works if you make a query like
https://tbdwebsiteonline.com/identifiers/did:ion:EiBnKzBTMxW6wM5kIlVBHidpbvKHC9QrNqfYL-Rhpbt63Q