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

Expand VerifyOwnershipProof #1075

Merged
merged 2 commits into from
Aug 12, 2024

Conversation

sputn1ck
Copy link
Member

This PR expands VerifyOwnershipProof by returning the outpoint, block height and blockhash the proof commits to.
This eases asset ownership verification, as clients can check if the outpoint has been spent.

@GeorgeTsagk GeorgeTsagk self-requested a review August 12, 2024 10:41
@coveralls
Copy link

coveralls commented Aug 12, 2024

Pull Request Test Coverage Report for Build 10352600053

Details

  • 0 of 9 (0.0%) changed or added relevant lines in 1 file are covered.
  • 25 unchanged lines in 6 files lost coverage.
  • Overall coverage decreased (-0.008%) to 40.191%

Changes Missing Coverage Covered Lines Changed/Added Lines %
rpcserver.go 0 9 0.0%
Files with Coverage Reduction New Missed Lines %
commitment/tap.go 1 83.64%
rpcserver.go 1 0.0%
internal/test/helpers.go 2 86.47%
tappsbt/create.go 2 53.85%
tapdb/multiverse.go 7 60.32%
universe/interface.go 12 50.22%
Totals Coverage Status
Change from base Build 10350195625: -0.008%
Covered Lines: 23676
Relevant Lines: 58908

💛 - Coveralls

Copy link
Member

@guggero guggero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, thanks for the enhancement. One request concerning user/developer friendliness of the new fields.

taprpc/assetwalletrpc/assetwallet.proto Outdated Show resolved Hide resolved
This commit expands the VerifyAssetOwnership rpc by including
the outpoint, block_hash and block_height of the proof
This commit expands VerifyAssetownership by returning the outpoint
block hash and blockheight of the proof.
Copy link
Member

@guggero guggero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉

Copy link
Member

@GeorgeTsagk GeorgeTsagk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌 🟢

@GeorgeTsagk GeorgeTsagk added this pull request to the merge queue Aug 12, 2024
Merged via the queue into lightninglabs:main with commit 39c1f27 Aug 12, 2024
17 checks passed
@dstadulis dstadulis added this to the v0.4.2 milestone Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

5 participants