catalyst-core icon indicating copy to clipboard operation
catalyst-core copied to clipboard

Add Catalyst Web Token design specification

Open stevenj opened this issue 2 years ago • 4 comments
trafficstars

stevenj avatar Jan 26 '23 13:01 stevenj

Couple of general comments:

* CWT as "catalyst web token" seems to conflict with "cbor web token", so the sentence "a CWT is a CWT" is now something we might actually want to say. Maybe there's another name? Catalyst Auth Token? Permissionless Auth Token? Maybe this needs some bikeshedding

I intentionally used the same acronym because it is literally a CBOR Web Token, so it can be interpreted either way. However, this relates to the title of this document. Because I actually define a Pre Auth token and a Auth token. So I probably don't need to explicitly call it a CWT.

* Should this be in `catalyst-standards`? Or will we generally "promote" stuff from here to `catalyst-standards` once we're happy with it?

Yes it should. My plan is to do an internal review here until I am happy with the catalyst standards repo. Once that repo is ready for standards I will move this document over.

stevenj avatar Jan 26 '23 14:01 stevenj

is there any mitigation for CSRF i.e state

cong-or avatar Jan 27 '23 14:01 cong-or

is there any mitigation for CSRF i.e state

The short answer is yes, it should be CSRF proof if implemented properly at both ends. The longer answer will be added to the document :)

stevenj avatar Jan 30 '23 07:01 stevenj

This is priceless. If we can say a CWT is a CWT, then we can also say a dREP is a dREP.

QuasarChains avatar Mar 02 '23 21:03 QuasarChains