Add Read instance to Phrase

This commit is contained in:
Rene Vergara 2024-03-14 13:12:18 -05:00
parent 749472e515
commit c93809489b
Signed by: pitmutt
GPG key ID: 65122AD495A7F5B2

View file

@ -55,7 +55,7 @@ instance ToBytes Seed where
-- | A mnemonic phrase used to derive seeds
newtype Phrase =
Phrase BS.ByteString
deriving stock (Eq, Prelude.Show, GHC.Generic)
deriving stock (Eq, Prelude.Show, GHC.Generic, Read)
deriving anyclass (SOP.Generic, SOP.HasDatatypeInfo)
deriving anyclass (Data.Structured.Show)
deriving (BorshSize, ToBorsh, FromBorsh) via AsStruct Phrase