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

Replace complex ec operations with a hash in LNPBP-0004 #19

Closed
afilini opened this issue Mar 25, 2020 · 2 comments
Closed

Replace complex ec operations with a hash in LNPBP-0004 #19

afilini opened this issue Mar 25, 2020 · 2 comments
Assignees
Labels
[DBC] Deterministic bitcoin commitments enhancement New feature or request
Milestone

Comments

@afilini
Copy link
Contributor

afilini commented Mar 25, 2020

The fifth step of LNPBP-0004 says that

For each of the slots that remain empty (the slot number is represented by j):

  • tweak public key R with it's own hash H(R) j times: Rj = R + J * H(R) * G)
  • compute a 256-bit bitcoin hash of Rj and serialize it into the slot j using bitcoin-style hash serialization format.

Where R is entropy * G.

I think we could replace that with a simple SHA256(entropy || j)

@dr-orlovsky
Copy link
Member

My consideration: we need to force that the amount of entropy is sufficient. How we can enforce that the size of the hashed entropy would not be lees than some specific level?

@dr-orlovsky dr-orlovsky self-assigned this Apr 22, 2020
@dr-orlovsky dr-orlovsky added [DBC] Deterministic bitcoin commitments enhancement New feature or request labels Apr 22, 2020
@dr-orlovsky dr-orlovsky added this to the DBC: proposals milestone Apr 22, 2020
@dr-orlovsky
Copy link
Member

After the discussion on the today call it was decided to stick to simple deterministic hashes and do not use either EC math or verifiable delay functions

@dr-orlovsky dr-orlovsky reopened this Jun 3, 2020
@dr-orlovsky dr-orlovsky changed the title Replace complex ec operations with an hash in LNPBP-0004 Replace complex ec operations with a hash in LNPBP-0004 Oct 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[DBC] Deterministic bitcoin commitments enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants