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

Basic single node UI #208

Merged
merged 3 commits into from
Sep 19, 2019
Merged

Basic single node UI #208

merged 3 commits into from
Sep 19, 2019

Conversation

magik6k
Copy link
Contributor

@magik6k magik6k commented Sep 18, 2019

The idea is to have something like the Parity webui.

This is reusing pond components, so it's a bit uglier, but gives a decent insight into what's going on in the node

}
ctx := ReqContext(cctx)

// TODO: Probably tell the user how powerful this token is
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yolo, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the correct approach is probably to not relay on tokens like that, and instead have a more 'two-factor' approach:

  • User initializes some transaction
  • UI calls node, gets a random challenge string (think UUID), shows that to the user
  • User calls lotus auth approve [uuid]
    • Lotus shows some transaction details to the user
  • If user agrees, the transaction proceeds
$ lotus auth approve 73050e44-17fd-4425-b447-a615cfaf899b
Approving transaction:

From:      t3-5ou1i8e1-h850b-id6h5t-... # added '-'s for readability 
To:        t2-uideuid3-itohb-ue4odi-...
Amount:    12.000 000 001 FIL

Method:    multisig.Approve(123)
Gas:       1235
Gas price: 0.000 02
Gas cost:  0.000 024 70 FIL

Approve [y/N]:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parity solves this by having separate webui just for it, when it wants you to approve something it opens a new tab to it.

@magik6k
Copy link
Contributor Author

magik6k commented Sep 19, 2019

Need some of this for post integration, feel free to still review (it's mostly js so..)

@magik6k magik6k merged commit 374759e into master Sep 19, 2019
@Kubuxu Kubuxu deleted the feat/single-node-ui branch May 13, 2020 01:50
nonsense pushed a commit that referenced this pull request Nov 6, 2020
This PR adds a `TestVector` to the `TestDriver` so that test driver methods that apply messages can be recorded in the test vector.

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

Successfully merging this pull request may close these issues.

3 participants