-
Notifications
You must be signed in to change notification settings - Fork 19
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: add ApproveOracleRegistration tx #527
Conversation
…_registration_keeper # Conflicts: # .github/workflows/ci.yml # proto/panacea/datadeal/v2/deal.proto # proto/panacea/datadeal/v2/genesis.proto # proto/panacea/datadeal/v2/query.proto # proto/panacea/datadeal/v2/tx.proto # proto/panacea/oracle/v2/oracle.proto # x/datadeal/types/deal.pb.go # x/datadeal/types/genesis.pb.go # x/datadeal/types/query.pb.go # x/datadeal/types/tx.pb.go # x/oracle/types/keys.go # x/oracle/types/oracle.pb.go # x/oracle/types/params.go
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.
I use secp256k1
based signature verification. However, there Is another option that using btcec
signing and verification. Please comment on which method would be better.
If using the using secp256k1(github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1)oraclePrivKeySecp256k1 := secp256k1.GenPrivKey()
signatureBz, err := oraclePrivKeySecp256k1.Sign(unsignedCertBz) using btcecoraclePrivKeyBtcec := btcec.NewPrivateKey(btcec.S256())
signature, err := oraclePrivKeyBtcec..Sign(unsignedCertBz)
signatureBz := signature.Serialize() The two signatures are different. |
We discussed offline and decided to use btcec |
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.
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.
Thanks for your work. I left a minor comment.
Co-authored-by: Youngjoon Lee <yjlee@medibloc.org>
…_registration_keeper # Conflicts: # x/oracle/keeper/oracle.go # x/oracle/keeper/oracle_test.go # x/oracle/types/errors.go # x/oracle/types/events.go # x/oracle/types/message_oracle.go # x/oracle/types/oracle.go
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.
Thank you.
Check my review please.:)
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
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
closes #510.
RegisterOracle
function at PR feat: implement register oracle #519