From 6d9bd1529e01b82c92d7fc74a86215d35be91697 Mon Sep 17 00:00:00 2001 From: conduition Date: Sun, 10 Mar 2024 04:09:56 +0000 Subject: [PATCH] the player secret key should be ephemeral --- src/parties.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/parties.rs b/src/parties.rs index 6ffacb4..7187a14 100644 --- a/src/parties.rs +++ b/src/parties.rs @@ -19,7 +19,12 @@ pub struct MarketMaker { /// their own completely unique ticket hash. #[derive(Debug, Clone, Copy, Ord, PartialOrd, Hash, Eq, PartialEq)] pub struct Player { - /// A public key controlled by the player. + /// An ephemeral public key controlled by the player. + /// + /// It should be ephemeral because once the player receives an off-chain + /// payout, they can choose to reveal their secret key to the market + /// maker, which allows the market maker to use key-spending (instead + /// of inefficient script spending) to reclaim the on-chain capital. pub pubkey: Point, /// The ticket hashes used for HTLCs. To buy into the DLC, players must