-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auth API #88
Auth API #88
Conversation
auth/authentication.md
Outdated
|
||
B subscribes to pairing topic from provided URI | ||
|
||
B receives request and decrypts it with symKey S. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's prob obvious but I'd add that symKey S is retrieved from URI.
Co-authored-by: Bartosz Rozwarski <bartus000@gmail.com>
Co-authored-by: Bartosz Rozwarski <bartus000@gmail.com>
…walletconnect-specs into pedrouid/auth-api
interface RequestParams { | ||
chainId: string; | ||
nonce: string; | ||
aud?: string; | ||
nbf?: string; | ||
exp?: string; | ||
statement?: string; | ||
requestId?: string; | ||
resources?: string[]; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interface RequestParams { | |
chainId: string; | |
nonce: string; | |
aud?: string; | |
nbf?: string; | |
exp?: string; | |
statement?: string; | |
requestId?: string; | |
resources?: string[]; | |
} | |
interface RequestParams { | |
domain: string; | |
chainId: string; | |
nonce: string; | |
aud: string; | |
nbf?: string; | |
exp?: string; | |
statement?: string; | |
requestId?: string; | |
resources?: string[]; | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from specs:
uri in siwe is not optional so aud should not be as well
URI: {.p.aud}
domain is required I think
```typescript | ||
interface RespondParams { | ||
topic: string; | ||
signature: CacaoSignature; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think signature may not be enough as requester do not know the whole payload and type.
could we return Cacao instead?
First draft to Auth API spec
Related to WalletConnect/walletconnect-docs#253