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

fix: finish resolving audit findings: AST-001, AST-301, AST-302 and AST-303 #113

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

francolq
Copy link
Contributor

@francolq francolq commented Feb 20, 2025

NOTE: this PR is marked as draft because it is stacked on top of PR #112

Resolve AST-001 "Leaking admin tokens":

  • Solve for Asteria UTxO by checking that all value without lovelace is still locked into the Asteria UTxO.
  • Solve for pellet UTxOs in Provide redeemer by checking the complete pellet output value.

Finish resolving AST-302 "Crowded shipyard":

  • Move all possible checks from spacetime.ak:spend():MineAsteria to asteria.ak:spend():Mine.
  • Move all possible checks from spacetime.ak:spend():GatherFuel to pellet.ak:spend():Provide(amount).
  • Some checks are refactored to improve legibility.

Resolve AST-303: simplify MinFuel.

Resolve AST-301: remove ScriptAddress type and directly use Aiken's ScriptHash.

…er, in spacetime mine check for exactly one valid asteria input
…bit refactored): ship input state, minting, validity range, etc.
…to pellets, and refactor remaining checks about the ship output: now the fuel can come from any external source
@francolq francolq changed the title (draft) fix: progress resolving audit findings AST-001 and AST-302 for "mine" operation fix: finish resolving audit findings: AST-001, AST-301, AST-302 and AST-303 Feb 28, 2025
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.

1 participant