Copyright | Aleksandr Krupenkin 2016-2024 |
---|---|
License | Apache-2.0 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Network.Polkadot.Extrinsic.SignedExtension
Description
Additional data that could be attached to the transaction.
Synopsis
- class (Encode a, Decode a, Encode (AdditionalSigned a), Decode (AdditionalSigned a)) => SignedExtension a where
- type AdditionalSigned a
- additional_signed :: JsonRpc m => a -> m (AdditionalSigned a)
Documentation
class (Encode a, Decode a, Encode (AdditionalSigned a), Decode (AdditionalSigned a)) => SignedExtension a where Source #
Means by which a transaction may be extended. This type embodies both the data and the logic that should be additionally associated with the transaction. It should be plain old data.
Associated Types
type AdditionalSigned a Source #
Any additional data that will go into the signed payload. This may be created dynamically
from the transaction using the additional_signed
function.
Methods
additional_signed :: JsonRpc m => a -> m (AdditionalSigned a) Source #
Construct any additional data that should be in the signed payload of the transaction. Can also perform any pre-signature-verification checks and return an error if needed.