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

Fix commitment scheme #129

Closed
rrtoledo opened this issue Nov 26, 2019 · 3 comments
Closed

Fix commitment scheme #129

rrtoledo opened this issue Nov 26, 2019 · 3 comments

Comments

@rrtoledo
Copy link
Contributor

Our commitment scheme follows ZeroCash's and truncates the outer commitment to 128 bits.

ZCash considers this as a vulnerability however as an adversary would need to perform only 2^64 operations to find a collision which they argue is feasible nowadays (c.f. https://electriccoin.co/blog/fixing-zcash-vulns/).

I propose in this issue to remove the truncation (and have r_trap of size 256 bits). This changes our security properties from statistical hiding commitment scheme to computationally hiding.

@riemann89
Copy link
Contributor

I propose in this issue to remove the truncation (and have r_trap of size 256 bits). This changes our security properties from statistical hiding commitment scheme to computationally hiding.

What about to implement the zcash commitment scheme? cm=SHA256(0xB0 \| apk \| v \| ρ \| r)

By using Blake of course. I think we already discussed it off-line.

@rrtoledo
Copy link
Contributor Author

This would work !

@rrtoledo
Copy link
Contributor Author

Solved in Zeth updated.

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

2 participants