mirror of
https://github.com/lightninglabs/pool.git
synced 2026-08-14 12:43:03 +02:00
In this commit, we overhaul the keys used in the multi-sig construction of an account to prevent script reuse and provide plausible deniability between account outputs to third parties. This is done by tweaking the trader's key with two new components: 1. A per-batch key, which is obtained from the auctioneer during account creation. Every time the account is modified or participates in a cleared batch within the system, the per-batch key is incremented by the curve's base point, resulting in a different key used in the account script. 2. A shared secret derived using Diffie-Hellman between the trader's and auctioneer's base keys. By using this secret, we provide plausible deniability to third parties with knowledge of the base keys and per-batch key. The resulting tweaked key for the trader is then used as the tweak for the auctioneer's base key. |
||
|---|---|---|
| .. | ||
| account.go | ||
| account_test.go | ||
| codec.go | ||
| db.go | ||
| log.go | ||
| metadata.go | ||
| order.go | ||
| order_test.go | ||