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

tool to confirm that someone is running a particular node #4431

Closed
dckc opened this issue Feb 1, 2022 · 4 comments
Closed

tool to confirm that someone is running a particular node #4431

dckc opened this issue Feb 1, 2022 · 4 comments
Assignees
Labels
cosmic-swingset package: cosmic-swingset enhancement New feature or request

Comments

@dckc
Copy link
Member

dckc commented Feb 1, 2022

What is the Problem Being Solved?

We (@dtribble @rowgraus ) want a way to confirm that someone is running a particular node.

Description of the Design

combine https://docs.keplr.app/api/ with https://agoric.bigdipper.live/validators and maybe some google sheets integration for audit trail.

Security Considerations

to be discussed internally

Test Plan

@dckc dckc added enhancement New feature or request cosmic-swingset package: cosmic-swingset labels Feb 1, 2022
@dckc dckc added the wontfix This will not be worked on label Feb 1, 2022
@dckc dckc closed this as completed Feb 1, 2022
@dckc
Copy link
Member Author

dckc commented Feb 1, 2022

cli variant using gov submit-proposal community-pool-spend

based on a clue, I put this in a JSON file:

{
  "title": "Validator Decentralization Tiny Grant",
  "description": "Please send me 1 BLD so I can create-validator",
  "recipient": "agoric1nrmj0tufmckkwh4zjvmttrvn5p7e9c5aweupkh",
  "amount": "1000000ubld",
  "deposit": "1000ubld"
}

And I ran ag0 tx gov submit-proposal community-pool-spend:

./build/ag0 tx gov submit-proposal community-pool-spend ./p.json --chain-id agoric-3 --home=../dapp-oracle/_agstate/agoric-servers/local-solo-8000/ag-cosmos-helper-statedir/ --keyring-backend=test --from=agoric1h5e69sgw9nygtealll0hhkc53pkwxs3vtspt8l --generate-only >,tx.json

Then jq . ,tx.json shows:

{
  "body": {
    "messages": [
      {
        "@type": "/cosmos.gov.v1beta1.MsgSubmitProposal",
        "content": {
          "@type": "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal",
          "title": "Validator Decentralization Tiny Grant",
          "description": "Please send me 1 BLD so I can create-validator",
          "recipient": "agoric1nrmj0tufmckkwh4zjvmttrvn5p7e9c5aweupkh",
          "amount": [
            {
              "denom": "ubld",
              "amount": "1000000"
            }
          ]
        },
        "initial_deposit": [
          {
            "denom": "ubld",
            "amount": "1000"
          }
        ],
        "proposer": "agoric1h5e69sgw9nygtealll0hhkc53pkwxs3vtspt8l"
      }
    ],
    "memo": "",
    "timeout_height": "0",
    "extension_options": [],
    "non_critical_extension_options": []
  },
  "auth_info": {
    "signer_infos": [],
    "fee": {
      "amount": [],
      "gas_limit": "200000",
      "payer": "",
      "granter": ""
    }
  },
  "signatures": []
}

Then I signed it, offline, with ag0 tx sign:

$ ./build/ag0 tx sign ,tx.json --home=../dapp-oracle/_agstate/agoric-servers/local-solo-8000/ag-cosmos-helper-statedir/ --keyring-backend=test --from=agoric1h5e69sgw9nygtealll0hhkc53pkwxs3vtspt8l --chain-id=agoric-3 --offline --account-number 0 --sequence 1
{"body":{"messages":[{"@type":"/cosmos.gov.v1beta1.MsgSubmitProposal","content":{"@type":"/cosmos.distribution.v1beta1.CommunityPoolSpendProposal","title":"Validator Decentralization Tiny Grant","description":"Please send me 1 BLD so I can create-validator","recipient":"agoric1nrmj0tufmckkwh4zjvmttrvn5p7e9c5aweupkh","amount":[{"denom":"ubld","amount":"1000000"}]},"initial_deposit":[{"denom":"ubld","amount":"1000"}],"proposer":"agoric1h5e69sgw9nygtealll0hhkc53pkwxs3vtspt8l"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[{"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A/cZ/52MZ7a6CMMm5cd2ttnWkZ2/PXSr1DIBBY/J4IYT"},"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"sequence":"1"}],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":["O19D1GzopqleSfR5JHQwxY4H0VZ7Ivm5AUiE9KGlSdtqXdTsEfyOTh981L4C/R9SlLMW+VH/6R/xrb038sUdLw=="]}

I'm not sure how to verify the signature. hm.

@dckc dckc reopened this Feb 14, 2022
@Tartuffo
Copy link
Contributor

@dtribble Do we still need the capability to see if someone is running a particular node, and if so, in the MN-1 timeframe?

@dckc dckc removed the wontfix This will not be worked on label Feb 16, 2022
@dckc
Copy link
Member Author

dckc commented Feb 23, 2022

I drafted a plan to make this Somebody Else's Problem:
Agoric/validator-profiles#80

@dckc dckc closed this as completed Mar 2, 2022
@dckc
Copy link
Member Author

dckc commented Mar 2, 2022

Thanks to some of our validators for taking this over from us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cosmic-swingset package: cosmic-swingset enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants