Skip to content
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

I think we don't need INSPECTOUTPUTNONCE when we already checked that value and asset are explicit #7

Open
dgpv opened this issue Apr 27, 2023 · 1 comment

Comments

@dgpv
Copy link
Collaborator

dgpv commented Apr 27, 2023

// Check that the nonce on out 0 is empty
<0>
OP_INSPECTOUTPUTNONCE
<0>
OP_EQUALVERIFY

@dgpv
Copy link
Collaborator Author

dgpv commented Apr 27, 2023

The code above that checks that both value and asset of output 0 are non-confidential.

I used the 'nonce is empty' check in my early covenant code as a belts-and-suspenders check, but now I'm really in doubt if it is useful at all, when we already checked that asset and/or value is non-confidential. As I understand, the nonce will be non-empty only if they are confidential.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant