-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add an optional verifier to crowdloan #2248
Conversation
447eb31
to
09d3ae3
Compare
I've update the code so it benchmark with the signature case, so it will overestimate for non signature case but I think that's fine. But because crowdloan is not added to any runtime so I can't run the benchmark code to verify if my change actually works. |
Actually my benchmark code doesn't work because the signing API is not available in wasm unless |
What signing api do you need? |
So I can sign something and get it verified in the benchmarked code |
How do I inject key into the crypto store? |
11bcab1
to
a3abd8d
Compare
@bkchr CI failed with error:
|
I have the keystone working in test but not sure if it will work in runtime benchmark. Also another issue is in the real runtime, we will likely be using But there is no appropriate interface to create signature so I am using Maybe we need to add some new benchmarking only method to |
Updated to only support ed25519 to make it simpler |
This is ready for review |
@shawntabrizi you ok with this? |
@xlc ive made it support MultiSigner and MultiSignature for ed25519, sr25519, and edcsa |
This will allow crowd loan owner to enforce any custom policy offchain for contributors by requiring a valid signature before accept a contribution.
TODOs:
Replaces #2230