hs-abci-sdk-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Tendermint.SDK.Types.Transaction

Synopsis

Documentation

data Tx alg msg Source #

Constructors

Tx 

Fields

Instances
Functor (Tx alg) Source # 
Instance details

Defined in Tendermint.SDK.Types.Transaction

Methods

fmap :: (a -> b) -> Tx alg a -> Tx alg b #

(<$) :: a -> Tx alg b -> Tx alg a #

data RawTransaction Source #

Raw transaction type coming in over the wire

Constructors

RawTransaction 

Fields

Instances
Generic RawTransaction Source # 
Instance details

Defined in Tendermint.SDK.Types.Transaction

Associated Types

type Rep RawTransaction :: Type -> Type #

Wrapped RawTransaction Source # 
Instance details

Defined in Tendermint.SDK.Types.Transaction

Associated Types

type Unwrapped RawTransaction :: Type

Methods

_Wrapped' :: Iso' RawTransaction (Unwrapped RawTransaction)

HasCodec RawTransaction Source # 
Instance details

Defined in Tendermint.SDK.Types.Transaction

MakeDigest RawTransaction Source # 
Instance details

Defined in Tendermint.SDK.Types.Transaction

Methods

makeDigest :: RawTransaction -> Digest SHA256 Source #

type Rep RawTransaction Source # 
Instance details

Defined in Tendermint.SDK.Types.Transaction

type Rep RawTransaction = D1 (MetaData "RawTransaction" "Tendermint.SDK.Types.Transaction" "hs-abci-sdk-0.1.0.0-JNIgr3XvOPdDNDKoBXpy2h" False) (C1 (MetaCons "RawTransaction" PrefixI True) ((S1 (MetaSel (Just "rawTransactionData") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 TypedMessage) :*: S1 (MetaSel (Just "rawTransactionGas") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int64)) :*: (S1 (MetaSel (Just "rawTransactionRoute") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: (S1 (MetaSel (Just "rawTransactionSignature") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString) :*: S1 (MetaSel (Just "rawTransactionNonce") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Word64)))))
type Unwrapped RawTransaction Source # 
Instance details

Defined in Tendermint.SDK.Types.Transaction

signRawTransaction :: forall alg. RecoverableSignatureSchema alg => Message alg ~ Digest SHA256 => Proxy alg -> PrivateKey alg -> RawTransaction -> RecoverableSignature alg Source #

parseTx :: forall alg. RecoverableSignatureSchema alg => Message alg ~ Digest SHA256 => Proxy alg -> ByteString -> Either Text (Tx alg ByteString) Source #

Attempt to parse a Bytestring into a RawTransaction then as a Tx without | attempting to parse the underlying message. This is done as a preprocessing | step to the router, allowing for failure before the router is ever | reached.