Skip to content
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

"gaia tx sign adrian.json --validate-signatures" always returns OK #2991

Closed
4 tasks
adrianbrink opened this issue Dec 4, 2018 · 2 comments · Fixed by #2995
Closed
4 tasks

"gaia tx sign adrian.json --validate-signatures" always returns OK #2991

adrianbrink opened this issue Dec 4, 2018 · 2 comments · Fixed by #2995
Assignees

Comments

@adrianbrink
Copy link
Contributor

Summary of Bug

gaia tx sign adrian.json --validate-signatures does not work. It returns OK even if the signature data is missing.

Steps to Reproduce

Run gaia tx sign adrian.json --validate-signatures against either transaction.

Original content and signature

{
    "type": "auth/StdTx",
    "value": {
      "msg": [
        {
          "type": "cosmos-sdk/MsgCreateValidator",
          "value": {
            "Description": {
              "moniker": "Cryptium Labs",
              "identity": "5A309B5CA189D8B3",
              "website": "https://cryptium.ch/",
              "details": ""
            },
            "Commission": {
              "rate": "1.0000000000",
              "max_rate": "1.0000000000",
              "max_change_rate": "1.0000000000"
            },
            "delegator_address": "cosmos1eysta0x7quczxkecrm6f36assewqddr0879wgv",
            "validator_address": "cosmosvaloper1eysta0x7quczxkecrm6f36assewqddr0z23myl",
            "pubkey": {
              "type": "tendermint/PubKeyEd25519",
              "value": "5I1f+SucFbnCuL5DV5g0xuQws5/oPgKf9UtXRk47+co="
            },
            "delegation": {
              "denom": "STAKE",
              "amount": "10000"
            }
          }
        }
      ],
      "fee": {
        "amount": [
          {
            "denom": "",
            "amount": "0"
          }
        ],
        "gas": "200000"
      },
      "signatures": [
        {
          "pub_key": {
            "type": "tendermint/PubKeySecp256k1",
            "value": "ApMbpXOltvp26VnVYUCmU6jPiIviNUDItOD2nsmRvtKF"
          },
          "signature": "Ts3C1iGqGue5G+Btxmn+qADn0A0JCZDgLncPgEVNDYJHXzIQApFNPmKtuVd6XEFs6iShBWNcB45psIjZGIRIMQ==",
          "account_number": "0",
          "sequence": "0"
        }
      ],
      "memo": "29cca3d3189ea2caf8ea7534d8f791f8f9d34a99@192.168.95.231:26656"
    }
}

Changed content and signature data missing

{
    "type": "auth/StdTx",
    "value": {
      "msg": [
        {
          "type": "cosmos-sdk/MsgCreateValidator",
          "value": {
            "Description": {
              "moniker": "Cryptium Labs",
              "identity": "5A309B5CA189D8B3",
              "website": "https://cryptium.ch/",
              "details": ""
            },
            "Commission": {
              "rate": "1.0000000000",
              "max_rate": "1.0000000000",
              "max_change_rate": "1.0000000000"
            },
            "delegator_address": "cosmos1eysta0x7quczxkecrm6f36assewqddr0879wgv",
            "validator_address": "cosmosvaloper1eysta0x7quczxkecrm6f36assewqddr0z23myl",
            "pubkey": {
              "type": "tendermint/PubKeyEd25519",
              "value": "5I1f+SucFbnCuL5DV5g0xuQws5/oPgKf9UtXRk47+co="
            },
            "delegation": {
              "denom": "STEAK",
              "amount": "10000"
            }
          }
        }
      ],
      "fee": {
        "amount": [
          {
            "denom": "",
            "amount": "0"
          }
        ],
        "gas": "200000"
      },
      "signatures": [
        {
          "pub_key": {
            "type": "tendermint/PubKeySecp256k1",
            "value": "ApMbpXOltvp26VnVYUCmU6jPiIviNUDItOD2nsmRvtKF"
          },
          "account_number": "0",
          "sequence": "0"
        }
      ],
      "memo": "29cca3d3189ea2caf8ea7534d8f791f8f9d34a99@192.168.95.231:26656"
    }
}

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@alexanderbez
Copy link
Contributor

/cc @alessio

@alexanderbez
Copy link
Contributor

I can take a look at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants