cardano-wallet-core-2022.7.1: The Wallet Backend for a Cardano node.
Copyright © 2018-2020 IOHK
License Apache-2.0
Safe Haskell None
Language Haskell2010

Cardano.Wallet.Primitive.Types.Hash

Description

Types and functions relating to hash values.

Synopsis

Documentation

newtype Hash (tag :: Symbol ) Source #

Constructors

Hash

Instances

Instances details
Eq ( Hash tag) Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.Hash

Ord ( Hash tag) Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.Hash

Read ( Hash tag) Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.Hash

Show ( Hash tag) Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.Hash

Generic ( Hash tag) Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.Hash

Associated Types

type Rep ( Hash tag) :: Type -> Type Source #

NFData ( Hash tag) Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.Hash

Methods

rnf :: Hash tag -> () Source #

Hashable ( Hash tag) Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.Hash

ToJSON ( ApiT ( Hash "Datum")) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

ToJSON ( ApiT ( Hash "Genesis")) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

ToJSON ( ApiT ( Hash "TokenPolicy")) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

ToJSON ( ApiT ( Hash "Tx")) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

ToJSON ( ApiT ( Hash "VerificationKey")) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT ( Hash "Datum")) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT ( Hash "Genesis")) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT ( Hash "TokenPolicy")) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT ( Hash "Tx")) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

FromJSON ( ApiT ( Hash "VerificationKey")) Source #
Instance details

Defined in Cardano.Wallet.Api.Types

Buildable ( Hash tag) Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.Hash

ByteArrayAccess ( Hash tag) Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.Hash

NoThunks ( Hash tag) Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.Hash

ToText ( Hash tag) Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.Hash

FromText ( Hash "Account") Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.Hash

FromText ( Hash "Block") Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.Hash

FromText ( Hash "BlockHeader") Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.Hash

FromText ( Hash "Datum") Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.Hash

FromText ( Hash "Genesis") Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.Hash

FromText ( Hash "RewardAccount") Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.Hash

FromText ( Hash "TokenPolicy") Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.Hash

FromText ( Hash "Tx") Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.Hash

FromText ( Hash "VerificationKey") Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.Hash

type Rep ( Hash tag) Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.Hash

type Rep ( Hash tag) = D1 (' MetaData "Hash" "Cardano.Wallet.Primitive.Types.Hash" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "Hash" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "getHash") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ByteString )))

hashFromText Source #

Arguments

:: forall t. KnownSymbol t
=> Int

Expected decoded hash length

-> Text
-> Either TextDecodingError ( Hash t)

mockHash :: Show a => a -> Hash whatever Source #

Constructs a hash that is good enough for testing.