-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Implement NotaryAssisted transaction attribute #3175
base: master
Are you sure you want to change the base?
Conversation
Close neo-project#2896. Use a stub for native Notary contract hash since this contract is not implemented yet. Thus, technically, NotaryAssisted attribute verification will always fail on real network until native Notary is implemented. Signed-off-by: Anna Shaleva <[email protected]>
Port neo-project/neo#3175. Ref. neo-project/neo#2896. Signed-off-by: Anna Shaleva <[email protected]>
Port neo-project/neo#3175. Ref. neo-project/neo#2896. Signed-off-by: Anna Shaleva <[email protected]>
I'm not allowed to request review, set labels or resolve conversations. Maybe someone from neo-project with access rights can allow me at least to request review? |
You didn't accept your role xD, I sent you an invitation time ago... Time to review your email? 😄 |
Hi @AnnaShaleva , we are trying to add as much comments in the core as possible, may you please add comments to explain |
…ribute Signed-off-by: Anna Shaleva <[email protected]>
Sure, fixed. |
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.
GAS.OnPersist change is missing for the attribute.
Transactions network fee should be split between Primary node and Notary nodes. Signed-off-by: Anna Shaleva <[email protected]>
Signed-off-by: Anna Shaleva <[email protected]>
Once Notary contract is implemented, this hash will be replaced by a proper Notary contract hash. The exact value won't be changed since Notary contract has constant hash as any other native contract. Signed-off-by: Anna Shaleva <[email protected]>
Completely forgot about it, fixed. |
Maybe this PR we merge after next release. |
This PR doesn't hurt because currently in real network NotaryAssisted attribute is always invalid since transaction must have Notary contract as a signer, and Notary contract is not implemented yet. Thus, I vote to merge it before 3.7. What do you think? |
It goes step by step, @vncoelho. What this delay would buy us? The attribute logic is rather simple on its own. |
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 need more time to review the notary proposal, honestly, I didn't expect it to be merged in 3.7 and it is already beginning to produce changes in the core
I am aligned with @vang1ong7ang and I will wait until his recommendations are all clarified. |
@vncoelho, @vang1ong7ang There are replies (#3175 (comment), #3175 (comment)), so could you please specify the exact questions/issues/possible vector of attack that you have in mind right now? So that we can answer properly. |
@neo-project/core, let's try to review one more time, if you have any specific test cases or a possible vector of attack on your mind, then please, comment. This PR is ready for review and may be included into 3.8.0. |
@AnnaShaleva, now with neo-modules integrated we also need changes from neo-project/neo-modules#884 here. |
Sure, will port it ASAP. |
Port the neo-project/neo-modules#884. Signed-off-by: Anna Shaleva <[email protected]>
fbf5eae
Also need to move Policy update under Domovoi hardfork to keep our states unchanged, depends on #3290. |
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.
Fix all the warning please
XML comment has badly formed XML -- 'Missing equals sign between attribute and attribute value.'
Signed-off-by: Anna Shaleva <[email protected]>
We've checked that NeoFS networks are 100% compatible with both Notary contract and NotaryAssisted attribute enabled starting from D hardfork (see the nspcc-dev/neo-go#3465). It means that Notary contract and NotaryAssisted attribute implementation won't change the existing node state. In the last commit I've moved NotaryAssisted attribute under D hardfork.
Thank you, fixed! |
Signed-off-by: Anna Shaleva <[email protected]>
eded6bd
to
c229cd5
Compare
D hardfork was occupied by 3.7.5, thus use the next available one. Signed-off-by: Anna Shaleva <[email protected]>
UPD: we're aware of the Technical Committee decision to postpone the Notary subsystem implementation. However, we think that it's good to keep this code up-to-date wrt the current master so that it'll be easier for us to review and merge it once the time comes. Hence, I've updated the code to the latest master and moved the |
Description
Close #2896. Use a stub for native Notary contract hash since this contract is not implemented yet. Thus, technically, NotaryAssisted attribute verification will always fail on real network until native Notary is implemented.
Type of change
How Has This Been Tested?
Checklist: