3
votes
Difference between SignedExtension default behavior vs. actual behavior (expand_outer_validate_unsigned)
The lifecycle of a extrinsic validation is the following:
The transaction pool call the Runtime API validate_transaction method
There, validate_transaction from the Executive pallet is called. uxt is ...
3
votes
Unsigned Transactions vs Signed Extensions
Have a look to Bruno's answer here. It covers both rationale and transaction lifecycle for unsigned extrinsics.
2
votes
Accepted
Should we re-do the verification in runtime call?
Yes, you need to do the same checks while applying the unsigned extrinsic as in validate_block.
As you need to implement ValidateUnsigned for your pallet, it will already do the verification while ...
2
votes
Accepted
Create a signed transaction using a signature and unsigned_transaction
Subxt should be able to do anything that makes sense in this area.
For your first function, Subxt can help to construct the "call data" part of an extrinsic (check out the examples in ...
1
vote
Simulate transaction before sending
you can try validate_transaction by calling into the runtime api using the client that you can get handle from outer node
or
from https://polkadot.js.org/apps/#/explorer -> developer -> Runtime ...
1
vote
SignedExtension to mutate Origin
I have no access to it simply because it's a macro that gets expanded on compile time.
You can actually replace the generated code with the edits as lib.rs and it should be possible to use it.
Next ...
1
vote
SignedExtension to mutate Origin
Very interesting problem but I believe you cannot modify ensure_signed as per this answer.
Is it possible to define a custom origin in my pallet?
1
vote
Create a signed transaction using a signature and unsigned_transaction
Take a look at TxWrapper, it has exactly this function.
https://github.com/paritytech/txwrapper-core/blob/v4.0.1/packages/txwrapper-core/src/core/construct/createSignedTx.ts
function createSignedTx(
...
1
vote
Difference between SignedExtension default behavior vs. actual behavior (expand_outer_validate_unsigned)
I think @robert-la-ferla and I may have answered the question that I had originally. To recap, for an UnsignedExtension, looking at primitives/runtime/src/generic/checked_exstrinsic#validate, the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
unsigned × 9transactions × 3
signed-extensions × 3
pallet × 1
rust × 1
offchain-worker × 1
storage × 1
substrate-node × 1
weight × 1
subxt × 1
beefy × 1
origin × 1
security × 1
validation × 1
transactional × 1
transaction-pool × 1