lightninglabs / lightninglabs/taproot-assets

Optimise universe proof leaf additional inputs

Open
#503 0 comments 0 reactions 1 assignee View on GitHub

@jtobin is already working on this.

Since Jun 15, 2026.

optimization proofs universe
Dominant language
Go
Stars
525
Forks
150
Avg merge
2d 15h
Merged PRs (30d)
31

Description

As things currently stand, a universe's proof leaf has a field called `AdditionalInputs`. This field contains proofs for other inputs that may have been merged as part of a spend.

The `AdditionalInputs` field is of type `[]proof.File`. Which means, that for each additional input, we store an entire proof file. A universe leaf is supposed to represent a single proof. But where additional inputs are concerned, a universe leaf may also contain entire proof files for each additional input.

This means that a universe makes sub-optimal use of memory in that each leaf may also contain entire proof files which are duplicated as leaves in other parts of the universe.

Within a universe leaf, the `AdditionalInputs` field should perhaps contain proof locators instead of entire proof files.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.