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

Interact with NEAR blockchain from web frontend #12

Closed
hanfel-dovned opened this issue Jan 19, 2024 · 3 comments
Closed

Interact with NEAR blockchain from web frontend #12

hanfel-dovned opened this issue Jan 19, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@hanfel-dovned
Copy link
Contributor

hanfel-dovned commented Jan 19, 2024

See #11. The relay server Gall agent will need to interact with the .urbit account issuing smart contract on the NEAR blockchain. I'm guessing this will be done with an Iris http request to an RPC node.

Since this smart contract doesn't exist yet, for the time being, let's see if we can create a new .near account and save its private key to a Gall agent, or maybe just ~& it with a thread. This issue is just to figure out the ergonomics around making smart contract calls from Urbit. (%eth-watcher might be a good place to look for this; ~littel-wolfur is a good person to ask about that.)

EDIT: On the other hand, thanks to Auth Server, we can likely get Urbit ID authentication without having to build this relay server as a Gall agent. This means that we'd be able use pre-existing JS libraries to do contract calls, as well as not have to ask the Near Foundation to maintain an Urbit app.

With this in mind, I'm renaming this issue from "Interact with NEAR blockchain from Gall agent" to "Interact with NEAR blockchain from web frontend". This will likely be a stepping stone to doing this from a node.js server.

@hanfel-dovned hanfel-dovned added the enhancement New feature or request label Jan 19, 2024
@hanfel-dovned hanfel-dovned changed the title Interact with NEAR blockchain from Gall agent Interact with NEAR blockchain from web frontend Jan 19, 2024
@hanfel-dovned
Copy link
Contributor Author

See comment on #13.

@hanfel-dovned
Copy link
Contributor Author

@hanfel-dovned
Copy link
Contributor Author

This issue isn't very well-specified and makes too many assumptions about how we'll be structuring the .urbit account granting server. Namely, it assumes that the relay server will be a single Gall agent running on a star that makes permissioned smart contract calls; the problem with this is that we don't want to store highly valuable keys on Urbit until Urbit is more secure.

So we'll either need a web server in the flow anyway to store the keys (in which case there won't be any smart contract calls happening from within a Gall agent), or we'll do something big-brained with Ames (in which case we won't need a relay server at all). Closing this.

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

No branches or pull requests

2 participants