mirror of
https://github.com/conduition/dlctix.git
synced 2026-01-30 05:05:06 +01:00
the player secret key should be ephemeral
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user