hyperledger-labs / go-perun

🌔 Perun's Blockchain-Agnostic State Channels Framework in Go.
https://perun.network/
Apache License 2.0
55 stars 18 forks source link

:boom: Update the mechanism for propsal ID generation #307

Closed manoranjith closed 2 years ago

manoranjith commented 2 years ago

As described in #301, use the proposer nonce share as the proposal ID.

Also,

Closes #301.

matthiasgeihs commented 2 years ago

Seb mentioned that this will not work if the client uses incrementing nonces per participant set (he could do that for whatever reason). So two ideas: 1) Either we generate the ProposalID separately. 2) We remove the option to set a nonce manually and always draw it uniform random.

What do you think? @manoranjith

manoranjith commented 2 years ago

I think, we can leave the nonce part as such and generate proposal id separately, using a uniform random source.

manoranjith commented 2 years ago

Have updated the PR. Now the proposal ID is generated using a random source, independent of the nonce share. Can you have a look @matthiasgeihs.

If it looks good, then I can squash the commit and rebase onto main.

matthiasgeihs commented 2 years ago

@manoranjith Can you rebase?

manoranjith commented 2 years ago

I have rebased. I am currently, extracting the points from our discussions and writing a proposal that describes the mechanism for proposal ID and the rationale behind it.

Do you think, we should wait for it to be completed and include its reference in the commit message before merging ?

matthiasgeihs commented 2 years ago

For me it's fine since we agree about the changes. In this sense I see the proposal as optional here. I would propose to merge if you agree.