You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To retrieve the private staking key of a wallet, we need to unwrap it from type Pl.MockPrivateKey. There is no way (explicitly exported constructor or field accessor) to do so. Therefore we use a hack in which we define some isomorphic datatype newtype HACK = HACK Cardano.XPrv and unsafeCoerce the Pl.MockPrivateKey to HACK.
We should try to make a PR to expose access to the info in their API.
Also we could try to rely on Data.Tuple.Solo (from base 4.16 which we don't have in our current index-state) to avoid defining HACK.
The text was updated successfully, but these errors were encountered:
To retrieve the private staking key of a wallet, we need to unwrap it from type
Pl.MockPrivateKey
. There is no way (explicitly exported constructor or field accessor) to do so. Therefore we use a hack in which we define some isomorphic datatypenewtype HACK = HACK Cardano.XPrv
andunsafeCoerce
thePl.MockPrivateKey
toHACK
.We should try to make a PR to expose access to the info in their API.
Also we could try to rely on
Data.Tuple.Solo
(frombase 4.16
which we don't have in our currentindex-state
) to avoid definingHACK
.The text was updated successfully, but these errors were encountered: