@@ -8,42 +8,12 @@ import Hydra.Prelude
8
8
9
9
import Data.Map qualified as Map
10
10
import Hydra.Chain (ChainStateType , HeadParameters )
11
- import Hydra.ContestationPeriod (ContestationPeriod )
12
- import Hydra.Crypto (HydraKey , Signature , SigningKey )
11
+ import Hydra.Crypto (Signature )
13
12
import Hydra.HeadId (HeadId , HeadSeed )
14
13
import Hydra.Ledger (ChainSlot , IsTx (.. ))
15
- import Hydra.OnChainId (OnChainId )
16
- import Hydra.Party (Party , deriveParty )
14
+ import Hydra.Party (Party )
17
15
import Hydra.Snapshot (ConfirmedSnapshot , Snapshot (.. ), SnapshotNumber )
18
16
19
- data Environment = Environment
20
- { party :: Party
21
- -- ^ This is the p_i from the paper
22
- , -- NOTE(MB): In the long run we would not want to keep the signing key in
23
- -- memory, i.e. have an 'Effect' for signing or so.
24
- signingKey :: SigningKey HydraKey
25
- , otherParties :: [Party ]
26
- , -- XXX: Improve naming
27
- participants :: [OnChainId ]
28
- , contestationPeriod :: ContestationPeriod
29
- }
30
- deriving stock (Show )
31
-
32
- instance Arbitrary Environment where
33
- arbitrary = do
34
- signingKey <- arbitrary
35
- otherParties <- arbitrary
36
- participants <- arbitrary
37
- contestationPeriod <- arbitrary
38
- pure $
39
- Environment
40
- { signingKey
41
- , party = deriveParty signingKey
42
- , otherParties
43
- , contestationPeriod
44
- , participants
45
- }
46
-
47
17
-- | The main state of the Hydra protocol state machine. It holds both, the
48
18
-- overall protocol state, but also the off-chain 'CoordinatedHeadState'.
49
19
--
0 commit comments