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

Best practice on committing script utxo (blueprint) #1906

Open
HinsonSIDAN opened this issue Mar 19, 2025 · 1 comment
Open

Best practice on committing script utxo (blueprint) #1906

HinsonSIDAN opened this issue Mar 19, 2025 · 1 comment
Labels
💭 idea An idea or feature request

Comments

@HinsonSIDAN
Copy link

Description

We know that we can commit script utxos into Hydra using blueprint. However, from the perspective of implementing the on-chain script (e.g. Plutus or Aiken script), we need to specify a redeemer for allowing getting into Hydra.

Since DApps' states are critical so as the time getting into Hydra, if this step isn't guarded correctly it would become a single point of failure of the entire DApps.

As every DApp considering using Hydra must face this issue at some point, think it would be great for Hydra team to propose an official "best practice" for committing script utxos into Hydra.

Suggested solution

So far from my team's understanding, best thing we can do is checking:

  1. Whether the tx (the committing tx) is signed by all keys of hosted hydra node
  2. Whether the output is send to the hydra validator address with inline datum of the way Hydra node read it (i.e. serializing entire utxo information)

Alternative

No response

Additional context

No response

@HinsonSIDAN HinsonSIDAN added the 💭 idea An idea or feature request label Mar 19, 2025
@noonio
Copy link
Contributor

noonio commented Mar 19, 2025

Related - #1655

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💭 idea An idea or feature request
Projects
Status: Triage 🏥
Development

No branches or pull requests

2 participants