Skip to content

Commit

Permalink
Remove now-unused constant minLengthAddress.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed Sep 30, 2022
1 parent 47a74da commit 08a73f1
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions lib/wallet/src/Cardano/Wallet/Primitive/Types/Address/Constants.hs
Expand Up @@ -10,7 +10,6 @@
--
module Cardano.Wallet.Primitive.Types.Address.Constants
( maxLengthAddress
, minLengthAddress
) where

import Prelude
Expand Down Expand Up @@ -49,19 +48,3 @@ maxLengthAddress = L.maximumBy (compare `on` (BS.length . unAddress))
, maxLengthAddressFor $ Proxy @ShelleyKey
, maxLengthAddressFor $ Proxy @SharedKey
]

-- | A dummy 'Address' of the shortest length that the wallet can generate.
--
-- Please note that this address should:
--
-- - never be used for anything besides its length and validity properties.
-- - never be used as a payment target within a real transaction.
--
minLengthAddress :: Address
minLengthAddress = minLengthAddressShelley
where
minLengthAddressShelley =
Address $ BS.singleton enterpriseAddressHeaderByte <> payload
where
enterpriseAddressHeaderByte = 0b01100000
payload = BS.replicate 28 0

0 comments on commit 08a73f1

Please sign in to comment.