Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 780 Bytes

20221222091107-byronaddr.org

File metadata and controls

27 lines (21 loc) · 780 Bytes

ByronAddr

A type used as tag to distinguish Byron Addresses

-- ----------------------------------------------------------------------------
-- Payment address types
--

-- | A type used as a tag to distinguish Byron addresses.
data ByronAddr

-- | A type used as a tag to distinguish Shelley addresses.
data ShelleyAddr

instance HasTypeProxy ByronAddr where
    data AsType ByronAddr = AsByronAddr
    proxyToAsType _ = AsByronAddr

instance HasTypeProxy ShelleyAddr where
    data AsType ShelleyAddr = AsShelleyAddr
    proxyToAsType _ = AsShelleyAddr