Skip to main content

Questions tagged [signed-extensions]

1 vote
0 answers
23 views

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 ...
Daan - R0GUE's user avatar
  • 2,903
2 votes
1 answer
102 views

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 ...
Just's user avatar
  • 23
1 vote
0 answers
41 views

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 ...
Yatusabes's user avatar
  • 808
1 vote
1 answer
63 views

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 ...
Jitterbug's user avatar
  • 219
3 votes
0 answers
87 views

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 ...
Leouarz's user avatar
  • 353
3 votes
1 answer
98 views

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> { ...
Danylo Kyrieiev's user avatar
3 votes
1 answer
128 views

From the wiki (https://wiki.polkadot.network/docs/build-transaction-construction), import { createSignedTx } from "@substrate/txwrapper-polkadot"; // Example code, replace `signWithAlice` ...
drhanlondon's user avatar
1 vote
1 answer
303 views

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'...
Amit Kumar Yadav's user avatar
3 votes
1 answer
69 views

Can we make browser extension with substrate and yes and how ? can anyone please provide the resource to read about it ?
Deepak Chaudhary's user avatar
2 votes
1 answer
59 views

Does the SignedExtension (validate) get executed on a nested call (e.g. sudo.call, scheduler.schedule)? In other words, the call within the call.
Daan - R0GUE's user avatar
  • 2,903
2 votes
2 answers
96 views

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 ...
Robert La Ferla's user avatar
2 votes
1 answer
249 views

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 ...
Wil W's user avatar
  • 433
4 votes
2 answers
254 views

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 ...
Shannon Wells's user avatar
5 votes
2 answers
206 views

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 ...
Gabe's user avatar
  • 115
1 vote
1 answer
66 views

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 ...
Yatusabes's user avatar
  • 808

15 30 50 per page