Skip to content

Commit

Permalink
add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
shamilovtim committed Oct 24, 2024
1 parent 88c5bbe commit 4734da2
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .changeset/chilled-paws-stare.md
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
) { ... }
```

0 comments on commit 4734da2

Please sign in to comment.