-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat: rln subcommands #654
Conversation
Jenkins BuildsClick to see older builds (60)
|
@alrevuelta The PR as it is right now can be used to create keystores. If you want, i can add some flag that could let you send the transactions and create the keystore items regardless of the transaction being mined or not. The subcommand also has some flags to specify the nonce, and gas price in case you need to modify this for your tests |
bdc1e63
to
420891c
Compare
6ce04a1
to
996c8a5
Compare
f4e7e04
to
a70ef8e
Compare
@@ -0,0 +1,3 @@ | |||
[submodule "waku/v2/protocol/rln/contracts/rln-contract"] | |||
path = waku/v2/protocol/rln/contracts/rln-contract | |||
url = [email protected]:vacp2p/rln-contract.git |
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.
err we should use the waku-org/waku-rln-contract now!
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.
Using waku-rln-contract WakuRlnRegistry
introduces a lot of breaking changes, due to how the bindings for go are modified and I end up not being able to retrieve the events:
waku/v2/protocol/rln/group_manager/dynamic/web3.go:17:73: undefined: contracts.RLNMemberRegistered
waku/v2/protocol/rln/group_manager/dynamic/web3.go:110:102: undefined: contracts.RLNMemberRegistered
waku/v2/protocol/rln/group_manager/dynamic/web3.go:111:27: undefined: contracts.RLNMemberRegistered
waku/v2/protocol/rln/group_manager/dynamic/web3.go:172:104: undefined: contracts.RLNMemberRegistered
waku/v2/protocol/rln/group_manager/dynamic/web3.go:173:37: gm.rlnContract.FilterMemberRegistered undefined (type *contracts.RLN has no field or method FilterMemberRegistered)
waku/v2/protocol/rln/group_manager/dynamic/dynamic.go:58:59: undefined: contracts.RLNMemberRegistered
waku/v2/protocol/rln/group_manager/dynamic/dynamic.go:73:36: undefined: contracts.RLNMemberRegistered
waku/v2/protocol/rln/group_manager/dynamic/dynamic.go:76:42: undefined: contracts.RLNMemberRegistered
waku/v2/protocol/rln/group_manager/dynamic/dynamic.go:151:24: gm.rlnContract.MEMBERSHIPDEPOSIT undefined (type *contracts.RLN has no field or method MEMBERSHIPDEPOSIT)
waku/v2/protocol/rln/group_manager/dynamic/dynamic.go:231:38: undefined: contracts.RLNMemberRegistered
waku/v2/protocol/rln/group_manager/dynamic/web3.go:173:37: too many errors
Notice how I can't easily filter events, nor obtain the fee.
Since @alrevuelta is still using vacp2p/rln-contract, I'll figure out how to solve the errors introduced by changing the contract in a separate PR.
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.
LGTM, just had 1 query.
cli "github.com/urfave/cli/v2" | ||
) | ||
|
||
// Command generates a key file used to generate the node's peerID, encrypted with an optional password |
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.
Node's peerId maynot be tied to RLN membership right.
A user has the flexibility to use different public/private key pair for RLN and peerID generation.
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.
Correct. the peerID is not associated to rln. User is able to choose which credential to use via the membership group and keystore index flags
cmd/waku/rlngenerate/web3.go
Outdated
return 0, fmt.Errorf("transaction error: %w", err) | ||
} | ||
|
||
url := "" |
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.
Better to rename to explorerURL
a70ef8e
to
060bcbc
Compare
060bcbc
to
93398ed
Compare
Description
See waku-org/nwaku#1887 for justification to remove registration from the wakunode.
Changes
Testing