Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/autonomys/subspace
/ functions
Functions
4,141 in github.com/autonomys/subspace
⨍
Functions
4,141
◇
Types & classes
1,352
↓ 4 callers
Function
confirm_domain_block
( n: Linear<1, MAX_BUNDLE_PER_BLOCK>, s: Linear<0, MAX_BUNDLE_PER_BLOCK>, )
crates/pallet-domains/src/benchmarking.rs:274
↓ 4 callers
Method
connected_servers
Returns a collection of currently connected servers (typically farmers).
crates/subspace-networking/src/node.rs:588
↓ 4 callers
Function
contract_address
Returns the contract address for the given sender and nonce. Use `U256::as_u64()` to convert the nonce to `u64`.
domains/test/utils/src/test_ethereum_tx.rs:55
↓ 4 callers
Function
decode_piece_index_from_record_key
Extracts the `PieceIndex` from a `RecordKey`.
crates/subspace-farmer/src/farmer_cache.rs:1728
↓ 4 callers
Function
do_close_channel
()
domains/pallets/messenger/src/benchmarking.rs:103
↓ 4 callers
Method
domain_best_number
(domain_id: DomainId)
crates/pallet-domains/src/lib.rs:2262
↓ 4 callers
Method
domain_instance_data
( domain_id: DomainId, )
crates/pallet-domains/src/lib.rs:2282
↓ 4 callers
Method
domain_runtime_code
(domain_id: DomainId)
crates/pallet-domains/src/lib.rs:2257
↓ 4 callers
Function
download_cached_piece_from_peer
( node: &'a Node, piece_validator: &'a PV, peer_id: PeerId, addresses: Vec<Multiaddr>, che
crates/subspace-networking/src/utils/piece_provider.rs:836
↓ 4 callers
Function
download_segment_pieces
Downloads pieces of a segment so that segment can be reconstructed afterward. Repeatedly attempts to download pieces until the required number of piec
shared/subspace-data-retrieval/src/segment_downloading.rs:89
↓ 4 callers
Function
dummy_channel_params
()
domains/pallets/messenger/src/benchmarking.rs:252
↓ 4 callers
Function
dummy_opaque_bundle
( domain_id: DomainId, operator_id: OperatorId, receipt: ExecutionReceipt< Number,
crates/sp-domains/src/bundle.rs:305
↓ 4 callers
Method
execution_receipt
(receipt_hash: ReceiptHashFor<T>)
crates/pallet-domains/src/lib.rs:3021
↓ 4 callers
Function
expand_key
(key: &[u8; 16])
crates/subspace-proof-of-time/src/aes/x86_64.rs:303
↓ 4 callers
Method
extend_commitments
Extend commitments using erasure coding. Returns both source and parity commitments interleaved.
crates/subspace-erasure-coding/src/lib.rs:98
↓ 4 callers
Function
from_consensus_relay_message
()
domains/pallets/messenger/src/extensions/benchmarking_from_consensus.rs:65
↓ 4 callers
Function
from_consensus_relay_message_channel_open
()
domains/pallets/messenger/src/extensions/benchmarking_from_consensus.rs:49
↓ 4 callers
Function
from_domains_relay_message
()
domains/pallets/messenger/src/extensions/benchmarking_from_domains.rs:49
↓ 4 callers
Function
from_domains_relay_message_channel_open
()
domains/pallets/messenger/src/extensions/benchmarking_from_domains.rs:33
↓ 4 callers
Method
get_from_cache
Get pieces with provided indices from cache. Number of elements in returned stream is the same as number of unique `piece_indices`.
crates/subspace-networking/src/utils/piece_provider.rs:93
↓ 4 callers
Function
get_random_block
Block that fits into the segment fully
crates/subspace-archiving/tests/integration/piece_reconstruction.rs:18
↓ 4 callers
Method
get_segment_headers
Get cached segment headers for the given segment indices. Returns `None` for segment indices that are not in the cache.
crates/subspace-farmer/src/node_client/caching_proxy_node_client.rs:48
↓ 4 callers
Function
go_to_block
( keypair: &Keypair, block: u64, slot: u64, reward_address: <Test as frame_system::Config>::Ac
crates/pallet-subspace/src/mock.rs:152
↓ 4 callers
Method
id
(&self)
crates/subspace-farmer/src/cluster/cache.rs:186
↓ 4 callers
Method
into_storage
Convert `RawGenesis` to storage, the opposite of `from_storage` NOTE: This function is part from `<sc-chain-spec::ChainSpec as BuildStorage>::assimil
crates/sp-domains/src/storage.rs:176
↓ 4 callers
Method
iter_s_bucket_records
Creates an iterator of `(piece_offset, encoded_chunk_used)`, where `piece_offset` corresponds to the record to which chunk belongs and `encoded_chunk_
crates/subspace-farmer-components/src/sector.rs:521
↓ 4 callers
Method
kzg
Access KZG instance
crates/sc-consensus-subspace/src/lib.rs:125
↓ 4 callers
Function
load_chain_spec
(spec_id: &str)
crates/subspace-node/src/domain/evm_chain_spec.rs:112
↓ 4 callers
Function
load_decode
( backend: &Backend, key: &[u8], )
domains/client/domain-operator/src/aux_schema.rs:51
↓ 4 callers
Function
max_segment_header_encoded_size
()
shared/subspace-data-retrieval/src/object_fetcher/segment_header.rs:52
↓ 4 callers
Method
maybe_nested_utility_calls
If this call is a `pallet_utility::Call<Runtime>` call, returns the inner `RuntimeCall`. Runtimes can override this default implementation if they wa
crates/subspace-runtime-primitives/src/utility.rs:25
↓ 4 callers
Function
mock_subspace_mmr_extension
Returns a mock instance of `SubspaceMmrExtension` for benchmarking.
crates/sp-subspace-mmr/src/benchmarking.rs:14
↓ 4 callers
Method
next_slot_input
(&self)
crates/sc-proof-of-time/src/source/state.rs:85
↓ 4 callers
Function
nominate_operator
()
crates/pallet-domains/src/staking.rs:1982
↓ 4 callers
Method
observe_proving_time
(&self, time: &Duration, result: ProvingResult)
crates/subspace-farmer/src/single_disk_farm/metrics.rs:243
↓ 4 callers
Function
p_from_threshold
Exact per-slot win probability is p = threshold / 2^128. Convert that to FixedU128 (1e18 scaling) using U256 intermediates.
crates/sp-domains/src/offline_operators.rs:75
↓ 4 callers
Method
partial_archived
Returns the number of partially archived bytes for a block.
crates/subspace-core-primitives/src/segments.rs:387
↓ 4 callers
Function
peer_id
Converts public key from keypair to PeerId. It serves as the shared PeerId generating algorithm.
crates/subspace-networking/src/constructor.rs:358
↓ 4 callers
Function
pieces_to_option_of_pieces
(pieces: &FlatPieces)
crates/subspace-archiving/tests/integration/piece_reconstruction.rs:13
↓ 4 callers
Method
pot_parameters
Proof of time parameters
crates/pallet-subspace/src/lib.rs:1159
↓ 4 callers
Method
reconstruct_segment
Given a set of pieces of a segment of the archived history (any half of all pieces are required to be present, the rest will be recovered automaticall
crates/subspace-archiving/src/reconstructor.rs:76
↓ 4 callers
Method
record_mut
(&mut self)
crates/subspace-core-primitives/src/pieces.rs:1364
↓ 4 callers
Method
redeem
Return the amount of balance can be redeemed by the given `deposit`, it is calculated by `storage_fund_total_balance * deposit / total_deposit`. If t
crates/pallet-domains/src/bundle_storage_fund.rs:53
↓ 4 callers
Function
relay_message
()
domains/pallets/messenger/src/benchmarking.rs:125
↓ 4 callers
Method
run
(&mut self)
crates/subspace-networking/src/behavior/persistent_parameters.rs:248
↓ 4 callers
Method
s_bucket_sizes
Returns sizes of each s-bucket
crates/subspace-farmer-components/src/sector.rs:418
↓ 4 callers
Method
seed
(&self)
crates/subspace-core-primitives/src/pot.rs:284
↓ 4 callers
Method
segment_piece_indexes
List of piece indexes that belong to this segment.
crates/subspace-core-primitives/src/segments.rs:102
↓ 4 callers
Method
set_final_state_root
Sets final state root on ER
crates/sp-domains/src/execution_receipt.rs:254
↓ 4 callers
Method
shared_params
(&self)
crates/subspace-node/src/domain/cli.rs:195
↓ 4 callers
Method
size
Return the bundle size (include header and body) in bytes
crates/sp-domains/src/bundle.rs:176
↓ 4 callers
Function
slash_operator
()
crates/pallet-domains/src/staking.rs:3906
↓ 4 callers
Method
split_mut
(&mut self)
crates/subspace-core-primitives/src/pieces.rs:1342
↓ 4 callers
Method
subject_public_key_info
Returns the subject public key info.
domains/pallets/auto-id/src/lib.rs:91
↓ 4 callers
Function
submit_bundle
()
crates/pallet-domains/src/benchmarking.rs:70
↓ 4 callers
Function
submit_response
( dst_chain_id: ChainId, req_payload: Vec<u8>, resp: EndpointResponse, )
domains/pallets/transporter/src/tests.rs:123
↓ 4 callers
Method
to_le_bytes
Converts the inner integer to little-endian bytes.
crates/sp-domains/src/lib.rs:189
↓ 4 callers
Method
to_shared
Ensure piece contains cheaply cloneable shared data. Internally piece uses CoW mechanism and can store either mutable owned data or data that is chea
crates/subspace-core-primitives/src/pieces.rs:1233
↓ 4 callers
Method
try_get_checkpoints
Try to get checkpoints quickly without waiting for potentially locked mutex or proving
crates/sc-proof-of-time/src/verifier.rs:74
↓ 4 callers
Method
validate_piece
(&self, _: PeerId, _: PieceIndex, piece: Piece)
crates/subspace-networking/src/utils/piece_provider.rs:51
↓ 4 callers
Method
verify
( seed: &Seed, challenge: &Challenge, proof_of_space: &[u8; 64 * K as usize / 8],
crates/subspace-proof-of-space/src/chiapos/tables.rs:358
↓ 4 callers
Method
verify_checkpoints
Verify proof of time checkpoints
crates/sc-proof-of-time/src/verifier.rs:228
↓ 4 callers
Function
wipe
(WipeOptions { base_path }: WipeOptions)
crates/subspace-node/src/commands/wipe.rs:14
↓ 4 callers
Method
with_fallback
Returns a piece getter that falls back to `other` if `self` does not return the piece. Piece getters may need to be wrapped in `Arc` to be used with t
shared/subspace-data-retrieval/src/piece_getter.rs:33
↓ 4 callers
Function
withdraw_stake
Helper function to withdraw stake
crates/pallet-domains/src/nominator_position.rs:353
↓ 4 callers
Method
wrapping_add
(&self, other: &Self)
crates/subspace-core-primitives/src/lib.rs:395
↓ 4 callers
Method
xdm_gossip_worker_builder
Get the cross domain gossip message worker builder
test/subspace-test-service/src/lib.rs:737
↓ 3 callers
Method
add_piece_data
Adds the supplied `piece_data` to this `RawPieceData` object.
shared/subspace-data-retrieval/src/object_fetcher/partial_object.rs:122
↓ 3 callers
Method
advise_sequential_access
(&self)
crates/subspace-farmer/src/single_disk_farm/direct_io_file.rs:73
↓ 3 callers
Method
allocated_space
How much space in bytes is allocated for this farm
crates/subspace-farmer/src/single_disk_farm.rs:225
↓ 3 callers
Method
apply_extrinsic
( &self, extrinsic: ExtrinsicFor<Block>, backend: &TrieDeltaBackendFor<Backend::State,
domains/client/block-builder/src/custom_api.rs:335
↓ 3 callers
Method
approximate_max_message_size
Approximate max message size (a few more bytes will not hurt), the actual limit is expected to be a bit higher
crates/subspace-farmer/src/cluster/nats_client.rs:423
↓ 3 callers
Method
as_execution_receipt_ref
Returns the Execution receipt as a ref.
crates/sp-domains/src/execution_receipt.rs:300
↓ 3 callers
Function
block_transactions
Retrieves the block transactions/tx hash from the backend.
crates/sc-subspace-block-relay/src/consensus/relay.rs:651
↓ 3 callers
Method
bootstrap
Bootstraps Kademlia network
crates/subspace-networking/src/node.rs:605
↓ 3 callers
Method
build
( domain_id: DomainId, tokio_handle: tokio::runtime::Handle, key: Runtime::Keyring,
domains/test/service/src/domain.rs:142
↓ 3 callers
Method
channel_storage_key
( &self, chain_id: ChainId, channel_id: ChannelId, )
domains/client/block-preprocessor/src/stateless_runtime.rs:250
↓ 3 callers
Function
check_reward_signature
Check the reward signature validity.
crates/subspace-verification/src/lib.rs:107
↓ 3 callers
Function
chronos_config
( runtime_genesis_config: RuntimeGenesisConfig, )
crates/subspace-node/src/domain/evm_chain_spec.rs:55
↓ 3 callers
Function
close_channel
(chain_id: ChainId, channel_id: ChannelId, last_delivered_nonce: Option<Nonce>)
domains/pallets/messenger/src/tests.rs:110
↓ 3 callers
Method
collect_storage_changes
(&mut self)
domains/client/block-builder/src/lib.rs:152
↓ 3 callers
Method
common_subscribe
Simple subscription that will produce decoded messages, while skipping messages that fail to decode
crates/subspace-farmer/src/cluster/nats_client.rs:1129
↓ 3 callers
Function
compute_e_relevance
Compute E_relevance = ceil( max( E_BASE, 2 * ln(1/τ) ) ) in integer bundles.
crates/sp-domains/src/offline_operators.rs:147
↓ 3 callers
Method
contents
( &self, )
crates/subspace-farmer/src/cluster/cache.rs:195
↓ 3 callers
Function
cuda_devices
Returns [`CudaDevice`] for each available device
shared/subspace-proof-of-space-gpu/src/cuda.rs:52
↓ 3 callers
Method
current_bundle_and_execution_receipt_version
Returns current bundle and execution receipt version and the DomainApi version.
domains/client/domain-operator/src/domain_bundle_producer.rs:383
↓ 3 callers
Function
decode_data_length
Validate and decode the encoded length of `data`, including the encoded length bytes. `data` may be incomplete. Returns `Ok(Some((data_length_encoded
shared/subspace-data-retrieval/src/object_fetcher.rs:574
↓ 3 callers
Function
decode_mmr_data
(mut data: &[u8])
crates/subspace-service/src/mmr/sync.rs:30
↓ 3 callers
Method
delete_sector
Add old sector from plotted pieces (happens on replotting)
crates/subspace-farmer/src/farm/plotted_pieces.rs:126
↓ 3 callers
Method
derive_sector_slot_challenge
Derive sector slot challenge for this sector from provided global challenge
crates/subspace-core-primitives/src/sectors.rs:117
↓ 3 callers
Function
devnet_config
( runtime_genesis_config: RuntimeGenesisConfig, )
crates/subspace-node/src/domain/evm_chain_spec.rs:93
↓ 3 callers
Function
domain_dev_config
()
crates/subspace-malicious-operator/src/chain_spec.rs:42
↓ 3 callers
Function
download_sector
Download sector for plotting. This will identify necessary pieces and download them using provided piece getter, after which they can be encoded usin
crates/subspace-farmer-components/src/plotting.rs:236
↓ 3 callers
Function
encode_sector
Encode downloaded sector. This function encodes downloaded sector records and returns sector encoding result that can be written using [`write_sector
crates/subspace-farmer-components/src/plotting.rs:473
↓ 3 callers
Method
encoded_size
()
crates/subspace-farmer/src/single_disk_farm.rs:266
↓ 3 callers
Method
execution_method
Returns the method for generating the proof.
crates/sp-domains-fraud-proof/src/fraud_proof.rs:54
↓ 3 callers
Function
extend_block_tree
Submit new head receipt to extend the block tree
crates/pallet-domains/src/tests.rs:277
↓ 3 callers
Function
extract_solution_ranges_for_block
Extract solution ranges for block and votes, given ID of the parent block.
crates/sc-consensus-subspace/src/slot_worker.rs:892
↓ 3 callers
Method
finalize_block
( &self, backend: &TrieDeltaBackendFor<Backend::State, Block>, overlayed_changes: &mut
domains/client/block-builder/src/custom_api.rs:350
↓ 3 callers
Function
find_matches_in_buckets
( left_bucket_index: u32, left_bucket: &[(Position, Y); REDUCED_BUCKET_SIZE], right_bucket: &[(Pos
crates/subspace-proof-of-space/src/chiapos/table.rs:444
← previous
next →
401–500 of 4,141, ranked by callers