generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Protocol definitions for
DwnDidStore
, DwnKeyStore
and `DwnIdentit…
…yStore` (#743) * protocol defined key/identity/did stores * skipped tech-preview for test coverage --------- Co-authored-by: Henry Tsai <[email protected]>
- Loading branch information
1 parent
60db3dc
commit 44604a4
Showing
13 changed files
with
351 additions
and
36 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@web5/agent": minor | ||
"@web5/identity-agent": minor | ||
"@web5/proxy-agent": minor | ||
"@web5/user-agent": minor | ||
--- | ||
|
||
Protocol driven identity, key and did storage |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import type { ProtocolDefinition } from '@tbd54566975/dwn-sdk-js'; | ||
|
||
export const IdentityProtocolDefinition: ProtocolDefinition = { | ||
protocol : 'http://identity.foundation/protocols/web5/identity-store', | ||
published : false, | ||
types : { | ||
portableDid: { | ||
schema : 'https://identity.foundation/schemas/web5/portable-did', | ||
dataFormats : [ | ||
'application/json' | ||
] | ||
}, | ||
identityMetadata: { | ||
schema : 'https://identity.foundation/schemas/web5/identity-metadata', | ||
dataFormats : [ | ||
'application/json' | ||
] | ||
} | ||
}, | ||
structure: { | ||
portableDid : {}, | ||
identityMetadata : {} | ||
} | ||
}; | ||
|
||
export const JwkProtocolDefinition: ProtocolDefinition = { | ||
protocol : 'http://identity.foundation/protocols/web5/jwk-store', | ||
published : false, | ||
types : { | ||
privateJwk: { | ||
schema : 'https://identity.foundation/schemas/web5/private-jwk', | ||
dataFormats : [ | ||
'application/json' | ||
] | ||
}, | ||
}, | ||
structure: { | ||
privateJwk: {} | ||
} | ||
}; |
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.