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.
- Loading branch information
1 parent
88c5bbe
commit 4734da2
Showing
1 changed file
with
29 additions
and
0 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,29 @@ | ||
--- | ||
"@web5/agent": patch | ||
--- | ||
|
||
security enhancements: use separate DIDs for signing, encryption, verification of web5 connect | ||
feature enhancements: prepare code for the option of exporting the DWA's DID to a wallet | ||
|
||
breaking changes for wallet authors. | ||
|
||
web5 connect's `getAuthRequest()` now returns an object which include both the authRequest and a DID: | ||
|
||
```ts | ||
{ | ||
authRequest: Web5ConnectAuthRequest; | ||
clientEcdhDid: DidResolutionResult; | ||
} | ||
``` | ||
|
||
web5 connect's `submitAuthResponse()` now requires that the did received from `getAuthRequest()` is passed in to the method at position 4: | ||
|
||
```ts | ||
async function submitAuthResponse( | ||
selectedDid: string, | ||
authRequest: Web5ConnectAuthRequest, | ||
randomPin: string, | ||
clientEcdhDid: DidResolutionResult, | ||
agent: Web5Agent | ||
) { ... } | ||
``` |