Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Tx alg msg = Tx {
- txMsg :: Msg msg
- txRoute :: Text
- txGas :: Int64
- txSignature :: RecoverableSignature alg
- txSignBytes :: Message alg
- txSigner :: PubKey alg
- txNonce :: Word64
- data RawTransaction = RawTransaction {}
- signRawTransaction :: forall alg. RecoverableSignatureSchema alg => Message alg ~ Digest SHA256 => Proxy alg -> PrivateKey alg -> RawTransaction -> RecoverableSignature alg
- parseTx :: forall alg. RecoverableSignatureSchema alg => Message alg ~ Digest SHA256 => Proxy alg -> ByteString -> Either Text (Tx alg ByteString)
Documentation
Tx | |
|
data RawTransaction Source #
Raw transaction type coming in over the wire
RawTransaction | |
|
Instances
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.