This helper function takes a String representing a EIP-4361 Message and a signature and verifies the message. It returns an Error if verification fails.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
services/identity/src/service.rs | ||
---|---|---|
152–155 | Could you clarify when we should use String and when &str? For nonce we use Option<&str> but for a message String. Can't we use e.g. &str for both? |
Comment Actions
wallet_login just doesn't seem necessary. What's wrong with the existing siwe API you're calling in this helper?
services/identity/src/service.rs | ||
---|---|---|
152–155 | message should be a &str |