Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
3529efa
Create folder structures
sorpaas Dec 17, 2019
78bbf4e
Init all necessary sassafras primitives
sorpaas Jan 9, 2020
1ddd022
Init sassafras verifier
sorpaas Jan 9, 2020
e20ce36
Better VRF type handling
sorpaas Jan 10, 2020
c15210d
CompatibleDigestItem for Sassafras
sorpaas Jan 10, 2020
9ed4d63
Helper function for finding pre-digest, post-block/next-epoch descriptor
sorpaas Jan 10, 2020
45361fc
Finish draft implementation of validation logic
sorpaas Jan 10, 2020
7927d53
Cleanup: error returned by verify function to be Error<Block>
sorpaas Jan 13, 2020
6fe7fd0
Merge branch 'master' of github.com:paritytech/substrate into sp-habe
sorpaas Jan 13, 2020
fbb242b
Merge branch 'master' of github.com:paritytech/substrate into sp-habe
sorpaas Jan 21, 2020
4cf7208
Generalize EpochChanges into separate epochs crate
sorpaas Jan 21, 2020
6cb2366
Port over tests
sorpaas Jan 22, 2020
73ab9e3
Remove epoch changes from BABE
sorpaas Jan 22, 2020
50a845c
Add consensus-epochs to babe crate
sorpaas Jan 22, 2020
02ea2a5
Make Babe use the refactored EpochChanges struct
sorpaas Jan 22, 2020
f978bbe
[WIP] Mutable fork tree items
sorpaas Jan 30, 2020
7239f6f
Working impl of find_node_mut via indexing method
sorpaas Jan 31, 2020
85236e9
aux-schema update
sorpaas Feb 1, 2020
b46f387
Merge branch 'master' of github.com:paritytech/substrate into sp-habe
sorpaas Feb 7, 2020
a2a3621
Update cargo locks
sorpaas Feb 7, 2020
4467dc4
Switch verifier to use epoch_changes
sorpaas Feb 7, 2020
f8515ce
Make epoch_changes impl compile
sorpaas Feb 7, 2020
207d764
fork-tree: prune returns all pruned node data
sorpaas Feb 10, 2020
f65aa73
epoch-changes: split EpochHeader vs epoch data
sorpaas Feb 10, 2020
9049a7b
EpochChanges::viable_epoch and add missing comments
sorpaas Feb 10, 2020
7a82b6d
Incoperate the new epoch_changes interface for BABE
sorpaas Feb 10, 2020
e366d89
Fix BABE tests
sorpaas Feb 10, 2020
7dba1ca
Fix fork-tree pruning issue
sorpaas Feb 10, 2020
417e6a1
Fix tests
sorpaas Feb 10, 2020
a93dc2e
Fix pruning algorithm
sorpaas Feb 10, 2020
47fc9e9
Add license header
sorpaas Feb 15, 2020
42f2ce6
Merge branch 'sp-epoch3' of github.com:paritytech/substrate into sp-habe
sorpaas Feb 15, 2020
8322425
Use new descriptor interface
sorpaas Feb 15, 2020
7a784be
[WIP] Duplicate some code
sorpaas Feb 16, 2020
72e7d7d
[WIP] Reinit, use BABE as starting point
sorpaas Feb 16, 2020
eb4332e
[WIP] Remove BABE-specific verification code and rename
sorpaas Feb 16, 2020
f0ba404
[WIP] Move back epoch definition
sorpaas Feb 16, 2020
3ff9717
[WIP] Fix consensus log
sorpaas Feb 16, 2020
44f4fa3
Finish skeleton
sorpaas Feb 16, 2020
f8c55e0
Allow additional commitments to be posted directly at pre-digest
sorpaas Feb 16, 2020
dc687e8
Remove unused runtime api
sorpaas Feb 16, 2020
54fc67b
Init sassafras-template so that testing can be easier
sorpaas Feb 16, 2020
c25faa0
[WIP] Copy pallet-babe to pallet-sassafras
sorpaas Feb 16, 2020
e383778
Make the sassafras template compile
sorpaas Feb 16, 2020
283698b
Use BABE secondary slot claim logic
sorpaas Feb 16, 2020
9205459
Code to make ticket and post vrf transcript
sorpaas Feb 17, 2020
30c5833
Working authoring logic
sorpaas Feb 17, 2020
25b282d
Populate pending proofs when claiming slot
sorpaas Feb 17, 2020
4ac7855
Push commitments of secondary claims
sorpaas Feb 17, 2020
5d631cc
Fix primary commitment importing
sorpaas Feb 17, 2020
079b297
Add sortition process for validating phrase
sorpaas Feb 18, 2020
71d8ebb
Remove support for genesis proof
sorpaas Feb 18, 2020
3ea4942
Add support for a generating phrase
sorpaas Feb 18, 2020
2e1bfec
sassafras, verification: secondary claim
sorpaas Feb 18, 2020
ea8d5fe
Primary claim verification logic
sorpaas Feb 18, 2020
4797ce8
Merge branch 'master' of github.com:paritytech/substrate into sp-habe
sorpaas Mar 2, 2020
5395a9c
Fix version declarations
sorpaas Mar 2, 2020
c7b3af5
Fix babe RPC compile
sorpaas Mar 3, 2020
3e79875
Init communication module and fix sassafras template compile
sorpaas Mar 3, 2020
a026e82
Integrate the communication mod to sassafras template
sorpaas Mar 4, 2020
eb3c30b
Change PendingProof from tuple to struct for clarity
sorpaas Mar 4, 2020
0e8f759
Function for finding out which peer it should send the pending proof to
sorpaas Mar 5, 2020
ae58b47
Channels for sending proofs to and from networking
sorpaas Mar 8, 2020
3257066
Split communciation to network and utils, implement send_out
sorpaas Mar 8, 2020
29e4003
Fetch proofs for inclusion from disclosing, rather than local pending
sorpaas Mar 8, 2020
8478c91
Update schnorrkel/merlin/bip39 versions so that it has aead support
sorpaas Mar 8, 2020
44db4f6
Implement gossip AEAD encrypt/decrypt
sorpaas Mar 9, 2020
bef3113
Connect channels to the actual networking gossip layer
sorpaas Mar 9, 2020
bafbb7c
Finish all basic networking gossip impl
sorpaas Mar 9, 2020
085b175
Remove extra white line
sorpaas Mar 9, 2020
ac431d6
Merge branch 'master' of github.com:paritytech/substrate into sp-habe
sorpaas Mar 9, 2020
dab7ac4
Merge branch 'master' of github.com:paritytech/substrate into sp-habe
sorpaas Mar 17, 2020
fd114e1
Merge branch 'master' of github.com:paritytech/substrate into sp-habe
sorpaas Apr 10, 2020
657de61
Merge branch 'master' of github.com:paritytech/substrate into sp-habe
sorpaas Apr 10, 2020
15c4cf2
[WIP] Switch to use sp-consensus-vrf for sp-consensus-sassafras
sorpaas Apr 10, 2020
7cde5a5
Fix-up frame-sassafras
sorpaas Apr 11, 2020
60e785d
Fix sc-consensus-sassafras compile
sorpaas Apr 11, 2020
b21daea
Fix interface update for node template
sorpaas Apr 11, 2020
dd7be37
Add communication traces
sorpaas Apr 12, 2020
83349da
Merge branch 'master' of github.com:paritytech/substrate into sp-habe
sorpaas Apr 14, 2020
24a727f
Merge branch 'master' of github.com:paritytech/substrate into sp-habe
sorpaas Apr 15, 2020
80b09a1
Short circuit sending proofs if the proof is already published
sorpaas Apr 15, 2020
799ec5a
Skip adding proof to disclosing set if it's already published
sorpaas Apr 15, 2020
bcc1ef1
Add description of how generating, publishing and validating set works
sorpaas Apr 15, 2020
4be9c2f
Should use VRFOutput for sortition but not VRFProof
sorpaas Apr 24, 2020
8d04235
Rename PendingProof -> PendingVRF
sorpaas Apr 24, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
214 changes: 214 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ members = [
"bin/node-template/node",
"bin/node-template/runtime",
"bin/node-template/pallets/template",
"bin/sassafras-template/node",
"bin/sassafras-template/runtime",
"bin/node/bench",
"bin/node/cli",
"bin/node/executor",
Expand All @@ -25,6 +27,7 @@ members = [
"client/consensus/aura",
"client/consensus/babe",
"client/consensus/babe/rpc",
"client/consensus/sassafras",
"client/consensus/manual-seal",
"client/consensus/pow",
"client/consensus/uncles",
Expand Down Expand Up @@ -61,6 +64,7 @@ members = [
"frame/authority-discovery",
"frame/authorship",
"frame/babe",
"frame/sassafras",
"frame/balances",
"frame/benchmarking",
"frame/benchmark",
Expand Down Expand Up @@ -120,6 +124,7 @@ members = [
"primitives/consensus/babe",
"primitives/consensus/common",
"primitives/consensus/pow",
"primitives/consensus/sassafras",
"primitives/consensus/vrf",
"primitives/core",
"primitives/chain-spec",
Expand Down Expand Up @@ -176,4 +181,3 @@ members = [
[profile.release]
# Substrate runtime requires unwinding.
panic = "unwind"

24 changes: 24 additions & 0 deletions bin/sassafras-template/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <http://unlicense.org>
Loading