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

SDK for wallet integration with Hydra #1509

Open
rezabaram opened this issue Jul 16, 2024 · 1 comment
Open

SDK for wallet integration with Hydra #1509

rezabaram opened this issue Jul 16, 2024 · 1 comment
Labels
good first issue Highlight opportunities for people to contribute to the project green 💚 Low complexity or well understood feature 💬 feature A feature on our roadmap

Comments

@rezabaram
Copy link
Collaborator

rezabaram commented Jul 16, 2024

Why

We would like to enable users and applications hosted in Hydra head (i.e. in the L2) to perform typical operations as in a web3 applications, such as perform connecting a wallet, query balance and submit transactions to spend things. Currently, the only way to perform such operations is through low level interactions with the Hydra node's API and no easy way for developers of web based applications to implement these.

What

Within this feature we want to take first step in this direction and focus on the interaction with UTxO one owns in an already open Hydra Head.

  • Extend MeshJS to support interacting with the hydra-node directly to build transactions

    • This requires an open Hydra head
    • The SDK needs to be provided with connection info to a hydra-node
    • Query the UTXO set of a head
    • Construct and submit transactions into the head (L2 cardano transactions via NewTx)
  • Extend Nami (or an other straightforward) with this SDK to perform the operations mentioned above.

  • Create a minimalistic web page, that shows balance in a head and can construct & sign a transaction using a CIP-30 connected wallet.

  • Update Hydraw to not need the backend component

  • Out of scope: Integrated experience where the wallet knows about the Hydra head(s).

How

Open questions

  • How exactly are we pointing to a hydra-node?
  • Discover hydra heads / nodes for a head?
@rezabaram rezabaram self-assigned this Jul 16, 2024
@ch1bo ch1bo added 💭 idea An idea or feature request 💬 feature A feature on our roadmap green 💚 Low complexity or well understood feature and removed 💭 idea An idea or feature request labels Jul 16, 2024
@ch1bo ch1bo added the good first issue Highlight opportunities for people to contribute to the project label Jul 17, 2024
@ch1bo
Copy link
Collaborator

ch1bo commented Jul 17, 2024

@colll78 @Quantumplation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Highlight opportunities for people to contribute to the project green 💚 Low complexity or well understood feature 💬 feature A feature on our roadmap
Projects
Status: Later
Development

No branches or pull requests

2 participants