Move MsgVerify from oracles to proto#468
Conversation
|
I am not a big fan of this change. We use helium/ |
I don't think it belongs in |
After a bit of discussion, I think we came to the proposal to add a helium-proto-ext workspace member to the helium-wallet-rs repo.. that way helium-lib and the new proto-ext crate share the same crypto and proto versions, while allowing other crates to pick up the helper functions without getting into solana dependencies |
We had another chat about this change. If we were to keep MsgVerify in helium-proto, then we can use a proc macro to detect the signature field and automatically have the verify method. It also saves us from having to update helium-lib everytime we add a new proto and want the verify method. Let us know what you think. |
* Added historical gateway info req and service * Added v1 to historical gateway req * Updated formatting for info historical rpc * Changed historical info to info_at_timestamp * Add speedtest_value_out_of_bounds field to speedtest_verification_result (#457) --------- Co-authored-by: Anatolii Kurotych <akurotych@gmail.com>
This reverts commit d63b09f.
Add signature method for MsgHasSignature trait
MsgVerify trait originally belonged to oracles/file_store but was moved to oracles/file_store_oracles to remove the helium_proto dependency on file_store. This meant that cdr_service depended on file_store_oracles as it also uses MsgVerify.
We don't want to move
MsgVerifytohelium-protoas that would add a dependency onhelium-crypto. Instead, I created a new traitMsgHasSignaturewhich will be added to all protos with asignaturefield.MsgVerifyhas been moved tohelium-wallet-rswhere it will add averify()method to all protos with aMsgHasSignaturetrait.