Questions tagged [signed-extensions]
The signed-extensions tag has no summary.
30 questions
1 vote
0 answers
23 views
Is it computationally too expensive to verify a signature and perform 2 storage reads within a SignedExtension?
I'm working on a custom SignedExtension that needs to verify certain conditions as part of the transaction validation process (fn validate). The extension performs two key operations: It verifies a ...
2 votes
1 answer
102 views
How to enable free execution for specific extrinsics using the SkipCheckIfFeeless
Context I'm currently working on a faucet/claiming pallet that allows new users to claim a certain amount of tokens. We have some logic in place to gatekeep who can receive the tokens, and each user ...
1 vote
0 answers
41 views
Signed Extension validate len parameter
How is the len parameter of the Signed Extension validation function computed? I tried computing the length with PolkadotJS by getting the length of the encoded call but that does not seem to be the ...
1 vote
1 answer
63 views
How do third party apps handle paying transaction fees for chains using `pallet-asset-tx-payment`
I found the pallet-asset-tx-payment pretty cool and am planning to add this in my runtime. But my concern is the SignedExtension. Adding the ChargeAssetTxPayment in the SignedExtra portion will make ...
3 votes
0 answers
87 views
Transaction fails when using Polkadot extension
We have a customized substrate chain currently running and we are facing some signature issues (repo). This chain has custom types, custom header and an additional extension to check a parameter ...
3 votes
1 answer
98 views
How to automatically pass the value to custom SignedExtension
For now I have custom SignedExtension in my substrate node: #[derive(Encode, Decode, Clone, Eq, PartialEq, TypeInfo)] #[scale_info(skip_type_params(T))] pub struct CheckAccount<T> { ...
3 votes
1 answer
128 views
What informations consist of a signature which is generated when siging a transaction payload offline?
From the wiki (https://wiki.polkadot.network/docs/build-transaction-construction), import { createSignedTx } from "@substrate/txwrapper-polkadot"; // Example code, replace `signWithAlice` ...
1 vote
1 answer
303 views
how to pay transaction fee through custom token?
i am working on substrate i have created a custom token using pallet_assets,how can i configure the transaction_fee using the custom token i have seen the pallet_assets_transaction payment which say'...
3 votes
1 answer
69 views
How to build the browser extension with substrate?
Can we make browser extension with substrate and yes and how ? can anyone please provide the resource to read about it ?
2 votes
1 answer
59 views
SignedExtension and nested calls
Does the SignedExtension (validate) get executed on a nested call (e.g. sudo.call, scheduler.schedule)? In other words, the call within the call.
2 votes
2 answers
96 views
CheckNonZeroSender
Why is CheckNonZeroSender a signed extension rather than part of the UncheckedExtrinsic::check() when checking the payload for a bad proof? What exactly does the non-zero check do? It appears to be ...
2 votes
1 answer
249 views
Informing polkadot/api about additional signed extensions
Polkadot/api has a way to detail signed extensions and I want to understand (so I can use it for our own custom signed extension) what the extrinsic and payload parameters map to. Here's an example ...
4 votes
2 answers
254 views
Difference between SignedExtension default behavior vs. actual behavior (expand_outer_validate_unsigned)
We're trying to understand the signed transaction vs. unsigned transaction lifecycle, and what ensure_signed actually does for you. What it seemed was, if you submitted an unsigned transaction to our ...
5 votes
2 answers
206 views
SignedExtension to mutate Origin
Please see edits 2 and beyond, as they reshape the question a lot. TLDR: I need a way to mutate an origin for all but some specific calls so that it's dispatched as RawOrigin::Signed to pass ...
1 vote
1 answer
66 views
why does pre-dispatch in SignedExtension require you to call validate?
I am trying to understand how to develop an attack vector for when the pre-dispatch function leaves out the same checks in the validate function. Can you please help me understand what the attack ...