Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aleph-zero-foundation/AlephBFT
/ functions
Functions
770 in github.com/aleph-zero-foundation/AlephBFT
⨍
Functions
770
◇
Types & classes
171
↓ 239 callers
Method
clone
(&self)
consensus/src/units/mod.rs:108
↓ 196 callers
Method
into
Convert the underlying message. Cannot be done through a `From` implementation due to it overriding the blanked identity `From` implementation.
consensus/src/dissemination/mod.rs:55
↓ 97 callers
Method
iter
Returns an iterator over all pending tasks.
consensus/src/task_queue.rs:83
↓ 80 callers
Method
insert
Insert a unit. If no other unit with this coord is in the store it becomes canonical.
consensus/src/units/store.rs:88
↓ 75 callers
Method
get
(&self, hash: &HashFor<U>)
consensus/src/extension/units.rs:36
↓ 67 callers
Function
random_full_parent_units_up_to
( round: Round, n_members: NodeCount, session_id: SessionId, )
consensus/src/units/testing.rs:177
↓ 60 callers
Method
creator
(&self)
consensus/src/units/mod.rs:43
↓ 58 callers
Method
round
(&self)
consensus/src/units/mod.rs:47
↓ 51 callers
Method
as_signable
(&self)
crypto/src/signature.rs:104
↓ 50 callers
Method
into_unchecked
(self)
crypto/src/signature.rs:213
↓ 46 callers
Method
clone
(&self)
crypto/src/signature.rs:184
↓ 44 callers
Method
into_iter
(self)
crypto/src/node.rs:136
↓ 44 callers
Method
into_iterator
(self)
crypto/src/node.rs:82
↓ 43 callers
Method
len
(&self)
crypto/src/node.rs:250
↓ 29 callers
Method
hash
The hash of the unit.
consensus/src/dag/reconstruction/dag.rs:38
↓ 23 callers
Function
random_full_parent_reconstrusted_units_up_to
Constructs a DAG so that in each round (except round 0) it has all N parents, where N is number of nodes in the DAG
consensus/src/units/testing.rs:197
↓ 23 callers
Method
remove
Remove a unit with a given hash. Notably if you remove a unit another might become canonical in its place in the future.
consensus/src/units/store.rs:109
↓ 21 callers
Method
clone
(&self)
consensus/src/alerts/mod.rs:36
↓ 21 callers
Method
message
The associated message.
consensus/src/dissemination/mod.rs:49
↓ 19 callers
Method
check
Verifies whether the signature matches the key with the index as in the signed data.
crypto/src/signature.rs:131
↓ 19 callers
Method
send
(&self, data: NetworkData<H, D, S, MS>, recipient: Recipient)
consensus/src/network/hub.rs:48
↓ 18 callers
Method
iter
(&self)
crypto/src/node.rs:122
↓ 16 callers
Method
add_unit
(&mut self, unit: &U)
consensus/src/creation/collector.rs:37
↓ 16 callers
Method
is_empty
(&self)
crypto/src/node.rs:254
↓ 16 callers
Method
prospective_parents
( &self, node_id: NodeIndex, )
consensus/src/creation/collector.rs:60
↓ 15 callers
Method
add_offspring_connection
Add a connection to an offspring component/task
consensus/src/terminator.rs:65
↓ 15 callers
Method
consensus_threshold
If this is the total node count, what number of nodes is required for secure consensus.
crypto/src/node.rs:87
↓ 14 callers
Method
add_unit
Add a unit to the Dag.
consensus/src/dag/mod.rs:120
↓ 13 callers
Method
add_unit
(&mut self, unit: ReconstructedUnit<U>)
consensus/src/dag/reconstruction/mod.rs:176
↓ 13 callers
Method
create_unit
To create a new unit, we need to have at least the consensus threshold of parents available in previous round. Additionally, our unit from previous ro
consensus/src/creation/creator.rs:43
↓ 13 callers
Method
insert
(&mut self, node_id: NodeIndex, value: T)
crypto/src/node.rs:165
↓ 13 callers
Method
next_task
(&mut self)
rmc/src/scheduler.rs:105
↓ 13 callers
Method
values
(&self)
crypto/src/node.rs:146
↓ 12 callers
Method
hash
(&self)
consensus/src/collection/mod.rs:42
↓ 12 callers
Method
incoming_message
(&mut self, message: TestMessage)
consensus/src/testing/alerts.rs:148
↓ 11 callers
Method
finish
(self, round: Round)
consensus/src/collection/service.rs:227
↓ 11 callers
Function
gen_delay_config
()
consensus/src/testing/mod.rs:34
↓ 11 callers
Method
parents
Iterator over non-empty parents - returns [`UnitCoord`]s
consensus/src/units/control_hash.rs:86
↓ 11 callers
Method
trigger_tasks
Trigger all the ready tasks and get all the messages that should be sent now.
consensus/src/dissemination/task.rs:304
↓ 10 callers
Method
add_unit
Add a unit and start reconstructing its parents.
consensus/src/dag/reconstruction/parents.rs:144
↓ 10 callers
Method
iter_mut
(&mut self)
crypto/src/node.rs:129
↓ 10 callers
Method
parents
(&self)
consensus/src/dag/reconstruction/mod.rs:75
↓ 10 callers
Function
preunit_to_full_unit
(preunit: PreUnit, session_id: SessionId)
consensus/src/units/testing.rs:69
↓ 10 callers
Method
terminate_sync
Perform a synchronized shutdown
consensus/src/terminator.rs:79
↓ 9 callers
Method
add_signature
(mut self, signature: &Self::Signature, index: NodeIndex)
crypto/src/signature.rs:69
↓ 9 callers
Method
add_unit
(&mut self, unit: &U)
consensus/src/creation/creator.rs:57
↓ 9 callers
Method
count
(&self, sender: NodeIndex, recipient: NodeIndex)
consensus/src/testing/byzantine.rs:222
↓ 9 callers
Function
full_unit
( n_members: NodeCount, node_id: NodeIndex, round: Round, variant: Option<u32>
consensus/src/alerts/handler.rs:295
↓ 9 callers
Method
into_partially_multisigned
Transform a singly signed object into a partially multisigned consisting of just the signed object. Note that depending on the setup, it may yield a c
crypto/src/signature.rs:228
↓ 9 callers
Function
make_fork_proof
Fabricates proof of a fork by a particular node, given its private key.
consensus/src/alerts/handler.rs:313
↓ 9 callers
Method
unchecked_signed
( &self, to_sign: T, signer: NodeIndex, )
consensus/src/testing/alerts.rs:90
↓ 8 callers
Method
add_units
(&mut self, units: &[U])
consensus/src/units/testing.rs:74
↓ 8 callers
Method
alert
(&self, sender: NodeIndex, proof: TestForkProof)
consensus/src/testing/alerts.rs:144
↓ 8 callers
Method
indexed_unchecked_signed
( &self, to_sign: T, signer: NodeIndex, )
consensus/src/testing/alerts.rs:98
↓ 8 callers
Method
n_members
(&self)
consensus/src/units/mod.rs:73
↓ 8 callers
Method
run
(self, run_as: NodeIndex)
consensus/src/testing/alerts.rs:269
↓ 8 callers
Function
setup
()
consensus/src/dissemination/responder.rs:135
↓ 8 callers
Function
test_unchecked_unit
( creator: NodeIndex, round: Round, data: Data, )
consensus/src/network/mod.rs:59
↓ 8 callers
Method
unpack
(self)
consensus/src/dag/reconstruction/mod.rs:69
↓ 8 callers
Method
validate_unit
( &self, uu: UncheckedSignedUnit<H, D, K::Signature>, )
consensus/src/units/validator.rs:78
↓ 7 callers
Method
add_request
Add a request to be performed according to the appropriate schedule.
consensus/src/dissemination/task.rs:343
↓ 7 callers
Method
add_task
(&mut self, task: T)
rmc/src/scheduler.rs:101
↓ 7 callers
Method
add_unit
(&mut self, unit: DagUnit<UFH::Hasher, UFH::Data, MK>)
consensus/src/extension/mod.rs:32
↓ 7 callers
Method
canonical_units
All the canonical units for the given creator, in order of rounds.
consensus/src/units/store.rs:123
↓ 7 callers
Method
control_hash
(&self)
consensus/src/units/mod.rs:85
↓ 7 callers
Method
coord
(&self)
consensus/src/dag/reconstruction/mod.rs:53
↓ 7 callers
Function
create_responses
( presponses: R, request: DisseminationMessage<Hasher64, Data, Signature>, )
consensus/src/collection/service.rs:348
↓ 7 callers
Function
creator_set
(n_members: NodeCount)
consensus/src/units/testing.rs:54
↓ 7 callers
Method
fork_proof
(&self, forker: NodeIndex, round: Round)
consensus/src/testing/alerts.rs:129
↓ 7 callers
Method
handle_request
Handle an incoming request returning either the appropriate response or an error if we aren't able to help.
consensus/src/dissemination/responder.rs:92
↓ 7 callers
Method
hash
(&self)
crypto/src/signature.rs:88
↓ 7 callers
Function
keychain_set
(n_members: NodeCount)
consensus/src/collection/service.rs:340
↓ 7 callers
Method
outgoing_message
(&mut self, message: TestMessage, recipient: Recipient)
consensus/src/testing/alerts.rs:166
↓ 7 callers
Method
prepare_request
Returns a request addressed to the appropriate nodes.
consensus/src/collection/service.rs:148
↓ 7 callers
Method
process_forking_notification
Process a forking notification, potentially returning a lot of unit processing results.
consensus/src/dag/mod.rs:180
↓ 7 callers
Method
session_id
(&self)
consensus/src/units/mod.rs:214
↓ 7 callers
Method
size
(&self)
crypto/src/node.rs:118
↓ 7 callers
Method
spawn_essential
( &self, _: &str, task: impl Future<Output = ()> + Send + 'static, )
mock/src/spawner.rs:13
↓ 7 callers
Method
start_rmc
Signs the given `hash` and adds the signature to the collection. If the given `hash` completes the multisignature, it is scheduled for the broadcasts
rmc/src/service.rs:54
↓ 7 callers
Method
unit
The unit for the given hash, if present.
consensus/src/units/store.rs:132
↓ 6 callers
Method
as_pre_unit
(&self)
consensus/src/units/mod.rs:128
↓ 6 callers
Method
canonical_unit
The canonical unit for the given coord if it exists.
consensus/src/units/store.rs:116
↓ 6 callers
Method
coord
(&self)
consensus/src/units/mod.rs:206
↓ 6 callers
Function
create_preunits
( creators: C, round: Round, )
consensus/src/units/testing.rs:60
↓ 6 callers
Method
forker
Simplified forker check, should only be called for alerts that have already been checked to contain valid proofs.
consensus/src/alerts/mod.rs:78
↓ 6 callers
Method
hash
(&self)
consensus/src/units/mod.rs:141
↓ 6 callers
Function
honest_members_agree_on_batches
( n_members: NodeCount, n_alive: NodeCount, n_batches: usize, network_reliability: Option<f64>
consensus/src/testing/crash.rs:9
↓ 6 callers
Method
included_data
(&self)
consensus/src/network/mod.rs:20
↓ 6 callers
Method
index
(&self)
consensus/src/units/validator.rs:74
↓ 6 callers
Function
init_log
()
consensus/src/testing/mod.rs:27
↓ 6 callers
Method
node_count
(&self)
consensus/src/units/validator.rs:70
↓ 6 callers
Method
outgoing_notification
(&mut self, notification: TestNotification)
consensus/src/testing/alerts.rs:177
↓ 6 callers
Method
schedule_in
Schedules `task` for execution after `delay`.
consensus/src/task_queue.rs:58
↓ 6 callers
Method
spawn
(&self, _name: &str, task: impl Future<Output = ()> + Send + 'static)
mock/src/spawner.rs:9
↓ 6 callers
Function
spawn_honest_member
( spawner: Spawner, node_index: NodeIndex, n_members: NodeCount, units: Vec<u8>, data_prov
consensus/src/testing/mod.rs:66
↓ 5 callers
Method
accumulate
(&mut self, other: DagResult<H, D, MK>)
consensus/src/dag/mod.rs:56
↓ 5 callers
Method
add_hook
(&mut self, hook: HK)
mock/src/network.rs:158
↓ 5 callers
Method
add_unit
Add a unit to the Dag. Returns all the units that now have all their parents in the Dag, in an order agreeing with the Dag structure.
consensus/src/dag/reconstruction/dag.rs:92
↓ 5 callers
Function
apply_signatures_and_get_multisigned
( handler: &mut Handler<Signable, Keychain>, hash: &Signable, count: NodeCount,
rmc/src/handler.rs:157
↓ 5 callers
Function
create_config
Creates a [`Config`] which wraps the passed arguments. `time_to_reach_max_round` is a lower bound on the time needed to reach the maximum round expect
consensus/src/config.rs:119
next →
1–100 of 770, ranked by callers