-
Notifications
You must be signed in to change notification settings - Fork 9
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 request verification on send #7
Conversation
…/cli-plugin-network into feat/request-verification
Sorry but how to use an invalid signature ^^' ? |
By opening the gentx file generated from the |
@lubtd What I did so far : With the
Alter gentx signature in {
"body":{
"messages":[
{
"@type":"/cosmos.staking.v1beta1.MsgCreateValidator",
"description":{
"moniker":"moniker",
"identity":"",
"website":"",
"security_contact":"",
"details":""
},
"commission":{
"rate":"0.100000000000000000",
"max_rate":"0.200000000000000000",
"max_change_rate":"0.010000000000000000"
},
"min_self_delegation":"1",
"delegator_address":"cosmos13gdkcvyz8us4u5lwdh7n5adldydrzmmgt0rfsw",
"validator_address":"cosmosvaloper13gdkcvyz8us4u5lwdh7n5adldydrzmmgwmhuua",
"pubkey":{
"@type":"/cosmos.crypto.ed25519.PubKey",
"key":"xYkKtYSNzod+l+fn0wBMmDD7aQZhCz5NCT/nFmk2JYQ="
},
"value":{
"denom":"stake",
"amount":"95000000"
}
}
],
"memo":"[email protected]:26656",
"timeout_height":"0",
"extension_options":[
],
"non_critical_extension_options":[
]
},
"auth_info":{
"signer_infos":[
{
"public_key":{
"@type":"/cosmos.crypto.secp256k1.PubKey",
"key":"ApllJatAUGW+po90temdo1IVfyByvkxAuw2ME0G3MDE7"
},
"mode_info":{
"single":{
"mode":"SIGN_MODE_DIRECT"
}
},
"sequence":"0"
}
],
"fee":{
"amount":[
],
"gas_limit":"200000",
"payer":"",
"granter":""
},
"tip":null
},
"signatures":[
- "mn2D051PW7l7vXLOxFbzmWjbnZ6p/dDBhTlxi0RmZQMUDBO0fyYWyyvfL5EWeV+CJEaOXOV/rvxU+Sk8iQwX0A=="
+ "mn2D051PW7l7vXLOxFbzmWjbnZ6p/dDBhTlxi0RmZQMUDBO0fyYWyyvfL5EWeV+CJEaOXOV/rvxU+Sk8iQwX0B=="
]
} Run Changed my plugins:
-- path: github.com/ignite/cli-plugin-network@main
+- path: github.com/ignite/cli-plugin-network@feat/request-verification Run |
@tbruyelle can't reproduce The command fails with the change:
|
@lubtd OK I have also a panic "signature verification failed" if I replace the I'm just wondering why that doesn't happen if I replace the |
When I replace the I try to see if this a normal part of the signature since the failing example shows it goes into the same workflow that tries to initialize the genesis and therefore verifies the signatures |
@tbruyelle what about creating a separate issue to investigate this? At this point it's the |
so you mean the issue should be created in the CLI? |
Will approve once new issue is opened |
No, the logic that verifies transaction signature in the SDK, since a gentx is a regular Cosmos tx |
|
Close ignite/cli#3257
Add the verification logic for requests when they are sent in addition to approve.
For this some refactoring have been done:
Join
is no longer sending requests, it returns request content for simulationTest
Try to join the chain as a coordinator with a gentx with an invalid signature (it used to work)