-
Notifications
You must be signed in to change notification settings - Fork 76
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
[Ceres]: Document FATE delegation signatures #520
Conversation
b3c70d7
to
43e9ab6
Compare
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.
Related issues aeternity/aeternity#4177 aeternity/aeternity#4178
|
||
There are five different delegation signatures: | ||
- `AENS_PRECLAIM` - the user signs: `owner account + contract` | ||
- `AENS_CLAIM`,`AENS_UPDATE`, `AENS_TRANSFER`, `AENS_REVOKE` - the user signs: |
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.
- `AENS_CLAIM`,`AENS_UPDATE`, `AENS_TRANSFER`, `AENS_REVOKE` - the user signs: | |
- `AENS_CLAIM`, `AENS_UPDATE`, `AENS_TRANSFER`, `AENS_REVOKE` - the user signs: |
We use the tag `0x1a01` to identify delegation signatures. We use the following | ||
tags/types to identify the different delegation signatures: | ||
|
||
| Tag | Delegation type | |
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.
With this tag, we don't need prefixed ids and can use binary as before, but I don't have a preference.
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.
Let's do it like this, it is in line with the other serializations...
- `ORACLE_RESPOND` - the user signs: `query id + contract` | ||
|
||
To protect about cross network re-use of signatures, the data to be signed is | ||
also prefixed with the _network id_. |
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.
Why not mention the net id everywhere? When I see "the user signs" I would expect that the user signs exactly that with no qualifications in a paragraph after.
This is what I hate in law language the most.
In Ceres we introduce better, more structured, delegation signatures. This (a) properly documents the old delegation signature, and (b) documents the new more structured signatures.
This PR is supported by the Æternity Foundation