Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

fix peer id -> did uri in sdk #152

Merged
merged 1 commit into from
Jul 20, 2023
Merged
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion sdk/src/siwe_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ impl TryFrom<HostConfig> for Message {
chain_id: c.chain_id,
domain: c.domain,
issued_at: c.issued_at,
uri: format!("peer:{}", c.peer_id)
uri: c
.peer_id
.try_into()
.map_err(|e| format!("error parsing peer as a URI: {e}"))?,
nonce: generate_nonce(),
Expand Down