Skip to content

[group key addrs 5/6]: Add Pedersen unique script key type #1621

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

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

Conversation

guggero
Copy link
Member

@guggero guggero commented Jun 26, 2025

More commits extracted from #1587 that contain the last (mostly) non-functional changes that can be merged independently before we're starting to change the address behavior.

guggero added 2 commits June 26, 2025 12:18
Because we'll use the address' script key as the bare/raw public key
that will be tweaked for each individual output of an address v2 send,
we'll need to be able to find addresses by that script key.
We'll also make the script key unique for v2 addresses to avoid multiple
records being returned here.
@guggero guggero force-pushed the pedersen-keys-refactor branch from 5687720 to 46d9159 Compare June 26, 2025 10:18
@coveralls
Copy link

coveralls commented Jun 26, 2025

Pull Request Test Coverage Report for Build 15924622311

Details

  • 370 of 535 (69.16%) changed or added relevant lines in 15 files are covered.
  • 22 unchanged lines in 7 files lost coverage.
  • Overall coverage increased (+0.2%) to 38.947%

Changes Missing Coverage Covered Lines Changed/Added Lines %
proof/records.go 34 35 97.14%
rpcserver.go 0 1 0.0%
address/book.go 1 5 20.0%
rpcutils/marshal.go 0 4 0.0%
tapdb/sqlc/assets.sql.go 46 52 88.46%
authmailbox/multi_subscription.go 60 74 81.08%
tapdb/addrs.go 41 56 73.21%
proof/send.go 35 51 68.63%
proof/encoding.go 66 103 64.08%
asset/asset.go 0 67 0.0%
Files with Coverage Reduction New Missed Lines %
address/address.go 2 70.93%
internal/test/helpers.go 2 86.95%
tapdb/addrs.go 2 63.32%
rfqmsg/records.go 3 64.11%
tapgarden/caretaker.go 3 67.53%
asset/asset.go 4 44.34%
tapdb/multiverse.go 6 53.28%
Totals Coverage Status
Change from base Build 15899212451: 0.2%
Covered Lines: 30155
Relevant Lines: 77425

💛 - Coveralls

@levmi levmi moved this from 🆕 New to 🏗 In progress in Taproot-Assets Project Board Jun 26, 2025
guggero added 2 commits June 26, 2025 18:06
This introduces a workaround that gets us WHERE xxx IN (...) queries
working with a little trick. See the comment in
scripts/gen_sqlc_docker.sh for more information on how this works and
why the workaround is needed.
@guggero guggero force-pushed the pedersen-keys-refactor branch from 46d9159 to e5fdf7e Compare June 26, 2025 16:06
@guggero
Copy link
Member Author

guggero commented Jun 26, 2025

Going to look into the test failures (I think the mock just needs some mutexes).
But requesting review on this anyway so folks can load up on context.

@guggero guggero requested review from Roasbeef and ffranr June 26, 2025 16:45
guggero added 2 commits June 27, 2025 12:56
This MultiSubscription helper struct allows us to subscribe to receive
messages for multiple keys held by a receiving wallet but all
consolidated into a single message channel.
@guggero guggero force-pushed the pedersen-keys-refactor branch from e5fdf7e to eea552e Compare June 27, 2025 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🏗 In progress
Development

Successfully merging this pull request may close these issues.

2 participants