@@ -94,6 +94,7 @@ import Data.Time.Units (Millisecond)
94
94
import qualified Data.Vector as V
95
95
import qualified Hedgehog as H
96
96
import Serokell.Data.Memory.Units (Byte )
97
+ import qualified Serokell.Util.Base16 as B16
97
98
98
99
import qualified Cardano.Crypto.Wallet as CC
99
100
import Pos.Binary.Class (Raw (.. ), asBinary )
@@ -636,31 +637,43 @@ exampleGenesisAvvmBalances =
636
637
,Coin {getCoin = 37343863242999412 })
637
638
]) }
638
639
where
639
- fstRedKey = " \254\156\235\217{]\130W\183LfJ\240"
640
- sndRedKey =
641
- " \254\156\235\217{]\130W\183LfJ\240\RS \224"
640
+ fstRedKey = hexToBS " e2a1773a2a82d10c30890cbf84eccbdc1aaaee9204\
641
+ \96424d36e868039d9cb519"
642
+ sndRedKey = hexToBS " 9cdabcec332abbc6fdf883ca5bf3a8afddca69bfea\
643
+ \c14c013304da88ac032fe6"
642
644
643
645
exampleSharedSeed :: SharedSeed
644
646
exampleSharedSeed = SharedSeed (getBytes 8 32 )
645
647
646
648
exampleGenesisDelegation :: GenesisDelegation
647
649
exampleGenesisDelegation = UnsafeGenesisDelegation (HM. fromList
648
- [(abstractHash (PublicKey (CC. XPub {CC. xpubPublicKey = pubKey1
649
- , CC. xpubChaincode = CC. ChainCode " Test" }))
650
- , UnsafeProxySecretKey {pskOmega = HeavyDlgIndex $ EpochIndex 68300481033
651
- , pskIssuerPk = PublicKey (CC. XPub {CC. xpubPublicKey = pskPubKey
652
- , CC. xpubChaincode = CC. ChainCode " Test" })
653
- , pskDelegatePk = PublicKey (CC. XPub {CC. xpubPublicKey = pskDelPubKey
654
- , CC. xpubChaincode = CC. ChainCode " Test" })
655
- , pskCert = ProxyCert (fromRight (error " Something went wrong" ) $ sig)})])
650
+ [( addressHash issuePubKey
651
+ , UnsafeProxySecretKey
652
+ { pskOmega =
653
+ HeavyDlgIndex $ EpochIndex 68300481033
654
+ , pskIssuerPk = issuePubKey
655
+ , pskDelegatePk =
656
+ PublicKey (CC. XPub { CC. xpubPublicKey = pskDelPubKey
657
+ , CC. xpubChaincode = pskDelChainCode})
658
+ , pskCert =
659
+ ProxyCert (fromRight (error " Something went wrong" ) $ sig)
660
+ }
661
+ )]
662
+ )
656
663
where
657
- sig = CC. xsignature " \186\229B*\245@^8\ETX\NAK JJ\217\134\218]\DC4 \207\
658
- \bMg\SOH \197\199\138y\236sw\DEL t\225\& 9s\175\131\
659
- \u!\DC4 \217\241\129f\b Y\151\252\129\228\& \
660
- \2\202\183\254\233\154']\139\241\& 8\173\EOT \225\ETX "
661
- pubKey1 = " \145\& 3\131kUF\226\131\253M\174\157;w>\156k"
662
- pskPubKey = " \DC1\RS \145\& 3\131kUF\226\131\253M\174\157;w>\156k"
663
- pskDelPubKey = " \132\248\DC1\RS \145\& 3\131kUF\226\131\253M\174\157;w>\156k"
664
+ issuePubKey = PublicKey (CC. XPub { CC. xpubPublicKey = pskPubKey
665
+ , CC. xpubChaincode = pskChainCode})
666
+ sig = CC. xsignature (hexToBS " bae5422af5405e3803154a4ad986da5d14cf624d670\
667
+ \1c5c78a79ec73777f74e13973af83752114d9f18166\
668
+ \085997fc81e432cab7fee99a275d8bf138ad04e103" )
669
+ pskPubKey = hexToBS " e2a1773a2a82d10c30890cbf84eccbdc1aaaee920496424d36e8\
670
+ \68039d9cb519"
671
+ pskChainCode = CC. ChainCode (hexToBS " 21b25efe033d9b00d4f02ccd9cdabcec332\
672
+ \abbc6fdf883ca5bf3a8aff4aac27e" )
673
+ pskDelPubKey = hexToBS " ddca69bfeac14c013304da88ac032ee63281ab036c1b1b918\
674
+ \8e4b174b303f43e"
675
+ pskDelChainCode = CC. ChainCode (hexToBS " 55163b178e999b9fd50637b2edab8c85\
676
+ \8a879ac3c4bd3e610095419a19696573" )
664
677
665
678
exampleProtocolConstants :: GenesisProtocolConstants
666
679
exampleProtocolConstants = GenesisProtocolConstants
@@ -684,3 +697,8 @@ exampleGenesisInitializer = GenesisInitializer
684
697
{getCoinPortion = 366832547637728 }
685
698
, giUseHeavyDlg = False
686
699
, giSeed = 0 }
700
+
701
+ hexToBS :: Text -> ByteString
702
+ hexToBS ts = case B16. decode ts of
703
+ Left err -> error $ " decode failed: " <> show err
704
+ Right bs -> bs
0 commit comments