This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Offchain signing #5182
Merged
Merged
Offchain signing #5182
Changes from all commits
Commits
Show all changes
131 commits
Select commit
Hold shift + click to select a range
b92c4e1
New approach to offchain signing.
tomusdrw c27c7bd
Use in im-online
tomusdrw 1b817e3
Rewrite to use Account<T>
tomusdrw c1e4fb1
DRY signing.
tomusdrw 033a325
Implement send_raw_unsigned_transaction
rakanalh 459c5dd
WiP
tomusdrw 8f7f9ae
Merge.
tomusdrw f1b2d62
Expunge LocalCall
tomusdrw e4db565
Expunge LocalCall
tomusdrw 3e11852
Fix compilation.
tomusdrw 726061b
Solve call.
tomusdrw 6bce38e
Make it compile again.
tomusdrw 775df42
Finalize implementation.
tomusdrw 930a7cb
Change CreateTransaction
tomusdrw 31846d9
Clear CreateTransaction.
tomusdrw 25896f0
Add price payload
rakanalh a62d00d
Send raw transaction
rakanalh 71325fb
Submit signed payload / unsigned transaction (WIP)
rakanalh 3324ef7
Supertrait requirements on T::Signature
rakanalh b58512c
Validate signature of payload on an unsigned transaction
rakanalh b850dfd
Fix encoding - part 1
rakanalh 1c8281a
Merge branch 'master' into td-offchain-signing
tomusdrw 5aa5f0f
Make it compile.
tomusdrw 59ce1ba
Fix compilation of unsigned validator.
tomusdrw 748d065
Pass price payload to the transaction
rakanalh b4e7d43
Merge branch 'td-offchain-signing' of github.com:paritytech/substrate…
rakanalh 064812d
Make block number part of the signed payload
rakanalh 88c95b3
Send signed transaction
rakanalh 83fe399
Implement all_accounts, any_account
rakanalh e46b0ee
Fix formatting
rakanalh 763f1d9
Implement submit_transaction
rakanalh eb28754
Submit signed transaction (ForAll, ForAny)
rakanalh 2e27baa
Fix formatting
rakanalh 5c86a37
Implement CreateSignedTransaction
rakanalh 6c3f8b3
Move sign and verify to AppCrypto
tomusdrw 428b3da
Sign transaction
rakanalh f8b8dd1
Call `use_encoded`
rakanalh e6b2f33
Remove SubmitAndSignTransaction
rakanalh 1dc8bf0
Implement runtime using new SigningTypes
rakanalh 9f66858
Adapt offchain example to changes
rakanalh 6e14b44
Fix im-online pallet
rakanalh a3442cb
Merge remote-tracking branch 'upstream/master' into td-offchain-signing
rakanalh 2c75fb5
Quick fix: rename AuthorityId2
rakanalh 1f54eae
Fix offchain example tests
rakanalh 887e0e9
Add a comment on why keystore is required in unsigned transaction test
rakanalh 34afbf2
Use UintAuthorityId instead of u64
rakanalh d04bd9a
WIP
rakanalh 824940a
Remove IdentifyAccount from UintAuthorityId
rakanalh 259cb98
Implement PublicWrapper type
rakanalh ea0ffae
Fix im-online tests
rakanalh 853c1f3
Merge remote-tracking branch 'upstream/master' into td-offchain-signing
rakanalh 5fd154d
Fix runtime test
rakanalh f629bab
Bump spec version
rakanalh 6951887
Fix executor tests
rakanalh b8702ac
Rename ImOnlineAuthId -> ImOnlineAuthorityId and formatting
rakanalh 09820d1
Merge remote-tracking branch 'upstream/master' into td-offchain-signing
rakanalh 670e26b
Fix merge
rakanalh f5939cd
Documentation
rakanalh 0ffd1b9
Revert u64 -> UintAuthorityId conversion
rakanalh 324d436
Fix string errors
rakanalh 9fe4409
Document public members in offchain module
rakanalh dcee66a
Merge remote-tracking branch 'upstream/master' into td-offchain-signing
rakanalh 54cfe80
Merge remote-tracking branch 'upstream/master' into td-offchain-signing
rakanalh 686b218
Merge remote-tracking branch 'upstream/master' into td-offchain-signing
rakanalh 884dc5c
Introduce SubmitTransaction
rakanalh ac8845f
Update pallets to use SubmitTransaction
rakanalh 55f3fce
WIP
rakanalh c3df880
Merge remote-tracking branch 'upstream/master' into td-offchain-signing
rakanalh fda2dd3
Use SubmitTransaction in offchain
rakanalh 44b0701
Use `submit_unsigned_transaction`
rakanalh ab6c763
Fix tests
rakanalh 0278c8e
Merge remote-tracking branch 'upstream/master' into td-offchain-signing
rakanalh 5fbfe1a
Merge remote-tracking branch 'upstream/master' into td-offchain-signing
rakanalh de959d6
Update docs
rakanalh 6d3c36b
Remove SigningTypes requirement from `SendTransactionTypes`
rakanalh f37c783
Fix tests
rakanalh 7279077
Merge remote-tracking branch 'upstream/master' into td-offchain-signing
rakanalh df8e52c
Merge remote-tracking branch 'upstream/master' into td-offchain-signing
rakanalh fd70a12
Update frame/system/src/offchain.rs
rakanalh 848adbf
Update frame/system/src/offchain.rs
rakanalh b4c5765
Update frame/example-offchain-worker/src/tests.rs
rakanalh f88c1c1
Update frame/system/src/offchain.rs
rakanalh 13a8c84
Update frame/system/src/offchain.rs
rakanalh 61e6987
Remove leftover from previous iterations
rakanalh c163b22
Change enum to struct
rakanalh 81ba429
Remove public
rakanalh 89b9471
Move mock to node/executor/tests
rakanalh 9f79dc9
Merge branch 'td-offchain-signing' of github.com:paritytech/substrate…
rakanalh e69848e
Cleanup test-helpers
rakanalh ad83ed5
Make `application-crypto` `std` feature internal
bkchr a26379a
Merge remote-tracking branch 'upstream/bkchr-application-crypto-std' …
rakanalh 143bfbe
Revert cargo lock update
rakanalh 9644f85
Use TestAuthorityId from common
rakanalh aaae8ee
Restore members of account to public
rakanalh 1f39e03
Merge remote-tracking branch 'upstream/master' into td-offchain-signing
rakanalh 917b8a2
Tidy up imports
rakanalh cdd1af9
Fix benchmarking pallet
rakanalh ae477bb
Add tests demonstrating ForAll, ForAny on signer
rakanalh 583cdc3
Move definition of AppCrypto
rakanalh 87be138
Merge remote-tracking branch 'upstream/master' into td-offchain-signing
rakanalh 42f4802
Cleanup stray comment
rakanalh 536c8c3
Fix ValidTransaction
rakanalh 2c8676f
Merge remote-tracking branch 'upstream/master' into td-offchain-signing
rakanalh 3253d1f
Re-fix CreateSignedTransaction
rakanalh 27f900e
Address PR feedback
rakanalh 40c2335
Add can_sign method to signer
9d72eb8
Propagate error
de39bed
Improve documentation
4001eda
Fix vec! macro not available
7ac2b29
Document SendTransactiontypes
19ce6d8
Add some docs.
tomusdrw cbb909a
Split signing examples
79f54ab
Add tests for signing examples
8491fbc
WIP can_sign - PR feedback
fe5e74f
Merge branch 'td-offchain-signing' of github.com:paritytech/substrate…
9d125a1
WIP
507ef71
Split for_any / for_all into different calls
5732ff1
Verify payload and signature in test
2dde0c0
Fix can_sign implementation
c216977
Merge remote-tracking branch 'upstream/master' into td-offchain-signing
c378199
Fix impl_version
4a6d268
Import Box from sp_std
a94fecc
Create issues for TODOs
4a61334
Ignore doctest.
tomusdrw 5722163
Add test directly to system. Adjust UintTypes.
tomusdrw 19494c3
Add some tests to account filtering.
tomusdrw 9bdbbc9
Remove code samples and point to example offchain worker
d35669b
Merge branch 'td-offchain-signing' of github.com:paritytech/substrate…
6a94d35
Merge remote-tracking branch 'upstream/master' into td-offchain-signing
2436ca7
Fix doc links
dec2490
Fix im-online tests using signatures.
tomusdrw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.