SYMBOL INDEX (8088 symbols across 555 files) FILE: build.rs function is_compiled_for_64_bit_arch (line 1) | fn is_compiled_for_64_bit_arch() -> bool { function main (line 5) | fn main() { FILE: console/bridge.go type bridge (line 38) | type bridge struct method NewAccount (line 64) | func (b *bridge) NewAccount(call jsre.Call) (goja.Value, error) { method OpenWallet (line 102) | func (b *bridge) OpenWallet(call jsre.Call) (goja.Value, error) { method readPassphraseAndReopenWallet (line 193) | func (b *bridge) readPassphraseAndReopenWallet(call jsre.Call) (goja.V... method readPinAndReopenWallet (line 206) | func (b *bridge) readPinAndReopenWallet(call jsre.Call) (goja.Value, e... method UnlockAccount (line 231) | func (b *bridge) UnlockAccount(call jsre.Call) (goja.Value, error) { method Sign (line 278) | func (b *bridge) Sign(call jsre.Call) (goja.Value, error) { method Sleep (line 316) | func (b *bridge) Sleep(call jsre.Call) (goja.Value, error) { method SleepBlocks (line 331) | func (b *bridge) SleepBlocks(call jsre.Call) (goja.Value, error) { method Send (line 384) | func (b *bridge) Send(call jsre.Call) (goja.Value, error) { function newBridge (line 45) | func newBridge(client *rpc.Client, prompter prompt.UserPrompter, printer... function getJeth (line 53) | func getJeth(vm *goja.Runtime) *goja.Object { type jsonrpcCall (line 377) | type jsonrpcCall struct function setError (line 461) | func setError(resp *goja.Object, code int, msg string, data interface{}) { function isNumber (line 472) | func isNumber(v goja.Value) bool { function getObject (line 477) | func getObject(vm *goja.Runtime, name string) *goja.Object { FILE: console/bridge_test.go function TestUndefinedAsParam (line 28) | func TestUndefinedAsParam(t *testing.T) { function TestNullAsParam (line 40) | func TestNullAsParam(t *testing.T) { FILE: console/console.go constant HistoryFile (line 49) | HistoryFile = "history" constant DefaultPrompt (line 52) | DefaultPrompt = "> " type Config (line 56) | type Config struct type Console (line 69) | type Console struct method init (line 113) | func (c *Console) init(preload []string) error { method initConsoleObject (line 155) | func (c *Console) initConsoleObject() { method initWeb3 (line 164) | func (c *Console) initWeb3(bridge *bridge) error { method initExtensions (line 188) | func (c *Console) initExtensions() error { method initAdmin (line 220) | func (c *Console) initAdmin(vm *goja.Runtime, bridge *bridge) { method initPersonal (line 234) | func (c *Console) initPersonal(vm *goja.Runtime, bridge *bridge) { method clearHistory (line 251) | func (c *Console) clearHistory() { method consoleOutput (line 263) | func (c *Console) consoleOutput(call goja.FunctionCall) goja.Value { method AutoCompleteInput (line 274) | func (c *Console) AutoCompleteInput(line string, pos int) (string, []s... method Welcome (line 301) | func (c *Console) Welcome() { method Evaluate (line 333) | func (c *Console) Evaluate(statement string) { method Interactive (line 344) | func (c *Console) Interactive() { method readLines (line 418) | func (c *Console) readLines(input chan<- string, errc chan<- error, pr... method Execute (line 473) | func (c *Console) Execute(path string) error { method Stop (line 478) | func (c *Console) Stop(graceful bool) error { function New (line 81) | func New(config Config) (*Console, error) { function countIndents (line 431) | func countIndents(input string) int { FILE: console/console_test.go constant testInstance (line 41) | testInstance = "console-tester" constant testAddress (line 42) | testAddress = "0x8605cdbbdb6d264aa742e77020dcbc58fcdce182" type hookedPrompter (line 46) | type hookedPrompter struct method PromptInput (line 50) | func (p *hookedPrompter) PromptInput(prompt string) (string, error) { method PromptPassword (line 66) | func (p *hookedPrompter) PromptPassword(prompt string) (string, error) { method PromptConfirm (line 69) | func (p *hookedPrompter) PromptConfirm(prompt string) (bool, error) { method SetHistory (line 72) | func (p *hookedPrompter) SetHistory(history []string) ... method AppendHistory (line 73) | func (p *hookedPrompter) AppendHistory(command string) ... method ClearHistory (line 74) | func (p *hookedPrompter) ClearHistory() ... method SetWordCompleter (line 75) | func (p *hookedPrompter) SetWordCompleter(completer prompt.WordComplet... type tester (line 78) | type tester struct method Close (line 151) | func (env *tester) Close(t *testing.T) { function newTester (line 89) | func newTester(t *testing.T, confOverride func(*ethconfig.Config)) *test... function TestWelcome (line 164) | func TestWelcome(t *testing.T) { function TestEvaluate (line 189) | func TestEvaluate(t *testing.T) { function TestInteractive (line 200) | func TestInteractive(t *testing.T) { function TestPreload (line 231) | func TestPreload(t *testing.T) { function TestExecute (line 242) | func TestExecute(t *testing.T) { function TestPrettyPrint (line 256) | func TestPrettyPrint(t *testing.T) { function TestPrettyError (line 287) | func TestPrettyError(t *testing.T) { function TestIndenting (line 299) | func TestIndenting(t *testing.T) { FILE: console/prompt/prompter.go type UserPrompter (line 32) | type UserPrompter interface type WordCompleter (line 67) | type WordCompleter type terminalPrompter (line 72) | type terminalPrompter struct method PromptInput (line 107) | func (p *terminalPrompter) PromptInput(prompt string) (string, error) { method PromptPassword (line 125) | func (p *terminalPrompter) PromptPassword(prompt string) (passwd strin... method PromptConfirm (line 144) | func (p *terminalPrompter) PromptConfirm(prompt string) (bool, error) { method SetHistory (line 154) | func (p *terminalPrompter) SetHistory(history []string) { method AppendHistory (line 159) | func (p *terminalPrompter) AppendHistory(command string) { method ClearHistory (line 164) | func (p *terminalPrompter) ClearHistory() { method SetWordCompleter (line 170) | func (p *terminalPrompter) SetWordCompleter(completer WordCompleter) { function newTerminalPrompter (line 82) | func newTerminalPrompter() *terminalPrompter { FILE: eth/api.go type PublicEthereumAPI (line 45) | type PublicEthereumAPI struct method Etherbase (line 55) | func (api *PublicEthereumAPI) Etherbase() (common.Address, error) { method Coinbase (line 60) | func (api *PublicEthereumAPI) Coinbase() (common.Address, error) { method ChainId (line 65) | func (api *PublicEthereumAPI) ChainId() (hexutil.Uint64, error) { function NewPublicEthereumAPI (line 50) | func NewPublicEthereumAPI(e *Ethereum) *PublicEthereumAPI { type PublicMinerAPI (line 75) | type PublicMinerAPI struct method Mining (line 85) | func (api *PublicMinerAPI) Mining() bool { function NewPublicMinerAPI (line 80) | func NewPublicMinerAPI(e *Ethereum) *PublicMinerAPI { type PrivateMinerAPI (line 91) | type PrivateMinerAPI struct method Start (line 105) | func (api *PrivateMinerAPI) Start(threads *int) error { method Stop (line 114) | func (api *PrivateMinerAPI) Stop() { method SetExtra (line 119) | func (api *PrivateMinerAPI) SetExtra(extra string) (bool, error) { method SetGasPrice (line 127) | func (api *PrivateMinerAPI) SetGasPrice(gasPrice hexutil.Big) bool { method SetEtherbase (line 137) | func (api *PrivateMinerAPI) SetEtherbase(etherbase common.Address) bool { method SetRecommitInterval (line 143) | func (api *PrivateMinerAPI) SetRecommitInterval(interval int) { function NewPrivateMinerAPI (line 96) | func NewPrivateMinerAPI(e *Ethereum) *PrivateMinerAPI { type PrivateAdminAPI (line 149) | type PrivateAdminAPI struct method ExportChain (line 161) | func (api *PrivateAdminAPI) ExportChain(file string, first *uint64, la... method ImportChain (line 209) | func (api *PrivateAdminAPI) ImportChain(file string) (bool, error) { function NewPrivateAdminAPI (line 155) | func NewPrivateAdminAPI(eth *Ethereum) *PrivateAdminAPI { function hasAllBlocks (line 198) | func hasAllBlocks(chain *core.BlockChain, bs []*types.Block) bool { type PublicDebugAPI (line 259) | type PublicDebugAPI struct method DumpBlock (line 270) | func (api *PublicDebugAPI) DumpBlock(blockNr rpc.BlockNumber) (state.D... method AccountRange (line 355) | func (api *PublicDebugAPI) AccountRange(blockNrOrHash rpc.BlockNumberO... function NewPublicDebugAPI (line 265) | func NewPublicDebugAPI(eth *Ethereum) *PublicDebugAPI { type PrivateDebugAPI (line 296) | type PrivateDebugAPI struct method Preimage (line 307) | func (api *PrivateDebugAPI) Preimage(ctx context.Context, hash common.... method GetBadBlocks (line 323) | func (api *PrivateDebugAPI) GetBadBlocks(ctx context.Context) ([]*BadB... method StorageRangeAt (line 413) | func (api *PrivateDebugAPI) StorageRangeAt(blockHash common.Hash, txIn... method GetModifiedAccountsByNumber (line 459) | func (api *PrivateDebugAPI) GetModifiedAccountsByNumber(startNum uint6... method GetModifiedAccountsByHash (line 487) | func (api *PrivateDebugAPI) GetModifiedAccountsByHash(startHash common... method getModifiedAccounts (line 509) | func (api *PrivateDebugAPI) getModifiedAccounts(startBlock, endBlock *... function NewPrivateDebugAPI (line 302) | func NewPrivateDebugAPI(eth *Ethereum) *PrivateDebugAPI { type BadBlockArgs (line 315) | type BadBlockArgs struct constant AccountRangeMaxResults (line 352) | AccountRangeMaxResults = 256 type StorageRangeResult (line 400) | type StorageRangeResult struct type storageMap (line 405) | type storageMap type storageEntry (line 407) | type storageEntry struct function storageRangeAt (line 431) | func storageRangeAt(st state.Trie, start []byte, maxResult int) (Storage... FILE: eth/api_backend.go type EthAPIBackend (line 43) | type EthAPIBackend struct method ChainConfig (line 51) | func (b *EthAPIBackend) ChainConfig() *params.ChainConfig { method CurrentBlock (line 55) | func (b *EthAPIBackend) CurrentBlock() *types.Block { method SetHead (line 59) | func (b *EthAPIBackend) SetHead(number uint64) { method HeaderByNumber (line 64) | func (b *EthAPIBackend) HeaderByNumber(ctx context.Context, number rpc... method HeaderByNumberOrHash (line 77) | func (b *EthAPIBackend) HeaderByNumberOrHash(ctx context.Context, bloc... method HeaderByHash (line 94) | func (b *EthAPIBackend) HeaderByHash(ctx context.Context, hash common.... method BlockByNumber (line 98) | func (b *EthAPIBackend) BlockByNumber(ctx context.Context, number rpc.... method BlockByHash (line 111) | func (b *EthAPIBackend) BlockByHash(ctx context.Context, hash common.H... method BlockByNumberOrHash (line 115) | func (b *EthAPIBackend) BlockByNumberOrHash(ctx context.Context, block... method StateAndHeaderByNumber (line 136) | func (b *EthAPIBackend) StateAndHeaderByNumber(ctx context.Context, nu... method StateAndHeaderByNumberOrHash (line 154) | func (b *EthAPIBackend) StateAndHeaderByNumberOrHash(ctx context.Conte... method GetReceipts (line 175) | func (b *EthAPIBackend) GetReceipts(ctx context.Context, hash common.H... method GetLogs (line 179) | func (b *EthAPIBackend) GetLogs(ctx context.Context, hash common.Hash)... method GetTd (line 191) | func (b *EthAPIBackend) GetTd(ctx context.Context, hash common.Hash) *... method GetEVM (line 195) | func (b *EthAPIBackend) GetEVM(ctx context.Context, msg core.Message, ... method SubscribeRemovedLogsEvent (line 203) | func (b *EthAPIBackend) SubscribeRemovedLogsEvent(ch chan<- core.Remov... method SubscribePendingLogsEvent (line 207) | func (b *EthAPIBackend) SubscribePendingLogsEvent(ch chan<- []*types.L... method SubscribeChainEvent (line 211) | func (b *EthAPIBackend) SubscribeChainEvent(ch chan<- core.ChainEvent)... method SubscribeChainHeadEvent (line 215) | func (b *EthAPIBackend) SubscribeChainHeadEvent(ch chan<- core.ChainHe... method SubscribeChainSideEvent (line 219) | func (b *EthAPIBackend) SubscribeChainSideEvent(ch chan<- core.ChainSi... method SubscribeLogsEvent (line 223) | func (b *EthAPIBackend) SubscribeLogsEvent(ch chan<- []*types.Log) eve... method SendTx (line 227) | func (b *EthAPIBackend) SendTx(ctx context.Context, signedTx *types.Tr... method GetPoolTransactions (line 231) | func (b *EthAPIBackend) GetPoolTransactions() (types.Transactions, err... method GetPoolTransaction (line 243) | func (b *EthAPIBackend) GetPoolTransaction(hash common.Hash) *types.Tr... method GetTransaction (line 247) | func (b *EthAPIBackend) GetTransaction(ctx context.Context, txHash com... method GetPoolNonce (line 252) | func (b *EthAPIBackend) GetPoolNonce(ctx context.Context, addr common.... method Stats (line 256) | func (b *EthAPIBackend) Stats() (pending int, queued int) { method TxPoolContent (line 260) | func (b *EthAPIBackend) TxPoolContent() (map[common.Address]types.Tran... method TxPool (line 264) | func (b *EthAPIBackend) TxPool() *core.TxPool { method SubscribeNewTxsEvent (line 268) | func (b *EthAPIBackend) SubscribeNewTxsEvent(ch chan<- core.NewTxsEven... method Downloader (line 272) | func (b *EthAPIBackend) Downloader() *downloader.Downloader { method SuggestPrice (line 276) | func (b *EthAPIBackend) SuggestPrice(ctx context.Context) (*big.Int, e... method ChainDb (line 280) | func (b *EthAPIBackend) ChainDb() ethdb.Database { method EventMux (line 284) | func (b *EthAPIBackend) EventMux() *event.TypeMux { method AccountManager (line 288) | func (b *EthAPIBackend) AccountManager() *accounts.Manager { method ExtRPCEnabled (line 292) | func (b *EthAPIBackend) ExtRPCEnabled() bool { method UnprotectedAllowed (line 296) | func (b *EthAPIBackend) UnprotectedAllowed() bool { method RPCGasCap (line 300) | func (b *EthAPIBackend) RPCGasCap() uint64 { method RPCTxFeeCap (line 304) | func (b *EthAPIBackend) RPCTxFeeCap() float64 { method BloomStatus (line 308) | func (b *EthAPIBackend) BloomStatus() (uint64, uint64) { method ServiceFilter (line 313) | func (b *EthAPIBackend) ServiceFilter(ctx context.Context, session *bl... method Engine (line 319) | func (b *EthAPIBackend) Engine() consensus.Engine { method CurrentHeader (line 323) | func (b *EthAPIBackend) CurrentHeader() *types.Header { method Miner (line 327) | func (b *EthAPIBackend) Miner() *miner.Miner { method StartMining (line 331) | func (b *EthAPIBackend) StartMining(threads int) error { method StateAtBlock (line 335) | func (b *EthAPIBackend) StateAtBlock(ctx context.Context, block *types... method StatesInRange (line 339) | func (b *EthAPIBackend) StatesInRange(ctx context.Context, fromBlock *... method StateAtTransaction (line 343) | func (b *EthAPIBackend) StateAtTransaction(ctx context.Context, block ... FILE: eth/api_test.go function accountRangeTest (line 36) | func accountRangeTest(t *testing.T, trie *state.Trie, statedb *state.Sta... type resultHash (line 53) | type resultHash method Len (line 55) | func (h resultHash) Len() int { return len(h) } method Swap (line 56) | func (h resultHash) Swap(i, j int) { h[i], h[j] = h[j], h[i] } method Less (line 57) | func (h resultHash) Less(i, j int) bool { return bytes.Compare(h[i].By... function TestAccountRange (line 59) | func TestAccountRange(t *testing.T) { function TestEmptyAccountRange (line 130) | func TestEmptyAccountRange(t *testing.T) { function TestStorageRangeAt (line 148) | func TestStorageRangeAt(t *testing.T) { FILE: eth/backend.go type Ethereum (line 64) | type Ethereum struct method APIs (line 289) | func (s *Ethereum) APIs() []rpc.API { method ResetWithGenesisBlock (line 344) | func (s *Ethereum) ResetWithGenesisBlock(gb *types.Block) { method Etherbase (line 348) | func (s *Ethereum) Etherbase() (eb common.Address, err error) { method isLocalBlock (line 376) | func (s *Ethereum) isLocalBlock(block *types.Block) bool { method shouldPreserve (line 402) | func (s *Ethereum) shouldPreserve(block *types.Block) bool { method SetEtherbase (line 426) | func (s *Ethereum) SetEtherbase(etherbase common.Address) { method StartMining (line 437) | func (s *Ethereum) StartMining(threads int) error { method StopMining (line 482) | func (s *Ethereum) StopMining() { method IsMining (line 494) | func (s *Ethereum) IsMining() bool { return s.miner.Mining() } method Miner (line 495) | func (s *Ethereum) Miner() *miner.Miner { return s.miner } method AccountManager (line 497) | func (s *Ethereum) AccountManager() *accounts.Manager { return s.acco... method BlockChain (line 498) | func (s *Ethereum) BlockChain() *core.BlockChain { return s.bloc... method TxPool (line 499) | func (s *Ethereum) TxPool() *core.TxPool { return s.txPo... method EventMux (line 500) | func (s *Ethereum) EventMux() *event.TypeMux { return s.even... method Engine (line 501) | func (s *Ethereum) Engine() consensus.Engine { return s.engi... method ChainDb (line 502) | func (s *Ethereum) ChainDb() ethdb.Database { return s.chai... method IsListening (line 503) | func (s *Ethereum) IsListening() bool { return true } method Downloader (line 504) | func (s *Ethereum) Downloader() *downloader.Downloader { return s.hand... method Synced (line 505) | func (s *Ethereum) Synced() bool { return atomic... method ArchiveMode (line 506) | func (s *Ethereum) ArchiveMode() bool { return s.conf... method BloomIndexer (line 507) | func (s *Ethereum) BloomIndexer() *core.ChainIndexer { return s.bloo... method Protocols (line 511) | func (s *Ethereum) Protocols() []p2p.Protocol { method Start (line 521) | func (s *Ethereum) Start() error { method Stop (line 542) | func (s *Ethereum) Stop() error { function New (line 101) | func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) { function makeExtraData (line 270) | func makeExtraData(extra []byte) []byte { FILE: eth/bloombits.go constant bloomServiceThreads (line 29) | bloomServiceThreads = 16 constant bloomFilterThreads (line 33) | bloomFilterThreads = 3 constant bloomRetrievalBatch (line 37) | bloomRetrievalBatch = 16 constant bloomRetrievalWait (line 41) | bloomRetrievalWait = time.Duration(0) method startBloomHandlers (line 46) | func (eth *Ethereum) startBloomHandlers(sectionSize uint64) { FILE: eth/discovery.go type ethEntry (line 29) | type ethEntry struct method ENRKey (line 37) | func (e ethEntry) ENRKey() string { method startEthEntryUpdate (line 42) | func (eth *Ethereum) startEthEntryUpdate(ln *enode.LocalNode) { method currentEthEntry (line 61) | func (eth *Ethereum) currentEthEntry() *ethEntry { function setupDiscovery (line 68) | func setupDiscovery(urls []string) (enode.Iterator, error) { FILE: eth/downloader/api.go type PublicDownloaderAPI (line 30) | type PublicDownloaderAPI struct method eventLoop (line 56) | func (api *PublicDownloaderAPI) eventLoop() { method Syncing (line 93) | func (api *PublicDownloaderAPI) Syncing(ctx context.Context) (*rpc.Sub... method SubscribeSyncStatus (line 163) | func (api *PublicDownloaderAPI) SubscribeSyncStatus(status chan interf... function NewPublicDownloaderAPI (line 41) | func NewPublicDownloaderAPI(d *Downloader, m *event.TypeMux) *PublicDown... type SyncingResult (line 123) | type SyncingResult struct type uninstallSyncSubscriptionRequest (line 129) | type uninstallSyncSubscriptionRequest struct type SyncStatusSubscription (line 135) | type SyncStatusSubscription struct method Unsubscribe (line 144) | func (s *SyncStatusSubscription) Unsubscribe() { FILE: eth/downloader/downloader.go type Downloader (line 96) | type Downloader struct method Progress (line 262) | func (d *Downloader) Progress() ethereum.SyncProgress { method Synchronising (line 289) | func (d *Downloader) Synchronising() bool { method RegisterPeer (line 295) | func (d *Downloader) RegisterPeer(id string, version uint, peer Peer) ... method RegisterLightPeer (line 314) | func (d *Downloader) RegisterLightPeer(id string, version uint, peer L... method UnregisterPeer (line 321) | func (d *Downloader) UnregisterPeer(id string) error { method Synchronise (line 342) | func (d *Downloader) Synchronise(id string, head common.Hash, td *big.... method synchronise (line 369) | func (d *Downloader) synchronise(id string, hash common.Hash, td *big.... method getMode (line 445) | func (d *Downloader) getMode() SyncMode { method syncWithPeer (line 451) | func (d *Downloader) syncWithPeer(p *peerConnection, hash common.Hash,... method spawnSync (line 579) | func (d *Downloader) spawnSync(fetchers []func() error) error { method cancel (line 607) | func (d *Downloader) cancel() { method Cancel (line 624) | func (d *Downloader) Cancel() { method Terminate (line 631) | func (d *Downloader) Terminate() { method fetchHead (line 650) | func (d *Downloader) fetchHead(p *peerConnection) (head *types.Header,... method findAncestor (line 770) | func (d *Downloader) findAncestor(p *peerConnection, remoteHeader *typ... method findAncestorSpanSearch (line 836) | func (d *Downloader) findAncestorSpanSearch(p *peerConnection, mode Sy... method findAncestorBinarySearch (line 920) | func (d *Downloader) findAncestorBinarySearch(p *peerConnection, mode ... method fetchHeaders (line 1011) | func (d *Downloader) fetchHeaders(p *peerConnection, from uint64) error { method fillHeaderSkeleton (line 1245) | func (d *Downloader) fillHeaderSkeleton(from uint64, skeleton []*types... method fetchBodies (line 1277) | func (d *Downloader) fetchBodies(from uint64) error { method fetchReceipts (line 1301) | func (d *Downloader) fetchReceipts(from uint64) error { method fetchParts (line 1349) | func (d *Downloader) fetchParts(deliveryCh chan dataPack, deliver func... method processHeaders (line 1524) | func (d *Downloader) processHeaders(origin uint64, td *big.Int) error { method processFullSyncContent (line 1699) | func (d *Downloader) processFullSyncContent() error { method importBlockResults (line 1714) | func (d *Downloader) importBlockResults(results []*fetchResult) error { method processFastSyncContent (line 1751) | func (d *Downloader) processFastSyncContent() error { method commitFastSyncData (line 1896) | func (d *Downloader) commitFastSyncData(results []*fetchResult, stateS... method commitPivotBlock (line 1929) | func (d *Downloader) commitPivotBlock(result *fetchResult) error { method DeliverHeaders (line 1955) | func (d *Downloader) DeliverHeaders(id string, headers []*types.Header... method DeliverBodies (line 1960) | func (d *Downloader) DeliverBodies(id string, transactions [][]*types.... method DeliverReceipts (line 1965) | func (d *Downloader) DeliverReceipts(id string, receipts [][]*types.Re... method DeliverNodeData (line 1970) | func (d *Downloader) DeliverNodeData(id string, data [][]byte) error { method DeliverSnapPacket (line 1976) | func (d *Downloader) DeliverSnapPacket(peer *snap.Peer, packet snap.Pa... method deliver (line 2001) | func (d *Downloader) deliver(destCh chan dataPack, packet dataPack, in... method qosTuner (line 2026) | func (d *Downloader) qosTuner() { method qosReduceConfidence (line 2049) | func (d *Downloader) qosReduceConfidence() { method requestRTT (line 2081) | func (d *Downloader) requestRTT() time.Duration { method requestTTL (line 2087) | func (d *Downloader) requestTTL() time.Duration { type LightChain (line 169) | type LightChain interface type BlockChain (line 190) | type BlockChain interface function New (line 219) | func New(checkpoint uint64, stateDb ethdb.Database, stateBloom *trie.Syn... function calculateRequestSpan (line 721) | func calculateRequestSpan(remoteHeight, localHeight uint64) (int64, int,... function splitAroundPivot (line 1873) | func splitAroundPivot(pivot uint64, results []*fetchResult) (p *fetchRes... FILE: eth/downloader/downloader_test.go function init (line 39) | func init() { type downloadTester (line 47) | type downloadTester struct method terminate (line 96) | func (dl *downloadTester) terminate() { method sync (line 101) | func (dl *downloadTester) sync(id string, td *big.Int, mode SyncMode) ... method HasHeader (line 123) | func (dl *downloadTester) HasHeader(hash common.Hash, number uint64) b... method HasBlock (line 128) | func (dl *downloadTester) HasBlock(hash common.Hash, number uint64) bo... method HasFastBlock (line 133) | func (dl *downloadTester) HasFastBlock(hash common.Hash, number uint64... method GetHeaderByHash (line 145) | func (dl *downloadTester) GetHeaderByHash(hash common.Hash) *types.Hea... method getHeaderByHash (line 153) | func (dl *downloadTester) getHeaderByHash(hash common.Hash) *types.Hea... method GetBlockByHash (line 162) | func (dl *downloadTester) GetBlockByHash(hash common.Hash) *types.Block { method CurrentHeader (line 174) | func (dl *downloadTester) CurrentHeader() *types.Header { method CurrentBlock (line 190) | func (dl *downloadTester) CurrentBlock() *types.Block { method CurrentFastBlock (line 211) | func (dl *downloadTester) CurrentFastBlock() *types.Block { method FastSyncCommitHead (line 227) | func (dl *downloadTester) FastSyncCommitHead(hash common.Hash) error { method GetTd (line 237) | func (dl *downloadTester) GetTd(hash common.Hash, number uint64) *big.... method getTd (line 247) | func (dl *downloadTester) getTd(hash common.Hash) *big.Int { method InsertHeaderChain (line 255) | func (dl *downloadTester) InsertHeaderChain(headers []*types.Header, c... method InsertChain (line 291) | func (dl *downloadTester) InsertChain(blocks types.Blocks) (i int, err... method InsertReceiptChain (line 314) | func (dl *downloadTester) InsertReceiptChain(blocks types.Blocks, rece... method SetHead (line 345) | func (dl *downloadTester) SetHead(head uint64) error { method Rollback (line 389) | func (dl *downloadTester) Rollback(hashes []common.Hash) { method newPeer (line 393) | func (dl *downloadTester) newPeer(id string, version uint, chain *test... method dropPeer (line 403) | func (dl *downloadTester) dropPeer(id string) { function newTester (line 70) | func newTester() *downloadTester { type downloadTesterPeer (line 411) | type downloadTesterPeer struct method Head (line 420) | func (dlp *downloadTesterPeer) Head() (common.Hash, *big.Int) { method RequestHeadersByHash (line 428) | func (dlp *downloadTesterPeer) RequestHeadersByHash(origin common.Hash... method RequestHeadersByNumber (line 437) | func (dlp *downloadTesterPeer) RequestHeadersByNumber(origin uint64, a... method RequestBodies (line 446) | func (dlp *downloadTesterPeer) RequestBodies(hashes []common.Hash) err... method RequestReceipts (line 455) | func (dlp *downloadTesterPeer) RequestReceipts(hashes []common.Hash) e... method RequestNodeData (line 464) | func (dlp *downloadTesterPeer) RequestNodeData(hashes []common.Hash) e... function assertOwnChain (line 482) | func assertOwnChain(t *testing.T, tester *downloadTester, length int) { function assertOwnForkedChain (line 491) | func assertOwnForkedChain(t *testing.T, tester *downloadTester, common i... function TestCanonicalSynchronisation64Full (line 518) | func TestCanonicalSynchronisation64Full(t *testing.T) { testCanonSync(t,... function TestCanonicalSynchronisation64Fast (line 519) | func TestCanonicalSynchronisation64Fast(t *testing.T) { testCanonSync(t,... function TestCanonicalSynchronisation65Full (line 521) | func TestCanonicalSynchronisation65Full(t *testing.T) { testCanonSync(t... function TestCanonicalSynchronisation65Fast (line 522) | func TestCanonicalSynchronisation65Fast(t *testing.T) { testCanonSync(t... function TestCanonicalSynchronisation65Light (line 523) | func TestCanonicalSynchronisation65Light(t *testing.T) { testCanonSync(t... function TestCanonicalSynchronisation66Full (line 525) | func TestCanonicalSynchronisation66Full(t *testing.T) { testCanonSync(t... function TestCanonicalSynchronisation66Fast (line 526) | func TestCanonicalSynchronisation66Fast(t *testing.T) { testCanonSync(t... function TestCanonicalSynchronisation66Light (line 527) | func TestCanonicalSynchronisation66Light(t *testing.T) { testCanonSync(t... function testCanonSync (line 529) | func testCanonSync(t *testing.T, protocol uint, mode SyncMode) { function TestThrottling64Full (line 548) | func TestThrottling64Full(t *testing.T) { testThrottling(t, 64, FullSync) } function TestThrottling64Fast (line 549) | func TestThrottling64Fast(t *testing.T) { testThrottling(t, 64, FastSync) } function TestThrottling65Full (line 551) | func TestThrottling65Full(t *testing.T) { testThrottling(t, 65, FullSync) } function TestThrottling65Fast (line 552) | func TestThrottling65Fast(t *testing.T) { testThrottling(t, 65, FastSync) } function TestThrottling66Full (line 554) | func TestThrottling66Full(t *testing.T) { testThrottling(t, 66, FullSync) } function TestThrottling66Fast (line 555) | func TestThrottling66Fast(t *testing.T) { testThrottling(t, 66, FastSync) } function testThrottling (line 557) | func testThrottling(t *testing.T, protocol uint, mode SyncMode) { function TestForkedSync64Full (line 636) | func TestForkedSync64Full(t *testing.T) { testForkedSync(t, 64, FullSync) } function TestForkedSync64Fast (line 637) | func TestForkedSync64Fast(t *testing.T) { testForkedSync(t, 64, FastSync) } function TestForkedSync65Full (line 639) | func TestForkedSync65Full(t *testing.T) { testForkedSync(t, 65, FullSyn... function TestForkedSync65Fast (line 640) | func TestForkedSync65Fast(t *testing.T) { testForkedSync(t, 65, FastSyn... function TestForkedSync65Light (line 641) | func TestForkedSync65Light(t *testing.T) { testForkedSync(t, 65, LightSy... function TestForkedSync66Full (line 643) | func TestForkedSync66Full(t *testing.T) { testForkedSync(t, 66, FullSyn... function TestForkedSync66Fast (line 644) | func TestForkedSync66Fast(t *testing.T) { testForkedSync(t, 66, FastSyn... function TestForkedSync66Light (line 645) | func TestForkedSync66Light(t *testing.T) { testForkedSync(t, 66, LightSy... function testForkedSync (line 647) | func testForkedSync(t *testing.T, protocol uint, mode SyncMode) { function TestHeavyForkedSync64Full (line 672) | func TestHeavyForkedSync64Full(t *testing.T) { testHeavyForkedSync(t, 64... function TestHeavyForkedSync64Fast (line 673) | func TestHeavyForkedSync64Fast(t *testing.T) { testHeavyForkedSync(t, 64... function TestHeavyForkedSync65Full (line 675) | func TestHeavyForkedSync65Full(t *testing.T) { testHeavyForkedSync(t, 6... function TestHeavyForkedSync65Fast (line 676) | func TestHeavyForkedSync65Fast(t *testing.T) { testHeavyForkedSync(t, 6... function TestHeavyForkedSync65Light (line 677) | func TestHeavyForkedSync65Light(t *testing.T) { testHeavyForkedSync(t, 6... function TestHeavyForkedSync66Full (line 679) | func TestHeavyForkedSync66Full(t *testing.T) { testHeavyForkedSync(t, 6... function TestHeavyForkedSync66Fast (line 680) | func TestHeavyForkedSync66Fast(t *testing.T) { testHeavyForkedSync(t, 6... function TestHeavyForkedSync66Light (line 681) | func TestHeavyForkedSync66Light(t *testing.T) { testHeavyForkedSync(t, 6... function testHeavyForkedSync (line 683) | func testHeavyForkedSync(t *testing.T, protocol uint, mode SyncMode) { function TestBoundedForkedSync64Full (line 710) | func TestBoundedForkedSync64Full(t *testing.T) { testBoundedForkedSync(t... function TestBoundedForkedSync64Fast (line 711) | func TestBoundedForkedSync64Fast(t *testing.T) { testBoundedForkedSync(t... function TestBoundedForkedSync65Full (line 713) | func TestBoundedForkedSync65Full(t *testing.T) { testBoundedForkedSync(... function TestBoundedForkedSync65Fast (line 714) | func TestBoundedForkedSync65Fast(t *testing.T) { testBoundedForkedSync(... function TestBoundedForkedSync65Light (line 715) | func TestBoundedForkedSync65Light(t *testing.T) { testBoundedForkedSync(... function TestBoundedForkedSync66Full (line 717) | func TestBoundedForkedSync66Full(t *testing.T) { testBoundedForkedSync(... function TestBoundedForkedSync66Fast (line 718) | func TestBoundedForkedSync66Fast(t *testing.T) { testBoundedForkedSync(... function TestBoundedForkedSync66Light (line 719) | func TestBoundedForkedSync66Light(t *testing.T) { testBoundedForkedSync(... function testBoundedForkedSync (line 721) | func testBoundedForkedSync(t *testing.T, protocol uint, mode SyncMode) { function TestBoundedHeavyForkedSync64Full (line 747) | func TestBoundedHeavyForkedSync64Full(t *testing.T) { testBoundedHeavyFo... function TestBoundedHeavyForkedSync64Fast (line 748) | func TestBoundedHeavyForkedSync64Fast(t *testing.T) { testBoundedHeavyFo... function TestBoundedHeavyForkedSync65Full (line 750) | func TestBoundedHeavyForkedSync65Full(t *testing.T) { testBoundedHeavyF... function TestBoundedHeavyForkedSync65Fast (line 751) | func TestBoundedHeavyForkedSync65Fast(t *testing.T) { testBoundedHeavyF... function TestBoundedHeavyForkedSync65Light (line 752) | func TestBoundedHeavyForkedSync65Light(t *testing.T) { testBoundedHeavyF... function TestBoundedHeavyForkedSync66Full (line 754) | func TestBoundedHeavyForkedSync66Full(t *testing.T) { testBoundedHeavyF... function TestBoundedHeavyForkedSync66Fast (line 755) | func TestBoundedHeavyForkedSync66Fast(t *testing.T) { testBoundedHeavyF... function TestBoundedHeavyForkedSync66Light (line 756) | func TestBoundedHeavyForkedSync66Light(t *testing.T) { testBoundedHeavyF... function testBoundedHeavyForkedSync (line 758) | func testBoundedHeavyForkedSync(t *testing.T, protocol uint, mode SyncMo... function TestInactiveDownloader63 (line 783) | func TestInactiveDownloader63(t *testing.T) { function TestCancel64Full (line 802) | func TestCancel64Full(t *testing.T) { testCancel(t, 64, FullSync) } function TestCancel64Fast (line 803) | func TestCancel64Fast(t *testing.T) { testCancel(t, 64, FastSync) } function TestCancel65Full (line 805) | func TestCancel65Full(t *testing.T) { testCancel(t, 65, FullSync) } function TestCancel65Fast (line 806) | func TestCancel65Fast(t *testing.T) { testCancel(t, 65, FastSync) } function TestCancel65Light (line 807) | func TestCancel65Light(t *testing.T) { testCancel(t, 65, LightSync) } function TestCancel66Full (line 809) | func TestCancel66Full(t *testing.T) { testCancel(t, 66, FullSync) } function TestCancel66Fast (line 810) | func TestCancel66Fast(t *testing.T) { testCancel(t, 66, FastSync) } function TestCancel66Light (line 811) | func TestCancel66Light(t *testing.T) { testCancel(t, 66, LightSync) } function testCancel (line 813) | func testCancel(t *testing.T, protocol uint, mode SyncMode) { function TestMultiSynchronisation64Full (line 838) | func TestMultiSynchronisation64Full(t *testing.T) { testMultiSynchronisa... function TestMultiSynchronisation64Fast (line 839) | func TestMultiSynchronisation64Fast(t *testing.T) { testMultiSynchronisa... function TestMultiSynchronisation65Full (line 841) | func TestMultiSynchronisation65Full(t *testing.T) { testMultiSynchronis... function TestMultiSynchronisation65Fast (line 842) | func TestMultiSynchronisation65Fast(t *testing.T) { testMultiSynchronis... function TestMultiSynchronisation65Light (line 843) | func TestMultiSynchronisation65Light(t *testing.T) { testMultiSynchronis... function TestMultiSynchronisation66Full (line 845) | func TestMultiSynchronisation66Full(t *testing.T) { testMultiSynchronis... function TestMultiSynchronisation66Fast (line 846) | func TestMultiSynchronisation66Fast(t *testing.T) { testMultiSynchronis... function TestMultiSynchronisation66Light (line 847) | func TestMultiSynchronisation66Light(t *testing.T) { testMultiSynchronis... function testMultiSynchronisation (line 849) | func testMultiSynchronisation(t *testing.T, protocol uint, mode SyncMode) { function TestMultiProtoSynchronisation64Full (line 871) | func TestMultiProtoSynchronisation64Full(t *testing.T) { testMultiProtoS... function TestMultiProtoSynchronisation64Fast (line 872) | func TestMultiProtoSynchronisation64Fast(t *testing.T) { testMultiProtoS... function TestMultiProtoSynchronisation65Full (line 874) | func TestMultiProtoSynchronisation65Full(t *testing.T) { testMultiProto... function TestMultiProtoSynchronisation65Fast (line 875) | func TestMultiProtoSynchronisation65Fast(t *testing.T) { testMultiProto... function TestMultiProtoSynchronisation65Light (line 876) | func TestMultiProtoSynchronisation65Light(t *testing.T) { testMultiProto... function TestMultiProtoSynchronisation66Full (line 878) | func TestMultiProtoSynchronisation66Full(t *testing.T) { testMultiProto... function TestMultiProtoSynchronisation66Fast (line 879) | func TestMultiProtoSynchronisation66Fast(t *testing.T) { testMultiProto... function TestMultiProtoSynchronisation66Light (line 880) | func TestMultiProtoSynchronisation66Light(t *testing.T) { testMultiProto... function testMultiProtoSync (line 882) | func testMultiProtoSync(t *testing.T, protocol uint, mode SyncMode) { function TestEmptyShortCircuit64Full (line 913) | func TestEmptyShortCircuit64Full(t *testing.T) { testEmptyShortCircuit(t... function TestEmptyShortCircuit64Fast (line 914) | func TestEmptyShortCircuit64Fast(t *testing.T) { testEmptyShortCircuit(t... function TestEmptyShortCircuit65Full (line 916) | func TestEmptyShortCircuit65Full(t *testing.T) { testEmptyShortCircuit(... function TestEmptyShortCircuit65Fast (line 917) | func TestEmptyShortCircuit65Fast(t *testing.T) { testEmptyShortCircuit(... function TestEmptyShortCircuit65Light (line 918) | func TestEmptyShortCircuit65Light(t *testing.T) { testEmptyShortCircuit(... function TestEmptyShortCircuit66Full (line 920) | func TestEmptyShortCircuit66Full(t *testing.T) { testEmptyShortCircuit(... function TestEmptyShortCircuit66Fast (line 921) | func TestEmptyShortCircuit66Fast(t *testing.T) { testEmptyShortCircuit(... function TestEmptyShortCircuit66Light (line 922) | func TestEmptyShortCircuit66Light(t *testing.T) { testEmptyShortCircuit(... function testEmptyShortCircuit (line 924) | func testEmptyShortCircuit(t *testing.T, protocol uint, mode SyncMode) { function TestMissingHeaderAttack64Full (line 970) | func TestMissingHeaderAttack64Full(t *testing.T) { testMissingHeaderAtta... function TestMissingHeaderAttack64Fast (line 971) | func TestMissingHeaderAttack64Fast(t *testing.T) { testMissingHeaderAtta... function TestMissingHeaderAttack65Full (line 973) | func TestMissingHeaderAttack65Full(t *testing.T) { testMissingHeaderAtt... function TestMissingHeaderAttack65Fast (line 974) | func TestMissingHeaderAttack65Fast(t *testing.T) { testMissingHeaderAtt... function TestMissingHeaderAttack65Light (line 975) | func TestMissingHeaderAttack65Light(t *testing.T) { testMissingHeaderAtt... function TestMissingHeaderAttack66Full (line 977) | func TestMissingHeaderAttack66Full(t *testing.T) { testMissingHeaderAtt... function TestMissingHeaderAttack66Fast (line 978) | func TestMissingHeaderAttack66Fast(t *testing.T) { testMissingHeaderAtt... function TestMissingHeaderAttack66Light (line 979) | func TestMissingHeaderAttack66Light(t *testing.T) { testMissingHeaderAtt... function testMissingHeaderAttack (line 981) | func testMissingHeaderAttack(t *testing.T, protocol uint, mode SyncMode) { function TestShiftedHeaderAttack64Full (line 1005) | func TestShiftedHeaderAttack64Full(t *testing.T) { testShiftedHeaderAtta... function TestShiftedHeaderAttack64Fast (line 1006) | func TestShiftedHeaderAttack64Fast(t *testing.T) { testShiftedHeaderAtta... function TestShiftedHeaderAttack65Full (line 1008) | func TestShiftedHeaderAttack65Full(t *testing.T) { testShiftedHeaderAtt... function TestShiftedHeaderAttack65Fast (line 1009) | func TestShiftedHeaderAttack65Fast(t *testing.T) { testShiftedHeaderAtt... function TestShiftedHeaderAttack65Light (line 1010) | func TestShiftedHeaderAttack65Light(t *testing.T) { testShiftedHeaderAtt... function TestShiftedHeaderAttack66Full (line 1012) | func TestShiftedHeaderAttack66Full(t *testing.T) { testShiftedHeaderAtt... function TestShiftedHeaderAttack66Fast (line 1013) | func TestShiftedHeaderAttack66Fast(t *testing.T) { testShiftedHeaderAtt... function TestShiftedHeaderAttack66Light (line 1014) | func TestShiftedHeaderAttack66Light(t *testing.T) { testShiftedHeaderAtt... function testShiftedHeaderAttack (line 1016) | func testShiftedHeaderAttack(t *testing.T, protocol uint, mode SyncMode) { function TestInvalidHeaderRollback64Fast (line 1045) | func TestInvalidHeaderRollback64Fast(t *testing.T) { testInvalidHeaderRo... function TestInvalidHeaderRollback65Fast (line 1046) | func TestInvalidHeaderRollback65Fast(t *testing.T) { testInvalidHeaderRo... function TestInvalidHeaderRollback66Fast (line 1047) | func TestInvalidHeaderRollback66Fast(t *testing.T) { testInvalidHeaderRo... function testInvalidHeaderRollback (line 1049) | func testInvalidHeaderRollback(t *testing.T, protocol uint, mode SyncMod... function TestHighTDStarvationAttack64Full (line 1137) | func TestHighTDStarvationAttack64Full(t *testing.T) { testHighTDStarvati... function TestHighTDStarvationAttack64Fast (line 1138) | func TestHighTDStarvationAttack64Fast(t *testing.T) { testHighTDStarvati... function TestHighTDStarvationAttack65Full (line 1140) | func TestHighTDStarvationAttack65Full(t *testing.T) { testHighTDStarvat... function TestHighTDStarvationAttack65Fast (line 1141) | func TestHighTDStarvationAttack65Fast(t *testing.T) { testHighTDStarvat... function TestHighTDStarvationAttack65Light (line 1142) | func TestHighTDStarvationAttack65Light(t *testing.T) { testHighTDStarvat... function TestHighTDStarvationAttack66Full (line 1144) | func TestHighTDStarvationAttack66Full(t *testing.T) { testHighTDStarvat... function TestHighTDStarvationAttack66Fast (line 1145) | func TestHighTDStarvationAttack66Fast(t *testing.T) { testHighTDStarvat... function TestHighTDStarvationAttack66Light (line 1146) | func TestHighTDStarvationAttack66Light(t *testing.T) { testHighTDStarvat... function testHighTDStarvationAttack (line 1148) | func testHighTDStarvationAttack(t *testing.T, protocol uint, mode SyncMo... function TestBlockHeaderAttackerDropping64 (line 1162) | func TestBlockHeaderAttackerDropping64(t *testing.T) { testBlockHeaderAt... function TestBlockHeaderAttackerDropping65 (line 1163) | func TestBlockHeaderAttackerDropping65(t *testing.T) { testBlockHeaderAt... function TestBlockHeaderAttackerDropping66 (line 1164) | func TestBlockHeaderAttackerDropping66(t *testing.T) { testBlockHeaderAt... function testBlockHeaderAttackerDropping (line 1166) | func testBlockHeaderAttackerDropping(t *testing.T, protocol uint) { function TestSyncProgress64Full (line 1216) | func TestSyncProgress64Full(t *testing.T) { testSyncProgress(t, 64, Full... function TestSyncProgress64Fast (line 1217) | func TestSyncProgress64Fast(t *testing.T) { testSyncProgress(t, 64, Fast... function TestSyncProgress65Full (line 1219) | func TestSyncProgress65Full(t *testing.T) { testSyncProgress(t, 65, Ful... function TestSyncProgress65Fast (line 1220) | func TestSyncProgress65Fast(t *testing.T) { testSyncProgress(t, 65, Fas... function TestSyncProgress65Light (line 1221) | func TestSyncProgress65Light(t *testing.T) { testSyncProgress(t, 65, Lig... function TestSyncProgress66Full (line 1223) | func TestSyncProgress66Full(t *testing.T) { testSyncProgress(t, 66, Ful... function TestSyncProgress66Fast (line 1224) | func TestSyncProgress66Fast(t *testing.T) { testSyncProgress(t, 66, Fas... function TestSyncProgress66Light (line 1225) | func TestSyncProgress66Light(t *testing.T) { testSyncProgress(t, 66, Lig... function testSyncProgress (line 1227) | func testSyncProgress(t *testing.T, protocol uint, mode SyncMode) { function checkProgress (line 1288) | func checkProgress(t *testing.T, d *Downloader, stage string, want ether... function TestForkedSyncProgress64Full (line 1303) | func TestForkedSyncProgress64Full(t *testing.T) { testForkedSyncProgress... function TestForkedSyncProgress64Fast (line 1304) | func TestForkedSyncProgress64Fast(t *testing.T) { testForkedSyncProgress... function TestForkedSyncProgress65Full (line 1306) | func TestForkedSyncProgress65Full(t *testing.T) { testForkedSyncProgres... function TestForkedSyncProgress65Fast (line 1307) | func TestForkedSyncProgress65Fast(t *testing.T) { testForkedSyncProgres... function TestForkedSyncProgress65Light (line 1308) | func TestForkedSyncProgress65Light(t *testing.T) { testForkedSyncProgres... function TestForkedSyncProgress66Full (line 1310) | func TestForkedSyncProgress66Full(t *testing.T) { testForkedSyncProgres... function TestForkedSyncProgress66Fast (line 1311) | func TestForkedSyncProgress66Fast(t *testing.T) { testForkedSyncProgres... function TestForkedSyncProgress66Light (line 1312) | func TestForkedSyncProgress66Light(t *testing.T) { testForkedSyncProgres... function testForkedSyncProgress (line 1314) | func testForkedSyncProgress(t *testing.T, protocol uint, mode SyncMode) { function TestFailedSyncProgress64Full (line 1382) | func TestFailedSyncProgress64Full(t *testing.T) { testFailedSyncProgress... function TestFailedSyncProgress64Fast (line 1383) | func TestFailedSyncProgress64Fast(t *testing.T) { testFailedSyncProgress... function TestFailedSyncProgress65Full (line 1385) | func TestFailedSyncProgress65Full(t *testing.T) { testFailedSyncProgres... function TestFailedSyncProgress65Fast (line 1386) | func TestFailedSyncProgress65Fast(t *testing.T) { testFailedSyncProgres... function TestFailedSyncProgress65Light (line 1387) | func TestFailedSyncProgress65Light(t *testing.T) { testFailedSyncProgres... function TestFailedSyncProgress66Full (line 1389) | func TestFailedSyncProgress66Full(t *testing.T) { testFailedSyncProgres... function TestFailedSyncProgress66Fast (line 1390) | func TestFailedSyncProgress66Fast(t *testing.T) { testFailedSyncProgres... function TestFailedSyncProgress66Light (line 1391) | func TestFailedSyncProgress66Light(t *testing.T) { testFailedSyncProgres... function testFailedSyncProgress (line 1393) | func testFailedSyncProgress(t *testing.T, protocol uint, mode SyncMode) { function TestFakedSyncProgress64Full (line 1458) | func TestFakedSyncProgress64Full(t *testing.T) { testFakedSyncProgress(t... function TestFakedSyncProgress64Fast (line 1459) | func TestFakedSyncProgress64Fast(t *testing.T) { testFakedSyncProgress(t... function TestFakedSyncProgress65Full (line 1461) | func TestFakedSyncProgress65Full(t *testing.T) { testFakedSyncProgress(... function TestFakedSyncProgress65Fast (line 1462) | func TestFakedSyncProgress65Fast(t *testing.T) { testFakedSyncProgress(... function TestFakedSyncProgress65Light (line 1463) | func TestFakedSyncProgress65Light(t *testing.T) { testFakedSyncProgress(... function TestFakedSyncProgress66Full (line 1465) | func TestFakedSyncProgress66Full(t *testing.T) { testFakedSyncProgress(... function TestFakedSyncProgress66Fast (line 1466) | func TestFakedSyncProgress66Fast(t *testing.T) { testFakedSyncProgress(... function TestFakedSyncProgress66Light (line 1467) | func TestFakedSyncProgress66Light(t *testing.T) { testFakedSyncProgress(... function testFakedSyncProgress (line 1469) | func testFakedSyncProgress(t *testing.T, protocol uint, mode SyncMode) { function TestDeliverHeadersHang64Full (line 1538) | func TestDeliverHeadersHang64Full(t *testing.T) { testDeliverHeadersHang... function TestDeliverHeadersHang64Fast (line 1539) | func TestDeliverHeadersHang64Fast(t *testing.T) { testDeliverHeadersHang... function TestDeliverHeadersHang65Full (line 1541) | func TestDeliverHeadersHang65Full(t *testing.T) { testDeliverHeadersHan... function TestDeliverHeadersHang65Fast (line 1542) | func TestDeliverHeadersHang65Fast(t *testing.T) { testDeliverHeadersHan... function TestDeliverHeadersHang65Light (line 1543) | func TestDeliverHeadersHang65Light(t *testing.T) { testDeliverHeadersHan... function TestDeliverHeadersHang66Full (line 1545) | func TestDeliverHeadersHang66Full(t *testing.T) { testDeliverHeadersHan... function TestDeliverHeadersHang66Fast (line 1546) | func TestDeliverHeadersHang66Fast(t *testing.T) { testDeliverHeadersHan... function TestDeliverHeadersHang66Light (line 1547) | func TestDeliverHeadersHang66Light(t *testing.T) { testDeliverHeadersHan... function testDeliverHeadersHang (line 1549) | func testDeliverHeadersHang(t *testing.T, protocol uint, mode SyncMode) { type floodingTestPeer (line 1574) | type floodingTestPeer struct method Head (line 1579) | func (ftp *floodingTestPeer) Head() (common.Hash, *big.Int) { return f... method RequestHeadersByHash (line 1580) | func (ftp *floodingTestPeer) RequestHeadersByHash(hash common.Hash, co... method RequestBodies (line 1583) | func (ftp *floodingTestPeer) RequestBodies(hashes []common.Hash) error { method RequestReceipts (line 1586) | func (ftp *floodingTestPeer) RequestReceipts(hashes []common.Hash) err... method RequestNodeData (line 1589) | func (ftp *floodingTestPeer) RequestNodeData(hashes []common.Hash) err... method RequestHeadersByNumber (line 1593) | func (ftp *floodingTestPeer) RequestHeadersByNumber(from uint64, count... function TestRemoteHeaderRequestSpan (line 1625) | func TestRemoteHeaderRequestSpan(t *testing.T) { function TestCheckpointEnforcement64Full (line 1702) | func TestCheckpointEnforcement64Full(t *testing.T) { testCheckpointEnfor... function TestCheckpointEnforcement64Fast (line 1703) | func TestCheckpointEnforcement64Fast(t *testing.T) { testCheckpointEnfor... function TestCheckpointEnforcement65Full (line 1705) | func TestCheckpointEnforcement65Full(t *testing.T) { testCheckpointEnfo... function TestCheckpointEnforcement65Fast (line 1706) | func TestCheckpointEnforcement65Fast(t *testing.T) { testCheckpointEnfo... function TestCheckpointEnforcement65Light (line 1707) | func TestCheckpointEnforcement65Light(t *testing.T) { testCheckpointEnfo... function TestCheckpointEnforcement66Full (line 1709) | func TestCheckpointEnforcement66Full(t *testing.T) { testCheckpointEnfo... function TestCheckpointEnforcement66Fast (line 1710) | func TestCheckpointEnforcement66Fast(t *testing.T) { testCheckpointEnfo... function TestCheckpointEnforcement66Light (line 1711) | func TestCheckpointEnforcement66Light(t *testing.T) { testCheckpointEnfo... function testCheckpointEnforcement (line 1713) | func testCheckpointEnforcement(t *testing.T, protocol uint, mode SyncMod... FILE: eth/downloader/events.go type DoneEvent (line 21) | type DoneEvent struct type StartEvent (line 24) | type StartEvent struct type FailedEvent (line 25) | type FailedEvent struct FILE: eth/downloader/modes.go type SyncMode (line 23) | type SyncMode method IsValid (line 32) | func (mode SyncMode) IsValid() bool { method String (line 37) | func (mode SyncMode) String() string { method MarshalText (line 52) | func (mode SyncMode) MarshalText() ([]byte, error) { method UnmarshalText (line 67) | func (mode *SyncMode) UnmarshalText(text []byte) error { constant FullSync (line 26) | FullSync SyncMode = iota constant FastSync (line 27) | FastSync constant SnapSync (line 28) | SnapSync constant LightSync (line 29) | LightSync FILE: eth/downloader/peer.go constant maxLackingHashes (line 38) | maxLackingHashes = 4096 constant measurementImpact (line 39) | measurementImpact = 0.1 type peerConnection (line 49) | type peerConnection struct method Reset (line 127) | func (p *peerConnection) Reset() { method FetchHeaders (line 145) | func (p *peerConnection) FetchHeaders(from uint64, count int) error { method FetchBodies (line 159) | func (p *peerConnection) FetchBodies(request *fetchRequest) error { method FetchReceipts (line 179) | func (p *peerConnection) FetchReceipts(request *fetchRequest) error { method FetchNodeData (line 199) | func (p *peerConnection) FetchNodeData(hashes []common.Hash) error { method SetHeadersIdle (line 214) | func (p *peerConnection) SetHeadersIdle(delivered int, deliveryTime ti... method SetBodiesIdle (line 221) | func (p *peerConnection) SetBodiesIdle(delivered int, deliveryTime tim... method SetReceiptsIdle (line 228) | func (p *peerConnection) SetReceiptsIdle(delivered int, deliveryTime t... method SetNodeDataIdle (line 235) | func (p *peerConnection) SetNodeDataIdle(delivered int, deliveryTime t... method setIdle (line 241) | func (p *peerConnection) setIdle(elapsed time.Duration, delivered int,... method HeaderCapacity (line 270) | func (p *peerConnection) HeaderCapacity(targetRTT time.Duration) int { method BlockCapacity (line 279) | func (p *peerConnection) BlockCapacity(targetRTT time.Duration) int { method ReceiptCapacity (line 288) | func (p *peerConnection) ReceiptCapacity(targetRTT time.Duration) int { method NodeDataCapacity (line 297) | func (p *peerConnection) NodeDataCapacity(targetRTT time.Duration) int { method MarkLacking (line 307) | func (p *peerConnection) MarkLacking(hash common.Hash) { method Lacks (line 322) | func (p *peerConnection) Lacks(hash common.Hash) bool { type LightPeer (line 79) | type LightPeer interface type Peer (line 86) | type Peer interface type lightPeerWrapper (line 94) | type lightPeerWrapper struct method Head (line 98) | func (w *lightPeerWrapper) Head() (common.Hash, *big.Int) { return w.p... method RequestHeadersByHash (line 99) | func (w *lightPeerWrapper) RequestHeadersByHash(h common.Hash, amount ... method RequestHeadersByNumber (line 102) | func (w *lightPeerWrapper) RequestHeadersByNumber(i uint64, amount int... method RequestBodies (line 105) | func (w *lightPeerWrapper) RequestBodies([]common.Hash) error { method RequestReceipts (line 108) | func (w *lightPeerWrapper) RequestReceipts([]common.Hash) error { method RequestNodeData (line 111) | func (w *lightPeerWrapper) RequestNodeData([]common.Hash) error { function newPeerConnection (line 116) | func newPeerConnection(id string, version uint, peer Peer, logger log.Lo... type peerSet (line 332) | type peerSet struct method SubscribeNewPeers (line 347) | func (ps *peerSet) SubscribeNewPeers(ch chan<- *peerConnection) event.... method SubscribePeerDrops (line 352) | func (ps *peerSet) SubscribePeerDrops(ch chan<- *peerConnection) event... method Reset (line 358) | func (ps *peerSet) Reset() { method Register (line 373) | func (ps *peerSet) Register(p *peerConnection) error { method Unregister (line 408) | func (ps *peerSet) Unregister(id string) error { method Peer (line 423) | func (ps *peerSet) Peer(id string) *peerConnection { method Len (line 431) | func (ps *peerSet) Len() int { method AllPeers (line 439) | func (ps *peerSet) AllPeers() []*peerConnection { method HeaderIdlePeers (line 452) | func (ps *peerSet) HeaderIdlePeers() ([]*peerConnection, int) { method BodyIdlePeers (line 466) | func (ps *peerSet) BodyIdlePeers() ([]*peerConnection, int) { method ReceiptIdlePeers (line 480) | func (ps *peerSet) ReceiptIdlePeers() ([]*peerConnection, int) { method NodeDataIdlePeers (line 494) | func (ps *peerSet) NodeDataIdlePeers() ([]*peerConnection, int) { method idlePeers (line 509) | func (ps *peerSet) idlePeers(minProtocol, maxProtocol uint, idleCheck ... method medianRTT (line 532) | func (ps *peerSet) medianRTT() time.Duration { function newPeerSet (line 340) | func newPeerSet() *peerSet { type peerThroughputSort (line 564) | type peerThroughputSort struct method Len (line 569) | func (ps *peerThroughputSort) Len() int { method Less (line 573) | func (ps *peerThroughputSort) Less(i, j int) bool { method Swap (line 577) | func (ps *peerThroughputSort) Swap(i, j int) { FILE: eth/downloader/peer_test.go function TestPeerThroughputSorting (line 24) | func TestPeerThroughputSorting(t *testing.T) { FILE: eth/downloader/queue.go constant bodyType (line 38) | bodyType = uint(0) constant receiptType (line 39) | receiptType = uint(1) type fetchRequest (line 55) | type fetchRequest struct type fetchResult (line 64) | type fetchResult struct method SetBodyDone (line 87) | func (f *fetchResult) SetBodyDone() { method AllDone (line 94) | func (f *fetchResult) AllDone() bool { method SetReceiptsDone (line 99) | func (f *fetchResult) SetReceiptsDone() { method Done (line 106) | func (f *fetchResult) Done(kind uint) bool { function newFetchResult (line 73) | func newFetchResult(header *types.Header, fastSync bool) *fetchResult { type queue (line 112) | type queue struct method Reset (line 160) | func (q *queue) Reset(blockCacheLimit int, thresholdInitialSize int) { method Close (line 184) | func (q *queue) Close() { method PendingHeaders (line 192) | func (q *queue) PendingHeaders() int { method PendingBlocks (line 200) | func (q *queue) PendingBlocks() int { method PendingReceipts (line 208) | func (q *queue) PendingReceipts() int { method InFlightHeaders (line 217) | func (q *queue) InFlightHeaders() bool { method InFlightBlocks (line 226) | func (q *queue) InFlightBlocks() bool { method InFlightReceipts (line 235) | func (q *queue) InFlightReceipts() bool { method Idle (line 243) | func (q *queue) Idle() bool { method ScheduleSkeleton (line 255) | func (q *queue) ScheduleSkeleton(from uint64, skeleton []*types.Header) { method RetrieveHeaders (line 282) | func (q *queue) RetrieveHeaders() ([]*types.Header, int) { method Schedule (line 294) | func (q *queue) Schedule(headers []*types.Header, from uint64) []*type... method Results (line 340) | func (q *queue) Results(block bool) []*fetchResult { method Stats (line 396) | func (q *queue) Stats() []interface{} { method stats (line 403) | func (q *queue) stats() []interface{} { method ReserveHeaders (line 413) | func (q *queue) ReserveHeaders(p *peerConnection, count int) *fetchReq... method ReserveBodies (line 454) | func (q *queue) ReserveBodies(p *peerConnection, count int) (*fetchReq... method ReserveReceipts (line 464) | func (q *queue) ReserveReceipts(p *peerConnection, count int) (*fetchR... method reserveHeaders (line 483) | func (q *queue) reserveHeaders(p *peerConnection, count int, taskPool ... method CancelHeaders (line 570) | func (q *queue) CancelHeaders(request *fetchRequest) { method CancelBodies (line 578) | func (q *queue) CancelBodies(request *fetchRequest) { method CancelReceipts (line 586) | func (q *queue) CancelReceipts(request *fetchRequest) { method cancel (line 593) | func (q *queue) cancel(request *fetchRequest, taskQueue *prque.Prque, ... method Revoke (line 606) | func (q *queue) Revoke(peerID string) { method ExpireHeaders (line 626) | func (q *queue) ExpireHeaders(timeout time.Duration) map[string]int { method ExpireBodies (line 635) | func (q *queue) ExpireBodies(timeout time.Duration) map[string]int { method ExpireReceipts (line 644) | func (q *queue) ExpireReceipts(timeout time.Duration) map[string]int { method expire (line 657) | func (q *queue) expire(timeout time.Duration, pendPool map[string]*fet... method DeliverHeaders (line 689) | func (q *queue) DeliverHeaders(id string, headers []*types.Header, hea... method DeliverBodies (line 783) | func (q *queue) DeliverBodies(id string, txLists [][]*types.Transactio... method DeliverReceipts (line 808) | func (q *queue) DeliverReceipts(id string, receiptList [][]*types.Rece... method deliver (line 830) | func (q *queue) deliver(id string, taskPool map[common.Hash]*types.Hea... method Prepare (line 904) | func (q *queue) Prepare(offset uint64, mode SyncMode) { function newQueue (line 146) | func newQueue(blockCacheLimit int, thresholdInitialSize int) *queue { FILE: eth/downloader/queue_test.go function makeChain (line 45) | func makeChain(n int, seed byte, parent *types.Block, empty bool) ([]*ty... type chainData (line 61) | type chainData struct method headers (line 79) | func (chain *chainData) headers() []*types.Header { method Len (line 87) | func (chain *chainData) Len() int { function init (line 69) | func init() { function dummyPeer (line 91) | func dummyPeer(id string) *peerConnection { function TestBasics (line 99) | func TestBasics(t *testing.T) { function TestEmptyBlocks (line 195) | func TestEmptyBlocks(t *testing.T) { function XTestDelivery (line 262) | func XTestDelivery(t *testing.T) { function newNetwork (line 381) | func newNetwork() *network { type network (line 390) | type network struct method getTransactions (line 398) | func (n *network) getTransactions(blocknum uint64) types.Transactions { method getReceipts (line 402) | func (n *network) getReceipts(blocknum uint64) types.Receipts { method forget (line 411) | func (n *network) forget(blocknum uint64) { method progress (line 418) | func (n *network) progress(numBlocks int) { method headers (line 430) | func (n *network) headers(from int) []*types.Header { FILE: eth/downloader/resultstore.go type resultStore (line 29) | type resultStore struct method SetThrottleThreshold (line 58) | func (r *resultStore) SetThrottleThreshold(threshold uint64) uint64 { method AddFetch (line 78) | func (r *resultStore) AddFetch(header *types.Header, fastSync bool) (s... method GetDeliverySlot (line 98) | func (r *resultStore) GetDeliverySlot(headerNumber uint64) (*fetchResu... method getFetchResult (line 108) | func (r *resultStore) getFetchResult(headerNumber uint64) (item *fetch... method HasCompletedItems (line 128) | func (r *resultStore) HasCompletedItems() bool { method countCompleted (line 145) | func (r *resultStore) countCompleted() int { method GetCompleted (line 163) | func (r *resultStore) GetCompleted(limit int) []*fetchResult { method Prepare (line 187) | func (r *resultStore) Prepare(offset uint64) { function newResultStore (line 48) | func newResultStore(size int) *resultStore { FILE: eth/downloader/statesync.go type stateReq (line 36) | type stateReq struct method timedOut (line 49) | func (req *stateReq) timedOut() bool { type stateSyncStats (line 55) | type stateSyncStats struct method syncState (line 63) | func (d *Downloader) syncState(root common.Hash) *stateSync { method stateFetcher (line 81) | func (d *Downloader) stateFetcher() { method runStateSync (line 98) | func (d *Downloader) runStateSync(s *stateSync) *stateSync { method spindownStateSync (line 222) | func (d *Downloader) spindownStateSync(active map[string]*stateReq, fini... type stateSync (line 260) | type stateSync struct method run (line 315) | func (s *stateSync) run() { method Wait (line 326) | func (s *stateSync) Wait() error { method Cancel (line 332) | func (s *stateSync) Cancel() error { method loop (line 345) | func (s *stateSync) loop() (err error) { method commit (line 411) | func (s *stateSync) commit(force bool) error { method assignTasks (line 431) | func (s *stateSync) assignTasks() { method fillTasks (line 456) | func (s *stateSync) fillTasks(n int, req *stateReq) (nodes []common.Ha... method process (line 522) | func (s *stateSync) process(req *stateReq) (int, error) { method processNodeData (line 589) | func (s *stateSync) processNodeData(blob []byte) (common.Hash, error) { method updateStats (line 600) | func (s *stateSync) updateStats(written, duplicate, unexpected int, du... type trieTask (line 284) | type trieTask struct type codeTask (line 291) | type codeTask struct function newStateSync (line 297) | func newStateSync(d *Downloader, root common.Hash) *stateSync { FILE: eth/downloader/testchain_test.go function init (line 47) | func init() { type testChain (line 57) | type testChain struct method makeFork (line 79) | func (tc *testChain) makeFork(length int, heavy bool, seed byte) *test... method shorten (line 87) | func (tc *testChain) shorten(length int) *testChain { method copy (line 94) | func (tc *testChain) copy(newlen int) *testChain { method generate (line 117) | func (tc *testChain) generate(n int, seed byte, parent *types.Block, h... method len (line 159) | func (tc *testChain) len() int { method headBlock (line 164) | func (tc *testChain) headBlock() *types.Block { method td (line 169) | func (tc *testChain) td(hash common.Hash) *big.Int { method headersByHash (line 174) | func (tc *testChain) headersByHash(origin common.Hash, amount int, ski... method headersByNumber (line 180) | func (tc *testChain) headersByNumber(origin uint64, amount int, skip i... method receipts (line 200) | func (tc *testChain) receipts(hashes []common.Hash) [][]*types.Receipt { method bodies (line 211) | func (tc *testChain) bodies(hashes []common.Hash) ([][]*types.Transact... method hashToNumber (line 223) | func (tc *testChain) hashToNumber(target common.Hash) (uint64, bool) { function newTestChain (line 67) | func newTestChain(length int, genesis *types.Block) *testChain { FILE: eth/downloader/types.go type peerDropFn (line 26) | type peerDropFn type dataPack (line 29) | type dataPack interface type headerPack (line 36) | type headerPack struct method PeerId (line 41) | func (p *headerPack) PeerId() string { return p.peerID } method Items (line 42) | func (p *headerPack) Items() int { return len(p.headers) } method Stats (line 43) | func (p *headerPack) Stats() string { return fmt.Sprintf("%d", len(p.... type bodyPack (line 46) | type bodyPack struct method PeerId (line 52) | func (p *bodyPack) PeerId() string { return p.peerID } method Items (line 53) | func (p *bodyPack) Items() int { method Stats (line 59) | func (p *bodyPack) Stats() string { return fmt.Sprintf("%d:%d", len(p.... type receiptPack (line 62) | type receiptPack struct method PeerId (line 67) | func (p *receiptPack) PeerId() string { return p.peerID } method Items (line 68) | func (p *receiptPack) Items() int { return len(p.receipts) } method Stats (line 69) | func (p *receiptPack) Stats() string { return fmt.Sprintf("%d", len(p... type statePack (line 72) | type statePack struct method PeerId (line 77) | func (p *statePack) PeerId() string { return p.peerID } method Items (line 78) | func (p *statePack) Items() int { return len(p.states) } method Stats (line 79) | func (p *statePack) Stats() string { return fmt.Sprintf("%d", len(p.s... FILE: eth/ethconfig/config.go function init (line 91) | func init() { type Config (line 115) | type Config struct function CreateConsensusEngine (line 207) | func CreateConsensusEngine(stack *node.Node, chainConfig *params.ChainCo... FILE: eth/ethconfig/gen_config.go method MarshalTOML (line 18) | func (c Config) MarshalTOML() (interface{}, error) { method UnmarshalTOML (line 110) | func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error { FILE: eth/fetcher/block_fetcher.go constant lightTimeout (line 35) | lightTimeout = time.Millisecond constant arriveTimeout (line 36) | arriveTimeout = 500 * time.Millisecond constant gatherSlack (line 37) | gatherSlack = 100 * time.Millisecond constant fetchTimeout (line 38) | fetchTimeout = 5 * time.Second constant maxUncleDist (line 42) | maxUncleDist = 7 constant maxQueueDist (line 43) | maxQueueDist = 32 constant hashLimit (line 44) | hashLimit = 256 constant blockLimit (line 45) | blockLimit = 64 type HeaderRetrievalFn (line 71) | type HeaderRetrievalFn type blockRetrievalFn (line 74) | type blockRetrievalFn type headerRequesterFn (line 77) | type headerRequesterFn type bodyRequesterFn (line 80) | type bodyRequesterFn type headerVerifierFn (line 83) | type headerVerifierFn type blockBroadcasterFn (line 86) | type blockBroadcasterFn type chainHeightFn (line 89) | type chainHeightFn type headersInsertFn (line 92) | type headersInsertFn type chainInsertFn (line 95) | type chainInsertFn type peerDropFn (line 98) | type peerDropFn type blockAnnounce (line 102) | type blockAnnounce struct type headerFilterTask (line 115) | type headerFilterTask struct type bodyFilterTask (line 123) | type bodyFilterTask struct type blockOrHeaderInject (line 131) | type blockOrHeaderInject struct method number (line 139) | func (inject *blockOrHeaderInject) number() uint64 { method hash (line 147) | func (inject *blockOrHeaderInject) hash() common.Hash { type BlockFetcher (line 156) | type BlockFetcher struct method Start (line 230) | func (f *BlockFetcher) Start() { method Stop (line 236) | func (f *BlockFetcher) Stop() { method Notify (line 242) | func (f *BlockFetcher) Notify(peer string, hash common.Hash, number ui... method Enqueue (line 261) | func (f *BlockFetcher) Enqueue(peer string, block *types.Block) error { method FilterHeaders (line 276) | func (f *BlockFetcher) FilterHeaders(peer string, headers []*types.Hea... method FilterBodies (line 304) | func (f *BlockFetcher) FilterBodies(peer string, transactions [][]*typ... method loop (line 332) | func (f *BlockFetcher) loop() { method rescheduleFetch (line 664) | func (f *BlockFetcher) rescheduleFetch(fetch *time.Timer) { method rescheduleComplete (line 686) | func (f *BlockFetcher) rescheduleComplete(complete *time.Timer) { method enqueue (line 703) | func (f *BlockFetcher) enqueue(peer string, header *types.Header, bloc... method importHeaders (line 749) | func (f *BlockFetcher) importHeaders(peer string, header *types.Header) { method importBlocks (line 782) | func (f *BlockFetcher) importBlocks(peer string, block *types.Block) { method forgetHash (line 830) | func (f *BlockFetcher) forgetHash(hash common.Hash) { method forgetBlock (line 872) | func (f *BlockFetcher) forgetBlock(hash common.Hash) { function NewBlockFetcher (line 200) | func NewBlockFetcher(light bool, getHeader HeaderRetrievalFn, getBlock b... FILE: eth/fetcher/block_fetcher_test.go function makeChain (line 49) | func makeChain(n int, seed byte, parent *types.Block) ([]common.Hash, ma... type fetcherTester (line 79) | type fetcherTester struct method getHeader (line 105) | func (f *fetcherTester) getHeader(hash common.Hash) *types.Header { method getBlock (line 113) | func (f *fetcherTester) getBlock(hash common.Hash) *types.Block { method verifyHeader (line 121) | func (f *fetcherTester) verifyHeader(header *types.Header) error { method broadcastBlock (line 126) | func (f *fetcherTester) broadcastBlock(block *types.Block, propagate b... method chainHeight (line 130) | func (f *fetcherTester) chainHeight() uint64 { method insertHeaders (line 141) | func (f *fetcherTester) insertHeaders(headers []*types.Header) (int, e... method insertChain (line 162) | func (f *fetcherTester) insertChain(blocks types.Blocks) (int, error) { method dropPeer (line 184) | func (f *fetcherTester) dropPeer(peer string) { method makeHeaderFetcher (line 192) | func (f *fetcherTester) makeHeaderFetcher(peer string, blocks map[comm... method makeBodyFetcher (line 212) | func (f *fetcherTester) makeBodyFetcher(peer string, blocks map[common... function newTester (line 91) | func newTester(light bool) *fetcherTester { function verifyFetchingEvent (line 237) | func verifyFetchingEvent(t *testing.T, fetching chan []common.Hash, arri... function verifyCompletingEvent (line 254) | func verifyCompletingEvent(t *testing.T, completing chan []common.Hash, ... function verifyImportEvent (line 271) | func verifyImportEvent(t *testing.T, imported chan interface{}, arrive b... function verifyImportCount (line 289) | func verifyImportCount(t *testing.T, imported chan interface{}, count in... function verifyImportDone (line 301) | func verifyImportDone(t *testing.T, imported chan interface{}) { function verifyChainHeight (line 310) | func verifyChainHeight(t *testing.T, fetcher *fetcherTester, height uint... function TestFullSequentialAnnouncements (line 318) | func TestFullSequentialAnnouncements(t *testing.T) { testSequentialAnno... function TestLightSequentialAnnouncements (line 319) | func TestLightSequentialAnnouncements(t *testing.T) { testSequentialAnno... function testSequentialAnnouncements (line 321) | func testSequentialAnnouncements(t *testing.T, light bool) { function TestFullConcurrentAnnouncements (line 355) | func TestFullConcurrentAnnouncements(t *testing.T) { testConcurrentAnno... function TestLightConcurrentAnnouncements (line 356) | func TestLightConcurrentAnnouncements(t *testing.T) { testConcurrentAnno... function testConcurrentAnnouncements (line 358) | func testConcurrentAnnouncements(t *testing.T, light bool) { function TestFullOverlappingAnnouncements (line 411) | func TestFullOverlappingAnnouncements(t *testing.T) { testOverlappingAn... function TestLightOverlappingAnnouncements (line 412) | func TestLightOverlappingAnnouncements(t *testing.T) { testOverlappingAn... function testOverlappingAnnouncements (line 414) | func testOverlappingAnnouncements(t *testing.T, light bool) { function TestFullPendingDeduplication (line 457) | func TestFullPendingDeduplication(t *testing.T) { testPendingDeduplicat... function TestLightPendingDeduplication (line 458) | func TestLightPendingDeduplication(t *testing.T) { testPendingDeduplicat... function testPendingDeduplication (line 460) | func testPendingDeduplication(t *testing.T, light bool) { function TestFullRandomArrivalImport (line 505) | func TestFullRandomArrivalImport(t *testing.T) { testRandomArrivalImpor... function TestLightRandomArrivalImport (line 506) | func TestLightRandomArrivalImport(t *testing.T) { testRandomArrivalImpor... function testRandomArrivalImport (line 508) | func testRandomArrivalImport(t *testing.T, light bool) { function TestQueueGapFill (line 547) | func TestQueueGapFill(t *testing.T) { function TestImportDeduplication (line 575) | func TestImportDeduplication(t *testing.T) { function TestDistantPropagationDiscarding (line 614) | func TestDistantPropagationDiscarding(t *testing.T) { function TestFullDistantAnnouncementDiscarding (line 646) | func TestFullDistantAnnouncementDiscarding(t *testing.T) { testDistantA... function TestLightDistantAnnouncementDiscarding (line 647) | func TestLightDistantAnnouncementDiscarding(t *testing.T) { testDistantA... function testDistantAnnouncementDiscarding (line 649) | func testDistantAnnouncementDiscarding(t *testing.T, light bool) { function TestFullInvalidNumberAnnouncement (line 689) | func TestFullInvalidNumberAnnouncement(t *testing.T) { testInvalidNumbe... function TestLightInvalidNumberAnnouncement (line 690) | func TestLightInvalidNumberAnnouncement(t *testing.T) { testInvalidNumbe... function testInvalidNumberAnnouncement (line 692) | func testInvalidNumberAnnouncement(t *testing.T, light bool) { function TestEmptyBlockShortCircuit (line 744) | func TestEmptyBlockShortCircuit(t *testing.T) { function TestHashMemoryExhaustionAttack (line 785) | func TestHashMemoryExhaustionAttack(t *testing.T) { function TestBlockMemoryExhaustionAttack (line 832) | func TestBlockMemoryExhaustionAttack(t *testing.T) { FILE: eth/fetcher/tx_fetcher.go constant maxTxAnnounces (line 38) | maxTxAnnounces = 4096 constant maxTxRetrievals (line 48) | maxTxRetrievals = 256 constant maxTxUnderpricedSetSize (line 53) | maxTxUnderpricedSetSize = 32768 constant txArriveTimeout (line 57) | txArriveTimeout = 500 * time.Millisecond constant txGatherSlack (line 61) | txGatherSlack = 100 * time.Millisecond type txAnnounce (line 101) | type txAnnounce struct type txRequest (line 108) | type txRequest struct type txDelivery (line 116) | type txDelivery struct type txDrop (line 123) | type txDrop struct type TxFetcher (line 144) | type TxFetcher struct method Notify (line 215) | func (f *TxFetcher) Notify(peer string, hashes []common.Hash) error { method Enqueue (line 263) | func (f *TxFetcher) Enqueue(peer string, txs []*types.Transaction, dir... method Drop (line 325) | func (f *TxFetcher) Drop(peer string) error { method Start (line 336) | func (f *TxFetcher) Start() { method Stop (line 342) | func (f *TxFetcher) Stop() { method loop (line 346) | func (f *TxFetcher) loop() { method rescheduleWait (line 692) | func (f *TxFetcher) rescheduleWait(timer *mclock.Timer, trigger chan s... method rescheduleTimeout (line 726) | func (f *TxFetcher) rescheduleTimeout(timer *mclock.Timer, trigger cha... method scheduleFetches (line 751) | func (f *TxFetcher) scheduleFetches(timer *mclock.Timer, timeout chan ... method forEachPeer (line 816) | func (f *TxFetcher) forEachPeer(peers map[string]struct{}, do func(pee... method forEachHash (line 838) | func (f *TxFetcher) forEachHash(hashes map[common.Hash]struct{}, do fu... function NewTxFetcher (line 182) | func NewTxFetcher(hasTx func(common.Hash) bool, addTxs func([]*types.Tra... function NewTxFetcherForTests (line 188) | func NewTxFetcherForTests( function rotateStrings (line 864) | func rotateStrings(slice []string, n int) { function sortHashes (line 875) | func sortHashes(slice []common.Hash) { function rotateHashes (line 887) | func rotateHashes(slice []common.Hash, n int) { FILE: eth/fetcher/tx_fetcher_test.go type doTxNotify (line 44) | type doTxNotify struct type doTxEnqueue (line 48) | type doTxEnqueue struct type doWait (line 53) | type doWait struct type doDrop (line 57) | type doDrop type doFunc (line 58) | type doFunc type isWaiting (line 60) | type isWaiting type isScheduled (line 61) | type isScheduled struct type isUnderpriced (line 66) | type isUnderpriced type txFetcherTest (line 70) | type txFetcherTest struct function TestTransactionFetcherWaiting (line 77) | func TestTransactionFetcherWaiting(t *testing.T) { function TestTransactionFetcherSkipWaiting (line 167) | func TestTransactionFetcherSkipWaiting(t *testing.T) { function TestTransactionFetcherSingletonRequesting (line 230) | func TestTransactionFetcherSingletonRequesting(t *testing.T) { function TestTransactionFetcherFailedRescheduling (line 304) | func TestTransactionFetcherFailedRescheduling(t *testing.T) { function TestTransactionFetcherCleanup (line 377) | func TestTransactionFetcherCleanup(t *testing.T) { function TestTransactionFetcherCleanupEmpty (line 416) | func TestTransactionFetcherCleanupEmpty(t *testing.T) { function TestTransactionFetcherMissingRescheduling (line 454) | func TestTransactionFetcherMissingRescheduling(t *testing.T) { function TestTransactionFetcherMissingCleanup (line 500) | func TestTransactionFetcherMissingCleanup(t *testing.T) { function TestTransactionFetcherBroadcasts (line 538) | func TestTransactionFetcherBroadcasts(t *testing.T) { function TestTransactionFetcherWaitTimerResets (line 588) | func TestTransactionFetcherWaitTimerResets(t *testing.T) { function TestTransactionFetcherTimeoutRescheduling (line 643) | func TestTransactionFetcherTimeoutRescheduling(t *testing.T) { function TestTransactionFetcherTimeoutTimerResets (line 710) | func TestTransactionFetcherTimeoutTimerResets(t *testing.T) { function TestTransactionFetcherRateLimiting (line 763) | func TestTransactionFetcherRateLimiting(t *testing.T) { function TestTransactionFetcherDoSProtection (line 798) | func TestTransactionFetcherDoSProtection(t *testing.T) { function TestTransactionFetcherUnderpricedDedup (line 864) | func TestTransactionFetcherUnderpricedDedup(t *testing.T) { function TestTransactionFetcherUnderpricedDoSProtection (line 903) | func TestTransactionFetcherUnderpricedDoSProtection(t *testing.T) { function TestTransactionFetcherOutOfBoundDeliveries (line 963) | func TestTransactionFetcherOutOfBoundDeliveries(t *testing.T) { function TestTransactionFetcherDrop (line 1016) | func TestTransactionFetcherDrop(t *testing.T) { function TestTransactionFetcherDropRescheduling (line 1082) | func TestTransactionFetcherDropRescheduling(t *testing.T) { function TestTransactionFetcherFuzzCrash01 (line 1127) | func TestTransactionFetcherFuzzCrash01(t *testing.T) { function TestTransactionFetcherFuzzCrash02 (line 1154) | func TestTransactionFetcherFuzzCrash02(t *testing.T) { function TestTransactionFetcherFuzzCrash03 (line 1183) | func TestTransactionFetcherFuzzCrash03(t *testing.T) { function TestTransactionFetcherFuzzCrash04 (line 1213) | func TestTransactionFetcherFuzzCrash04(t *testing.T) { function testTransactionFetcherParallel (line 1248) | func testTransactionFetcherParallel(t *testing.T, tt txFetcherTest) { function testTransactionFetcher (line 1253) | func testTransactionFetcher(t *testing.T, tt txFetcherTest) { function containsHash (line 1521) | func containsHash(slice []common.Hash, hash common.Hash) bool { FILE: eth/filters/api.go type filter (line 39) | type filter struct type PublicFilterAPI (line 50) | type PublicFilterAPI struct method timeoutLoop (line 77) | func (api *PublicFilterAPI) timeoutLoop(timeout time.Duration) { method NewPendingTransactionFilter (line 112) | func (api *PublicFilterAPI) NewPendingTransactionFilter() rpc.ID { method NewPendingTransactions (line 145) | func (api *PublicFilterAPI) NewPendingTransactions(ctx context.Context... method NewBlockFilter (line 182) | func (api *PublicFilterAPI) NewBlockFilter() rpc.ID { method NewHeads (line 214) | func (api *PublicFilterAPI) NewHeads(ctx context.Context) (*rpc.Subscr... method Logs (line 244) | func (api *PublicFilterAPI) Logs(ctx context.Context, crit FilterCrite... method NewFilter (line 298) | func (api *PublicFilterAPI) NewFilter(crit FilterCriteria) (rpc.ID, er... method GetLogs (line 333) | func (api *PublicFilterAPI) GetLogs(ctx context.Context, crit FilterCr... method UninstallFilter (line 362) | func (api *PublicFilterAPI) UninstallFilter(id rpc.ID) bool { method GetFilterLogs (line 380) | func (api *PublicFilterAPI) GetFilterLogs(ctx context.Context, id rpc.... method GetFilterChanges (line 421) | func (api *PublicFilterAPI) GetFilterChanges(id rpc.ID) (interface{}, ... function NewPublicFilterAPI (line 62) | func NewPublicFilterAPI(backend Backend, lightMode bool, timeout time.Du... type FilterCriteria (line 283) | type FilterCriteria method UnmarshalJSON (line 467) | func (args *FilterCriteria) UnmarshalJSON(data []byte) error { function returnHashes (line 450) | func returnHashes(hashes []common.Hash) []common.Hash { function returnLogs (line 459) | func returnLogs(logs []*types.Log) []*types.Log { function decodeAddress (line 569) | func decodeAddress(s string) (common.Address, error) { function decodeTopic (line 577) | func decodeTopic(s string) (common.Hash, error) { FILE: eth/filters/api_test.go function TestUnmarshalJSONNewFilterArgs (line 28) | func TestUnmarshalJSONNewFilterArgs(t *testing.T) { FILE: eth/filters/bench_test.go function BenchmarkBloomBits512 (line 34) | func BenchmarkBloomBits512(b *testing.B) { function BenchmarkBloomBits1k (line 38) | func BenchmarkBloomBits1k(b *testing.B) { function BenchmarkBloomBits2k (line 42) | func BenchmarkBloomBits2k(b *testing.B) { function BenchmarkBloomBits4k (line 46) | func BenchmarkBloomBits4k(b *testing.B) { function BenchmarkBloomBits8k (line 50) | func BenchmarkBloomBits8k(b *testing.B) { function BenchmarkBloomBits16k (line 54) | func BenchmarkBloomBits16k(b *testing.B) { function BenchmarkBloomBits32k (line 58) | func BenchmarkBloomBits32k(b *testing.B) { constant benchFilterCnt (line 62) | benchFilterCnt = 2000 function benchmarkBloomBits (line 64) | func benchmarkBloomBits(b *testing.B, sectionSize uint64) { function clearBloomBits (line 148) | func clearBloomBits(db ethdb.Database) { function BenchmarkNoBloomBits (line 157) | func BenchmarkNoBloomBits(b *testing.B) { FILE: eth/filters/filter.go type Backend (line 33) | type Backend interface type Filter (line 51) | type Filter struct method Logs (line 119) | func (f *Filter) Logs(ctx context.Context) ([]*types.Log, error) { method indexedLogs (line 168) | func (f *Filter) indexedLogs(ctx context.Context, end uint64) ([]*type... method unindexedLogs (line 215) | func (f *Filter) unindexedLogs(ctx context.Context, end uint64) ([]*ty... method blockLogs (line 233) | func (f *Filter) blockLogs(ctx context.Context, header *types.Header) ... method checkMatches (line 246) | func (f *Filter) checkMatches(ctx context.Context, header *types.Heade... function NewRangeFilter (line 66) | func NewRangeFilter(backend Backend, begin, end int64, addresses []commo... function NewBlockFilter (line 99) | func NewBlockFilter(backend Backend, block common.Hash, addresses []comm... function newFilter (line 108) | func newFilter(backend Backend, addresses []common.Address, topics [][]c... function includes (line 275) | func includes(addresses []common.Address, a common.Address) bool { function filterLogs (line 286) | func filterLogs(logs []*types.Log, fromBlock, toBlock *big.Int, addresse... function bloomFilter (line 321) | func bloomFilter(bloom types.Bloom, addresses []common.Address, topics [... FILE: eth/filters/filter_system.go type Type (line 39) | type Type constant UnknownSubscription (line 43) | UnknownSubscription Type = iota constant LogsSubscription (line 45) | LogsSubscription constant PendingLogsSubscription (line 47) | PendingLogsSubscription constant MinedAndPendingLogsSubscription (line 49) | MinedAndPendingLogsSubscription constant PendingTransactionsSubscription (line 52) | PendingTransactionsSubscription constant BlocksSubscription (line 54) | BlocksSubscription constant LastIndexSubscription (line 56) | LastIndexSubscription constant txChanSize (line 62) | txChanSize = 4096 constant rmLogsChanSize (line 64) | rmLogsChanSize = 10 constant logsChanSize (line 66) | logsChanSize = 10 constant chainEvChanSize (line 68) | chainEvChanSize = 10 type subscription (line 71) | type subscription struct type EventSystem (line 85) | type EventSystem struct method subscribe (line 181) | func (es *EventSystem) subscribe(sub *subscription) *Subscription { method SubscribeLogs (line 190) | func (es *EventSystem) SubscribeLogs(crit ethereum.FilterQuery, logs c... method subscribeMinedPendingLogs (line 228) | func (es *EventSystem) subscribeMinedPendingLogs(crit ethereum.FilterQ... method subscribeLogs (line 245) | func (es *EventSystem) subscribeLogs(crit ethereum.FilterQuery, logs c... method subscribePendingLogs (line 262) | func (es *EventSystem) subscribePendingLogs(crit ethereum.FilterQuery,... method SubscribeNewHeads (line 279) | func (es *EventSystem) SubscribeNewHeads(headers chan *types.Header) *... method SubscribePendingTxs (line 295) | func (es *EventSystem) SubscribePendingTxs(hashes chan []common.Hash) ... method handleLogs (line 311) | func (es *EventSystem) handleLogs(filters filterIndex, ev []*types.Log) { method handlePendingLogs (line 323) | func (es *EventSystem) handlePendingLogs(filters filterIndex, ev []*ty... method handleRemovedLogs (line 335) | func (es *EventSystem) handleRemovedLogs(filters filterIndex, ev core.... method handleTxsEvent (line 344) | func (es *EventSystem) handleTxsEvent(filters filterIndex, ev core.New... method handleChainEvent (line 354) | func (es *EventSystem) handleChainEvent(filters filterIndex, ev core.C... method lightFilterNewHead (line 369) | func (es *EventSystem) lightFilterNewHead(newHeader *types.Header, cal... method lightFilterLogs (line 403) | func (es *EventSystem) lightFilterLogs(header *types.Header, addresses... method eventLoop (line 443) | func (es *EventSystem) eventLoop() { function NewEventSystem (line 113) | func NewEventSystem(backend Backend, lightMode bool) *EventSystem { type Subscription (line 143) | type Subscription struct method Err (line 151) | func (sub *Subscription) Err() <-chan error { method Unsubscribe (line 156) | func (sub *Subscription) Unsubscribe() { type filterIndex (line 309) | type filterIndex FILE: eth/filters/filter_system_test.go type testBackend (line 46) | type testBackend struct method ChainDb (line 57) | func (b *testBackend) ChainDb() ethdb.Database { method HeaderByNumber (line 61) | func (b *testBackend) HeaderByNumber(ctx context.Context, blockNr rpc.... method HeaderByHash (line 80) | func (b *testBackend) HeaderByHash(ctx context.Context, hash common.Ha... method GetReceipts (line 88) | func (b *testBackend) GetReceipts(ctx context.Context, hash common.Has... method GetLogs (line 95) | func (b *testBackend) GetLogs(ctx context.Context, hash common.Hash) (... method SubscribeNewTxsEvent (line 109) | func (b *testBackend) SubscribeNewTxsEvent(ch chan<- core.NewTxsEvent)... method SubscribeRemovedLogsEvent (line 113) | func (b *testBackend) SubscribeRemovedLogsEvent(ch chan<- core.Removed... method SubscribeLogsEvent (line 117) | func (b *testBackend) SubscribeLogsEvent(ch chan<- []*types.Log) event... method SubscribePendingLogsEvent (line 121) | func (b *testBackend) SubscribePendingLogsEvent(ch chan<- []*types.Log... method SubscribeChainEvent (line 125) | func (b *testBackend) SubscribeChainEvent(ch chan<- core.ChainEvent) e... method BloomStatus (line 129) | func (b *testBackend) BloomStatus() (uint64, uint64) { method ServiceFilter (line 133) | func (b *testBackend) ServiceFilter(ctx context.Context, session *bloo... function TestBlockSubscription (line 165) | func TestBlockSubscription(t *testing.T) { function TestPendingTxFilter (line 217) | func TestPendingTxFilter(t *testing.T) { function TestLogFilterCreation (line 274) | func TestLogFilterCreation(t *testing.T) { function TestInvalidLogFilterCreation (line 316) | func TestInvalidLogFilterCreation(t *testing.T) { function TestInvalidGetLogsRequest (line 340) | func TestInvalidGetLogsRequest(t *testing.T) { function TestLogFilter (line 363) | func TestLogFilter(t *testing.T) { function TestPendingLogsSubscription (line 477) | func TestPendingLogsSubscription(t *testing.T) { function TestPendingTxFilterDeadlock (line 612) | func TestPendingTxFilterDeadlock(t *testing.T) { function flattenLogs (line 676) | func flattenLogs(pl [][]*types.Log) []*types.Log { FILE: eth/filters/filter_test.go function makeReceipt (line 35) | func makeReceipt(addr common.Address) *types.Receipt { function BenchmarkFilters (line 44) | func BenchmarkFilters(b *testing.B) { function TestFilters (line 98) | func TestFilters(t *testing.T) { FILE: eth/gasprice/gasprice.go constant sampleNumber (line 32) | sampleNumber = 3 type Config (line 36) | type Config struct type OracleBackend (line 44) | type OracleBackend interface type Oracle (line 52) | type Oracle struct method SuggestPrice (line 97) | func (gpo *Oracle) SuggestPrice(ctx context.Context) (*big.Int, error) { method getBlockPrices (line 186) | func (gpo *Oracle) getBlockPrices(ctx context.Context, signer types.Si... function NewOracle (line 66) | func NewOracle(backend OracleBackend, params Config) *Oracle { type getBlockPricesResult (line 171) | type getBlockPricesResult struct type transactionsByGasPrice (line 176) | type transactionsByGasPrice method Len (line 178) | func (t transactionsByGasPrice) Len() int { return len(t) } method Swap (line 179) | func (t transactionsByGasPrice) Swap(i, j int) { t[i], t[j] = t[j... method Less (line 180) | func (t transactionsByGasPrice) Less(i, j int) bool { return t[i].GasP... type bigIntArray (line 216) | type bigIntArray method Len (line 218) | func (s bigIntArray) Len() int { return len(s) } method Less (line 219) | func (s bigIntArray) Less(i, j int) bool { return s[i].Cmp(s[j]) < 0 } method Swap (line 220) | func (s bigIntArray) Swap(i, j int) { s[i], s[j] = s[j], s[i] } FILE: eth/gasprice/gasprice_test.go type testBackend (line 36) | type testBackend struct method HeaderByNumber (line 40) | func (b *testBackend) HeaderByNumber(ctx context.Context, number rpc.B... method BlockByNumber (line 47) | func (b *testBackend) BlockByNumber(ctx context.Context, number rpc.Bl... method ChainConfig (line 54) | func (b *testBackend) ChainConfig() *params.ChainConfig { method CurrentHeader (line 92) | func (b *testBackend) CurrentHeader() *types.Header { method GetBlockByNumber (line 96) | func (b *testBackend) GetBlockByNumber(number uint64) *types.Block { function newTestBackend (line 58) | func newTestBackend(t *testing.T) *testBackend { function TestSuggestPrice (line 100) | func TestSuggestPrice(t *testing.T) { FILE: eth/handler.go constant txChanSize (line 46) | txChanSize = 4096 type txPool (line 55) | type txPool interface type handlerConfig (line 78) | type handlerConfig struct type handler (line 90) | type handler struct method runEthPeer (line 238) | func (h *handler) runEthPeer(peer *eth.Peer, handler eth.Handler) error { method runSnapExtension (line 346) | func (h *handler) runSnapExtension(peer *snap.Peer, handler snap.Handl... method removePeer (line 359) | func (h *handler) removePeer(id string) { method Start (line 391) | func (h *handler) Start(maxPeers int) { method Stop (line 411) | func (h *handler) Stop() { method BroadcastBlock (line 432) | func (h *handler) BroadcastBlock(block *types.Block, propagate bool) { method BroadcastTransactions (line 467) | func (h *handler) BroadcastTransactions(txs types.Transactions) { method minedBroadcastLoop (line 511) | func (h *handler) minedBroadcastLoop() { method txBroadcastLoop (line 523) | func (h *handler) txBroadcastLoop() { function newHandler (line 129) | func newHandler(config *handlerConfig) (*handler, error) { FILE: eth/handler_eth.go type ethHandler (line 37) | type ethHandler method Chain (line 39) | func (h *ethHandler) Chain() *core.BlockChain { return h.chain } method StateBloom (line 40) | func (h *ethHandler) StateBloom() *trie.SyncBloom { return h.stateBloom } method TxPool (line 41) | func (h *ethHandler) TxPool() eth.TxPool { return h.txpool } method RunPeer (line 44) | func (h *ethHandler) RunPeer(peer *eth.Peer, hand eth.Handler) error { method PeerInfo (line 49) | func (h *ethHandler) PeerInfo(id enode.ID) interface{} { method AcceptTxs (line 58) | func (h *ethHandler) AcceptTxs() bool { method Handle (line 64) | func (h *ethHandler) Handle(peer *eth.Peer, packet eth.Packet) error { method handleHeaders (line 109) | func (h *ethHandler) handleHeaders(peer *eth.Peer, headers []*types.He... method handleBodies (line 165) | func (h *ethHandler) handleBodies(peer *eth.Peer, txs [][]*types.Trans... method handleBlockAnnounces (line 182) | func (h *ethHandler) handleBlockAnnounces(peer *eth.Peer, hashes []com... method handleBlockBroadcast (line 202) | func (h *ethHandler) handleBlockBroadcast(peer *eth.Peer, block *types... FILE: eth/handler_eth_test.go type testEthHandler (line 45) | type testEthHandler struct method Chain (line 51) | func (h *testEthHandler) Chain() *core.BlockChain { panic... method StateBloom (line 52) | func (h *testEthHandler) StateBloom() *trie.SyncBloom { panic... method TxPool (line 53) | func (h *testEthHandler) TxPool() eth.TxPool { panic... method AcceptTxs (line 54) | func (h *testEthHandler) AcceptTxs() bool { retur... method RunPeer (line 55) | func (h *testEthHandler) RunPeer(*eth.Peer, eth.Handler) error { panic... method PeerInfo (line 56) | func (h *testEthHandler) PeerInfo(enode.ID) interface{} { panic... method Handle (line 58) | func (h *testEthHandler) Handle(peer *eth.Peer, packet eth.Packet) err... function TestForkIDSplit64 (line 83) | func TestForkIDSplit64(t *testing.T) { testForkIDSplit(t, 64) } function TestForkIDSplit65 (line 84) | func TestForkIDSplit65(t *testing.T) { testForkIDSplit(t, 65) } function testForkIDSplit (line 86) | func testForkIDSplit(t *testing.T, protocol uint) { function TestRecvTransactions64 (line 239) | func TestRecvTransactions64(t *testing.T) { testRecvTransactions(t, 64) } function TestRecvTransactions65 (line 240) | func TestRecvTransactions65(t *testing.T) { testRecvTransactions(t, 65) } function testRecvTransactions (line 242) | func testRecvTransactions(t *testing.T, protocol uint) { function TestSendTransactions64 (line 297) | func TestSendTransactions64(t *testing.T) { testSendTransactions(t, 64) } function TestSendTransactions65 (line 298) | func TestSendTransactions65(t *testing.T) { testSendTransactions(t, 65) } function testSendTransactions (line 300) | func testSendTransactions(t *testing.T, protocol uint) { function TestTransactionPropagation64 (line 395) | func TestTransactionPropagation64(t *testing.T) { testTransactionPropaga... function TestTransactionPropagation65 (line 396) | func TestTransactionPropagation65(t *testing.T) { testTransactionPropaga... function testTransactionPropagation (line 398) | func testTransactionPropagation(t *testing.T, protocol uint) { function TestCheckpointChallenge (line 468) | func TestCheckpointChallenge(t *testing.T) { function testCheckpointChallenge (line 504) | func testCheckpointChallenge(t *testing.T, syncmode downloader.SyncMode,... function TestBroadcastBlock1Peer (line 588) | func TestBroadcastBlock1Peer(t *testing.T) { testBroadcastBlock(t, 1,... function TestBroadcastBlock2Peers (line 589) | func TestBroadcastBlock2Peers(t *testing.T) { testBroadcastBlock(t, 2,... function TestBroadcastBlock3Peers (line 590) | func TestBroadcastBlock3Peers(t *testing.T) { testBroadcastBlock(t, 3,... function TestBroadcastBlock4Peers (line 591) | func TestBroadcastBlock4Peers(t *testing.T) { testBroadcastBlock(t, 4,... function TestBroadcastBlock5Peers (line 592) | func TestBroadcastBlock5Peers(t *testing.T) { testBroadcastBlock(t, 5,... function TestBroadcastBlock8Peers (line 593) | func TestBroadcastBlock8Peers(t *testing.T) { testBroadcastBlock(t, 9,... function TestBroadcastBlock12Peers (line 594) | func TestBroadcastBlock12Peers(t *testing.T) { testBroadcastBlock(t, 12... function TestBroadcastBlock16Peers (line 595) | func TestBroadcastBlock16Peers(t *testing.T) { testBroadcastBlock(t, 16... function TestBroadcastBloc26Peers (line 596) | func TestBroadcastBloc26Peers(t *testing.T) { testBroadcastBlock(t, 26... function TestBroadcastBlock100Peers (line 597) | func TestBroadcastBlock100Peers(t *testing.T) { testBroadcastBlock(t, 10... function testBroadcastBlock (line 599) | func testBroadcastBlock(t *testing.T, peers, bcasts int) { function TestBroadcastMalformedBlock64 (line 675) | func TestBroadcastMalformedBlock64(t *testing.T) { testBroadcastMalforme... function TestBroadcastMalformedBlock65 (line 676) | func TestBroadcastMalformedBlock65(t *testing.T) { testBroadcastMalforme... function testBroadcastMalformedBlock (line 678) | func testBroadcastMalformedBlock(t *testing.T, protocol uint) { FILE: eth/handler_snap.go type snapHandler (line 27) | type snapHandler method Chain (line 29) | func (h *snapHandler) Chain() *core.BlockChain { return h.chain } method RunPeer (line 32) | func (h *snapHandler) RunPeer(peer *snap.Peer, hand snap.Handler) error { method PeerInfo (line 37) | func (h *snapHandler) PeerInfo(id enode.ID) interface{} { method Handle (line 48) | func (h *snapHandler) Handle(peer *snap.Peer, packet snap.Packet) error { FILE: eth/handler_test.go type testTxPool (line 48) | type testTxPool struct method Has (line 64) | func (p *testTxPool) Has(hash common.Hash) bool { method Get (line 73) | func (p *testTxPool) Get(hash common.Hash) *types.Transaction { method AddRemotes (line 82) | func (p *testTxPool) AddRemotes(txs []*types.Transaction) []error { method Pending (line 94) | func (p *testTxPool) Pending() (map[common.Address]types.Transactions,... method SubscribeNewTxsEvent (line 111) | func (p *testTxPool) SubscribeNewTxsEvent(ch chan<- core.NewTxsEvent) ... function newTestTxPool (line 56) | func newTestTxPool() *testTxPool { type testHandler (line 118) | type testHandler struct method close (line 167) | func (b *testHandler) close() { function newTestHandler (line 126) | func newTestHandler() *testHandler { function newTestHandlerWithBlocks (line 132) | func newTestHandlerWithBlocks(blocks int) *testHandler { FILE: eth/peer.go type ethPeerInfo (line 30) | type ethPeerInfo struct type ethPeer (line 37) | type ethPeer struct method info (line 47) | func (p *ethPeer) info() *ethPeerInfo { type snapPeerInfo (line 59) | type snapPeerInfo struct type snapPeer (line 64) | type snapPeer struct method info (line 69) | func (p *snapPeer) info() *snapPeerInfo { FILE: eth/peerset.go type peerSet (line 50) | type peerSet struct method registerSnapExtension (line 73) | func (ps *peerSet) registerSnapExtension(peer *snap.Peer) error { method waitSnapExtension (line 102) | func (ps *peerSet) waitSnapExtension(peer *eth.Peer) (*snap.Peer, erro... method registerPeer (line 136) | func (ps *peerSet) registerPeer(peer *eth.Peer, ext *snap.Peer) error { method unregisterPeer (line 161) | func (ps *peerSet) unregisterPeer(id string) error { method peer (line 177) | func (ps *peerSet) peer(id string) *ethPeer { method peersWithoutBlock (line 186) | func (ps *peerSet) peersWithoutBlock(hash common.Hash) []*ethPeer { method peersWithoutTransaction (line 201) | func (ps *peerSet) peersWithoutTransaction(hash common.Hash) []*ethPeer { method len (line 217) | func (ps *peerSet) len() int { method snapLen (line 225) | func (ps *peerSet) snapLen() int { method peerWithHighestTD (line 234) | func (ps *peerSet) peerWithHighestTD() *eth.Peer { method close (line 251) | func (ps *peerSet) close() { function newPeerSet (line 62) | func newPeerSet() *peerSet { FILE: eth/protocols/eth/broadcast.go constant maxTxPacketSize (line 29) | maxTxPacketSize = 100 * 1024 type blockPropagation (line 34) | type blockPropagation struct method broadcastBlocks (line 42) | func (p *Peer) broadcastBlocks() { method broadcastTransactions (line 66) | func (p *Peer) broadcastTransactions() { method announceTransactions (line 133) | func (p *Peer) announceTransactions() { FILE: eth/protocols/eth/discovery.go type enrEntry (line 27) | type enrEntry struct method ENRKey (line 35) | func (e enrEntry) ENRKey() string { function StartENRUpdater (line 41) | func StartENRUpdater(chain *core.BlockChain, ln *enode.LocalNode) { function currentENREntry (line 61) | func currentENREntry(chain *core.BlockChain) *enrEntry { FILE: eth/protocols/eth/handler.go constant softResponseLimit (line 37) | softResponseLimit = 2 * 1024 * 1024 constant estHeaderSize (line 40) | estHeaderSize = 500 constant maxHeadersServe (line 44) | maxHeadersServe = 1024 constant maxBodiesServe (line 49) | maxBodiesServe = 1024 constant maxNodeDataServe (line 53) | maxNodeDataServe = 1024 constant maxReceiptsServe (line 59) | maxReceiptsServe = 1024 type Handler (line 64) | type Handler type Backend (line 68) | type Backend interface type TxPool (line 98) | type TxPool interface function MakeProtocols (line 104) | func MakeProtocols(backend Backend, network uint64, dnsdisc enode.Iterat... type NodeInfo (line 136) | type NodeInfo struct function nodeInfo (line 145) | func nodeInfo(chain *core.BlockChain, network uint64) *NodeInfo { function Handle (line 159) | func Handle(backend Backend, peer *Peer) error { type msgHandler (line 168) | type msgHandler type Decoder (line 169) | type Decoder interface function handleMessage (line 228) | func handleMessage(backend Backend, peer *Peer) error { FILE: eth/protocols/eth/handler_test.go type testBackend (line 51) | type testBackend struct method close (line 89) | func (b *testBackend) close() { method Chain (line 94) | func (b *testBackend) Chain() *core.BlockChain { return b.chain } method StateBloom (line 95) | func (b *testBackend) StateBloom() *trie.SyncBloom { return nil } method TxPool (line 96) | func (b *testBackend) TxPool() TxPool { return b.txpool } method RunPeer (line 98) | func (b *testBackend) RunPeer(peer *Peer, handler Handler) error { method PeerInfo (line 103) | func (b *testBackend) PeerInfo(enode.ID) interface{} { panic("not impl... method AcceptTxs (line 105) | func (b *testBackend) AcceptTxs() bool { method Handle (line 108) | func (b *testBackend) Handle(*Peer, Packet) error { function newTestBackend (line 58) | func newTestBackend(blocks int) *testBackend { function newTestBackendWithGenerator (line 64) | func newTestBackendWithGenerator(blocks int, generator func(int, *core.B... function TestGetBlockHeaders64 (line 113) | func TestGetBlockHeaders64(t *testing.T) { testGetBlockHeaders(t, 64) } function TestGetBlockHeaders65 (line 114) | func TestGetBlockHeaders65(t *testing.T) { testGetBlockHeaders(t, 65) } function testGetBlockHeaders (line 116) | func testGetBlockHeaders(t *testing.T, protocol uint) { function TestGetBlockBodies64 (line 276) | func TestGetBlockBodies64(t *testing.T) { testGetBlockBodies(t, 64) } function TestGetBlockBodies65 (line 277) | func TestGetBlockBodies65(t *testing.T) { testGetBlockBodies(t, 65) } function testGetBlockBodies (line 279) | func testGetBlockBodies(t *testing.T, protocol uint) { function TestGetNodeData64 (line 354) | func TestGetNodeData64(t *testing.T) { testGetNodeData(t, 64) } function TestGetNodeData65 (line 355) | func TestGetNodeData65(t *testing.T) { testGetNodeData(t, 65) } function testGetNodeData (line 357) | func testGetNodeData(t *testing.T, protocol uint) { function TestGetBlockReceipts64 (line 455) | func TestGetBlockReceipts64(t *testing.T) { testGetBlockReceipts(t, 64) } function TestGetBlockReceipts65 (line 456) | func TestGetBlockReceipts65(t *testing.T) { testGetBlockReceipts(t, 65) } function testGetBlockReceipts (line 458) | func testGetBlockReceipts(t *testing.T, protocol uint) { FILE: eth/protocols/eth/handlers.go function handleGetBlockHeaders (line 31) | func handleGetBlockHeaders(backend Backend, msg Decoder, peer *Peer) err... function handleGetBlockHeaders66 (line 42) | func handleGetBlockHeaders66(backend Backend, msg Decoder, peer *Peer) e... function answerGetBlockHeadersQuery (line 52) | func answerGetBlockHeadersQuery(backend Backend, query *GetBlockHeadersP... function handleGetBlockBodies (line 138) | func handleGetBlockBodies(backend Backend, msg Decoder, peer *Peer) error { function handleGetBlockBodies66 (line 148) | func handleGetBlockBodies66(backend Backend, msg Decoder, peer *Peer) er... function answerGetBlockBodiesQuery (line 158) | func answerGetBlockBodiesQuery(backend Backend, query GetBlockBodiesPack... function handleGetNodeData (line 177) | func handleGetNodeData(backend Backend, msg Decoder, peer *Peer) error { function handleGetNodeData66 (line 187) | func handleGetNodeData66(backend Backend, msg Decoder, peer *Peer) error { function answerGetNodeDataQuery (line 197) | func answerGetNodeDataQuery(backend Backend, query GetNodeDataPacket, pe... function handleGetReceipts (line 226) | func handleGetReceipts(backend Backend, msg Decoder, peer *Peer) error { function handleGetReceipts66 (line 236) | func handleGetReceipts66(backend Backend, msg Decoder, peer *Peer) error { function answerGetReceiptsQuery (line 246) | func answerGetReceiptsQuery(backend Backend, query GetReceiptsPacket, pe... function handleNewBlockhashes (line 275) | func handleNewBlockhashes(backend Backend, msg Decoder, peer *Peer) error { function handleNewBlock (line 289) | func handleNewBlock(backend Backend, msg Decoder, peer *Peer) error { function handleBlockHeaders (line 315) | func handleBlockHeaders(backend Backend, msg Decoder, peer *Peer) error { function handleBlockHeaders66 (line 324) | func handleBlockHeaders66(backend Backend, msg Decoder, peer *Peer) error { function handleBlockBodies (line 333) | func handleBlockBodies(backend Backend, msg Decoder, peer *Peer) error { function handleBlockBodies66 (line 342) | func handleBlockBodies66(backend Backend, msg Decoder, peer *Peer) error { function handleNodeData (line 351) | func handleNodeData(backend Backend, msg Decoder, peer *Peer) error { function handleNodeData66 (line 360) | func handleNodeData66(backend Backend, msg Decoder, peer *Peer) error { function handleReceipts (line 369) | func handleReceipts(backend Backend, msg Decoder, peer *Peer) error { function handleReceipts66 (line 378) | func handleReceipts66(backend Backend, msg Decoder, peer *Peer) error { function handleNewPooledTransactionHashes (line 387) | func handleNewPooledTransactionHashes(backend Backend, msg Decoder, peer... function handleGetPooledTransactions (line 404) | func handleGetPooledTransactions(backend Backend, msg Decoder, peer *Pee... function handleGetPooledTransactions66 (line 414) | func handleGetPooledTransactions66(backend Backend, msg Decoder, peer *P... function answerGetPooledTransactions (line 424) | func answerGetPooledTransactions(backend Backend, query GetPooledTransac... function handleTransactions (line 452) | func handleTransactions(backend Backend, msg Decoder, peer *Peer) error { function handlePooledTransactions (line 472) | func handlePooledTransactions(backend Backend, msg Decoder, peer *Peer) ... function handlePooledTransactions66 (line 492) | func handlePooledTransactions66(backend Backend, msg Decoder, peer *Peer... FILE: eth/protocols/eth/handshake.go constant handshakeTimeout (line 32) | handshakeTimeout = 5 * time.Second method Handshake (line 37) | func (p *Peer) Handshake(network uint64, td *big.Int, head common.Hash, ... method readStatus (line 79) | func (p *Peer) readStatus(network uint64, status *StatusPacket, genesis ... FILE: eth/protocols/eth/handshake_test.go function TestHandshake64 (line 30) | func TestHandshake64(t *testing.T) { testHandshake(t, 64) } function TestHandshake65 (line 31) | func TestHandshake65(t *testing.T) { testHandshake(t, 65) } function testHandshake (line 33) | func testHandshake(t *testing.T, protocol uint) { FILE: eth/protocols/eth/peer.go constant maxKnownTxs (line 34) | maxKnownTxs = 32768 constant maxKnownBlocks (line 38) | maxKnownBlocks = 1024 constant maxQueuedTxs (line 42) | maxQueuedTxs = 4096 constant maxQueuedTxAnns (line 46) | maxQueuedTxAnns = 4096 constant maxQueuedBlocks (line 51) | maxQueuedBlocks = 4 constant maxQueuedBlockAnns (line 56) | maxQueuedBlockAnns = 4 function max (line 60) | func max(a, b int) int { type Peer (line 68) | type Peer struct method Close (line 120) | func (p *Peer) Close() { method ID (line 125) | func (p *Peer) ID() string { method Version (line 130) | func (p *Peer) Version() uint { method Head (line 135) | func (p *Peer) Head() (hash common.Hash, td *big.Int) { method SetHead (line 144) | func (p *Peer) SetHead(hash common.Hash, td *big.Int) { method KnownBlock (line 153) | func (p *Peer) KnownBlock(hash common.Hash) bool { method KnownTransaction (line 158) | func (p *Peer) KnownTransaction(hash common.Hash) bool { method markBlock (line 164) | func (p *Peer) markBlock(hash common.Hash) { method markTransaction (line 174) | func (p *Peer) markTransaction(hash common.Hash) { method SendTransactions (line 191) | func (p *Peer) SendTransactions(txs types.Transactions) error { method AsyncSendTransactions (line 205) | func (p *Peer) AsyncSendTransactions(hashes []common.Hash) { method sendPooledTransactionHashes (line 226) | func (p *Peer) sendPooledTransactionHashes(hashes []common.Hash) error { method AsyncSendPooledTransactionHashes (line 240) | func (p *Peer) AsyncSendPooledTransactionHashes(hashes []common.Hash) { method SendPooledTransactionsRLP (line 260) | func (p *Peer) SendPooledTransactionsRLP(hashes []common.Hash, txs []r... method ReplyPooledTransactionsRLP (line 272) | func (p *Peer) ReplyPooledTransactionsRLP(id uint64, hashes []common.H... method SendNewBlockHashes (line 289) | func (p *Peer) SendNewBlockHashes(hashes []common.Hash, numbers []uint... method AsyncSendNewBlockHash (line 308) | func (p *Peer) AsyncSendNewBlockHash(block *types.Block) { method SendNewBlock (line 322) | func (p *Peer) SendNewBlock(block *types.Block, td *big.Int) error { method AsyncSendNewBlock (line 336) | func (p *Peer) AsyncSendNewBlock(block *types.Block, td *big.Int) { method SendBlockHeaders (line 350) | func (p *Peer) SendBlockHeaders(headers []*types.Header) error { method ReplyBlockHeaders (line 355) | func (p *Peer) ReplyBlockHeaders(id uint64, headers []*types.Header) e... method SendBlockBodiesRLP (line 364) | func (p *Peer) SendBlockBodiesRLP(bodies []rlp.RawValue) error { method ReplyBlockBodiesRLP (line 369) | func (p *Peer) ReplyBlockBodiesRLP(id uint64, bodies []rlp.RawValue) e... method SendNodeData (line 379) | func (p *Peer) SendNodeData(data [][]byte) error { method ReplyNodeData (line 384) | func (p *Peer) ReplyNodeData(id uint64, data [][]byte) error { method SendReceiptsRLP (line 393) | func (p *Peer) SendReceiptsRLP(receipts []rlp.RawValue) error { method ReplyReceiptsRLP (line 398) | func (p *Peer) ReplyReceiptsRLP(id uint64, receipts []rlp.RawValue) er... method RequestOneHeader (line 407) | func (p *Peer) RequestOneHeader(hash common.Hash) error { method RequestHeadersByHash (line 426) | func (p *Peer) RequestHeadersByHash(origin common.Hash, amount int, sk... method RequestHeadersByNumber (line 445) | func (p *Peer) RequestHeadersByNumber(origin uint64, amount int, skip ... method ExpectRequestHeadersByNumber (line 464) | func (p *Peer) ExpectRequestHeadersByNumber(origin uint64, amount int,... method RequestBodies (line 476) | func (p *Peer) RequestBodies(hashes []common.Hash) error { method RequestNodeData (line 489) | func (p *Peer) RequestNodeData(hashes []common.Hash) error { method RequestReceipts (line 501) | func (p *Peer) RequestReceipts(hashes []common.Hash) error { method RequestTxs (line 513) | func (p *Peer) RequestTxs(hashes []common.Hash) error { function NewPeer (line 93) | func NewPeer(version uint, p *p2p.Peer, rw p2p.MsgReadWriter, txpool TxP... FILE: eth/protocols/eth/peer_test.go type testPeer (line 30) | type testPeer struct method close (line 58) | func (p *testPeer) close() { function newTestPeer (line 38) | func newTestPeer(name string, version uint, backend Backend) (*testPeer,... FILE: eth/protocols/eth/protocol.go constant ETH64 (line 33) | ETH64 = 64 constant ETH65 (line 34) | ETH65 = 65 constant ETH66 (line 35) | ETH66 = 66 constant ProtocolName (line 40) | ProtocolName = "eth" constant maxMessageSize (line 51) | maxMessageSize = 10 * 1024 * 1024 constant StatusMsg (line 55) | StatusMsg = 0x00 constant NewBlockHashesMsg (line 56) | NewBlockHashesMsg = 0x01 constant TransactionsMsg (line 57) | TransactionsMsg = 0x02 constant GetBlockHeadersMsg (line 58) | GetBlockHeadersMsg = 0x03 constant BlockHeadersMsg (line 59) | BlockHeadersMsg = 0x04 constant GetBlockBodiesMsg (line 60) | GetBlockBodiesMsg = 0x05 constant BlockBodiesMsg (line 61) | BlockBodiesMsg = 0x06 constant NewBlockMsg (line 62) | NewBlockMsg = 0x07 constant GetNodeDataMsg (line 63) | GetNodeDataMsg = 0x0d constant NodeDataMsg (line 64) | NodeDataMsg = 0x0e constant GetReceiptsMsg (line 65) | GetReceiptsMsg = 0x0f constant ReceiptsMsg (line 66) | ReceiptsMsg = 0x10 constant NewPooledTransactionHashesMsg (line 69) | NewPooledTransactionHashesMsg = 0x08 constant GetPooledTransactionsMsg (line 70) | GetPooledTransactionsMsg = 0x09 constant PooledTransactionsMsg (line 71) | PooledTransactionsMsg = 0x0a type Packet (line 86) | type Packet interface type StatusPacket (line 92) | type StatusPacket struct method Name (line 325) | func (*StatusPacket) Name() string { return "Status" } method Kind (line 326) | func (*StatusPacket) Kind() byte { return StatusMsg } type NewBlockHashesPacket (line 102) | type NewBlockHashesPacket method Unpack (line 110) | func (p *NewBlockHashesPacket) Unpack() ([]common.Hash, []uint64) { method Name (line 328) | func (*NewBlockHashesPacket) Name() string { return "NewBlockHashes" } method Kind (line 329) | func (*NewBlockHashesPacket) Kind() byte { return NewBlockHashesMsg } type TransactionsPacket (line 122) | type TransactionsPacket method Name (line 331) | func (*TransactionsPacket) Name() string { return "Transactions" } method Kind (line 332) | func (*TransactionsPacket) Kind() byte { return TransactionsMsg } type GetBlockHeadersPacket (line 125) | type GetBlockHeadersPacket struct method Name (line 334) | func (*GetBlockHeadersPacket) Name() string { return "GetBlockHeaders" } method Kind (line 335) | func (*GetBlockHeadersPacket) Kind() byte { return GetBlockHeadersMsg } type GetBlockHeadersPacket66 (line 133) | type GetBlockHeadersPacket66 struct type HashOrNumber (line 139) | type HashOrNumber struct method EncodeRLP (line 146) | func (hn *HashOrNumber) EncodeRLP(w io.Writer) error { method DecodeRLP (line 158) | func (hn *HashOrNumber) DecodeRLP(s *rlp.Stream) error { type BlockHeadersPacket (line 175) | type BlockHeadersPacket method Name (line 337) | func (*BlockHeadersPacket) Name() string { return "BlockHeaders" } method Kind (line 338) | func (*BlockHeadersPacket) Kind() byte { return BlockHeadersMsg } type BlockHeadersPacket66 (line 178) | type BlockHeadersPacket66 struct type NewBlockPacket (line 184) | type NewBlockPacket struct method sanityCheck (line 190) | func (request *NewBlockPacket) sanityCheck() error { method Name (line 346) | func (*NewBlockPacket) Name() string { return "NewBlock" } method Kind (line 347) | func (*NewBlockPacket) Kind() byte { return NewBlockMsg } type GetBlockBodiesPacket (line 203) | type GetBlockBodiesPacket method Name (line 340) | func (*GetBlockBodiesPacket) Name() string { return "GetBlockBodies" } method Kind (line 341) | func (*GetBlockBodiesPacket) Kind() byte { return GetBlockBodiesMsg } type GetBlockBodiesPacket66 (line 206) | type GetBlockBodiesPacket66 struct type BlockBodiesPacket (line 212) | type BlockBodiesPacket method Unpack (line 239) | func (p *BlockBodiesPacket) Unpack() ([][]*types.Transaction, [][]*typ... method Name (line 343) | func (*BlockBodiesPacket) Name() string { return "BlockBodies" } method Kind (line 344) | func (*BlockBodiesPacket) Kind() byte { return BlockBodiesMsg } type BlockBodiesPacket66 (line 215) | type BlockBodiesPacket66 struct type BlockBodiesRLPPacket (line 223) | type BlockBodiesRLPPacket type BlockBodiesRLPPacket66 (line 226) | type BlockBodiesRLPPacket66 struct type BlockBody (line 232) | type BlockBody struct type GetNodeDataPacket (line 251) | type GetNodeDataPacket method Name (line 349) | func (*GetNodeDataPacket) Name() string { return "GetNodeData" } method Kind (line 350) | func (*GetNodeDataPacket) Kind() byte { return GetNodeDataMsg } type GetNodeDataPacket66 (line 254) | type GetNodeDataPacket66 struct type NodeDataPacket (line 260) | type NodeDataPacket method Name (line 352) | func (*NodeDataPacket) Name() string { return "NodeData" } method Kind (line 353) | func (*NodeDataPacket) Kind() byte { return NodeDataMsg } type NodeDataPacket66 (line 263) | type NodeDataPacket66 struct type GetReceiptsPacket (line 269) | type GetReceiptsPacket method Name (line 355) | func (*GetReceiptsPacket) Name() string { return "GetReceipts" } method Kind (line 356) | func (*GetReceiptsPacket) Kind() byte { return GetReceiptsMsg } type GetReceiptsPacket66 (line 272) | type GetReceiptsPacket66 struct type ReceiptsPacket (line 278) | type ReceiptsPacket method Name (line 358) | func (*ReceiptsPacket) Name() string { return "Receipts" } method Kind (line 359) | func (*ReceiptsPacket) Kind() byte { return ReceiptsMsg } type ReceiptsPacket66 (line 281) | type ReceiptsPacket66 struct type ReceiptsRLPPacket (line 287) | type ReceiptsRLPPacket type ReceiptsRLPPacket66 (line 290) | type ReceiptsRLPPacket66 struct type NewPooledTransactionHashesPacket (line 296) | type NewPooledTransactionHashesPacket method Name (line 361) | func (*NewPooledTransactionHashesPacket) Name() string { return "NewPo... method Kind (line 362) | func (*NewPooledTransactionHashesPacket) Kind() byte { return NewPoo... type GetPooledTransactionsPacket (line 299) | type GetPooledTransactionsPacket method Name (line 364) | func (*GetPooledTransactionsPacket) Name() string { return "GetPooledT... method Kind (line 365) | func (*GetPooledTransactionsPacket) Kind() byte { return GetPooledTr... type GetPooledTransactionsPacket66 (line 301) | type GetPooledTransactionsPacket66 struct type PooledTransactionsPacket (line 307) | type PooledTransactionsPacket method Name (line 367) | func (*PooledTransactionsPacket) Name() string { return "PooledTransac... method Kind (line 368) | func (*PooledTransactionsPacket) Kind() byte { return PooledTransact... type PooledTransactionsPacket66 (line 310) | type PooledTransactionsPacket66 struct type PooledTransactionsRLPPacket (line 317) | type PooledTransactionsRLPPacket type PooledTransactionsRLPPacket66 (line 320) | type PooledTransactionsRLPPacket66 struct FILE: eth/protocols/eth/protocol_test.go function TestGetBlockHeadersDataEncodeDecode (line 30) | func TestGetBlockHeadersDataEncodeDecode(t *testing.T) { function TestEth66EmptyMessages (line 74) | func TestEth66EmptyMessages(t *testing.T) { function TestEth66Messages (line 122) | func TestEth66Messages(t *testing.T) { FILE: eth/protocols/snap/discovery.go type enrEntry (line 24) | type enrEntry struct method ENRKey (line 30) | func (e enrEntry) ENRKey() string { FILE: eth/protocols/snap/handler.go constant softResponseLimit (line 39) | softResponseLimit = 2 * 1024 * 1024 constant maxCodeLookups (line 43) | maxCodeLookups = 1024 constant stateLookupSlack (line 48) | stateLookupSlack = 0.1 constant maxTrieNodeLookups (line 52) | maxTrieNodeLookups = 1024 constant maxTrieNodeTimeSpent (line 57) | maxTrieNodeTimeSpent = 5 * time.Second type Handler (line 62) | type Handler type Backend (line 66) | type Backend interface function MakeProtocols (line 86) | func MakeProtocols(backend Backend, dnsdisc enode.Iterator) []p2p.Protoc... function handle (line 115) | func handle(backend Backend, peer *Peer) error { function handleMessage (line 127) | func handleMessage(backend Backend, peer *Peer) error { type NodeInfo (line 509) | type NodeInfo struct function nodeInfo (line 512) | func nodeInfo(chain *core.BlockChain) *NodeInfo { FILE: eth/protocols/snap/peer.go type Peer (line 26) | type Peer struct method ID (line 50) | func (p *Peer) ID() string { method Version (line 55) | func (p *Peer) Version() uint { method Log (line 60) | func (p *Peer) Log() log.Logger { method RequestAccountRange (line 66) | func (p *Peer) RequestAccountRange(id uint64, root common.Hash, origin... method RequestStorageRanges (line 80) | func (p *Peer) RequestStorageRanges(id uint64, root common.Hash, accou... method RequestByteCodes (line 97) | func (p *Peer) RequestByteCodes(id uint64, hashes []common.Hash, bytes... method RequestTrieNodes (line 108) | func (p *Peer) RequestTrieNodes(id uint64, root common.Hash, paths []T... function newPeer (line 38) | func newPeer(version uint, p *p2p.Peer, rw p2p.MsgReadWriter) *Peer { FILE: eth/protocols/snap/protocol.go constant snap1 (line 30) | snap1 = 1 constant ProtocolName (line 35) | ProtocolName = "snap" constant maxMessageSize (line 46) | maxMessageSize = 10 * 1024 * 1024 constant GetAccountRangeMsg (line 49) | GetAccountRangeMsg = 0x00 constant AccountRangeMsg (line 50) | AccountRangeMsg = 0x01 constant GetStorageRangesMsg (line 51) | GetStorageRangesMsg = 0x02 constant StorageRangesMsg (line 52) | StorageRangesMsg = 0x03 constant GetByteCodesMsg (line 53) | GetByteCodesMsg = 0x04 constant ByteCodesMsg (line 54) | ByteCodesMsg = 0x05 constant GetTrieNodesMsg (line 55) | GetTrieNodesMsg = 0x06 constant TrieNodesMsg (line 56) | TrieNodesMsg = 0x07 type Packet (line 67) | type Packet interface type GetAccountRangePacket (line 73) | type GetAccountRangePacket struct method Name (line 196) | func (*GetAccountRangePacket) Name() string { return "GetAccountRange" } method Kind (line 197) | func (*GetAccountRangePacket) Kind() byte { return GetAccountRangeMsg } type AccountRangePacket (line 82) | type AccountRangePacket struct method Unpack (line 101) | func (p *AccountRangePacket) Unpack() ([]common.Hash, [][]byte, error) { method Name (line 199) | func (*AccountRangePacket) Name() string { return "AccountRange" } method Kind (line 200) | func (*AccountRangePacket) Kind() byte { return AccountRangeMsg } type AccountData (line 89) | type AccountData struct type GetStorageRangesPacket (line 117) | type GetStorageRangesPacket struct method Name (line 202) | func (*GetStorageRangesPacket) Name() string { return "GetStorageRange... method Kind (line 203) | func (*GetStorageRangesPacket) Kind() byte { return GetStorageRanges... type StorageRangesPacket (line 127) | type StorageRangesPacket struct method Unpack (line 141) | func (p *StorageRangesPacket) Unpack() ([][]common.Hash, [][][]byte) { method Name (line 205) | func (*StorageRangesPacket) Name() string { return "StorageRanges" } method Kind (line 206) | func (*StorageRangesPacket) Kind() byte { return StorageRangesMsg } type StorageData (line 134) | type StorageData struct type GetByteCodesPacket (line 158) | type GetByteCodesPacket struct method Name (line 208) | func (*GetByteCodesPacket) Name() string { return "GetByteCodes" } method Kind (line 209) | func (*GetByteCodesPacket) Kind() byte { return GetByteCodesMsg } type ByteCodesPacket (line 165) | type ByteCodesPacket struct method Name (line 211) | func (*ByteCodesPacket) Name() string { return "ByteCodes" } method Kind (line 212) | func (*ByteCodesPacket) Kind() byte { return ByteCodesMsg } type GetTrieNodesPacket (line 171) | type GetTrieNodesPacket struct method Name (line 214) | func (*GetTrieNodesPacket) Name() string { return "GetTrieNodes" } method Kind (line 215) | func (*GetTrieNodesPacket) Kind() byte { return GetTrieNodesMsg } type TrieNodePathSet (line 188) | type TrieNodePathSet type TrieNodesPacket (line 191) | type TrieNodesPacket struct method Name (line 217) | func (*TrieNodesPacket) Name() string { return "TrieNodes" } method Kind (line 218) | func (*TrieNodesPacket) Kind() byte { return TrieNodesMsg } FILE: eth/protocols/snap/sync.go constant maxRequestSize (line 52) | maxRequestSize = 512 * 1024 constant maxStorageSetRequestCount (line 58) | maxStorageSetRequestCount = maxRequestSize / 1024 constant maxCodeRequestCount (line 68) | maxCodeRequestCount = maxRequestSize / (24 * 1024) * 4 constant maxTrieRequestCount (line 74) | maxTrieRequestCount = 512 constant accountConcurrency (line 78) | accountConcurrency = 16 constant storageConcurrency (line 82) | storageConcurrency = 16 type accountRequest (line 104) | type accountRequest struct type accountResponse (line 121) | type accountResponse struct type bytecodeRequest (line 145) | type bytecodeRequest struct type bytecodeResponse (line 158) | type bytecodeResponse struct type storageRequest (line 174) | type storageRequest struct type storageResponse (line 195) | type storageResponse struct type trienodeHealRequest (line 222) | type trienodeHealRequest struct type trienodeHealResponse (line 237) | type trienodeHealResponse struct type bytecodeHealRequest (line 254) | type bytecodeHealRequest struct type bytecodeHealResponse (line 267) | type bytecodeHealResponse struct type accountTask (line 275) | type accountTask struct type storageTask (line 297) | type storageTask struct type healTask (line 308) | type healTask struct type syncProgress (line 318) | type syncProgress struct type SyncPeer (line 343) | type SyncPeer interface type Syncer (line 378) | type Syncer struct method Register (line 484) | func (s *Syncer) Register(peer SyncPeer) error { method Unregister (line 511) | func (s *Syncer) Unregister(id string) error { method Sync (line 541) | func (s *Syncer) Sync(root common.Hash, cancel chan struct{}) error { method loadSyncStatus (line 651) | func (s *Syncer) loadSyncStatus() { method saveSyncStatus (line 712) | func (s *Syncer) saveSyncStatus() { method cleanAccountTasks (line 735) | func (s *Syncer) cleanAccountTasks() { method cleanStorageTasks (line 751) | func (s *Syncer) cleanStorageTasks() { method assignAccountTasks (line 784) | func (s *Syncer) assignAccountTasks(cancel chan struct{}) { method assignBytecodeTasks (line 862) | func (s *Syncer) assignBytecodeTasks(cancel chan struct{}) { method assignStorageTasks (line 949) | func (s *Syncer) assignStorageTasks(cancel chan struct{}) { method assignTrienodeHealTasks (line 1084) | func (s *Syncer) assignTrienodeHealTasks(cancel chan struct{}) { method assignBytecodeHealTasks (line 1192) | func (s *Syncer) assignBytecodeHealTasks(cancel chan struct{}) { method revertRequests (line 1292) | func (s *Syncer) revertRequests(peer string) { method scheduleRevertAccountRequest (line 1347) | func (s *Syncer) scheduleRevertAccountRequest(req *accountRequest) { method revertAccountRequest (line 1363) | func (s *Syncer) revertAccountRequest(req *accountRequest) { method scheduleRevertBytecodeRequest (line 1388) | func (s *Syncer) scheduleRevertBytecodeRequest(req *bytecodeRequest) { method revertBytecodeRequest (line 1404) | func (s *Syncer) revertBytecodeRequest(req *bytecodeRequest) { method scheduleRevertStorageRequest (line 1429) | func (s *Syncer) scheduleRevertStorageRequest(req *storageRequest) { method revertStorageRequest (line 1445) | func (s *Syncer) revertStorageRequest(req *storageRequest) { method scheduleRevertTrienodeHealRequest (line 1474) | func (s *Syncer) scheduleRevertTrienodeHealRequest(req *trienodeHealRe... method revertTrienodeHealRequest (line 1490) | func (s *Syncer) revertTrienodeHealRequest(req *trienodeHealRequest) { method scheduleRevertBytecodeHealRequest (line 1515) | func (s *Syncer) scheduleRevertBytecodeHealRequest(req *bytecodeHealRe... method revertBytecodeHealRequest (line 1531) | func (s *Syncer) revertBytecodeHealRequest(req *bytecodeHealRequest) { method processAccountResponse (line 1556) | func (s *Syncer) processAccountResponse(res *accountResponse) { method processBytecodeResponse (line 1648) | func (s *Syncer) processBytecodeResponse(res *bytecodeResponse) { method processStorageResponse (line 1696) | func (s *Syncer) processStorageResponse(res *storageResponse) { method processTrienodeHealResponse (line 1850) | func (s *Syncer) processTrienodeHealResponse(res *trienodeHealResponse) { method processBytecodeHealResponse (line 1886) | func (s *Syncer) processBytecodeHealResponse(res *bytecodeHealResponse) { method forwardAccountTask (line 1923) | func (s *Syncer) forwardAccountTask(task *accountTask) { method OnAccounts (line 2008) | func (s *Syncer) OnAccounts(peer SyncPeer, id uint64, hashes []common.... method OnByteCodes (line 2123) | func (s *Syncer) OnByteCodes(peer SyncPeer, id uint64, bytecodes [][]b... method onByteCodes (line 2136) | func (s *Syncer) onByteCodes(peer SyncPeer, id uint64, bytecodes [][]b... method OnStorage (line 2229) | func (s *Syncer) OnStorage(peer SyncPeer, id uint64, hashes [][]common... method OnTrieNodes (line 2387) | func (s *Syncer) OnTrieNodes(peer SyncPeer, id uint64, trienodes [][]b... method onHealByteCodes (line 2481) | func (s *Syncer) onHealByteCodes(peer SyncPeer, id uint64, bytecodes [... method report (line 2576) | func (s *Syncer) report(force bool) { method reportSyncProgress (line 2585) | func (s *Syncer) reportSyncProgress(force bool) { method reportHealProgress (line 2624) | func (s *Syncer) reportHealProgress(force bool) { function NewSyncer (line 448) | func NewSyncer(db ethdb.KeyValueStore) *Syncer { FILE: eth/protocols/snap/sync_test.go function TestHashing (line 42) | func TestHashing(t *testing.T) { function BenchmarkHashing (line 78) | func BenchmarkHashing(b *testing.B) { type accountHandlerFunc (line 117) | type accountHandlerFunc type storageHandlerFunc (line 118) | type storageHandlerFunc type trieHandlerFunc (line 119) | type trieHandlerFunc type codeHandlerFunc (line 120) | type codeHandlerFunc type testPeer (line 123) | type testPeer struct method ID (line 156) | func (t *testPeer) ID() string { return t.id } method Log (line 157) | func (t *testPeer) Log() log.Logger { return t.logger } method RequestAccountRange (line 159) | func (t *testPeer) RequestAccountRange(id uint64, root, origin, limit ... method RequestTrieNodes (line 165) | func (t *testPeer) RequestTrieNodes(id uint64, root common.Hash, paths... method RequestStorageRanges (line 171) | func (t *testPeer) RequestStorageRanges(id uint64, root common.Hash, a... method RequestByteCodes (line 181) | func (t *testPeer) RequestByteCodes(id uint64, hashes []common.Hash, b... function newTestPeer (line 140) | func newTestPeer(id string, t *testing.T, term func()) *testPeer { function defaultTrieRequestHandler (line 188) | func defaultTrieRequestHandler(t *testPeer, requestId uint64, root commo... function defaultAccountRequestHandler (line 217) | func defaultAccountRequestHandler(t *testPeer, id uint64, root common.Ha... function createAccountRequestResponse (line 227) | func createAccountRequestResponse(t *testPeer, root common.Hash, origin ... function defaultStorageRequestHandler (line 266) | func defaultStorageRequestHandler(t *testPeer, requestId uint64, root co... function defaultCodeRequestHandler (line 275) | func defaultCodeRequestHandler(t *testPeer, id uint64, hashes []common.H... function createStorageRequestResponse (line 287) | func createStorageRequestResponse(t *testPeer, root common.Hash, account... function createStorageRequestResponseAlwaysProve (line 354) | func createStorageRequestResponseAlwaysProve(t *testPeer, root common.Ha... function emptyRequestAccountRangeFn (line 412) | func emptyRequestAccountRangeFn(t *testPeer, requestId uint64, root comm... function nonResponsiveRequestAccountRangeFn (line 417) | func nonResponsiveRequestAccountRangeFn(t *testPeer, requestId uint64, r... function emptyTrieRequestHandler (line 421) | func emptyTrieRequestHandler(t *testPeer, requestId uint64, root common.... function nonResponsiveTrieRequestHandler (line 426) | func nonResponsiveTrieRequestHandler(t *testPeer, requestId uint64, root... function emptyStorageRequestHandler (line 430) | func emptyStorageRequestHandler(t *testPeer, requestId uint64, root comm... function nonResponsiveStorageRequestHandler (line 435) | func nonResponsiveStorageRequestHandler(t *testPeer, requestId uint64, r... function proofHappyStorageRequestHandler (line 439) | func proofHappyStorageRequestHandler(t *testPeer, requestId uint64, root... function corruptCodeRequestHandler (line 454) | func corruptCodeRequestHandler(t *testPeer, id uint64, hashes []common.H... function cappedCodeRequestHandler (line 468) | func cappedCodeRequestHandler(t *testPeer, id uint64, hashes []common.Ha... function starvingStorageRequestHandler (line 482) | func starvingStorageRequestHandler(t *testPeer, requestId uint64, root c... function starvingAccountRequestHandler (line 486) | func starvingAccountRequestHandler(t *testPeer, requestId uint64, root c... function corruptAccountRequestHandler (line 494) | func corruptAccountRequestHandler(t *testPeer, requestId uint64, root co... function corruptStorageRequestHandler (line 508) | func corruptStorageRequestHandler(t *testPeer, requestId uint64, root co... function noProofStorageRequestHandler (line 521) | func noProofStorageRequestHandler(t *testPeer, requestId uint64, root co... function TestSyncBloatedProof (line 534) | func TestSyncBloatedProof(t *testing.T) { function setupSyncer (line 600) | func setupSyncer(peers ...*testPeer) *Syncer { function TestSync (line 611) | func TestSync(t *testing.T) { function TestSyncTinyTriePanic (line 640) | func TestSyncTinyTriePanic(t *testing.T) { function TestMultiSync (line 670) | func TestMultiSync(t *testing.T) { function TestSyncWithStorage (line 700) | func TestSyncWithStorage(t *testing.T) { function TestMultiSyncManyUseless (line 732) | func TestMultiSyncManyUseless(t *testing.T) { function TestMultiSyncManyUselessWithLowTimeout (line 780) | func TestMultiSyncManyUselessWithLowTimeout(t *testing.T) { function TestMultiSyncManyUnresponsive (line 832) | func TestMultiSyncManyUnresponsive(t *testing.T) { function checkStall (line 881) | func checkStall(t *testing.T, term func()) chan struct{} { function TestSyncBoundaryAccountTrie (line 897) | func TestSyncBoundaryAccountTrie(t *testing.T) { function TestSyncNoStorageAndOneCappedPeer (line 931) | func TestSyncNoStorageAndOneCappedPeer(t *testing.T) { function TestSyncNoStorageAndOneCodeCorruptPeer (line 972) | func TestSyncNoStorageAndOneCodeCorruptPeer(t *testing.T) { function TestSyncNoStorageAndOneAccountCorruptPeer (line 1009) | func TestSyncNoStorageAndOneAccountCorruptPeer(t *testing.T) { function TestSyncNoStorageAndOneCodeCappedPeer (line 1048) | func TestSyncNoStorageAndOneCodeCappedPeer(t *testing.T) { function TestSyncBoundaryStorageTrie (line 1096) | func TestSyncBoundaryStorageTrie(t *testing.T) { function TestSyncWithStorageAndOneCappedPeer (line 1132) | func TestSyncWithStorageAndOneCappedPeer(t *testing.T) { function TestSyncWithStorageAndCorruptPeer (line 1173) | func TestSyncWithStorageAndCorruptPeer(t *testing.T) { function TestSyncWithStorageAndNonProvingPeer (line 1211) | func TestSyncWithStorageAndNonProvingPeer(t *testing.T) { function TestSyncWithStorageMisbehavingProve (line 1252) | func TestSyncWithStorageMisbehavingProve(t *testing.T) { type kv (line 1281) | type kv struct type entrySlice (line 1286) | type entrySlice method Len (line 1288) | func (p entrySlice) Len() int { return len(p) } method Less (line 1289) | func (p entrySlice) Less(i, j int) bool { return bytes.Compare(p[i].k,... method Swap (line 1290) | func (p entrySlice) Swap(i, j int) { p[i], p[j] = p[j], p[i] } function key32 (line 1292) | func key32(i uint64) []byte { function getCodeHash (line 1312) | func getCodeHash(i uint64) []byte { function getCodeByHash (line 1318) | func getCodeByHash(hash common.Hash) []byte { function makeAccountTrieNoStorage (line 1331) | func makeAccountTrieNoStorage(n int) (*trie.Trie, entrySlice) { function makeBoundaryAccountTrie (line 1355) | func makeBoundaryAccountTrie(n int) (*trie.Trie, entrySlice) { function makeAccountTrieWithStorageWithUniqueStorage (line 1410) | func makeAccountTrieWithStorageWithUniqueStorage(accounts, slots int, co... function makeAccountTrieWithStorage (line 1449) | func makeAccountTrieWithStorage(accounts, slots int, code, boundary bool... function makeStorageTrieWithSeed (line 1498) | func makeStorageTrieWithSeed(n, seed uint64, db *trie.Database) (*trie.T... function makeBoundaryStorageTrie (line 1521) | func makeBoundaryStorageTrie(n int, db *trie.Database) (*trie.Trie, entr... function verifyTrie (line 1569) | func verifyTrie(db ethdb.KeyValueStore, root common.Hash, t *testing.T) { FILE: eth/state_accessor.go method stateAtBlock (line 36) | func (eth *Ethereum) stateAtBlock(block *types.Block, reexec uint64) (st... method statesInRange (line 117) | func (eth *Ethereum) statesInRange(fromBlock, toBlock *types.Block, reex... method stateAtTransaction (line 191) | func (eth *Ethereum) stateAtTransaction(block *types.Block, txIndex int,... FILE: eth/sync.go constant forceSyncCycle (line 35) | forceSyncCycle = 10 * time.Second constant defaultMinSyncPeers (line 36) | defaultMinSyncPeers = 5 constant txsyncPackSize (line 40) | txsyncPackSize = 100 * 1024 type txsync (line 43) | type txsync struct method syncTransactions (line 49) | func (h *handler) syncTransactions(p *eth.Peer) { method txsyncLoop64 (line 86) | func (h *handler) txsyncLoop64() { type chainSyncer (line 158) | type chainSyncer struct method handlePeerEvent (line 185) | func (cs *chainSyncer) handlePeerEvent(peer *eth.Peer) bool { method loop (line 195) | func (cs *chainSyncer) loop() { method nextSyncOp (line 238) | func (cs *chainSyncer) nextSyncOp() *chainSyncOp { method modeAndLocalHead (line 275) | func (cs *chainSyncer) modeAndLocalHead() (downloader.SyncMode, *big.I... method startSync (line 298) | func (cs *chainSyncer) startSync(op *chainSyncOp) { type chainSyncOp (line 167) | type chainSyncOp struct function newChainSyncer (line 175) | func newChainSyncer(handler *handler) *chainSyncer { function peerToSyncOp (line 270) | func peerToSyncOp(mode downloader.SyncMode, p *eth.Peer) *chainSyncOp { method doSync (line 304) | func (h *handler) doSync(op *chainSyncOp) error { FILE: eth/sync_test.go function TestFastSyncDisabling64 (line 31) | func TestFastSyncDisabling64(t *testing.T) { testFastSyncDisabling(t, 64) } function TestFastSyncDisabling65 (line 32) | func TestFastSyncDisabling65(t *testing.T) { testFastSyncDisabling(t, 65) } function testFastSyncDisabling (line 36) | func testFastSyncDisabling(t *testing.T, protocol uint) { FILE: eth/tracers/api.go constant defaultTraceTimeout (line 50) | defaultTraceTimeout = 5 * time.Second constant defaultTraceReexec (line 55) | defaultTraceReexec = uint64(128) type Backend (line 60) | type Backend interface type API (line 76) | type API struct method chainContext (line 111) | func (api *API) chainContext(ctx context.Context) core.ChainContext { method blockByNumber (line 117) | func (api *API) blockByNumber(ctx context.Context, number rpc.BlockNum... method blockByHash (line 130) | func (api *API) blockByHash(ctx context.Context, hash common.Hash) (*t... method blockByNumberAndHash (line 146) | func (api *API) blockByNumberAndHash(ctx context.Context, number rpc.B... method TraceChain (line 210) | func (api *API) TraceChain(ctx context.Context, start, end rpc.BlockNu... method traceChain (line 228) | func (api *API) traceChain(ctx context.Context, start, end *types.Bloc... method TraceBlockByNumber (line 385) | func (api *API) TraceBlockByNumber(ctx context.Context, number rpc.Blo... method TraceBlockByHash (line 395) | func (api *API) TraceBlockByHash(ctx context.Context, hash common.Hash... method TraceBlock (line 405) | func (api *API) TraceBlock(ctx context.Context, blob []byte, config *T... method TraceBlockFromFile (line 415) | func (api *API) TraceBlockFromFile(ctx context.Context, file string, c... method TraceBadBlock (line 426) | func (api *API) TraceBadBlock(ctx context.Context, hash common.Hash, c... method StandardTraceBlockToFile (line 438) | func (api *API) StandardTraceBlockToFile(ctx context.Context, hash com... method StandardTraceBadBlockToFile (line 449) | func (api *API) StandardTraceBadBlockToFile(ctx context.Context, hash ... method traceBlock (line 461) | func (api *API) traceBlock(ctx context.Context, block *types.Block, co... method standardTraceBlockToFile (line 546) | func (api *API) standardTraceBlockToFile(ctx context.Context, block *t... method TraceTransaction (line 676) | func (api *API) TraceTransaction(ctx context.Context, hash common.Hash... method TraceCall (line 711) | func (api *API) TraceCall(ctx context.Context, args ethapi.CallArgs, b... method traceTx (line 746) | func (api *API) traceTx(ctx context.Context, message core.Message, txc... function NewAPI (line 81) | func NewAPI(backend Backend) *API { type chainContext (line 85) | type chainContext struct method Engine (line 90) | func (context *chainContext) Engine() consensus.Engine { method GetHeader (line 94) | func (context *chainContext) GetHeader(hash common.Hash, number uint64... type TraceConfig (line 158) | type TraceConfig struct type StdTraceConfig (line 166) | type StdTraceConfig struct type txTraceContext (line 173) | type txTraceContext struct type txTraceResult (line 180) | type txTraceResult struct type blockTraceTask (line 187) | type blockTraceTask struct type blockTraceResult (line 195) | type blockTraceResult struct type txTraceTask (line 203) | type txTraceTask struct function containsTx (line 665) | func containsTx(block *types.Block, hash common.Hash) bool { function APIs (line 815) | func APIs(backend Backend) []rpc.API { FILE: eth/tracers/api_test.go type testBackend (line 53) | type testBackend struct method HeaderByHash (line 94) | func (b *testBackend) HeaderByHash(ctx context.Context, hash common.Ha... method HeaderByNumber (line 98) | func (b *testBackend) HeaderByNumber(ctx context.Context, number rpc.B... method BlockByHash (line 105) | func (b *testBackend) BlockByHash(ctx context.Context, hash common.Has... method BlockByNumber (line 109) | func (b *testBackend) BlockByNumber(ctx context.Context, number rpc.Bl... method GetTransaction (line 116) | func (b *testBackend) GetTransaction(ctx context.Context, txHash commo... method RPCGasCap (line 124) | func (b *testBackend) RPCGasCap() uint64 { method ChainConfig (line 128) | func (b *testBackend) ChainConfig() *params.ChainConfig { method Engine (line 132) | func (b *testBackend) Engine() consensus.Engine { method ChainDb (line 136) | func (b *testBackend) ChainDb() ethdb.Database { method StateAtBlock (line 140) | func (b *testBackend) StateAtBlock(ctx context.Context, block *types.B... method StateAtTransaction (line 148) | func (b *testBackend) StateAtTransaction(ctx context.Context, block *t... method StatesInRange (line 178) | func (b *testBackend) StatesInRange(ctx context.Context, fromBlock *ty... function newTestBackend (line 60) | func newTestBackend(t *testing.T, n int, gspec *core.Genesis, generator ... function TestTraceCall (line 194) | func TestTraceCall(t *testing.T) { function TestTraceTransaction (line 324) | func TestTraceTransaction(t *testing.T) { function TestTraceBlock (line 357) | func TestTraceBlock(t *testing.T) { type Account (line 468) | type Account struct type Accounts (line 473) | type Accounts method Len (line 475) | func (a Accounts) Len() int { return len(a) } method Swap (line 476) | func (a Accounts) Swap(i, j int) { a[i], a[j] = a[j], a[i] } method Less (line 477) | func (a Accounts) Less(i, j int) bool { return bytes.Compare(a[i].addr... function newAccounts (line 479) | func newAccounts(n int) (accounts Accounts) { FILE: eth/tracers/internal/tracers/assets.go function bindataRead (line 28) | func bindataRead(data []byte, name string) ([]byte, error) { type asset (line 48) | type asset struct type bindataFileInfo (line 54) | type bindataFileInfo struct method Name (line 61) | func (fi bindataFileInfo) Name() string { method Size (line 64) | func (fi bindataFileInfo) Size() int64 { method Mode (line 67) | func (fi bindataFileInfo) Mode() os.FileMode { method ModTime (line 70) | func (fi bindataFileInfo) ModTime() time.Time { method IsDir (line 73) | func (fi bindataFileInfo) IsDir() bool { method Sys (line 76) | func (fi bindataFileInfo) Sys() interface{} { function _4byte_tracerJsBytes (line 82) | func _4byte_tracerJsBytes() ([]byte, error) { function _4byte_tracerJs (line 89) | func _4byte_tracerJs() (*asset, error) { function bigram_tracerJsBytes (line 102) | func bigram_tracerJsBytes() ([]byte, error) { function bigram_tracerJs (line 109) | func bigram_tracerJs() (*asset, error) { function call_tracerJsBytes (line 122) | func call_tracerJsBytes() ([]byte, error) { function call_tracerJs (line 129) | func call_tracerJs() (*asset, error) { function evmdis_tracerJsBytes (line 142) | func evmdis_tracerJsBytes() ([]byte, error) { function evmdis_tracerJs (line 149) | func evmdis_tracerJs() (*asset, error) { function noop_tracerJsBytes (line 162) | func noop_tracerJsBytes() ([]byte, error) { function noop_tracerJs (line 169) | func noop_tracerJs() (*asset, error) { function opcount_tracerJsBytes (line 182) | func opcount_tracerJsBytes() ([]byte, error) { function opcount_tracerJs (line 189) | func opcount_tracerJs() (*asset, error) { function prestate_tracerJsBytes (line 202) | func prestate_tracerJsBytes() ([]byte, error) { function prestate_tracerJs (line 209) | func prestate_tracerJs() (*asset, error) { function trigram_tracerJsBytes (line 222) | func trigram_tracerJsBytes() ([]byte, error) { function trigram_tracerJs (line 229) | func trigram_tracerJs() (*asset, error) { function unigram_tracerJsBytes (line 242) | func unigram_tracerJsBytes() ([]byte, error) { function unigram_tracerJs (line 249) | func unigram_tracerJs() (*asset, error) { function Asset (line 263) | func Asset(name string) ([]byte, error) { function AssetString (line 276) | func AssetString(name string) (string, error) { function MustAsset (line 283) | func MustAsset(name string) []byte { function MustAssetString (line 294) | func MustAssetString(name string) string { function AssetInfo (line 301) | func AssetInfo(name string) (os.FileInfo, error) { function AssetDigest (line 315) | func AssetDigest(name string) ([sha256.Size]byte, error) { function Digests (line 328) | func Digests() (map[string][sha256.Size]byte, error) { function AssetNames (line 341) | func AssetNames() []string { constant AssetDebug (line 363) | AssetDebug = false function AssetDir (line 378) | func AssetDir(name string) ([]string, error) { type bintree (line 400) | type bintree struct function RestoreAsset (line 418) | func RestoreAsset(dir, name string) error { function RestoreAssets (line 439) | func RestoreAssets(dir, name string) error { function _filePath (line 455) | func _filePath(dir, name string) string { FILE: eth/tracers/tracer.go constant bigIntegerJS (line 38) | bigIntegerJS = `var bigInt=function(undefined){"use strict";var BASE=1e7... function makeSlice (line 46) | func makeSlice(ptr unsafe.Pointer, size uint) []byte { function popSlice (line 57) | func popSlice(ctx *duktape.Context) []byte { function pushBigInt (line 64) | func pushBigInt(n *big.Int, ctx *duktape.Context) { type opWrapper (line 71) | type opWrapper struct method pushObject (line 77) | func (ow *opWrapper) pushObject(vm *duktape.Context) { type memoryWrapper (line 91) | type memoryWrapper struct method slice (line 96) | func (mw *memoryWrapper) slice(begin, end int64) []byte { method getUint (line 116) | func (mw *memoryWrapper) getUint(addr int64) *big.Int { method pushObject (line 128) | func (mw *memoryWrapper) pushObject(vm *duktape.Context) { type stackWrapper (line 154) | type stackWrapper struct method peek (line 159) | func (sw *stackWrapper) peek(idx int) *big.Int { method pushObject (line 171) | func (sw *stackWrapper) pushObject(vm *duktape.Context) { type dbWrapper (line 189) | type dbWrapper struct method pushObject (line 195) | func (dw *dbWrapper) pushObject(vm *duktape.Context) { type contractWrapper (line 244) | type contractWrapper struct method pushObject (line 250) | func (cw *contractWrapper) pushObject(vm *duktape.Context) { type Tracer (line 289) | type Tracer struct method Stop (line 501) | func (jst *Tracer) Stop(err error) { method call (line 508) | func (jst *Tracer) call(method string, args ...string) (json.RawMessag... method CaptureStart (line 530) | func (jst *Tracer) CaptureStart(env *vm.EVM, from common.Address, to c... method CaptureState (line 555) | func (jst *Tracer) CaptureState(env *vm.EVM, pc uint64, op vm.OpCode, ... method CaptureFault (line 587) | func (jst *Tracer) CaptureFault(env *vm.EVM, pc uint64, op vm.OpCode, ... method CaptureEnd (line 601) | func (jst *Tracer) CaptureEnd(output []byte, gasUsed uint64, t time.Du... method GetResult (line 612) | func (jst *Tracer) GetResult() (json.RawMessage, error) { function New (line 318) | func New(code string, txCtx vm.TxContext) (*Tracer, error) { function wrapError (line 525) | func wrapError(context string, err error) error { FILE: eth/tracers/tracer_test.go type account (line 32) | type account struct method SubBalance (line 34) | func (account) SubBalance(amount *big.Int) {} method AddBalance (line 35) | func (account) AddBalance(amount *big.Int) {} method SetAddress (line 36) | func (account) SetAddress(common.Address) {} method Value (line 37) | func (account) Value() *big.Int { ... method SetBalance (line 38) | func (account) SetBalance(*big.Int) {} method SetNonce (line 39) | func (account) SetNonce(uint64) {} method Balance (line 40) | func (account) Balance() *big.Int { ... method Address (line 41) | func (account) Address() common.Address { ... method ReturnGas (line 42) | func (account) ReturnGas(*big.Int) {} method SetCode (line 43) | func (account) SetCode(common.Hash, []byte) {} method ForEachStorage (line 44) | func (account) ForEachStorage(cb func(key, value common.Hash) bool) {} type dummyStatedb (line 46) | type dummyStatedb struct method GetRefund (line 50) | func (*dummyStatedb) GetRefund() uint64 { return... method GetBalance (line 51) | func (*dummyStatedb) GetBalance(addr common.Address) *big.Int { return... type vmContext (line 53) | type vmContext struct function testCtx (line 58) | func testCtx() *vmContext { function runTrace (line 62) | func runTrace(tracer *Tracer, vmctx *vmContext) (json.RawMessage, error) { function TestTracer (line 80) | func TestTracer(t *testing.T) { function TestHalt (line 127) | func TestHalt(t *testing.T) { function TestHaltBetweenSteps (line 147) | func TestHaltBetweenSteps(t *testing.T) { function TestNoStepExec (line 170) | func TestNoStepExec(t *testing.T) { FILE: eth/tracers/tracers.go function camel (line 31) | func camel(str string) string { function init (line 40) | func init() { function tracer (line 48) | func tracer(name string) (string, bool) { FILE: eth/tracers/tracers_test.go type callTrace (line 94) | type callTrace struct type callContext (line 107) | type callContext struct type callTracerTest (line 116) | type callTracerTest struct function TestPrestateTracerCreate2 (line 123) | func TestPrestateTracerCreate2(t *testing.T) { function TestCallTracer (line 206) | func TestCallTracer(t *testing.T) { function jsonEqual (line 288) | func jsonEqual(x, y interface{}) bool { FILE: ethclient/ethclient.go type Client (line 35) | type Client struct method Close (line 57) | func (ec *Client) Close() { method ChainID (line 64) | func (ec *Client) ChainID(ctx context.Context) (*big.Int, error) { method BlockByHash (line 77) | func (ec *Client) BlockByHash(ctx context.Context, hash common.Hash) (... method BlockByNumber (line 86) | func (ec *Client) BlockByNumber(ctx context.Context, number *big.Int) ... method BlockNumber (line 91) | func (ec *Client) BlockNumber(ctx context.Context) (uint64, error) { method getBlock (line 103) | func (ec *Client) getBlock(ctx context.Context, method string, args ..... method HeaderByHash (line 169) | func (ec *Client) HeaderByHash(ctx context.Context, hash common.Hash) ... method HeaderByNumber (line 180) | func (ec *Client) HeaderByNumber(ctx context.Context, number *big.Int)... method TransactionByHash (line 208) | func (ec *Client) TransactionByHash(ctx context.Context, hash common.H... method TransactionSender (line 230) | func (ec *Client) TransactionSender(ctx context.Context, tx *types.Tra... method TransactionCount (line 250) | func (ec *Client) TransactionCount(ctx context.Context, blockHash comm... method TransactionInBlock (line 257) | func (ec *Client) TransactionInBlock(ctx context.Context, blockHash co... method TransactionReceipt (line 276) | func (ec *Client) TransactionReceipt(ctx context.Context, txHash commo... method SyncProgress (line 308) | func (ec *Client) SyncProgress(ctx context.Context) (*ethereum.SyncPro... method SubscribeNewHead (line 333) | func (ec *Client) SubscribeNewHead(ctx context.Context, ch chan<- *typ... method NetworkID (line 340) | func (ec *Client) NetworkID(ctx context.Context) (*big.Int, error) { method BalanceAt (line 354) | func (ec *Client) BalanceAt(ctx context.Context, account common.Addres... method StorageAt (line 362) | func (ec *Client) StorageAt(ctx context.Context, account common.Addres... method CodeAt (line 370) | func (ec *Client) CodeAt(ctx context.Context, account common.Address, ... method NonceAt (line 378) | func (ec *Client) NonceAt(ctx context.Context, account common.Address,... method FilterLogs (line 387) | func (ec *Client) FilterLogs(ctx context.Context, q ethereum.FilterQue... method SubscribeFilterLogs (line 398) | func (ec *Client) SubscribeFilterLogs(ctx context.Context, q ethereum.... method PendingBalanceAt (line 430) | func (ec *Client) PendingBalanceAt(ctx context.Context, account common... method PendingStorageAt (line 437) | func (ec *Client) PendingStorageAt(ctx context.Context, account common... method PendingCodeAt (line 444) | func (ec *Client) PendingCodeAt(ctx context.Context, account common.Ad... method PendingNonceAt (line 452) | func (ec *Client) PendingNonceAt(ctx context.Context, account common.A... method PendingTransactionCount (line 459) | func (ec *Client) PendingTransactionCount(ctx context.Context) (uint, ... method CallContract (line 475) | func (ec *Client) CallContract(ctx context.Context, msg ethereum.CallM... method PendingCallContract (line 486) | func (ec *Client) PendingCallContract(ctx context.Context, msg ethereu... method SuggestGasPrice (line 497) | func (ec *Client) SuggestGasPrice(ctx context.Context) (*big.Int, erro... method EstimateGas (line 509) | func (ec *Client) EstimateGas(ctx context.Context, msg ethereum.CallMs... method SendTransaction (line 522) | func (ec *Client) SendTransaction(ctx context.Context, tx *types.Trans... function Dial (line 40) | func Dial(rawurl string) (*Client, error) { function DialContext (line 44) | func DialContext(ctx context.Context, rawurl string) (*Client, error) { function NewClient (line 53) | func NewClient(c *rpc.Client) *Client { type rpcBlock (line 97) | type rpcBlock struct type rpcTransaction (line 189) | type rpcTransaction struct method UnmarshalJSON (line 200) | func (tx *rpcTransaction) UnmarshalJSON(msg []byte) error { type txExtraInfo (line 194) | type txExtraInfo struct function toBlockNumArg (line 287) | func toBlockNumArg(number *big.Int) string { type rpcProgress (line 298) | type rpcProgress struct function toFilterArg (line 406) | func toFilterArg(q ethereum.FilterQuery) (interface{}, error) { function toCallArg (line 530) | func toCallArg(msg ethereum.CallMsg) interface{} { FILE: ethclient/ethclient_test.go function TestToFilterArg (line 58) | func TestToFilterArg(t *testing.T) { function newTestBackend (line 190) | func newTestBackend(t *testing.T) (*node.Node, []*types.Block) { function generateTestChain (line 215) | func generateTestChain() (*core.Genesis, []*types.Block) { function TestEthClient (line 235) | func TestEthClient(t *testing.T) { function testHeader (line 276) | func testHeader(t *testing.T, chain []*types.Block, client *rpc.Client) { function testBalanceAt (line 316) | func testBalanceAt(t *testing.T, client *rpc.Client) { function testTransactionInBlockInterrupted (line 357) | func testTransactionInBlockInterrupted(t *testing.T, client *rpc.Client) { function testChainID (line 381) | func testChainID(t *testing.T, client *rpc.Client) { function testGetBlock (line 392) | func testGetBlock(t *testing.T, client *rpc.Client) { function testStatusFunctions (line 436) | func testStatusFunctions(t *testing.T, client *rpc.Client) { function testCallContract (line 465) | func testCallContract(t *testing.T, client *rpc.Client) { function testAtFunctions (line 493) | func testAtFunctions(t *testing.T, client *rpc.Client) { function sendTransaction (line 556) | func sendTransaction(ec *Client) error { FILE: ethclient/signer.go type senderFromServer (line 30) | type senderFromServer struct method Equal (line 42) | func (s *senderFromServer) Equal(other types.Signer) bool { method Sender (line 47) | func (s *senderFromServer) Sender(tx *types.Transaction) (common.Addre... method ChainID (line 54) | func (s *senderFromServer) ChainID() *big.Int { method Hash (line 57) | func (s *senderFromServer) Hash(tx *types.Transaction) common.Hash { method SignatureValues (line 60) | func (s *senderFromServer) SignatureValues(tx *types.Transaction, sig ... function setSenderFromServer (line 37) | func setSenderFromServer(tx *types.Transaction, addr common.Address, blo... FILE: ethstats/ethstats.go constant historyUpdateRange (line 54) | historyUpdateRange = 50 constant txChanSize (line 58) | txChanSize = 4096 constant chainHeadChanSize (line 60) | chainHeadChanSize = 10 type backend (line 64) | type backend interface type fullNodeBackend (line 76) | type fullNodeBackend interface type Service (line 86) | type Service struct method Start (line 171) | func (s *Service) Start() error { method Stop (line 184) | func (s *Service) Stop() error { method loop (line 193) | func (s *Service) loop(chainHeadCh chan core.ChainHeadEvent, txEventCh... method readLoop (line 334) | func (s *Service) readLoop(conn *connWrapper) { method login (line 443) | func (s *Service) login(conn *connWrapper) error { method report (line 490) | func (s *Service) report(conn *connWrapper) error { method reportLatency (line 508) | func (s *Service) reportLatency(conn *connWrapper) error { method reportBlock (line 577) | func (s *Service) reportBlock(conn *connWrapper, block *types.Block) e... method assembleBlockStats (line 596) | func (s *Service) assembleBlockStats(block *types.Block) *blockStats { method reportHistory (line 652) | func (s *Service) reportHistory(conn *connWrapper, list []uint64) error { method reportPending (line 714) | func (s *Service) reportPending(conn *connWrapper) error { method reportStats (line 745) | func (s *Service) reportStats(conn *connWrapper) error { type connWrapper (line 113) | type connWrapper struct method WriteJSON (line 125) | func (w *connWrapper) WriteJSON(v interface{}) error { method ReadJSON (line 133) | func (w *connWrapper) ReadJSON(v interface{}) error { method Close (line 141) | func (w *connWrapper) Close() error { function newConnectionWrapper (line 120) | func newConnectionWrapper(conn *websocket.Conn) *connWrapper { function New (line 148) | func New(node *node.Node, backend backend, engine consensus.Engine, url ... type nodeInfo (line 422) | type nodeInfo struct type authMsg (line 436) | type authMsg struct type blockStats (line 544) | type blockStats struct type txStats (line 561) | type txStats struct type uncleStats (line 567) | type uncleStats method MarshalJSON (line 569) | func (s uncleStats) MarshalJSON() ([]byte, error) { type pendStats (line 708) | type pendStats struct type nodeStats (line 733) | type nodeStats struct FILE: ffi-toolkit/src/lib.rs function rust_str_to_c_str (line 8) | pub fn rust_str_to_c_str>(s: T) -> *mut libc::c_char { function free_c_str (line 13) | pub unsafe fn free_c_str(ptr: *mut libc::c_char) { function raw_ptr (line 20) | pub fn raw_ptr(thing: T) -> *mut T { function c_str_to_rust_str (line 25) | pub unsafe fn c_str_to_rust_str<'a>(x: *const libc::c_char) -> Cow<'a, s... function cast_const (line 35) | pub unsafe fn cast_const<'a, T>(x: *mut T) -> &'a T { function c_str_to_pbuf (line 41) | pub unsafe fn c_str_to_pbuf(x: *const libc::c_char) -> PathBuf { FILE: fil-proofs-param/src/bin/fakeipfsadd.rs type Cli (line 15) | enum Cli { method file_path (line 25) | fn file_path(&self) -> &str { function main (line 32) | pub fn main() { FILE: fil-proofs-param/src/bin/paramcache.rs function cache_porep_params (line 27) | fn cache_porep_params(porep_config: PoR... function cache_winning_post_params (line 64) | fn cache_winning_post_params(post_confi... function cache_window_post_params (line 90) | fn cache_window_post_params(post_config... type Opt (line 124) | struct Opt { function generate_params_post (line 143) | fn generate_params_post(sector_size: u64, api_version: ApiVersion) { function generate_params_porep (line 175) | fn generate_params_porep(sector_size: u64, api_version: ApiVersion) { function main (line 194) | pub fn main() { FILE: fil-proofs-param/src/bin/paramfetch.rs constant DEFAULT_JSON (line 34) | const DEFAULT_JSON: &str = include_str!("../../parameters.json"); constant DEFAULT_IPGET_VERSION (line 35) | const DEFAULT_IPGET_VERSION: &str = "v0.6.0"; function ipget_dir (line 38) | fn ipget_dir(version: &str) -> String { function ipget_path (line 43) | fn ipget_path(version: &str) -> String { type FetchProgress (line 48) | struct FetchProgress { method read (line 54) | fn read(&mut self, buf: &mut [u8]) -> io::Result { function new (line 63) | fn new(reader: R, size: u64) -> Self { function download_ipget (line 74) | fn download_ipget(version: &str, verbose: bool) -> Result<()> { function get_filenames_requiring_download (line 149) | fn get_filenames_requiring_download( function download_file_with_ipget (line 186) | fn download_file_with_ipget( type Cli (line 220) | struct Cli { function main (line 276) | pub fn main() { FILE: fil-proofs-param/src/bin/parampublish.rs constant DEFAULT_SECTOR_SIZES (line 37) | const DEFAULT_SECTOR_SIZES: [u64; 5] = [ type FileInfo (line 46) | struct FileInfo { function human_size (line 55) | fn human_size(sector_size: u64) -> String { function is_well_formed_filename (line 60) | fn is_well_formed_filename(filename: &str) -> bool { function get_filenames_in_cache_dir (line 81) | fn get_filenames_in_cache_dir() -> Vec { function publish_file (line 102) | fn publish_file(ipfs_bin: &str, filename: &str) -> Result { function write_param_map_to_disk (line 121) | fn write_param_map_to_disk(param_map: &ParameterMap, json_path: &str) ->... type Cli (line 129) | struct Cli { function main (line 155) | pub fn main() { FILE: fil-proofs-param/tests/paramfetch/mod.rs function rand_bytes_with_blake2b (line 20) | fn rand_bytes_with_blake2b() -> Result<(Vec, String), FailureError> { function nothing_to_fetch_if_cache_fully_hydrated (line 36) | fn nothing_to_fetch_if_cache_fully_hydrated() -> Result<(), FailureError> { function prompts_to_download_if_file_in_manifest_is_missing (line 67) | fn prompts_to_download_if_file_in_manifest_is_missing() -> Result<(), Fa... function prompts_to_download_if_file_checksum_does_not_match_manifest (line 94) | fn prompts_to_download_if_file_checksum_does_not_match_manifest() -> Res... function fetches_vk_even_if_sector_size_does_not_match (line 126) | fn fetches_vk_even_if_sector_size_does_not_match() -> Result<(), Failure... function invalid_json_path_produces_error (line 163) | fn invalid_json_path_produces_error() -> Result<(), FailureError> { function invalid_json_produces_error (line 175) | fn invalid_json_produces_error() -> Result<(), FailureError> { function no_json_path_uses_default_manifest (line 191) | fn no_json_path_uses_default_manifest() -> Result<(), FailureError> { FILE: fil-proofs-param/tests/paramfetch/session.rs type ParamFetchSessionBuilder (line 12) | pub struct ParamFetchSessionBuilder { method new (line 21) | pub fn new(manifest: Option) -> ParamFetchSessionBuilder { method with_session_timeout_ms (line 34) | pub fn with_session_timeout_ms(mut self, timeout_ms: u64) -> ParamFetc... method whitelisted_sector_sizes (line 40) | pub fn whitelisted_sector_sizes( method with_file_and_bytes (line 49) | pub fn with_file_and_bytes, R: Read>( method build (line 65) | pub fn build(self) -> ParamFetchSession { type ParamFetchSession (line 108) | pub struct ParamFetchSession { method exp_string (line 116) | pub fn exp_string( FILE: fil-proofs-param/tests/parampublish/prompts_to_publish.rs function ignores_files_unrecognized_extensions (line 7) | fn ignores_files_unrecognized_extensions() -> Result<(), FailureError> { function displays_sector_size_in_prompt (line 29) | fn displays_sector_size_in_prompt() -> Result<(), FailureError> { function no_assets_no_prompt (line 54) | fn no_assets_no_prompt() -> Result<(), FailureError> { FILE: fil-proofs-param/tests/parampublish/read_metadata_files.rs function fails_if_missing_metadata_file (line 6) | fn fails_if_missing_metadata_file() -> Result<(), FailureError> { function fails_if_malformed_metadata_file (line 22) | fn fails_if_malformed_metadata_file() -> Result<(), FailureError> { FILE: fil-proofs-param/tests/parampublish/support/session.rs type ParamPublishSessionBuilder (line 14) | pub struct ParamPublishSessionBuilder { method new (line 24) | pub fn new() -> ParamPublishSessionBuilder { method with_ipfs_bin (line 43) | pub fn with_ipfs_bin(mut self, ipfs_bin: &FakeIpfsBin) -> ParamPublish... method with_files (line 50) | pub fn with_files>(self, filenames: &[P]) -> ParamPubli... method with_file (line 56) | pub fn with_file>(mut self, filename: P) -> ParamPublis... method with_file_and_bytes (line 71) | pub fn with_file_and_bytes, R: Read>( method with_metadata (line 88) | pub fn with_metadata>( method with_session_timeout_ms (line 100) | pub fn with_session_timeout_ms(mut self, timeout_ms: u64) -> ParamPubl... method list_all_files (line 106) | pub fn list_all_files(mut self) -> ParamPublishSessionBuilder { method write_manifest_to (line 112) | pub fn write_manifest_to(mut self, manifest_dest: PathBuf) -> ParamPub... method build (line 118) | pub fn build(self) -> (ParamPublishSession, Vec) { type ParamPublishSession (line 156) | pub struct ParamPublishSession { method send_line (line 163) | pub fn send_line(&mut self, line: &str) -> Result Result<(), failure::Error> { function filename_to_checksum (line 70) | fn filename_to_checksum>( FILE: fil-proofs-param/tests/support/mod.rs type FakeIpfsBin (line 14) | pub struct FakeIpfsBin { method new (line 19) | pub fn new() -> FakeIpfsBin { method compute_checksum (line 25) | pub fn compute_checksum>(&self, path: P) -> Result &Path { function target_dir (line 48) | pub fn target_dir() -> PathBuf { function cargo_bin (line 62) | pub fn cargo_bin>(name: S) -> PathBuf { function spawn_bash_with_retries (line 67) | pub fn spawn_bash_with_retries( function tmp_manifest (line 87) | pub fn tmp_manifest( FILE: fil-proofs-tooling/src/bin/benchy/hash_fns.rs function blake2s_count (line 10) | fn blake2s_count(bytes: usize) -> anyhow::Result { function sha256_count (line 46) | fn sha256_count(bytes: usize) -> anyhow::Result { type Report (line 75) | struct Report { function run (line 81) | pub fn run() -> anyhow::Result<()> { FILE: fil-proofs-tooling/src/bin/benchy/main.rs function main (line 21) | fn main() -> Result<()> { FILE: fil-proofs-tooling/src/bin/benchy/merkleproofs.rs function generate_proofs (line 15) | fn generate_proofs( function run_merkleproofs_bench (line 67) | pub fn run_merkleproofs_bench( function run (line 104) | pub fn run(size: usize, proofs_count: usize, validate: bool) -> Result<(... FILE: fil-proofs-tooling/src/bin/benchy/prodbench.rs constant SEED (line 29) | const SEED: [u8; 16] = [ type ProdbenchTree (line 33) | type ProdbenchTree = DefaultOctTree; type ProdbenchReport (line 36) | pub struct ProdbenchReport { type ProdbenchInputs (line 42) | pub struct ProdbenchInputs { method sector_size_bytes (line 56) | pub fn sector_size_bytes(&self) -> u64 { method api_version (line 59) | pub fn api_version(&self) -> ApiVersion { type ProdbenchOutputs (line 65) | pub struct ProdbenchOutputs { function augment_with_op_measurements (line 101) | fn augment_with_op_measurements(mut _output: &mut ProdbenchOutputs) {} function augment_with_op_measurements (line 104) | fn augment_with_op_measurements(mut output: &mut ProdbenchOutputs) { function configure_global_config (line 160) | fn configure_global_config(inputs: &ProdbenchInputs) { function run (line 175) | pub fn run( type CircuitOutputs (line 260) | struct CircuitOutputs { function run_measure_circuits (line 264) | fn run_measure_circuits(i: &ProdbenchInputs) -> CircuitOutputs { function measure_porep_circuit (line 270) | fn measure_porep_circuit(i: &ProdbenchInputs) -> usize { function generate_params (line 300) | fn generate_params(i: &ProdbenchInputs) { function cache_porep_params (line 323) | fn cache_porep_params(porep_config: PoRepConfig) { FILE: fil-proofs-tooling/src/bin/benchy/stacked.rs function dump_proof_bytes (line 32) | fn dump_proof_bytes( type Params (line 47) | struct Params { function generate_report (line 75) | fn generate_report(params: Params, cache_dir: &TempDir) -> a... type CircuitWorkMeasurement (line 310) | struct CircuitWorkMeasurement { function do_circuit_work (line 315) | fn do_circuit_work( type Inputs (line 426) | struct Inputs { method from (line 62) | fn from(p: Params) -> Self { type Outputs (line 438) | struct Outputs { type Report (line 463) | struct Report { method print (line 470) | pub fn print(&self) { type RunOpts (line 476) | pub struct RunOpts { function run (line 492) | pub fn run(opts: RunOpts) -> anyhow::Result<()> { FILE: fil-proofs-tooling/src/bin/benchy/window_post.rs constant SECTOR_ID (line 26) | const SECTOR_ID: u64 = 0; type Inputs (line 30) | struct Inputs { type Outputs (line 36) | struct Outputs { type Report (line 57) | struct Report { method print (line 64) | pub fn print(&self) { function run_window_post_bench (line 70) | pub fn run_window_post_bench( function run (line 281) | pub fn run(sector_size: usize) -> anyhow::Result<()> { FILE: fil-proofs-tooling/src/bin/benchy/winning_post.rs type Inputs (line 19) | struct Inputs { type Outputs (line 25) | struct Outputs { type Report (line 36) | struct Report { method print (line 43) | pub fn print(&self) { function run_fallback_post_bench (line 49) | pub fn run_fallback_post_bench( function run (line 129) | pub fn run(sector_size: usize, api_version: ApiVersion) -> anyhow::Resul... FILE: fil-proofs-tooling/src/bin/check_parameters/main.rs function run_map (line 10) | fn run_map(parameter_file: &PathBuf) -> Result> { function main (line 14) | fn main() -> Result<()> { FILE: fil-proofs-tooling/src/bin/circuitinfo/main.rs type CircuitInfo (line 21) | struct CircuitInfo { function circuit_info (line 26) | fn circuit_info>(circuit: C) -> CircuitInfo { function get_porep_info (line 38) | fn get_porep_info(porep_config: PoRepCo... function get_winning_post_info (line 57) | fn get_winning_post_info(post_config: &... function get_window_post_info (line 71) | fn get_window_post_info(post_config: &P... type Opt (line 87) | struct Opt { function winning_post_info (line 100) | fn winning_post_info(sector_size: u64, api_version: ApiVersion) -> Circu... function window_post_info (line 115) | fn window_post_info(sector_size: u64, api_version: ApiVersion) -> Circui... function porep_info (line 134) | fn porep_info(sector_size: u64, api_version: ApiVersion) -> (CircuitInfo... function main (line 156) | pub fn main() { FILE: fil-proofs-tooling/src/bin/fdlimit/main.rs function main (line 3) | fn main() -> Result<()> { FILE: fil-proofs-tooling/src/bin/gen_graph_cache/main.rs constant PARENT_CACHE_JSON_OUTPUT (line 17) | const PARENT_CACHE_JSON_OUTPUT: &str = "./parent_cache.json"; type ParentCacheSummaryMap (line 19) | pub type ParentCacheSummaryMap = BTreeMap; type ParentCacheSummary (line 22) | pub struct ParentCacheSummary { function gen_graph_cache (line 27) | fn gen_graph_cache( function main (line 71) | fn main() -> Result<()> { FILE: fil-proofs-tooling/src/bin/gpu-cpu-test/main.rs constant FIXED_API_VERSION (line 23) | const FIXED_API_VERSION: ApiVersion = ApiVersion::V1_0_0; type MerkleTree (line 25) | type MerkleTree = SectorShape8MiB; constant SECTOR_SIZE (line 26) | const SECTOR_SIZE: u64 = SECTOR_SIZE_8_MIB; constant TIMEOUT (line 27) | const TIMEOUT: u64 = 5 * 60; constant POST_CONFIG (line 28) | const POST_CONFIG: PoStConfig = PoStConfig { type RunInfo (line 46) | pub struct RunInfo { function colored_with_thread (line 51) | pub fn colored_with_thread( function generate_post (line 71) | fn generate_post(priv_replica_info: &[(SectorId, PrivateReplicaInfo Child { function main (line 229) | fn main() { FILE: fil-proofs-tooling/src/bin/micro.rs type Interval (line 11) | struct Interval { type Point (line 19) | struct Point { type CriterionResult (line 26) | struct CriterionResult { function make_detail_re (line 41) | fn make_detail_re(name: &str) -> Regex { function parse_criterion_out (line 46) | fn parse_criterion_out(s: impl AsRef) -> Result String { function throughput_val (line 233) | fn throughput_val(s: &str) -> f64 { function time_to_us (line 241) | fn time_to_us(s: &str) -> f64 { function run_benches (line 257) | fn run_benches(mut args: Vec) -> Result<()> { function main (line 297) | fn main() { function test_time_to_us (line 314) | fn test_time_to_us() { function test_throughput_uom (line 320) | fn test_throughput_uom() { function test_parse_criterion_no_throughput (line 326) | fn test_parse_criterion_no_throughput() { function test_parse_criterion_with_throughput (line 393) | fn test_parse_criterion_with_throughput() { FILE: fil-proofs-tooling/src/bin/settings/main.rs function main (line 5) | fn main() -> Result<()> { FILE: fil-proofs-tooling/src/bin/update_tree_r_cache/main.rs function get_tree_r_info (line 29) | fn get_tree_r_info( function get_tree_r_last_root (line 62) | fn get_tree_r_last_root( function get_persistent_aux (line 108) | fn get_persistent_aux(cache: &PathBuf) -> Result( function run_rebuild (line 170) | fn run_rebuild( function run_inspect (line 184) | fn run_inspect(sector_size: usize, cache: PathBuf, replica_path: PathBuf... function run_verify (line 210) | fn run_verify(sector_size: usize, cache: PathBuf, replica_path: PathBuf)... function main (line 313) | fn main() -> Result<()> { FILE: fil-proofs-tooling/src/measure.rs type FuncMeasurement (line 6) | pub struct FuncMeasurement { function measure (line 12) | pub fn measure(f: F) -> Result> FILE: fil-proofs-tooling/src/metadata.rs type Metadata (line 9) | pub struct Metadata { function wrap (line 16) | pub fn wrap(benchmarks: T) -> Result { type GitMetadata (line 28) | pub struct GitMetadata { method new (line 34) | pub fn new() -> Result { type SystemMetadata (line 54) | pub struct SystemMetadata { method new (line 69) | pub fn new() -> Result { function test_metadata (line 134) | fn test_metadata() { FILE: fil-proofs-tooling/src/shared.rs constant PROVER_ID (line 20) | pub const PROVER_ID: [u8; 32] = [9; 32]; constant RANDOMNESS (line 21) | pub const RANDOMNESS: [u8; 32] = [44; 32]; constant TICKET_BYTES (line 22) | pub const TICKET_BYTES: [u8; 32] = [1; 32]; type PreCommitReplicaOutput (line 24) | pub struct PreCommitReplicaOutput { function create_piece (line 30) | pub fn create_piece(piece_bytes: UnpaddedBytesAmount) -> NamedTempFile { function create_replica (line 68) | pub fn create_replica( function create_replicas (line 84) | pub fn create_replicas( FILE: filecoin-hashers/src/blake2s.rs type Blake2sHasher (line 25) | pub struct Blake2sHasher {} type Domain (line 28) | type Domain = Blake2sDomain; type Function (line 29) | type Function = Blake2sFunction; method name (line 31) | fn name() -> String { type Blake2sFunction (line 37) | pub struct Blake2sFunction(State); method hash (line 186) | fn hash(data: &[u8]) -> Blake2sDomain { method hash2 (line 195) | fn hash2(a: &Blake2sDomain, b: &Blake2sDomain) -> Blake2sDomain { method hash_multi_leaf_circuit (line 205) | fn hash_multi_leaf_circuit>( method hash_leaf_bits_circuit (line 222) | fn hash_leaf_bits_circuit>( method hash_circuit (line 243) | fn hash_circuit>( method hash2_circuit (line 253) | fn hash2_circuit( method hash (line 283) | fn hash(&mut self) -> Blake2sDomain { method reset (line 288) | fn reset(&mut self) { method leaf (line 292) | fn leaf(&mut self, leaf: Blake2sDomain) -> Blake2sDomain { method node (line 296) | fn node(&mut self, left: Blake2sDomain, right: Blake2sDomain, _height:... method multi_node (line 302) | fn multi_node(&mut self, parts: &[Blake2sDomain], _height: usize) -> B... method default (line 40) | fn default() -> Self { method eq (line 46) | fn eq(&self, other: &Self) -> bool { method fmt (line 54) | fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { method write (line 61) | fn write(&mut self, msg: &[u8]) { method finish (line 66) | fn finish(&self) -> u64 { type Blake2sDomain (line 74) | pub struct Blake2sDomain(pub [u8; 32]); method as_ref (line 77) | fn as_ref(&self) -> &Self { method trim_to_fr32 (line 83) | pub fn trim_to_fr32(&mut self) { method as_ref (line 90) | fn as_ref(&self) -> &[u8] { method hash (line 96) | fn hash(&self, state: &mut Blake2sFunction) { method from (line 102) | fn from(val: Fr) -> Self { method from (line 113) | fn from(val: FrRepr) -> Self { method from (line 312) | fn from(val: [u8; 32]) -> Self { method byte_len (line 122) | fn byte_len() -> usize { method from_slice (line 126) | fn from_slice(bytes: &[u8]) -> Self { method copy_to_slice (line 133) | fn copy_to_slice(&self, bytes: &mut [u8]) { method from (line 139) | fn from(val: Blake2sDomain) -> Self { method into_bytes (line 148) | fn into_bytes(&self) -> Vec { method try_from_bytes (line 152) | fn try_from_bytes(raw: &[u8]) -> anyhow::Result { method write_bytes (line 163) | fn write_bytes(&self, dest: &mut [u8]) -> anyhow::Result<()> { method random (line 169) | fn random(rng: &mut R) -> Self { method into (line 176) | fn into(self) -> Blake2sDomain { function from (line 319) | fn from(val: Blake2sDomain) -> Self { FILE: filecoin-hashers/src/poseidon.rs type PoseidonHasher (line 29) | pub struct PoseidonHasher {} type Domain (line 32) | type Domain = PoseidonDomain; type Function (line 33) | type Function = PoseidonFunction; method name (line 35) | fn name() -> String { type PoseidonFunction (line 41) | pub struct PoseidonFunction(Fr); method hash (line 229) | fn hash(data: &[u8]) -> PoseidonDomain { method hash2 (line 233) | fn hash2(a: &PoseidonDomain, b: &PoseidonDomain) -> PoseidonDomain { method hash_md (line 240) | fn hash_md(input: &[PoseidonDomain]) -> PoseidonDomain { method hash_leaf_circuit (line 264) | fn hash_leaf_circuit>( method hash_multi_leaf_circuit (line 275) | fn hash_multi_leaf_circuit>( method hash_circuit (line 315) | fn hash_circuit>( method hash2_circuit (line 322) | fn hash2_circuit( method hash (line 337) | fn hash(&mut self) -> PoseidonDomain { method reset (line 342) | fn reset(&mut self) { method leaf (line 346) | fn leaf(&mut self, leaf: PoseidonDomain) -> PoseidonDomain { method node (line 350) | fn node( method multi_node (line 363) | fn multi_node(&mut self, parts: &[PoseidonDomain], _height: usize) -> ... method default (line 44) | fn default() -> PoseidonFunction { method hash (line 50) | fn hash(&self, state: &mut PoseidonFunction) { type PoseidonDomain (line 70) | pub struct PoseidonDomain(pub FrRepr); method hash (line 60) | fn hash(&self, state: &mut PoseidonFunction) { method as_ref (line 73) | fn as_ref(&self) -> &PoseidonDomain { method as_ref (line 115) | fn as_ref(&self) -> &[u8] { method from (line 383) | fn from(val: Fr) -> Self { method from (line 390) | fn from(val: FrRepr) -> Self { method hash (line 79) | fn hash(&self, state: &mut H) { method eq (line 86) | fn eq(&self, other: &Self) -> bool { method default (line 94) | fn default() -> PoseidonDomain { method cmp (line 101) | fn cmp(&self, other: &PoseidonDomain) -> Ordering { method partial_cmp (line 108) | fn partial_cmp(&self, other: &PoseidonDomain) -> Option { function as_ref (line 125) | fn as_ref<'a>(src: &'a [u64; 4]) -> &'a [u8] { method into_bytes (line 130) | fn into_bytes(&self) -> Vec { method try_from_bytes (line 137) | fn try_from_bytes(raw: &[u8]) -> anyhow::Result { method write_bytes (line 148) | fn write_bytes(&self, dest: &mut [u8]) -> anyhow::Result<()> { method random (line 153) | fn random(rng: &mut R) -> Self { method byte_len (line 160) | fn byte_len() -> usize { method from_slice (line 164) | fn from_slice(bytes: &[u8]) -> Self { method copy_to_slice (line 171) | fn copy_to_slice(&self, bytes: &mut [u8]) { method write (line 178) | fn write(&mut self, msg: &[u8]) { method finish (line 183) | fn finish(&self) -> u64 { function shared_hash (line 188) | fn shared_hash(data: &[u8]) -> PoseidonDomain { function shared_hash_frs (line 202) | fn shared_hash_frs(preimage: &[::Fr]) -> Self { function test_path (line 412) | fn test_path() { function test_poseidon_hasher (line 443) | fn test_poseidon_hasher() { function test_as_ref (line 499) | fn test_as_ref() { function test_serialize (line 531) | fn test_serialize() { function test_hash_md (line 544) | fn test_hash_md() { function test_hash_md_circuit (line 561) | fn test_hash_md_circuit() { FILE: filecoin-hashers/src/poseidon_types.rs type PoseidonBinaryArity (line 8) | pub type PoseidonBinaryArity = U2; type PoseidonQuadArity (line 9) | pub type PoseidonQuadArity = U4; type PoseidonOctArity (line 10) | pub type PoseidonOctArity = U8; type PoseidonMDArity (line 13) | pub type PoseidonMDArity = U36; constant MERKLE_TREE_ARITY (line 17) | pub const MERKLE_TREE_ARITY: usize = 2; type PoseidonArity (line 35) | pub trait PoseidonArity: Arity + Send + Sync + Clone + Debug { method PARAMETERS (line 37) | fn PARAMETERS() -> &'static PoseidonConstants; method PARAMETERS (line 41) | fn PARAMETERS() -> &'static PoseidonConstants { method PARAMETERS (line 47) | fn PARAMETERS() -> &'static PoseidonConstants { method PARAMETERS (line 53) | fn PARAMETERS() -> &'static PoseidonConstants { method PARAMETERS (line 59) | fn PARAMETERS() -> &'static PoseidonConstants { method PARAMETERS (line 65) | fn PARAMETERS() -> &'static PoseidonConstants { method PARAMETERS (line 71) | fn PARAMETERS() -> &'static PoseidonConstants { method PARAMETERS (line 76) | fn PARAMETERS() -> &'static PoseidonConstants { method PARAMETERS (line 81) | fn PARAMETERS() -> &'static PoseidonConstants { FILE: filecoin-hashers/src/sha256.rs type Sha256Hasher (line 23) | pub struct Sha256Hasher {} type Domain (line 26) | type Domain = Sha256Domain; type Function (line 27) | type Function = Sha256Function; method name (line 29) | fn name() -> String { type Sha256Function (line 35) | pub struct Sha256Function(Sha256); method hash (line 162) | fn hash(data: &[u8]) -> Sha256Domain { method hash2 (line 170) | fn hash2(a: &Sha256Domain, b: &Sha256Domain) -> Sha256Domain { method hash_multi_leaf_circuit (line 181) | fn hash_multi_leaf_circuit>( method hash_leaf_bits_circuit (line 203) | fn hash_leaf_bits_circuit>( method hash_circuit (line 238) | fn hash_circuit>( method hash2_circuit (line 252) | fn hash2_circuit( method hash (line 296) | fn hash(&mut self) -> Sha256Domain { method reset (line 305) | fn reset(&mut self) { method leaf (line 309) | fn leaf(&mut self, leaf: Sha256Domain) -> Sha256Domain { method node (line 313) | fn node(&mut self, left: Sha256Domain, right: Sha256Domain, _height: u... method multi_node (line 319) | fn multi_node(&mut self, parts: &[Sha256Domain], _height: usize) -> Sh... method write (line 39) | fn write(&mut self, msg: &[u8]) { method finish (line 44) | fn finish(&self) -> u64 { type Sha256Domain (line 50) | pub struct Sha256Domain(pub [u8; 32]); method as_ref (line 59) | fn as_ref(&self) -> &Self { method trim_to_fr32 (line 65) | fn trim_to_fr32(&mut self) { method as_ref (line 72) | fn as_ref(&self) -> &[u8] { method hash (line 78) | fn hash(&self, state: &mut Sha256Function) { method from (line 84) | fn from(val: Fr) -> Self { method from (line 95) | fn from(val: FrRepr) -> Self { method from (line 329) | fn from(val: [u8; 32]) -> Self { method fmt (line 53) | fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { method from (line 104) | fn from(val: Sha256Domain) -> Self { method into_bytes (line 113) | fn into_bytes(&self) -> Vec { method try_from_bytes (line 117) | fn try_from_bytes(raw: &[u8]) -> anyhow::Result { method write_bytes (line 128) | fn write_bytes(&self, dest: &mut [u8]) -> anyhow::Result<()> { method random (line 138) | fn random(rng: &mut R) -> Self { method byte_len (line 145) | fn byte_len() -> usize { method from_slice (line 149) | fn from_slice(bytes: &[u8]) -> Self { method copy_to_slice (line 156) | fn copy_to_slice(&self, bytes: &mut [u8]) { function from (line 336) | fn from(val: Sha256Domain) -> Self { FILE: filecoin-hashers/src/types.rs type Domain (line 19) | pub trait Domain: method into_bytes (line 37) | fn into_bytes(&self) -> Vec; method try_from_bytes (line 38) | fn try_from_bytes(raw: &[u8]) -> anyhow::Result; method write_bytes (line 40) | fn write_bytes(&self, _: &mut [u8]) -> anyhow::Result<()>; method random (line 42) | fn random(rng: &mut R) -> Self; type HashFunction (line 45) | pub trait HashFunction: Clone + Debug + Send + Sync + LightAl... method hash (line 46) | fn hash(data: &[u8]) -> T; method hash2 (line 47) | fn hash2(a: &T, b: &T) -> T; method hash_md (line 48) | fn hash_md(input: &[T]) -> T { method hash_leaf (line 57) | fn hash_leaf(data: &dyn LightHashable) -> T { method hash_single_node (line 64) | fn hash_single_node(data: &dyn LightHashable) -> T { method hash_leaf_circuit (line 70) | fn hash_leaf_circuit>( method hash_multi_leaf_circuit (line 82) | fn hash_multi_leaf_circuit>( method hash_leaf_bits_circuit (line 95) | fn hash_leaf_bits_circuit>( method hash_circuit (line 104) | fn hash_circuit>( method hash2_circuit (line 109) | fn hash2_circuit( type Hasher (line 118) | pub trait Hasher: Clone + Debug + Eq + Default + Send + Sync { method name (line 122) | fn name() -> String; FILE: filecoin-proofs/benches/preprocessing.rs function start_profile (line 11) | fn start_profile(stage: &str) { function start_profile (line 21) | fn start_profile(_stage: &str) {} function stop_profile (line 25) | fn stop_profile() { function stop_profile (line 35) | fn stop_profile() {} function random_data (line 37) | fn random_data(size: usize) -> Vec { function preprocessing_benchmark (line 42) | fn preprocessing_benchmark(c: &mut Criterion) { function add_piece_benchmark (line 68) | fn add_piece_benchmark(c: &mut Criterion) { FILE: filecoin-proofs/build.rs constant VERSION (line 10) | const VERSION: &'static str = env!("CARGO_PKG_VERSION"); function main (line 12) | fn main() { FILE: filecoin-proofs/examples/beacon-post.rs function start_profile (line 36) | fn start_profile(stage: &str) { function start_profile (line 46) | fn start_profile(_stage: &str) {} function stop_profile (line 50) | fn stop_profile() { function stop_profile (line 56) | fn stop_profile() {} function do_the_work (line 58) | fn do_the_work( function main (line 164) | fn main() { FILE: filecoin-proofs/examples/drgporep-vanilla-disk.rs function file_backed_mmap_from_random_bytes (line 36) | fn file_backed_mmap_from_random_bytes(n: usize) -> MmapMut { function do_the_work (line 49) | fn do_the_work(data_size: usize, m: usize, sloth_iter: usize,... function main (line 139) | fn main() { FILE: filecoin-proofs/examples/drgporep-vanilla.rs function start_profile (line 35) | fn start_profile(stage: &str) { function start_profile (line 45) | fn start_profile(_stage: &str) {} function stop_profile (line 49) | fn stop_profile() { function stop_profile (line 55) | fn stop_profile() {} function do_the_work (line 57) | fn do_the_work(data_size: usize, m: usize, sloth_iter: usize,... function main (line 156) | fn main() { FILE: filecoin-proofs/examples/drgporep.rs type DrgPoRepExample (line 21) | struct DrgPoRepExample<'a, E: JubjubEngine> { function synthesize (line 37) | fn synthesize>(self, cs: &mut CS) -> Result<... type DrgPoRepApp (line 58) | struct DrgPoRepApp {} method name (line 63) | fn name() -> String { method generate_groth_params (line 67) | fn generate_groth_params( method samples (line 96) | fn samples() -> usize { method create_circuit (line 100) | fn create_circuit( method verify_proof (line 133) | fn verify_proof( constant SLOTH_ROUNDS (line 60) | const SLOTH_ROUNDS: usize = 1; function main (line 143) | fn main() { FILE: filecoin-proofs/examples/encoding.rs function start_profile (line 42) | fn start_profile(stage: &str) { function start_profile (line 52) | fn start_profile(_stage: &str) {} function stop_profile (line 56) | fn stop_profile() { function stop_profile (line 62) | fn stop_profile() {} function file_backed_mmap_from_random_bytes (line 64) | fn file_backed_mmap_from_random_bytes(n: usize) -> MmapMut { function file_backed_mmap_from (line 77) | pub fn file_backed_mmap_from(data: &[u8]) -> MmapMut { function do_the_work (line 84) | fn do_the_work(data_size: usize, m: usize, expansion_degree:... function main (line 145) | fn main() { FILE: filecoin-proofs/examples/ffi/main.rs function make_piece (line 31) | fn make_piece(num_bytes_in_piece: usize) -> (String, Vec) { function create_and_add_piece (line 40) | unsafe fn create_and_add_piece( function create_sector_builder (line 61) | unsafe fn create_sector_builder( function sector_builder_lifecycle (line 107) | unsafe fn sector_builder_lifecycle() -> Result<(), Box> { function main (line 296) | fn main() { FILE: filecoin-proofs/examples/merklepor.rs type MerklePorApp (line 20) | struct MerklePorApp { method name (line 37) | fn name() -> String { method create_circuit (line 41) | fn create_circuit( method generate_groth_params (line 66) | fn generate_groth_params( method samples (line 87) | fn samples() -> usize { method create_proof (line 91) | fn create_proof( method verify_proof (line 124) | fn verify_proof( method default (line 27) | fn default() -> Self { function main (line 158) | fn main() { FILE: filecoin-proofs/examples/zigzag.rs function start_profile (line 48) | fn start_profile(stage: &str) { function start_profile (line 58) | fn start_profile(_stage: &str) {} function stop_profile (line 62) | fn stop_profile() { function stop_profile (line 68) | fn stop_profile() {} function file_backed_mmap_from_random_bytes (line 70) | fn file_backed_mmap_from_random_bytes(n: usize) -> MmapMut { function file_backed_mmap_from (line 83) | pub fn file_backed_mmap_from(data: &[u8]) -> MmapMut { function do_the_work (line 90) | fn do_the_work( function main (line 314) | fn main() { FILE: filecoin-proofs/src/api/fake_seal.rs function fauxrep (line 17) | pub fn fauxrep, S: AsRef, Tree: 'static + MerkleTre... function fauxrep_aux (line 26) | pub fn fauxrep_aux, T: AsRef, Tree: 'static... function fauxrep2 (line 61) | pub fn fauxrep2, S: AsRef, Tree: 'static + MerkleTr... FILE: filecoin-proofs/src/api/internal.rs type Commitment (line 34) | type Commitment = [u8; 32]; type FrSafe (line 37) | type FrSafe = [u8; 31]; constant SNARK_BYTES (line 45) | const SNARK_BYTES: usize = 192; constant POREP_PARTITIONS (line 46) | const POREP_PARTITIONS: usize = 2; constant POREP_PROOF_BYTES (line 47) | const POREP_PROOF_BYTES: usize = SNARK_BYTES * POREP_PARTITIONS; type SnarkProof (line 49) | type SnarkProof = [u8; POREP_PROOF_BYTES]; constant FAKE_SECTOR_BYTES (line 52) | const FAKE_SECTOR_BYTES: usize = 128; function dummy_parameter_cache_path (line 54) | fn dummy_parameter_cache_path(sector_config: &SectorConfig, sector_size:... constant OFFICIAL_ZIGZAG_PARAM_FILENAME (line 62) | pub const OFFICIAL_ZIGZAG_PARAM_FILENAME: &str = "params.out"; function official_params_path (line 73) | fn official_params_path() -> PathBuf { function get_zigzag_params (line 77) | fn get_zigzag_params() -> Option> { constant DEGREE (line 81) | const DEGREE: usize = 1; constant EXPANSION_DEGREE (line 82) | const EXPANSION_DEGREE: usize = 6; constant SLOTH_ITER (line 83) | const SLOTH_ITER: usize = 0; constant LAYERS (line 84) | const LAYERS: usize = 2; constant CHALLENGE_COUNT (line 85) | const CHALLENGE_COUNT: usize = 1; function setup_params (line 87) | fn setup_params(sector_bytes: usize) -> layered_drgporep::SetupParams { function public_params (line 109) | pub fn public_params( function commitment_from_fr (line 115) | fn commitment_from_fr(fr: E::Fr) -> Commitment { function pad_safe_fr (line 123) | fn pad_safe_fr(unpadded: &FrSafe) -> Fr32Ary { function get_config (line 136) | pub fn get_config(sector_config: &SectorConfig) -> (bool, Option, u... type PoStOutput (line 164) | pub struct PoStOutput { type PoStInputPart (line 169) | pub struct PoStInputPart { type PoStInput (line 174) | pub struct PoStInput { function generate_post (line 179) | pub fn generate_post(input: PoStInput) -> error::Result { type SealOutput (line 192) | pub struct SealOutput { function seal (line 199) | pub fn seal + AsRef>( function delay_seal (line 328) | fn delay_seal(seconds: u32) { function delay_get_unsealed_range (line 333) | fn delay_get_unsealed_range(base_seconds: u32) { function perform_replication (line 338) | fn perform_replication>( function write_data (line 375) | fn write_data>(out_path: T, data: &[u8]) -> error::Result... function get_unsealed_range (line 383) | pub fn get_unsealed_range + AsRef>( function verify_seal (line 425) | pub fn verify_seal( type Harness (line 502) | struct Harness { type BytesAmount (line 513) | enum BytesAmount<'a> { function create_harness (line 519) | fn create_harness(cs: &ConfiguredStore, bytes_amts: &[BytesAmount]) -> H... function create_sector_store (line 616) | fn create_sector_store(cs: &ConfiguredStore) -> Box { function make_random_bytes (line 630) | fn make_random_bytes(num_bytes_to_make: u64) -> Vec { function seal_verify_aux (line 635) | fn seal_verify_aux(cs: ConfiguredStore, bytes_amt: BytesAmount) { function seal_unsealed_roundtrip_aux (line 658) | fn seal_unsealed_roundtrip_aux(cs: ConfiguredStore, bytes_amt: BytesAmou... function seal_unsealed_range_roundtrip_aux (line 722) | fn seal_unsealed_range_roundtrip_aux(cs: ConfiguredStore, bytes_amt: Byt... function write_and_preprocess_overwrites_unaligned_last_bytes_aux (line 755) | fn write_and_preprocess_overwrites_unaligned_last_bytes_aux(cs: Configur... function seal_verify_test (line 840) | fn seal_verify_test() { function seal_verify_proof_test (line 847) | fn seal_verify_proof_test() { function seal_unsealed_roundtrip_test (line 854) | fn seal_unsealed_roundtrip_test() { function seal_unsealed_roundtrip_proof_test (line 861) | fn seal_unsealed_roundtrip_proof_test() { function seal_unsealed_range_roundtrip_test (line 868) | fn seal_unsealed_range_roundtrip_test() { function seal_unsealed_range_roundtrip_proof_test (line 875) | fn seal_unsealed_range_roundtrip_proof_test() { function write_and_preprocess_overwrites_unaligned_last_bytes (line 882) | fn write_and_preprocess_overwrites_unaligned_last_bytes() { function concurrent_seal_unsealed_range_roundtrip_proof_test (line 888) | fn concurrent_seal_unsealed_range_roundtrip_proof_test() { FILE: filecoin-proofs/src/api/mod.rs function get_unsealed_range (line 73) | pub fn get_unsealed_range + AsRef, Tree: 'static ... function unseal_range (line 127) | pub fn unseal_range( function unseal_range_mapped (line 195) | pub fn unseal_range_mapped( function unseal_range_inner (line 264) | fn unseal_range_inner( function generate_piece_commitment (line 325) | pub fn generate_piece_commitment( function add_piece (line 369) | pub fn add_piece( function ensure_piece_size (line 424) | fn ensure_piece_size(piece_size: UnpaddedBytesAmount) -> Result<()> { function write_and_preprocess (line 455) | pub fn write_and_preprocess( function verify_store (line 468) | fn verify_store(config: &StoreConfig, arity: usize, required_configs: us... function verify_level_cache_store (line 530) | fn verify_level_cache_store(config: &StoreConfig)... function validate_cache_for_precommit_phase2 (line 598) | pub fn validate_cache_for_precommit_phase2( function validate_cache_for_commit (line 643) | pub fn validate_cache_for_commit( FILE: filecoin-proofs/src/api/post.rs type PrivateReplicaInfo (line 34) | pub struct PrivateReplicaInfo { method clone (line 48) | fn clone(&self) -> Self { function eq (line 60) | fn eq(&self, other: &Self) -> bool { method hash (line 69) | fn hash(&self, state: &mut H) { function cmp (line 80) | fn cmp(&self, other: &Self) -> std::cmp::Ordering { function partial_cmp (line 86) | fn partial_cmp(&self, other: &Self) -> Option { function new (line 92) | pub fn new(replica: PathBuf, comm_r: Commitment, cache_dir: PathBuf) -> ... function cache_dir_path (line 114) | pub fn cache_dir_path(&self) -> &Path { function replica_path (line 118) | pub fn replica_path(&self) -> &Path { function safe_comm_r (line 122) | pub fn safe_comm_r(&self) -> Result<::Domain> { function safe_comm_c (line 126) | pub fn safe_comm_c(&self) -> Result<::Domain> { function safe_comm_r_last (line 130) | pub fn safe_comm_r_last(&self) -> Result<::Domai... function merkle_tree (line 135) | pub fn merkle_tree( type PublicReplicaInfo (line 181) | pub struct PublicReplicaInfo { method cmp (line 187) | fn cmp(&self, other: &Self) -> std::cmp::Ordering { method partial_cmp (line 193) | fn partial_cmp(&self, other: &Self) -> Option { method new (line 199) | pub fn new(comm_r: Commitment) -> Result { method safe_comm_r (line 204) | pub fn safe_comm_r(&self) -> Result { function clear_cache (line 210) | pub fn clear_cache(cache_dir: &Path) -> Result<()> { function clear_caches (line 223) | pub fn clear_caches( type SnarkProof (line 233) | pub type SnarkProof = Vec; function generate_winning_post (line 236) | pub fn generate_winning_post( function generate_winning_post_sector_challenge (line 324) | pub fn generate_winning_post_sector_challenge( function verify_winning_post (line 354) | pub fn verify_winning_post( function generate_window_post (line 429) | pub fn generate_window_post( function verify_window_post (line 506) | pub fn verify_window_post( function get_partitions_for_window_post (line 574) | fn get_partitions_for_window_post( FILE: filecoin-proofs/src/api/post_util.rs function clear_cache (line 25) | pub fn clear_cache(cache_dir: &Path) -> Result<()> { function clear_caches (line 44) | pub fn clear_caches( function generate_fallback_sector_challenges (line 60) | pub fn generate_fallback_sector_challenges( function partition_vanilla_proofs (line 180) | pub fn partition_vanilla_proofs( function get_partitions_for_window_post (line 299) | pub(crate) fn get_partitions_for_window_post( FILE: filecoin-proofs/src/api/responses.rs type FCPResponseStatus (line 14) | pub enum FCPResponseStatus { type FFISealStatus (line 24) | pub enum FFISealStatus { type VerifySealResponse (line 36) | pub struct VerifySealResponse { method default (line 43) | fn default() -> VerifySealResponse { method drop (line 53) | fn drop(&mut self) { function destroy_verify_seal_response (line 61) | pub unsafe extern "C" fn destroy_verify_seal_response(ptr: *mut VerifySe... type GeneratePoSTResponse (line 70) | pub struct GeneratePoSTResponse { method default (line 79) | fn default() -> GeneratePoSTResponse { method drop (line 91) | fn drop(&mut self) { function destroy_generate_post_response (line 105) | pub unsafe extern "C" fn destroy_generate_post_response(ptr: *mut Genera... type VerifyPoSTResponse (line 114) | pub struct VerifyPoSTResponse { method default (line 121) | fn default() -> VerifyPoSTResponse { method drop (line 131) | fn drop(&mut self) { function destroy_verify_post_response (line 139) | pub unsafe extern "C" fn destroy_verify_post_response(ptr: *mut VerifyPo... function err_code_and_msg (line 146) | pub fn err_code_and_msg(err: &Error) -> (FCPResponseStatus, *const libc:... type InitSectorBuilderResponse (line 176) | pub struct InitSectorBuilderResponse { method default (line 183) | fn default() -> InitSectorBuilderResponse { method drop (line 193) | fn drop(&mut self) { function destroy_init_sector_builder_response (line 201) | pub unsafe extern "C" fn destroy_init_sector_builder_response(ptr: *mut ... type AddPieceResponse (line 210) | pub struct AddPieceResponse { method default (line 217) | fn default() -> AddPieceResponse { method drop (line 227) | fn drop(&mut self) { function destroy_add_piece_response (line 235) | pub unsafe extern "C" fn destroy_add_piece_response(ptr: *mut AddPieceRe... type ReadPieceFromSealedSectorResponse (line 244) | pub struct ReadPieceFromSealedSectorResponse { method default (line 252) | fn default() -> ReadPieceFromSealedSectorResponse { method drop (line 263) | fn drop(&mut self) { function destroy_read_piece_from_sealed_sector_response (line 277) | pub unsafe extern "C" fn destroy_read_piece_from_sealed_sector_response( type SealAllStagedSectorsResponse (line 288) | pub struct SealAllStagedSectorsResponse { method default (line 294) | fn default() -> SealAllStagedSectorsResponse { method drop (line 303) | fn drop(&mut self) { function destroy_seal_all_staged_sectors_response (line 311) | pub unsafe extern "C" fn destroy_seal_all_staged_sectors_response( type GetMaxStagedBytesPerSector (line 322) | pub struct GetMaxStagedBytesPerSector { method default (line 329) | fn default() -> GetMaxStagedBytesPerSector { method drop (line 339) | fn drop(&mut self) { function destroy_get_max_user_bytes_per_staged_sector_response (line 347) | pub unsafe extern "C" fn destroy_get_max_user_bytes_per_staged_sector_re... type GetSealStatusResponse (line 358) | pub struct GetSealStatusResponse { type FFIPieceMetadata (line 379) | pub struct FFIPieceMetadata { method drop (line 385) | fn drop(&mut self) { method default (line 393) | fn default() -> GetSealStatusResponse { method drop (line 415) | fn drop(&mut self) { function destroy_get_seal_status_response (line 430) | pub unsafe extern "C" fn destroy_get_seal_status_response(ptr: *mut GetS... type FFIStagedSectorMetadata (line 439) | pub struct FFIStagedSectorMetadata { method drop (line 453) | fn drop(&mut self) { type FFISealedSectorMetadata (line 471) | pub struct FFISealedSectorMetadata { method drop (line 483) | fn drop(&mut self) { type GetSealedSectorsResponse (line 500) | pub struct GetSealedSectorsResponse { method default (line 509) | fn default() -> GetSealedSectorsResponse { method drop (line 520) | fn drop(&mut self) { function destroy_get_sealed_sectors_response (line 533) | pub unsafe extern "C" fn destroy_get_sealed_sectors_response(ptr: *mut G... type GetStagedSectorsResponse (line 542) | pub struct GetStagedSectorsResponse { method default (line 551) | fn default() -> GetStagedSectorsResponse { method drop (line 562) | fn drop(&mut self) { function destroy_get_staged_sectors_response (line 575) | pub unsafe extern "C" fn destroy_get_staged_sectors_response(ptr: *mut G... FILE: filecoin-proofs/src/api/seal.rs function seal_pre_commit_phase1 (line 46) | pub fn seal_pre_commit_phase1( function seal_pre_commit_phase2 (line 194) | pub fn seal_pre_commit_phase2( function seal_commit_phase1 (line 318) | pub fn seal_commit_phase1, Tree: 'static + MerkleTreeTrait>( function seal_commit_phase2 (line 446) | pub fn seal_commit_phase2( function compute_comm_d (line 546) | pub fn compute_comm_d(sector_size: SectorSize, piece_infos: &[PieceInfo]... function verify_seal (line 568) | pub fn verify_seal( function verify_batch_seal (line 663) | pub fn verify_batch_seal( FILE: filecoin-proofs/src/api/sector_builder/errors.rs type SectorBuilderErr (line 5) | pub enum SectorBuilderErr { function err_piecenotfound (line 31) | pub fn err_piecenotfound(piece_key: String) -> SectorBuilderErr { function err_unrecov (line 35) | pub fn err_unrecov(msg: S) -> SectorBuilderErr { function err_overflow (line 40) | pub fn err_overflow(num_bytes_in_piece: u64, max_bytes_per_sector: u64) ... function err_inc_write (line 47) | pub fn err_inc_write(num_bytes_written: u64, num_bytes_in_piece: u64) ->... FILE: filecoin-proofs/src/api/sector_builder/helpers/add_piece.rs function add_piece (line 10) | pub fn add_piece( function compute_destination_sector_id (line 64) | fn compute_destination_sector_id( function provision_new_staged_sector (line 84) | fn provision_new_staged_sector( function test_alpha (line 114) | fn test_alpha() { FILE: filecoin-proofs/src/api/sector_builder/helpers/get_seal_status.rs function get_seal_status (line 8) | pub fn get_seal_status( function setup (line 35) | fn setup() -> SectorBuilderState { function test_alpha (line 78) | fn test_alpha() { FILE: filecoin-proofs/src/api/sector_builder/helpers/get_sectors_ready_for_sealing.rs function get_sectors_ready_for_sealing (line 9) | pub fn get_sectors_ready_for_sealing( function make_meta (line 44) | fn make_meta( function test_seals_all (line 71) | fn test_seals_all() { function test_seals_full (line 90) | fn test_seals_full() { function test_seals_excess (line 109) | fn test_seals_excess() { function test_noop (line 130) | fn test_noop() { function test_noop_all_being_sealed (line 151) | fn test_noop_all_being_sealed() { FILE: filecoin-proofs/src/api/sector_builder/helpers/retrieve_piece.rs function retrieve_piece (line 12) | pub fn retrieve_piece<'a>( function retrieve_piece_aux (line 44) | fn retrieve_piece_aux<'a>( function piece_pos (line 89) | fn piece_pos(sealed_sector: &SealedSectorMetadata, piece_key: &str) -> O... function test_alpha (line 116) | fn test_alpha() { FILE: filecoin-proofs/src/api/sector_builder/helpers/seal.rs function seal (line 11) | pub fn seal( FILE: filecoin-proofs/src/api/sector_builder/helpers/snapshots.rs function load_snapshot (line 6) | pub fn load_snapshot( function persist_snapshot (line 21) | pub fn persist_snapshot( function make_snapshot (line 30) | pub fn make_snapshot( function test_alpha (line 61) | fn test_alpha() { FILE: filecoin-proofs/src/api/sector_builder/kv_store/fs.rs constant FATAL_NOCREATE (line 8) | const FATAL_NOCREATE: &str = "[KeyValueStore#put] could not create path"; type FileSystemKvs (line 12) | pub struct FileSystemKvs { method initialize (line 17) | pub fn initialize>(root_dir: P) -> Result { method key_to_path (line 25) | fn key_to_path(&self, key: &[u8]) -> PathBuf { method put (line 37) | fn put(&self, key: &[u8], value: &[u8]) -> Result<()> { method get (line 53) | fn get(&self, key: &[u8]) -> Result>> { FILE: filecoin-proofs/src/api/sector_builder/kv_store/mod.rs type KeyValueStore (line 5) | pub trait KeyValueStore { method put (line 6) | fn put(&self, key: &[u8], value: &[u8]) -> Result<()>; method get (line 7) | fn get(&self, key: &[u8]) -> Result>>; function test_alpha (line 16) | fn test_alpha() { FILE: filecoin-proofs/src/api/sector_builder/metadata.rs type StagedSectorMetadata (line 10) | pub struct StagedSectorMetadata { type SealedSectorMetadata (line 18) | pub struct SealedSectorMetadata { method fmt (line 68) | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { type PieceMetadata (line 31) | pub struct PieceMetadata { type SealStatus (line 37) | pub enum SealStatus { method eq (line 45) | fn eq(&self, other: &SealedSectorMetadata) -> bool { method default (line 57) | fn default() -> StagedSectorMetadata { method default (line 74) | fn default() -> SealedSectorMetadata { function sum_piece_bytes (line 87) | pub fn sum_piece_bytes(s: &StagedSectorMetadata) -> u64 { function sector_id_as_bytes (line 91) | pub fn sector_id_as_bytes(sector_id: SectorId) -> error::Result<[u8; 31]> { FILE: filecoin-proofs/src/api/sector_builder/mod.rs constant NUM_SEAL_WORKERS (line 26) | const NUM_SEAL_WORKERS: usize = 2; constant FATAL_NOSEND_TASK (line 28) | const FATAL_NOSEND_TASK: &str = "[run_blocking] could not send"; constant FATAL_NORECV_TASK (line 29) | const FATAL_NORECV_TASK: &str = "[run_blocking] could not recv"; type SectorId (line 31) | pub type SectorId = u64; type SectorBuilder (line 33) | pub struct SectorBuilder { method init_from_metadata (line 51) | pub fn init_from_metadata>( method get_max_user_bytes_per_staged_sector (line 112) | pub fn get_max_user_bytes_per_staged_sector(&self) -> u64 { method add_piece (line 118) | pub fn add_piece(&self, piece_key: String, piece_bytes: &[u8]) -> Resu... method get_seal_status (line 124) | pub fn get_seal_status(&self, sector_id: SectorId) -> Result Resu... method seal_all_staged_sectors (line 136) | pub fn seal_all_staged_sectors(&self) -> Result<()> { method get_sealed_sectors (line 141) | pub fn get_sealed_sectors(&self) -> Result> { method get_staged_sectors (line 146) | pub fn get_staged_sectors(&self) -> Result> { method generate_post (line 151) | pub fn generate_post( method run_blocking (line 162) | fn run_blocking) -> Request>(&self, w... method drop (line 175) | fn drop(&mut self) { type WrappedSectorStore (line 208) | pub struct WrappedSectorStore { type WrappedKeyValueStore (line 215) | pub struct WrappedKeyValueStore { function log_unrecov (line 222) | fn log_unrecov(result: Result) -> Result { FILE: filecoin-proofs/src/api/sector_builder/scheduler.rs constant FATAL_NOLOAD (line 29) | const FATAL_NOLOAD: &str = "could not load snapshot"; constant FATAL_NORECV (line 30) | const FATAL_NORECV: &str = "could not receive task"; constant FATAL_NOSEND (line 31) | const FATAL_NOSEND: &str = "could not send"; constant FATAL_SECMAP (line 32) | const FATAL_SECMAP: &str = "insert failed"; constant FATAL_SNPSHT (line 33) | const FATAL_SNPSHT: &str = "could not snapshot"; constant FATAL_SLRSND (line 34) | const FATAL_SLRSND: &str = "could not send to sealer"; constant FATAL_HUNGUP (line 35) | const FATAL_HUNGUP: &str = "could not send to ret channel"; constant FATAL_NOSECT (line 36) | const FATAL_NOSECT: &str = "could not find sector"; type Scheduler (line 38) | pub struct Scheduler { method start_with_metadata (line 61) | pub fn start_with_metadata( type Request (line 43) | pub enum Request { type SectorMetadataManager (line 148) | pub struct SectorMetadataManager { method generate_post (line 159) | pub fn generate_post( method retrieve_piece (line 202) | pub fn retrieve_piece( method get_seal_status (line 231) | pub fn get_seal_status(&self, sector_id: SectorId) -> Result ... method seal_all_staged_sectors (line 252) | pub fn seal_all_staged_sectors(&mut self) -> Result<()> { method get_sealed_sectors (line 259) | pub fn get_sealed_sectors(&self) -> Result> { method get_staged_sectors (line 265) | pub fn get_staged_sectors(&self) -> Result> { method max_user_bytes (line 271) | pub fn max_user_bytes(&self) -> u64 { method handle_seal_result (line 276) | pub fn handle_seal_result( method check_and_schedule (line 308) | fn check_and_schedule(&mut self, seal_all_staged_sectors: bool) -> Res... method checkpoint (line 340) | fn checkpoint(&self) -> Result<()> { FILE: filecoin-proofs/src/api/sector_builder/sealer.rs constant FATAL_NOLOCK (line 13) | const FATAL_NOLOCK: &str = "error acquiring task lock"; constant FATAL_RCVTSK (line 14) | const FATAL_RCVTSK: &str = "error receiving seal task"; constant FATAL_SNDTSK (line 15) | const FATAL_SNDTSK: &str = "error sending task"; constant FATAL_SNDRLT (line 16) | const FATAL_SNDRLT: &str = "error sending result"; type SealerWorker (line 18) | pub struct SealerWorker { method start (line 34) | pub fn start( type SealerInput (line 23) | pub enum SealerInput { FILE: filecoin-proofs/src/api/sector_builder/state.rs type StagedState (line 6) | pub struct StagedState { type SealedState (line 12) | pub struct SealedState { type SectorBuilderState (line 17) | pub struct SectorBuilderState { type StateSnapshot (line 24) | pub struct StateSnapshot { method into (line 31) | fn into(self) -> SectorBuilderState { FILE: filecoin-proofs/src/api/util.rs function as_safe_commitment (line 13) | pub fn as_safe_commitment>( function commitment_from_fr (line 22) | pub fn commitment_from_fr(fr: Fr) -> Commitment { function get_base_tree_size (line 30) | pub fn get_base_tree_size(sector_size: SectorSize... function get_base_tree_leafs (line 38) | pub fn get_base_tree_leafs(base_tree_size: usize)... FILE: filecoin-proofs/src/api/window_post.rs function generate_window_post_with_vanilla (line 28) | pub fn generate_window_post_with_vanilla( function generate_window_post (line 96) | pub fn generate_window_post( function verify_window_post (line 176) | pub fn verify_window_post( FILE: filecoin-proofs/src/api/winning_post.rs function generate_winning_post_with_vanilla (line 27) | pub fn generate_winning_post_with_vanilla( function generate_winning_post (line 98) | pub fn generate_winning_post( function generate_winning_post_sector_challenge (line 190) | pub fn generate_winning_post_sector_challenge( function verify_winning_post (line 225) | pub fn verify_winning_post( FILE: filecoin-proofs/src/bin/fakeipfsadd.rs function main (line 5) | pub fn main() { FILE: filecoin-proofs/src/bin/paramcache.rs function cache_params (line 14) | fn cache_params(sector_size: u64) { function main (line 22) | pub fn main() { FILE: filecoin-proofs/src/bin/paramfetch.rs constant ERROR_PARAMETER_FILE (line 24) | const ERROR_PARAMETER_FILE: &str = "failed to find file in cache"; constant ERROR_PARAMETER_ID (line 25) | const ERROR_PARAMETER_ID: &str = "failed to find key in manifest"; constant IPGET_PATH (line 27) | const IPGET_PATH: &str = "/var/tmp/ipget"; constant DEFAULT_PARAMETERS (line 28) | const DEFAULT_PARAMETERS: &str = include_str!("../../parameters.json"); constant IPGET_VERSION (line 29) | const IPGET_VERSION: &str = "v0.4.0"; type FetchProgress (line 31) | struct FetchProgress { method read (line 37) | fn read(&mut self, buf: &mut [u8]) -> io::Result { function main (line 45) | pub fn main() { function fetch (line 129) | fn fetch(matches: &ArgMatches) -> Result<()> { function get_ipget_bin (line 259) | fn get_ipget_bin(version: &str) -> String { function ensure_ipget (line 264) | fn ensure_ipget(is_verbose: bool, version: &str) -> Result<()> { function download_ipget (line 279) | fn download_ipget(is_verbose: bool, version: &str) -> Result<()> { function download_file (line 316) | fn download_file(url: Url, target: impl AsRef, is_verbose: bool) -... function fetch_parameter_file (line 354) | fn fetch_parameter_file( function download_file_with_ipget (line 374) | fn download_file_with_ipget( function get_filenames_requiring_download (line 406) | fn get_filenames_requiring_download( function get_filenames_from_parameter_map (line 444) | fn get_filenames_from_parameter_map(parameter_map: &ParameterMap) -> Res... function validate_parameter_file (line 448) | fn validate_parameter_file(parameter_map: &ParameterMap, filename: &str)... function invalidate_parameter_file (line 459) | fn invalidate_parameter_file(filename: &str) -> Result<()> { function parameter_map_lookup (line 470) | fn parameter_map_lookup<'a>( FILE: filecoin-proofs/src/bin/paramgen.rs function main (line 17) | pub fn main() { FILE: filecoin-proofs/src/bin/parampublish.rs constant ERROR_IPFS_COMMAND (line 29) | const ERROR_IPFS_COMMAND: &str = "failed to run ipfs"; constant ERROR_IPFS_PUBLISH (line 30) | const ERROR_IPFS_PUBLISH: &str = "failed to publish via ipfs"; constant PUBLISH_SECTOR_SIZES (line 31) | const PUBLISH_SECTOR_SIZES: [u64; 5] = [ function main (line 39) | pub fn main() { function publish (line 85) | fn publish(matches: &ArgMatches) -> Result<()> { function get_filenames_in_cache_dir (line 306) | fn get_filenames_in_cache_dir() -> Result> { function publish_parameter_file (line 332) | fn publish_parameter_file(ipfs_bin_path: &str, filename: &str) -> Result... function write_parameter_map_to_disk (line 347) | fn write_parameter_map_to_disk>( FILE: filecoin-proofs/src/bin/phase2.rs type Proof (line 59) | enum Proof { method fmt (line 66) | fn fmt(&self, f: &mut Formatter) -> fmt::Result { type Hasher (line 77) | enum Hasher { method fmt (line 83) | fn fmt(&self, f: &mut Formatter) -> fmt::Result { function display_sector_size (line 92) | fn display_sector_size(sector_size: u64) -> String { function get_head_commit (line 103) | fn get_head_commit() -> String { function params_filename (line 112) | fn params_filename( function initial_params_filename (line 131) | fn initial_params_filename(proof: Proof, hasher: Hasher, sector_size: u6... function parse_params_filename (line 138) | fn parse_params_filename(path: &str) -> (Proof, Hasher, u64, String, usi... function blank_porep_poseidon_circuit (line 173) | fn blank_porep_poseidon_circuit( function blank_winning_post_poseidon_circuit (line 240) | fn blank_winning_post_poseidon_circuit( function blank_window_post_poseidon_circuit (line 259) | fn blank_window_post_poseidon_circuit( function create_initial_params (line 286) | fn create_initial_params( function prompt_for_randomness (line 370) | fn prompt_for_randomness() -> [u8; 32] { function contribute_to_params (line 389) | fn contribute_to_params(path_before: &str) { function verify_param_transitions (line 446) | fn verify_param_transitions(param_paths: &[&str], contribution_hashes: &... function verify_param_transistions_daemon (line 531) | fn verify_param_transistions_daemon(proof: Proof, hasher: Hasher, sector... function setup_new_logger (line 660) | fn setup_new_logger(proof: Proof, hasher: Hasher, sector_size: u64) { function setup_contribute_logger (line 684) | fn setup_contribute_logger(path_before: &str) { function setup_verify_logger (line 711) | fn setup_verify_logger(param_paths: &[&str]) { function setup_verifyd_logger (line 746) | fn setup_verifyd_logger(proof: Proof, hasher: Hasher, sector_size: u64) { function main (line 773) | fn main() { FILE: filecoin-proofs/src/caches.rs type Bls12GrothParams (line 22) | type Bls12GrothParams = groth16::MappedParameters; type Bls12PreparedVerifyingKey (line 23) | pub type Bls12PreparedVerifyingKey = groth16::PreparedVerifyingKey; type Cache (line 25) | type Cache = HashMap>; type GrothMemCache (line 26) | type GrothMemCache = Cache; type VerifyingKeyMemCache (line 27) | type VerifyingKeyMemCache = Cache; function cache_lookup (line 34) | pub fn cache_lookup( function lookup_groth_params (line 66) | pub fn lookup_groth_params(identifier: String, generator: F) -> Resul... function lookup_verifying_key (line 74) | pub fn lookup_verifying_key( function get_stacked_params (line 85) | pub fn get_stacked_params( function get_post_params (line 112) | pub fn get_post_params( function get_stacked_verifying_key (line 157) | pub fn get_stacked_verifying_key( function get_post_verifying_key (line 184) | pub fn get_post_verifying_key( FILE: filecoin-proofs/src/commitment_reader.rs type CommitmentReader (line 12) | pub struct CommitmentReader { function new (line 20) | pub fn new(source: R) -> Self { function try_hash (line 30) | fn try_hash(&mut self) { function finish (line 43) | pub fn finish(self) -> Result<::Domain> { method read (line 68) | fn read(&mut self, buf: &mut [u8]) -> io::Result { function test_commitment_reader (line 100) | fn test_commitment_reader() { FILE: filecoin-proofs/src/constants.rs constant SECTOR_SIZE_2_KIB (line 18) | pub const SECTOR_SIZE_2_KIB: u64 = 1 << 11; constant SECTOR_SIZE_4_KIB (line 19) | pub const SECTOR_SIZE_4_KIB: u64 = 1 << 12; constant SECTOR_SIZE_16_KIB (line 20) | pub const SECTOR_SIZE_16_KIB: u64 = 1 << 14; constant SECTOR_SIZE_32_KIB (line 21) | pub const SECTOR_SIZE_32_KIB: u64 = 1 << 15; constant SECTOR_SIZE_8_MIB (line 22) | pub const SECTOR_SIZE_8_MIB: u64 = 1 << 23; constant SECTOR_SIZE_16_MIB (line 23) | pub const SECTOR_SIZE_16_MIB: u64 = 1 << 24; constant SECTOR_SIZE_512_MIB (line 24) | pub const SECTOR_SIZE_512_MIB: u64 = 1 << 29; constant SECTOR_SIZE_1_GIB (line 25) | pub const SECTOR_SIZE_1_GIB: u64 = 1 << 30; constant SECTOR_SIZE_32_GIB (line 26) | pub const SECTOR_SIZE_32_GIB: u64 = 1 << 35; constant SECTOR_SIZE_64_GIB (line 27) | pub const SECTOR_SIZE_64_GIB: u64 = 1 << 36; constant WINNING_POST_CHALLENGE_COUNT (line 29) | pub const WINNING_POST_CHALLENGE_COUNT: usize = 66; constant WINNING_POST_SECTOR_COUNT (line 30) | pub const WINNING_POST_SECTOR_COUNT: usize = 1; constant WINDOW_POST_CHALLENGE_COUNT (line 32) | pub const WINDOW_POST_CHALLENGE_COUNT: usize = 10; constant MAX_LEGACY_REGISTERED_SEAL_PROOF_ID (line 34) | pub const MAX_LEGACY_REGISTERED_SEAL_PROOF_ID: u64 = MAX_LEGACY_POREP_RE... constant PUBLISHED_SECTOR_SIZES (line 37) | pub const PUBLISHED_SECTOR_SIZES: [u64; 10] = [ constant SINGLE_PARTITION_PROOF_LEN (line 125) | pub const SINGLE_PARTITION_PROOF_LEN: usize = 192; constant MINIMUM_RESERVED_LEAVES_FOR_PIECE_IN_SECTOR (line 127) | pub const MINIMUM_RESERVED_LEAVES_FOR_PIECE_IN_SECTOR: u64 = 4; constant MINIMUM_RESERVED_BYTES_FOR_PIECE_IN_FULLY_ALIGNED_SECTOR (line 130) | pub const MINIMUM_RESERVED_BYTES_FOR_PIECE_IN_FULLY_ALIGNED_SECTOR: u64 = constant MIN_PIECE_SIZE (line 134) | pub const MIN_PIECE_SIZE: UnpaddedBytesAmount = UnpaddedBytesAmount(127); type DefaultPieceHasher (line 137) | pub type DefaultPieceHasher = Sha256Hasher; type DefaultPieceDomain (line 138) | pub type DefaultPieceDomain = ::Domain; type DefaultTreeHasher (line 141) | pub type DefaultTreeHasher = PoseidonHasher; type DefaultTreeDomain (line 142) | pub type DefaultTreeDomain = ::Domain; type DefaultBinaryTree (line 144) | pub type DefaultBinaryTree = BinaryMerkleTree; type DefaultOctTree (line 145) | pub type DefaultOctTree = OctMerkleTree; type DefaultOctLCTree (line 146) | pub type DefaultOctLCTree = OctLCMerkleTree; type SectorShapeBase (line 149) | pub type SectorShapeBase = LCTree; type SectorShapeSub2 (line 150) | pub type SectorShapeSub2 = LCTree; type SectorShapeSub8 (line 151) | pub type SectorShapeSub8 = LCTree; type SectorShapeTop2 (line 152) | pub type SectorShapeTop2 = LCTree; type SectorShape2KiB (line 155) | pub type SectorShape2KiB = SectorShapeBase; type SectorShape8MiB (line 156) | pub type SectorShape8MiB = SectorShapeBase; type SectorShape512MiB (line 157) | pub type SectorShape512MiB = SectorShapeBase; type SectorShape4KiB (line 159) | pub type SectorShape4KiB = SectorShapeSub2; type SectorShape16MiB (line 160) | pub type SectorShape16MiB = SectorShapeSub2; type SectorShape1GiB (line 161) | pub type SectorShape1GiB = SectorShapeSub2; type SectorShape16KiB (line 163) | pub type SectorShape16KiB = SectorShapeSub8; type SectorShape32GiB (line 164) | pub type SectorShape32GiB = SectorShapeSub8; type SectorShape32KiB (line 166) | pub type SectorShape32KiB = SectorShapeTop2; type SectorShape64GiB (line 167) | pub type SectorShape64GiB = SectorShapeTop2; function is_sector_shape_base (line 169) | pub fn is_sector_shape_base(sector_size: u64) -> bool { function is_sector_shape_sub2 (line 176) | pub fn is_sector_shape_sub2(sector_size: u64) -> bool { function is_sector_shape_sub8 (line 183) | pub fn is_sector_shape_sub8(sector_size: u64) -> bool { function is_sector_shape_top2 (line 187) | pub fn is_sector_shape_top2(sector_size: u64) -> bool { constant TEST_SEED (line 238) | pub const TEST_SEED: [u8; 16] = [ FILE: filecoin-proofs/src/error.rs type Result (line 5) | pub type Result = ::std::result::Result; type ExpectWithBacktrace (line 7) | pub trait ExpectWithBacktrace { method expects (line 8) | fn expects(self, msg: &str) -> T; function expects (line 12) | fn expects(self, msg: &str) -> T { function expects (line 23) | fn expects(self, msg: &str) -> T { FILE: filecoin-proofs/src/fr32.rs type PaddingMap (line 156) | pub struct PaddingMap { method new (line 259) | pub fn new(data_bits: usize, element_bits: usize) -> Result { method pad (line 279) | pub fn pad(&self, bits_out: &mut BitVecLEu8) { method pad_bits (line 287) | pub fn pad_bits(&self) -> usize { method transform_bit_offset (line 296) | pub fn transform_bit_offset(&self, pos: usize, padding: bool) -> usize { method transform_byte_offset (line 323) | pub fn transform_byte_offset(&self, pos: usize, padding: bool) -> usize { method next_boundary (line 348) | pub fn next_boundary(&self, position: &BitByte) -> (usize, usize) { method target_offsets (line 365) | pub fn target_offsets(&self, target: &mut W) -> io::Result<... constant FR32_PADDING_MAP (line 172) | pub const FR32_PADDING_MAP: PaddingMap = PaddingMap { type BitVecLEu8 (line 177) | pub type BitVecLEu8 = BitVec; function target_unpadded_bytes (line 183) | pub fn target_unpadded_bytes(target: &mut W) -> io::Result function almost_truncate_to_unpadded_bytes (line 197) | pub fn almost_truncate_to_unpadded_bytes( function to_unpadded_bytes (line 211) | pub fn to_unpadded_bytes(padded_bytes: u64) -> u64 { function to_padded_bytes (line 215) | pub fn to_padded_bytes(unpadded_bytes: usize) -> usize { type BitByte (line 224) | pub struct BitByte { method from_bits (line 231) | pub fn from_bits(bits: usize) -> BitByte { method from_bytes (line 238) | pub fn from_bytes(bytes: usize) -> BitByte { method total_bits (line 243) | pub fn total_bits(&self) -> usize { method is_byte_aligned (line 248) | pub fn is_byte_aligned(&self) -> bool { method bytes_needed (line 253) | pub fn bytes_needed(&self) -> usize { function div_rem (line 392) | fn div_rem(a: usize, b: usize) -> (usize, usize) { function shift_bits (line 453) | pub fn shift_bits(input: &[u8], amount: usize, is_left: bool) -> Vec { function extract_bits_and_shift (line 574) | pub fn extract_bits_and_shift( function clear_left_bits (line 641) | pub fn clear_left_bits(byte: &mut u8, offset: usize) { function clear_right_bits (line 648) | pub fn clear_right_bits(byte: &mut u8, offset: usize) { function write_unpadded (line 676) | pub fn write_unpadded( function write_unpadded_aux (line 743) | pub fn write_unpadded_aux( function test_position (line 867) | fn test_position() { function test_random_bit_extraction (line 881) | fn test_random_bit_extraction() { function test_bit_shifts (line 914) | fn test_bit_shifts() { function bit_vec_padding (line 942) | fn bit_vec_padding(raw_data: Vec) -> Box<[u8]> { function test_read_write_padded (line 969) | fn test_read_write_padded() { function test_read_write_padded_offset (line 991) | fn test_read_write_padded_offset() { FILE: filecoin-proofs/src/fr32_reader.rs constant DATA_BITS (line 3) | const DATA_BITS: u64 = 254; constant TARGET_BITS (line 4) | const TARGET_BITS: u64 = 256; type Fr32Reader (line 7) | pub struct Fr32Reader { function new (line 19) | pub fn new(source: R) -> Self { function read_u8_no_pad (line 28) | fn read_u8_no_pad(&mut self, target: &mut [u8]) -> io::Result { function read_u16_no_pad (line 35) | fn read_u16_no_pad(&mut self, target: &mut [u8]) -> io::Result { function read_u32_no_pad (line 42) | fn read_u32_no_pad(&mut self, target: &mut [u8]) -> io::Result { function read_u64_no_pad (line 49) | fn read_u64_no_pad(&mut self, target: &mut [u8]) -> io::Result { function read_bytes (line 58) | fn read_bytes(&mut self, target: &mut [u8]) -> io::Result { function read_u8_padded (line 95) | fn read_u8_padded( function fill_buffer (line 144) | fn fill_buffer(&mut self) -> io::Result { function read (line 158) | fn read(&mut self, target: &mut [u8]) -> io::Result { function set_bit (line 178) | fn set_bit(x: &mut u8, bit: usize) { type Buffer (line 185) | struct Buffer { method available (line 210) | pub fn available(&self) -> u64 { method reset_available (line 214) | pub fn reset_available(&mut self, bits: u64) { method read_bit (line 220) | pub fn read_bit(&mut self) -> bool { method read_u8_range (line 228) | pub fn read_u8_range(&mut self, len: u64) -> u8 { method read_u8 (line 237) | pub fn read_u8(&mut self) -> u8 { method read_u16 (line 246) | pub fn read_u16(&mut self) -> u16 { method read_u16_into (line 256) | pub fn read_u16_into(&mut self, target: &mut [u8]) { method read_u32 (line 265) | pub fn read_u32(&mut self) -> u32 { method read_u32_into (line 275) | pub fn read_u32_into(&mut self, target: &mut [u8]) { method read_u64 (line 284) | pub fn read_u64(&mut self) -> u64 { method read_u64_into (line 292) | pub fn read_u64_into(&mut self, target: &mut [u8]) { type Target (line 194) | type Target = [u8; 8]; method deref (line 196) | fn deref(&self) -> &Self::Target { method deref_mut (line 202) | fn deref_mut(&mut self) -> &mut Self::Target { function test_buffer_read_bit (line 313) | fn test_buffer_read_bit() { function test_buffer_read_u8 (line 325) | fn test_buffer_read_u8() { function test_buffer_read_u16 (line 338) | fn test_buffer_read_u16() { function test_buffer_read_u32 (line 351) | fn test_buffer_read_u32() { function test_buffer_read_u64 (line 364) | fn test_buffer_read_u64() { function test_simple_short (line 375) | fn test_simple_short() { function test_simple_single (line 387) | fn test_simple_single() { function test_simple_127 (line 402) | fn test_simple_127() { function test_chained_byte_source (line 418) | fn test_chained_byte_source() { function test_full (line 458) | fn test_full() { function test_long (line 471) | fn test_long() { function bit_vec_padding (line 494) | fn bit_vec_padding(raw_data: Vec) -> Box<[u8]> { function validate_fr32 (line 517) | fn validate_fr32(bytes: &[u8]) { function test_exotic (line 533) | fn test_exotic() { FILE: filecoin-proofs/src/param.rs function get_full_path_for_file_within_cache (line 14) | pub fn get_full_path_for_file_within_cache(filename: &str) -> PathBuf { function get_digest_for_file_within_cache (line 21) | pub fn get_digest_for_file_within_cache(filename: &str) -> Result { function has_extension (line 32) | pub fn has_extension, P: AsRef>(filename: P, ext: S)... function add_extension (line 42) | pub fn add_extension(filename: &str, ext: &str) -> String { function parameter_id_to_metadata_map (line 47) | pub fn parameter_id_to_metadata_map( function filename_to_parameter_id (line 68) | pub fn filename_to_parameter_id<'a, P: AsRef + 'a>(filename: P) ->... FILE: filecoin-proofs/src/parameters.rs type WinningPostSetupParams (line 11) | type WinningPostSetupParams = fallback::SetupParams; type WinningPostPublicParams (line 12) | pub type WinningPostPublicParams = fallback::PublicParams; type WindowPostSetupParams (line 14) | type WindowPostSetupParams = fallback::SetupParams; type WindowPostPublicParams (line 15) | pub type WindowPostPublicParams = fallback::PublicParams; function public_params (line 17) | pub fn public_params( function winning_post_public_params (line 31) | pub fn winning_post_public_params( function winning_post_setup_params (line 37) | pub fn winning_post_setup_params(post_config: &PoStConfig) -> Result( function window_post_setup_params (line 68) | pub fn window_post_setup_params(post_config: &PoStConfig) -> WindowPostS... function setup_params (line 77) | pub fn setup_params( function select_challenges (line 118) | fn select_challenges( function partition_layer_challenges_test (line 139) | fn partition_layer_challenges_test() { function test_winning_post_params (line 154) | fn test_winning_post_params() { FILE: filecoin-proofs/src/pieces.rs function verify_pieces (line 22) | pub fn verify_pieces( type EmptySource (line 39) | struct EmptySource { method new (line 44) | pub fn new(size: usize) -> Self { method read (line 50) | fn read(&mut self, target: &mut [u8]) -> io::Result { function empty_comm_d (line 61) | fn empty_comm_d(sector_size: SectorSize) -> Commitment { function compute_comm_d (line 81) | pub fn compute_comm_d(sector_size: SectorSize, piece_infos: &[PieceInfo]... type Stack (line 141) | struct Stack(Vec); method new (line 145) | pub fn new() -> Self { method shift (line 150) | pub fn shift(&mut self, el: PieceInfo) { method peek (line 155) | pub fn peek(&self) -> &PieceInfo { method peek2 (line 160) | pub fn peek2(&self) -> &PieceInfo { method pop (line 165) | pub fn pop(&mut self) -> Result { method reduce1 (line 169) | pub fn reduce1(&mut self) -> Result { method reduce (line 185) | pub fn reduce(&mut self) -> Result<()> { method shift_reduce (line 190) | pub fn shift_reduce(&mut self, piece: PieceInfo) -> Result<()> { method len (line 195) | pub fn len(&self) -> usize { function zero_padding (line 201) | fn zero_padding(size: UnpaddedBytesAmount) -> Result { function join_piece_infos (line 225) | fn join_piece_infos(mut left: PieceInfo, right: PieceInfo) -> Result UnpaddedBytesAmo... function sum_piece_bytes_with_alignment (line 259) | pub fn sum_piece_bytes_with_alignment(pieces: &[UnpaddedBytesAmount]) ->... function get_piece_start_byte (line 268) | pub fn get_piece_start_byte( function get_piece_alignment (line 284) | pub fn get_piece_alignment( function with_alignment (line 316) | fn with_alignment(source: impl Read, piece_alignment: PieceAlignment) ->... function get_aligned_source (line 332) | pub fn get_aligned_source( function test_empty_source (line 364) | fn test_empty_source() { function test_compute_comm_d_empty (line 372) | fn test_compute_comm_d_empty() { function test_get_piece_alignment (line 390) | fn test_get_piece_alignment() { function test_get_piece_start_byte (line 423) | fn test_get_piece_start_byte() { function test_verify_simple_pieces (line 445) | fn test_verify_simple_pieces() { function test_verify_padded_pieces (line 518) | fn test_verify_padded_pieces() { function test_verify_random_pieces (line 613) | fn test_verify_random_pieces() -> Result<()> { function build_sector (line 696) | fn build_sector( function prev_power_of_two (line 738) | fn prev_power_of_two(mut x: u32) -> u32 { FILE: filecoin-proofs/src/serde_big_array.rs type BigArray (line 9) | pub trait BigArray<'de>: Sized { method serialize (line 10) | fn serialize(&self, serializer: S) -> Result method deserialize (line 13) | fn deserialize(deserializer: D) -> Result FILE: filecoin-proofs/src/types/bytes_amount.rs type PoStProofBytesAmount (line 7) | pub struct PoStProofBytesAmount(pub usize); type PoRepProofBytesAmount (line 9) | pub struct PoRepProofBytesAmount(pub usize); type UnpaddedByteIndex (line 12) | pub struct UnpaddedByteIndex(pub u64); method from (line 57) | fn from(n: UnpaddedBytesAmount) -> Self { type UnpaddedBytesAmount (line 15) | pub struct UnpaddedBytesAmount(pub u64); method from (line 51) | fn from(n: PaddedBytesAmount) -> Self { method from (line 63) | fn from(n: UnpaddedByteIndex) -> Self { type PaddedBytesAmount (line 18) | pub struct PaddedBytesAmount(pub u64); method from (line 33) | fn from(n: UnpaddedBytesAmount) -> Self { function from (line 21) | fn from(n: UnpaddedBytesAmount) -> Self { function from (line 27) | fn from(n: UnpaddedBytesAmount) -> Self { function from (line 39) | fn from(n: PaddedBytesAmount) -> Self { function from (line 45) | fn from(n: PaddedBytesAmount) -> Self { function from (line 69) | fn from(n: UnpaddedByteIndex) -> Self { function from (line 75) | fn from(n: UnpaddedByteIndex) -> Self { type Output (line 81) | type Output = UnpaddedBytesAmount; method add (line 83) | fn add(self, other: UnpaddedBytesAmount) -> UnpaddedBytesAmount { type Output (line 89) | type Output = PaddedBytesAmount; method add (line 91) | fn add(self, other: PaddedBytesAmount) -> PaddedBytesAmount { type Output (line 97) | type Output = UnpaddedBytesAmount; method sub (line 99) | fn sub(self, other: UnpaddedBytesAmount) -> UnpaddedBytesAmount { type Output (line 105) | type Output = PaddedBytesAmount; method sub (line 107) | fn sub(self, other: PaddedBytesAmount) -> PaddedBytesAmount { function from (line 113) | fn from(x: PoStProofBytesAmount) -> Self { function from (line 119) | fn from(x: PoRepProofBytesAmount) -> Self { function allowed_operations (line 129) | fn allowed_operations() { FILE: filecoin-proofs/src/types/mod.rs type Commitment (line 25) | pub type Commitment = [u8; 32]; type ChallengeSeed (line 26) | pub type ChallengeSeed = [u8; 32]; type ProverId (line 29) | pub type ProverId = [u8; 32]; type Ticket (line 30) | pub type Ticket = [u8; 32]; type Tree (line 32) | pub type Tree = storage_proofs::merkle::OctMerkleTree; type LCTree (line 33) | pub type LCTree = storage_proofs::merkle::OctLCMerkleTree = storage_proofs::porep::stacked::Proof<... type SealCommitPhase1Output (line 55) | pub struct SealCommitPhase1Output { type SealCommitOutput (line 65) | pub struct SealCommitOutput { type SealPreCommitPhase1Output (line 72) | pub struct SealPreCommitPhase1Output { FILE: filecoin-proofs/src/types/piece_info.rs type PieceInfo (line 9) | pub struct PieceInfo { method new (line 24) | pub fn new(commitment: Commitment, size: UnpaddedBytesAmount) -> Resul... method fmt (line 15) | fn fmt(&self, fmt: &mut Formatter<'_>) -> fmt::Result { FILE: filecoin-proofs/src/types/porep_config.rs type PoRepConfig (line 21) | pub struct PoRepConfig { method get_cache_identifier (line 58) | pub fn get_cache_identifier(&self) ->... method get_cache_metadata_path (line 74) | pub fn get_cache_metadata_path(&self)... method get_cache_verifying_key_path (line 79) | pub fn get_cache_verifying_key_path(&... method get_cache_params_path (line 84) | pub fn get_cache_params_path(&self) -... method from (line 29) | fn from(x: PoRepConfig) -> Self { method from (line 36) | fn from(x: PoRepConfig) -> Self { method from (line 43) | fn from(x: PoRepConfig) -> Self { method from (line 50) | fn from(cfg: PoRepConfig) -> Self { FILE: filecoin-proofs/src/types/porep_proof_partitions.rs type PoRepProofPartitions (line 2) | pub struct PoRepProofPartitions(pub u8); function from (line 5) | fn from(x: PoRepProofPartitions) -> Self { FILE: filecoin-proofs/src/types/post_config.rs type PoStConfig (line 20) | pub struct PoStConfig { method padded_sector_size (line 51) | pub fn padded_sector_size(&self) -> PaddedBytesAmount { method unpadded_sector_size (line 55) | pub fn unpadded_sector_size(&self) -> UnpaddedBytesAmount { method get_cache_identifier (line 60) | pub fn get_cache_identifier(&self) ->... method get_cache_metadata_path (line 81) | pub fn get_cache_metadata_path(&self)... method get_cache_verifying_key_path (line 86) | pub fn get_cache_verifying_key_path(&... method get_cache_params_path (line 91) | pub fn get_cache_params_path(&self) -... type PoStType (line 31) | pub enum PoStType { method from (line 37) | fn from(x: PoStConfig) -> Self { method from (line 44) | fn from(x: PoStConfig) -> Self { FILE: filecoin-proofs/src/types/post_proof_partitions.rs type PoStProofPartitions (line 4) | pub struct PoStProofPartitions(pub u8); method from (line 7) | fn from(x: PoStProofPartitions) -> Self { function from (line 13) | fn from(x: PoStProofPartitions) -> Self { FILE: filecoin-proofs/src/types/private_replica_info.rs type PrivateReplicaInfo (line 30) | pub struct PrivateReplicaInfo { method clone (line 44) | fn clone(&self) -> Self { method eq (line 56) | fn eq(&self, other: &Self) -> bool { method hash (line 65) | fn hash(&self, state: &mut H) { method cmp (line 76) | fn cmp(&self, other: &Self) -> Ordering { method partial_cmp (line 82) | fn partial_cmp(&self, other: &Self) -> Option { function new (line 88) | pub fn new(replica: PathBuf, comm_r: Commitment, cache_dir: PathBuf) -> ... function cache_dir_path (line 110) | pub fn cache_dir_path(&self) -> &Path { function replica_path (line 114) | pub fn replica_path(&self) -> &Path { function safe_comm_r (line 118) | pub fn safe_comm_r(&self) -> Result<::Domain> { function safe_comm_c (line 122) | pub fn safe_comm_c(&self) -> ::Domain { function safe_comm_r_last (line 126) | pub fn safe_comm_r_last(&self) -> ::Domain { function merkle_tree (line 131) | pub fn merkle_tree( FILE: filecoin-proofs/src/types/public_replica_info.rs type PublicReplicaInfo (line 12) | pub struct PublicReplicaInfo { method new (line 30) | pub fn new(comm_r: Commitment) -> Result { method safe_comm_r (line 35) | pub fn safe_comm_r(&self) -> Result { method cmp (line 18) | fn cmp(&self, other: &Self) -> Ordering { method partial_cmp (line 24) | fn partial_cmp(&self, other: &Self) -> Option { FILE: filecoin-proofs/src/types/sector_class.rs type SectorClass (line 6) | pub struct SectorClass { method from (line 14) | fn from(x: SectorClass) -> Self { FILE: filecoin-proofs/src/types/sector_size.rs type SectorSize (line 6) | pub struct SectorSize(pub u64); method from (line 9) | fn from(size: u64) -> Self { method from (line 15) | fn from(x: SectorSize) -> Self { method from (line 21) | fn from(x: SectorSize) -> Self { function from (line 27) | fn from(x: SectorSize) -> Self { FILE: filecoin-proofs/tests/api.rs constant ARBITRARY_POREP_ID_V1_0_0 (line 36) | const ARBITRARY_POREP_ID_V1_0_0: [u8; 32] = [127; 32]; constant ARBITRARY_POREP_ID_V1_1_0 (line 37) | const ARBITRARY_POREP_ID_V1_1_0: [u8; 32] = [128; 32]; function init_logger (line 40) | fn init_logger() { constant TEST_SEED (line 46) | const TEST_SEED: [u8; 16] = [ function test_seal_lifecycle_2kib_porep_id_v1_base_8 (line 52) | fn test_seal_lifecycle_2kib_porep_id_v1_base_8() -> Result<()> { function test_seal_lifecycle_2kib_porep_id_v1_1_base_8 (line 63) | fn test_seal_lifecycle_2kib_porep_id_v1_1_base_8() -> Result<()> { function test_seal_lifecycle_4kib_sub_8_2 (line 74) | fn test_seal_lifecycle_4kib_sub_8_2() -> Result<()> { function test_seal_lifecycle_16kib_sub_8_2 (line 89) | fn test_seal_lifecycle_16kib_sub_8_2() -> Result<()> { function test_seal_lifecycle_32kib_top_8_8_2 (line 104) | fn test_seal_lifecycle_32kib_top_8_8_2() -> Result<()> { function seal_lifecycle (line 185) | fn seal_lifecycle( function get_layer_file_paths (line 199) | fn get_layer_file_paths(cache_dir: &TempDir) -> Vec { function clear_cache_dir_keep_data_layer (line 217) | fn clear_cache_dir_keep_data_layer(cache_dir: &TempDir) { function test_resumable_seal_skip_proofs_v1 (line 234) | fn test_resumable_seal_skip_proofs_v1() { function test_resumable_seal_skip_proofs_v1_1 (line 245) | fn test_resumable_seal_skip_proofs_v1_1() { function test_resumable_seal_v1 (line 257) | fn test_resumable_seal_v1() { function test_resumable_seal_v1_1 (line 269) | fn test_resumable_seal_v1_1() { function run_resumable_seal (line 283) | fn run_resumable_seal( function test_winning_post_2kib_base_8 (line 390) | fn test_winning_post_2kib_base_8() -> Result<()> { function test_winning_post_4kib_sub_8_2 (line 399) | fn test_winning_post_4kib_sub_8_2() -> Result<()> { function test_winning_post_16kib_sub_8_8 (line 408) | fn test_winning_post_16kib_sub_8_8() -> Result<()> { function test_winning_post_32kib_top_8_8_2 (line 417) | fn test_winning_post_32kib_top_8_8_2() -> Result<()> { function test_winning_post_empty_sector_challenge (line 425) | fn test_winning_post_empty_sector_challenge() -> Result<()> { function winning_post (line 469) | fn winning_post( function test_window_post_single_partition_smaller_2kib_base_8 (line 565) | fn test_window_post_single_partition_smaller_2kib_base_8() -> Result<()> { function test_window_post_two_partitions_matching_2kib_base_8 (line 605) | fn test_window_post_two_partitions_matching_2kib_base_8() -> Result<()> { function test_window_post_two_partitions_matching_4kib_sub_8_2 (line 645) | fn test_window_post_two_partitions_matching_4kib_sub_8_2() -> Result<()> { function test_window_post_two_partitions_matching_16kib_sub_8_8 (line 685) | fn test_window_post_two_partitions_matching_16kib_sub_8_8() -> Result<()> { function test_window_post_two_partitions_matching_32kib_top_8_8_2 (line 725) | fn test_window_post_two_partitions_matching_32kib_top_8_8_2() -> Result<... function test_window_post_two_partitions_smaller_2kib_base_8 (line 765) | fn test_window_post_two_partitions_smaller_2kib_base_8() -> Result<()> { function test_window_post_single_partition_matching_2kib_base_8 (line 805) | fn test_window_post_single_partition_matching_2kib_base_8() -> Result<()> { function window_post (line 843) | fn window_post( function generate_piece_file (line 936) | fn generate_piece_file(sector_size: u64) -> Result<(NamedTempFile, Vec( function proof_and_unseal (line 1011) | fn proof_and_unseal( function create_seal (line 1087) | fn create_seal( function create_fake_seal (line 1148) | fn create_fake_seal( FILE: filecoin-proofs/tests/constants.rs function canonical_shape (line 8) | fn canonical_shape(sector_size: u64) -> (usize, usize, usize) { function arities_to_usize (line 57) | fn arities_to_usize() -> (usize, usize, usize) { function test_with_shape_macro (line 66) | fn test_with_shape_macro() { function test_with_shape_macro_aux (line 77) | fn test_with_shape_macro_aux(sector_size: u64) { FILE: filecoin-proofs/tests/mod.rs function test_verify_seal_fr32_validation (line 15) | fn test_verify_seal_fr32_validation() { function test_random_domain_element (line 103) | fn test_random_domain_element() { FILE: filecoin-proofs/tests/paramfetch/prompts_to_fetch.rs function rand_bytes_with_blake2b (line 17) | fn rand_bytes_with_blake2b() -> Result<(Vec, String), FailureError> { function nothing_to_fetch_if_cache_fully_hydrated (line 33) | fn nothing_to_fetch_if_cache_fully_hydrated() -> Result<(), FailureError> { function prompts_to_download_if_file_in_manifest_is_missing (line 64) | fn prompts_to_download_if_file_in_manifest_is_missing() -> Result<(), Fa... function prompts_to_download_if_file_checksum_does_not_match_manifest (line 90) | fn prompts_to_download_if_file_checksum_does_not_match_manifest() -> Res... function fetches_vk_even_if_sector_size_does_not_match (line 123) | fn fetches_vk_even_if_sector_size_does_not_match() -> Result<(), Failure... function invalid_json_path_produces_error (line 160) | fn invalid_json_path_produces_error() -> Result<(), FailureError> { function invalid_json_produces_error (line 171) | fn invalid_json_produces_error() -> Result<(), FailureError> { function no_json_path_uses_default_manifest (line 188) | fn no_json_path_uses_default_manifest() -> Result<(), FailureError> { FILE: filecoin-proofs/tests/paramfetch/support/session.rs type ParamFetchSessionBuilder (line 13) | pub struct ParamFetchSessionBuilder { method new (line 22) | pub fn new(manifest: Option) -> ParamFetchSessionBuilder { method with_session_timeout_ms (line 35) | pub fn with_session_timeout_ms(mut self, timeout_ms: u64) -> ParamFetc... method whitelisted_sector_sizes (line 41) | pub fn whitelisted_sector_sizes( method with_file_and_bytes (line 50) | pub fn with_file_and_bytes, R: Read>( method build (line 66) | pub fn build(self) -> ParamFetchSession { type ParamFetchSession (line 110) | pub struct ParamFetchSession { method exp_string (line 118) | pub fn exp_string( FILE: filecoin-proofs/tests/parampublish/prompts_to_publish.rs function ignores_files_unrecognized_extensions (line 12) | fn ignores_files_unrecognized_extensions() { function displays_sector_size_in_prompt (line 45) | fn displays_sector_size_in_prompt() { function no_assets_no_prompt (line 77) | fn no_assets_no_prompt() -> Result<(), FailureError> { FILE: filecoin-proofs/tests/parampublish/read_metadata_files.rs function fails_if_missing_metadata_file (line 6) | fn fails_if_missing_metadata_file() -> Result<(), FailureError> { function fails_if_malformed_metadata_file (line 23) | fn fails_if_malformed_metadata_file() -> Result<(), FailureError> { FILE: filecoin-proofs/tests/parampublish/support/session.rs type ParamPublishSessionBuilder (line 15) | pub struct ParamPublishSessionBuilder { method new (line 25) | pub fn new() -> ParamPublishSessionBuilder { method with_ipfs_bin (line 44) | pub fn with_ipfs_bin(mut self, ipfs_bin: &FakeIpfsBin) -> ParamPublish... method with_files (line 51) | pub fn with_files>(self, filenames: &[P]) -> ParamPubli... method with_file (line 59) | pub fn with_file>(mut self, filename: P) -> ParamPublis... method with_file_and_bytes (line 73) | pub fn with_file_and_bytes, R: Read>( method with_metadata (line 90) | pub fn with_metadata>( method with_session_timeout_ms (line 102) | pub fn with_session_timeout_ms(mut self, timeout_ms: u64) -> ParamPubl... method with_prompt_disabled (line 108) | pub fn with_prompt_disabled(mut self) -> ParamPublishSessionBuilder { method write_manifest_to (line 114) | pub fn write_manifest_to(mut self, manifest_dest: PathBuf) -> ParamPub... method build (line 120) | pub fn build(self) -> (ParamPublishSession, Vec) { type ParamPublishSession (line 159) | pub struct ParamPublishSession { method send_line (line 166) | pub fn send_line(&mut self, line: &str) -> Result Result<(), FailureError> { function filename_to_checksum (line 72) | fn filename_to_checksum>( FILE: filecoin-proofs/tests/pieces.rs function test_empty_source (line 23) | fn test_empty_source() { function test_compute_comm_d_empty (line 33) | fn test_compute_comm_d_empty() { function test_get_piece_alignment (line 52) | fn test_get_piece_alignment() { function test_get_piece_start_byte (line 85) | fn test_get_piece_start_byte() { function test_verify_simple_pieces (line 107) | fn test_verify_simple_pieces() { function test_verify_padded_pieces (line 178) | fn test_verify_padded_pieces() { function test_verify_random_pieces (line 281) | fn test_verify_random_pieces() -> Result<()> { function build_sector (line 364) | fn build_sector( function prev_power_of_two (line 409) | fn prev_power_of_two(mut x: u32) -> u32 { FILE: filecoin-proofs/tests/support/mod.rs type FakeIpfsBin (line 13) | pub struct FakeIpfsBin { method new (line 18) | pub fn new() -> FakeIpfsBin { method compute_checksum (line 24) | pub fn compute_checksum>(&self, path: P) -> Result &Path { function target_dir (line 47) | pub fn target_dir() -> PathBuf { function cargo_bin (line 61) | pub fn cargo_bin>(name: S) -> PathBuf { function spawn_bash_with_retries (line 66) | pub fn spawn_bash_with_retries( function tmp_manifest (line 86) | pub fn tmp_manifest( FILE: fr32/benches/fr.rs function fr_benchmark (line 7) | fn fr_benchmark(c: &mut Criterion) { FILE: fr32/src/convert.rs type Error (line 10) | pub enum Error { type Fr32Vec (line 20) | pub type Fr32Vec = Vec; type Fr32Ary (line 25) | pub type Fr32Ary = [u8; 32]; function bytes_into_fr (line 30) | pub fn bytes_into_fr(bytes: &[u8]) -> Result { function bytes_into_fr (line 39) | pub fn bytes_into_fr(bytes: &[u8]) -> Result { function bytes_into_fr_repr_safe (line 47) | pub fn bytes_into_fr_repr_safe(r: &[u8]) -> FrRepr { function fr_into_bytes (line 69) | pub fn fr_into_bytes(fr: &Fr) -> Fr32Vec { function fr_into_bytes (line 76) | pub fn fr_into_bytes(fr: &Fr) -> Fr32Vec { function u64_into_fr (line 80) | pub fn u64_into_fr(n: u64) -> Fr { function bytes_fr_test (line 88) | fn bytes_fr_test(bytes: Fr32Ary, expect_success: bool) { function test_bytes_into_fr_into_bytes (line 101) | fn test_bytes_into_fr_into_bytes() { FILE: fr32/src/padding.rs type PaddingMap (line 153) | struct PaddingMap { method pad_bits (line 213) | fn pad_bits(&self) -> usize { method transform_bit_offset (line 222) | fn transform_bit_offset(&self, pos: usize, padding: bool) -> usize { method transform_byte_offset (line 249) | fn transform_byte_offset(&self, pos: usize, padding: bool) -> usize { method next_boundary (line 274) | fn next_boundary(&self, position: &BitByte) -> (usize, usize) { constant FR32_PADDING_MAP (line 169) | const FR32_PADDING_MAP: PaddingMap = PaddingMap { function to_unpadded_bytes (line 174) | pub fn to_unpadded_bytes(padded_bytes: u64) -> u64 { function to_padded_bytes (line 178) | pub fn to_padded_bytes(unpadded_bytes: usize) -> usize { type BitByte (line 187) | struct BitByte { method from_bits (line 194) | fn from_bits(bits: usize) -> BitByte { method total_bits (line 202) | fn total_bits(&self) -> usize { method bytes_needed (line 207) | fn bytes_needed(&self) -> usize { function div_rem (line 288) | fn div_rem(a: usize, b: usize) -> (usize, usize) { function shift_bits (line 349) | fn shift_bits(input: &[u8], amount: usize, is_left: bool) -> Vec { function extract_bits_and_shift (line 470) | fn extract_bits_and_shift(input: &[u8], pos: usize, num_bits: usize, new... function clear_left_bits (line 531) | fn clear_left_bits(byte: &mut u8, offset: usize) { function clear_right_bits (line 538) | fn clear_right_bits(byte: &mut u8, offset: usize) { function write_unpadded (line 566) | pub fn write_unpadded( function write_unpadded_aux (line 633) | fn write_unpadded_aux( constant TEST_SEED (line 762) | const TEST_SEED: [u8; 16] = [ function test_position (line 768) | fn test_position() { function test_random_bit_extraction (line 782) | fn test_random_bit_extraction() { function test_bit_shifts (line 815) | fn test_bit_shifts() { function bit_vec_padding (line 843) | fn bit_vec_padding(raw_data: Vec) -> Box<[u8]> { function test_read_write_padded (line 870) | fn test_read_write_padded() { function test_read_write_padded_offset (line 895) | fn test_read_write_padded_offset() { FILE: fr32/src/reader.rs constant NUM_FRS_PER_BLOCK (line 11) | const NUM_FRS_PER_BLOCK: usize = 4; constant IN_BITS_FR (line 13) | const IN_BITS_FR: usize = 254; constant OUT_BITS_FR (line 15) | const OUT_BITS_FR: usize = 256; constant NUM_BYTES_IN_BLOCK (line 17) | const NUM_BYTES_IN_BLOCK: usize = NUM_FRS_PER_BLOCK * IN_BITS_FR / 8; constant NUM_BYTES_OUT_BLOCK (line 18) | const NUM_BYTES_OUT_BLOCK: usize = NUM_FRS_PER_BLOCK * OUT_BITS_FR / 8; constant NUM_U128S_PER_BLOCK (line 20) | const NUM_U128S_PER_BLOCK: usize = NUM_BYTES_OUT_BLOCK / size_of::(); constant MASK_SKIP_HIGH_2 (line 22) | const MASK_SKIP_HIGH_2: u128 = 0b0011_1111_1111_1111_1111_1111_1111_1111... type AlignedBuffer (line 25) | struct AlignedBuffer([u8; NUM_BYTES_IN_BLOCK + 1]); type Fr32Reader (line 28) | pub struct Fr32Reader { function new (line 61) | pub fn new(source: R) -> Self { function process_block (line 73) | fn process_block(&mut self) { function fill_in_buffer (line 103) | fn fill_in_buffer(&mut self) -> io::Result { function div_ceil (line 133) | const fn div_ceil(x: usize, y: usize) -> usize { method read (line 138) | fn read(&mut self, target: &mut [u8]) -> io::Result { constant DATA_BITS (line 201) | const DATA_BITS: u64 = 254; constant TARGET_BITS (line 202) | const TARGET_BITS: u64 = 256; function test_simple_short (line 205) | fn test_simple_short() { function test_simple_single (line 220) | fn test_simple_single() { function test_simple_127 (line 238) | fn test_simple_127() { function test_chained_byte_source (line 256) | fn test_chained_byte_source() { function test_full (line 295) | fn test_full() { function test_long (line 308) | fn test_long() { function bit_vec_padding (line 332) | fn bit_vec_padding(raw_data: Vec) -> Box<[u8]> { function validate_fr32 (line 356) | fn validate_fr32(bytes: &[u8]) { function test_exotic (line 374) | fn test_exotic() { FILE: graphql/graphiql.go type GraphiQL (line 35) | type GraphiQL struct method ServeHTTP (line 50) | func (h GraphiQL) ServeHTTP(w http.ResponseWriter, r *http.Request) { function respond (line 37) | func respond(w http.ResponseWriter, body []byte, code int) { function errorJSON (line 44) | func errorJSON(msg string) []byte { FILE: graphql/graphql.go type Long (line 43) | type Long method ImplementsGraphQLType (line 46) | func (b Long) ImplementsGraphQLType(name string) bool { return name ==... method UnmarshalGraphQL (line 49) | func (b *Long) UnmarshalGraphQL(input interface{}) error { type Account (line 75) | type Account struct method getState (line 82) | func (a *Account) getState(ctx context.Context) (*state.StateDB, error) { method Address (line 87) | func (a *Account) Address(ctx context.Context) (common.Address, error) { method Balance (line 91) | func (a *Account) Balance(ctx context.Context) (hexutil.Big, error) { method TransactionCount (line 99) | func (a *Account) TransactionCount(ctx context.Context) (hexutil.Uint6... method Code (line 107) | func (a *Account) Code(ctx context.Context) (hexutil.Bytes, error) { method Storage (line 115) | func (a *Account) Storage(ctx context.Context, args struct{ Slot commo... type Log (line 124) | type Log struct method Transaction (line 130) | func (l *Log) Transaction(ctx context.Context) *Transaction { method Account (line 134) | func (l *Log) Account(ctx context.Context, args BlockNumberArgs) *Acco... method Index (line 142) | func (l *Log) Index(ctx context.Context) int32 { method Topics (line 146) | func (l *Log) Topics(ctx context.Context) []common.Hash { method Data (line 150) | func (l *Log) Data(ctx context.Context) hexutil.Bytes { type Transaction (line 156) | type Transaction struct method resolve (line 165) | func (t *Transaction) resolve(ctx context.Context) (*types.Transaction... method Hash (line 183) | func (t *Transaction) Hash(ctx context.Context) common.Hash { method InputData (line 187) | func (t *Transaction) InputData(ctx context.Context) (hexutil.Bytes, e... method Gas (line 195) | func (t *Transaction) Gas(ctx context.Context) (hexutil.Uint64, error) { method GasPrice (line 203) | func (t *Transaction) GasPrice(ctx context.Context) (hexutil.Big, erro... method Value (line 211) | func (t *Transaction) Value(ctx context.Context) (hexutil.Big, error) { method Nonce (line 219) | func (t *Transaction) Nonce(ctx context.Context) (hexutil.Uint64, erro... method To (line 227) | func (t *Transaction) To(ctx context.Context, args BlockNumberArgs) (*... method From (line 243) | func (t *Transaction) From(ctx context.Context, args BlockNumberArgs) ... method Block (line 257) | func (t *Transaction) Block(ctx context.Context) (*Block, error) { method Index (line 264) | func (t *Transaction) Index(ctx context.Context) (*int32, error) { method getReceipt (line 276) | func (t *Transaction) getReceipt(ctx context.Context) (*types.Receipt,... method Status (line 290) | func (t *Transaction) Status(ctx context.Context) (*Long, error) { method GasUsed (line 299) | func (t *Transaction) GasUsed(ctx context.Context) (*Long, error) { method CumulativeGasUsed (line 308) | func (t *Transaction) CumulativeGasUsed(ctx context.Context) (*Long, e... method CreatedContract (line 317) | func (t *Transaction) CreatedContract(ctx context.Context, args BlockN... method Logs (line 329) | func (t *Transaction) Logs(ctx context.Context) (*[]*Log, error) { method R (line 345) | func (t *Transaction) R(ctx context.Context) (hexutil.Big, error) { method S (line 354) | func (t *Transaction) S(ctx context.Context) (hexutil.Big, error) { method V (line 363) | func (t *Transaction) V(ctx context.Context) (hexutil.Big, error) { type BlockType (line 372) | type BlockType type Block (line 377) | type Block struct method resolve (line 388) | func (b *Block) resolve(ctx context.Context) (*types.Block, error) { method resolveHeader (line 410) | func (b *Block) resolveHeader(ctx context.Context) (*types.Header, err... method resolveReceipts (line 427) | func (b *Block) resolveReceipts(ctx context.Context) ([]*types.Receipt... method Number (line 446) | func (b *Block) Number(ctx context.Context) (Long, error) { method Hash (line 455) | func (b *Block) Hash(ctx context.Context) (common.Hash, error) { method GasLimit (line 466) | func (b *Block) GasLimit(ctx context.Context) (Long, error) { method GasUsed (line 474) | func (b *Block) GasUsed(ctx context.Context) (Long, error) { method Parent (line 482) | func (b *Block) Parent(ctx context.Context) (*Block, error) { method Difficulty (line 500) | func (b *Block) Difficulty(ctx context.Context) (hexutil.Big, error) { method Timestamp (line 508) | func (b *Block) Timestamp(ctx context.Context) (hexutil.Uint64, error) { method Nonce (line 516) | func (b *Block) Nonce(ctx context.Context) (hexutil.Bytes, error) { method MixHash (line 524) | func (b *Block) MixHash(ctx context.Context) (common.Hash, error) { method TransactionsRoot (line 532) | func (b *Block) TransactionsRoot(ctx context.Context) (common.Hash, er... method StateRoot (line 540) | func (b *Block) StateRoot(ctx context.Context) (common.Hash, error) { method ReceiptsRoot (line 548) | func (b *Block) ReceiptsRoot(ctx context.Context) (common.Hash, error) { method OmmerHash (line 556) | func (b *Block) OmmerHash(ctx context.Context) (common.Hash, error) { method OmmerCount (line 564) | func (b *Block) OmmerCount(ctx context.Context) (*int32, error) { method Ommers (line 573) | func (b *Block) Ommers(ctx context.Context) (*[]*Block, error) { method ExtraData (line 590) | func (b *Block) ExtraData(ctx context.Context) (hexutil.Bytes, error) { method LogsBloom (line 598) | func (b *Block) LogsBloom(ctx context.Context) (hexutil.Bytes, error) { method TotalDifficulty (line 606) | func (b *Block) TotalDifficulty(ctx context.Context) (hexutil.Big, err... method Miner (line 642) | func (b *Block) Miner(ctx context.Context, args BlockNumberArgs) (*Acc... method TransactionCount (line 654) | func (b *Block) TransactionCount(ctx context.Context) (*int32, error) { method Transactions (line 663) | func (b *Block) Transactions(ctx context.Context) (*[]*Transaction, er... method TransactionAt (line 681) | func (b *Block) TransactionAt(ctx context.Context, args struct{ Index ... method OmmerAt (line 700) | func (b *Block) OmmerAt(ctx context.Context, args struct{ Index int32 ... method Logs (line 755) | func (b *Block) Logs(ctx context.Context, args struct{ Filter BlockFil... method Account (line 779) | func (b *Block) Account(ctx context.Context, args struct { method Call (line 825) | func (b *Block) Call(ctx context.Context, args struct { method EstimateGas (line 850) | func (b *Block) EstimateGas(ctx context.Context, args struct { type BlockNumberArgs (line 619) | type BlockNumberArgs struct method NumberOr (line 628) | func (a BlockNumberArgs) NumberOr(current rpc.BlockNumberOrHash) rpc.B... method NumberOrLatest (line 638) | func (a BlockNumberArgs) NumberOrLatest() rpc.BlockNumberOrHash { type BlockFilterCriteria (line 720) | type BlockFilterCriteria struct function runFilter (line 739) | func runFilter(ctx context.Context, be ethapi.Backend, filter *filters.F... type CallData (line 797) | type CallData struct type CallResult (line 807) | type CallResult struct method Data (line 813) | func (c *CallResult) Data() hexutil.Bytes { method GasUsed (line 817) | func (c *CallResult) GasUsed() Long { method Status (line 821) | func (c *CallResult) Status() Long { type Pending (line 863) | type Pending struct method TransactionCount (line 867) | func (p *Pending) TransactionCount(ctx context.Context) (int32, error) { method Transactions (line 872) | func (p *Pending) Transactions(ctx context.Context) (*[]*Transaction, ... method Account (line 889) | func (p *Pending) Account(ctx context.Context, args struct { method Call (line 900) | func (p *Pending) Call(ctx context.Context, args struct { method EstimateGas (line 920) | func (p *Pending) EstimateGas(ctx context.Context, args struct { type Resolver (line 929) | type Resolver struct method Block (line 933) | func (r *Resolver) Block(ctx context.Context, args struct { method Blocks (line 973) | func (r *Resolver) Blocks(ctx context.Context, args struct { method Pending (line 999) | func (r *Resolver) Pending(ctx context.Context) *Pending { method Transaction (line 1003) | func (r *Resolver) Transaction(ctx context.Context, args struct{ Hash ... method SendRawTransaction (line 1018) | func (r *Resolver) SendRawTransaction(ctx context.Context, args struct... method Logs (line 1047) | func (r *Resolver) Logs(ctx context.Context, args struct{ Filter Filte... method GasPrice (line 1070) | func (r *Resolver) GasPrice(ctx context.Context) (hexutil.Big, error) { method ChainID (line 1075) | func (r *Resolver) ChainID(ctx context.Context) (hexutil.Big, error) { method Syncing (line 1113) | func (r *Resolver) Syncing() (*SyncState, error) { type FilterCriteria (line 1028) | type FilterCriteria struct type SyncState (line 1080) | type SyncState struct method StartingBlock (line 1084) | func (s *SyncState) StartingBlock() hexutil.Uint64 { method CurrentBlock (line 1088) | func (s *SyncState) CurrentBlock() hexutil.Uint64 { method HighestBlock (line 1092) | func (s *SyncState) HighestBlock() hexutil.Uint64 { method PulledStates (line 1096) | func (s *SyncState) PulledStates() *hexutil.Uint64 { method KnownStates (line 1101) | func (s *SyncState) KnownStates() *hexutil.Uint64 { FILE: graphql/graphql_test.go function TestBuildSchema (line 38) | func TestBuildSchema(t *testing.T) { function TestGraphQLBlockSerialization (line 57) | func TestGraphQLBlockSerialization(t *testing.T) { function TestGraphQLHTTPOnSamePort_GQLRequest_Unsuccessful (line 161) | func TestGraphQLHTTPOnSamePort_GQLRequest_Unsuccessful(t *testing.T) { function createNode (line 176) | func createNode(t *testing.T, gqlEnabled bool) *node.Node { function createGQLService (line 193) | func createGQLService(t *testing.T, stack *node.Node) { FILE: graphql/schema.go constant schema (line 19) | schema string = ` FILE: graphql/service.go type handler (line 28) | type handler struct method ServeHTTP (line 32) | func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { function New (line 59) | func New(stack *node.Node, backend ethapi.Backend, cors, vhosts []string... function newHandler (line 69) | func newHandler(stack *node.Node, backend ethapi.Backend, cors, vhosts [... FILE: les/api.go type PrivateLightServerAPI (line 38) | type PrivateLightServerAPI struct method ServerInfo (line 65) | func (api *PrivateLightServerAPI) ServerInfo() map[string]interface{} { method ClientInfo (line 74) | func (api *PrivateLightServerAPI) ClientInfo(nodes []string) map[enode... method PriorityClientInfo (line 95) | func (api *PrivateLightServerAPI) PriorityClientInfo(start, stop enode... method clientInfo (line 111) | func (api *PrivateLightServerAPI) clientInfo(c *clientInfo) map[string... method setParams (line 129) | func (api *PrivateLightServerAPI) setParams(params map[string]interfac... method SetClientParams (line 181) | func (api *PrivateLightServerAPI) SetClientParams(nodes []string, para... method SetDefaultParams (line 211) | func (api *PrivateLightServerAPI) SetDefaultParams(params map[string]i... method SetConnectedBias (line 223) | func (api *PrivateLightServerAPI) SetConnectedBias(bias time.Duration)... method AddBalance (line 233) | func (api *PrivateLightServerAPI) AddBalance(node string, amount int64... method Benchmark (line 250) | func (api *PrivateLightServerAPI) Benchmark(setups []map[string]interf... function NewPrivateLightServerAPI (line 44) | func NewPrivateLightServerAPI(server *LesServer) *PrivateLightServerAPI { function parseNode (line 53) | func parseNode(node string) (enode.ID, error) { type PrivateDebugAPI (line 321) | type PrivateDebugAPI struct method FreezeClient (line 333) | func (api *PrivateDebugAPI) FreezeClient(node string) error { function NewPrivateDebugAPI (line 326) | func NewPrivateDebugAPI(server *LesServer) *PrivateDebugAPI { type PrivateLightAPI (line 352) | type PrivateLightAPI struct method LatestCheckpoint (line 368) | func (api *PrivateLightAPI) LatestCheckpoint() ([4]string, error) { method GetCheckpoint (line 385) | func (api *PrivateLightAPI) GetCheckpoint(index uint64) ([3]string, er... method GetCheckpointContractAddress (line 396) | func (api *PrivateLightAPI) GetCheckpointContractAddress() (string, er... function NewPrivateLightAPI (line 357) | func NewPrivateLightAPI(backend *lesCommons) *PrivateLightAPI { FILE: les/api_backend.go type LesApiBackend (line 42) | type LesApiBackend struct method ChainConfig (line 49) | func (b *LesApiBackend) ChainConfig() *params.ChainConfig { method CurrentBlock (line 53) | func (b *LesApiBackend) CurrentBlock() *types.Block { method SetHead (line 57) | func (b *LesApiBackend) SetHead(number uint64) { method HeaderByNumber (line 62) | func (b *LesApiBackend) HeaderByNumber(ctx context.Context, number rpc... method HeaderByNumberOrHash (line 69) | func (b *LesApiBackend) HeaderByNumberOrHash(ctx context.Context, bloc... method HeaderByHash (line 89) | func (b *LesApiBackend) HeaderByHash(ctx context.Context, hash common.... method BlockByNumber (line 93) | func (b *LesApiBackend) BlockByNumber(ctx context.Context, number rpc.... method BlockByHash (line 101) | func (b *LesApiBackend) BlockByHash(ctx context.Context, hash common.H... method BlockByNumberOrHash (line 105) | func (b *LesApiBackend) BlockByNumberOrHash(ctx context.Context, block... method StateAndHeaderByNumber (line 125) | func (b *LesApiBackend) StateAndHeaderByNumber(ctx context.Context, nu... method StateAndHeaderByNumberOrHash (line 136) | func (b *LesApiBackend) StateAndHeaderByNumberOrHash(ctx context.Conte... method GetReceipts (line 153) | func (b *LesApiBackend) GetReceipts(ctx context.Context, hash common.H... method GetLogs (line 160) | func (b *LesApiBackend) GetLogs(ctx context.Context, hash common.Hash)... method GetTd (line 167) | func (b *LesApiBackend) GetTd(ctx context.Context, hash common.Hash) *... method GetEVM (line 174) | func (b *LesApiBackend) GetEVM(ctx context.Context, msg core.Message, ... method SendTx (line 180) | func (b *LesApiBackend) SendTx(ctx context.Context, signedTx *types.Tr... method RemoveTx (line 184) | func (b *LesApiBackend) RemoveTx(txHash common.Hash) { method GetPoolTransactions (line 188) | func (b *LesApiBackend) GetPoolTransactions() (types.Transactions, err... method GetPoolTransaction (line 192) | func (b *LesApiBackend) GetPoolTransaction(txHash common.Hash) *types.... method GetTransaction (line 196) | func (b *LesApiBackend) GetTransaction(ctx context.Context, txHash com... method GetPoolNonce (line 200) | func (b *LesApiBackend) GetPoolNonce(ctx context.Context, addr common.... method Stats (line 204) | func (b *LesApiBackend) Stats() (pending int, queued int) { method TxPoolContent (line 208) | func (b *LesApiBackend) TxPoolContent() (map[common.Address]types.Tran... method SubscribeNewTxsEvent (line 212) | func (b *LesApiBackend) SubscribeNewTxsEvent(ch chan<- core.NewTxsEven... method SubscribeChainEvent (line 216) | func (b *LesApiBackend) SubscribeChainEvent(ch chan<- core.ChainEvent)... method SubscribeChainHeadEvent (line 220) | func (b *LesApiBackend) SubscribeChainHeadEvent(ch chan<- core.ChainHe... method SubscribeChainSideEvent (line 224) | func (b *LesApiBackend) SubscribeChainSideEvent(ch chan<- core.ChainSi... method SubscribeLogsEvent (line 228) | func (b *LesApiBackend) SubscribeLogsEvent(ch chan<- []*types.Log) eve... method SubscribePendingLogsEvent (line 232) | func (b *LesApiBackend) SubscribePendingLogsEvent(ch chan<- []*types.L... method SubscribeRemovedLogsEvent (line 239) | func (b *LesApiBackend) SubscribeRemovedLogsEvent(ch chan<- core.Remov... method Downloader (line 243) | func (b *LesApiBackend) Downloader() *downloader.Downloader { method ProtocolVersion (line 247) | func (b *LesApiBackend) ProtocolVersion() int { method SuggestPrice (line 251) | func (b *LesApiBackend) SuggestPrice(ctx context.Context) (*big.Int, e... method ChainDb (line 255) | func (b *LesApiBackend) ChainDb() ethdb.Database { method AccountManager (line 259) | func (b *LesApiBackend) AccountManager() *accounts.Manager { method ExtRPCEnabled (line 263) | func (b *LesApiBackend) ExtRPCEnabled() bool { method UnprotectedAllowed (line 267) | func (b *LesApiBackend) UnprotectedAllowed() bool { method RPCGasCap (line 271) | func (b *LesApiBackend) RPCGasCap() uint64 { method RPCTxFeeCap (line 275) | func (b *LesApiBackend) RPCTxFeeCap() float64 { method BloomStatus (line 279) | func (b *LesApiBackend) BloomStatus() (uint64, uint64) { method ServiceFilter (line 287) | func (b *LesApiBackend) ServiceFilter(ctx context.Context, session *bl... method Engine (line 293) | func (b *LesApiBackend) Engine() consensus.Engine { method CurrentHeader (line 297) | func (b *LesApiBackend) CurrentHeader() *types.Header { method StateAtBlock (line 301) | func (b *LesApiBackend) StateAtBlock(ctx context.Context, block *types... method StatesInRange (line 305) | func (b *LesApiBackend) StatesInRange(ctx context.Context, fromBlock *... method StateAtTransaction (line 309) | func (b *LesApiBackend) StateAtTransaction(ctx context.Context, block ... FILE: les/api_test.go function TestMain (line 53) | func TestMain(m *testing.M) { constant testServerDataDir (line 68) | testServerDataDir = "" constant testServerCapacity (line 69) | testServerCapacity = 200 constant testMaxClients (line 70) | testMaxClients = 10 constant testTolerance (line 71) | testTolerance = 0.1 constant minRelCap (line 72) | minRelCap = 0.2 function TestCapacityAPI3 (line 75) | func TestCapacityAPI3(t *testing.T) { function TestCapacityAPI6 (line 79) | func TestCapacityAPI6(t *testing.T) { function TestCapacityAPI10 (line 83) | func TestCapacityAPI10(t *testing.T) { function testCapacityAPI (line 95) | func testCapacityAPI(t *testing.T, clientCount int) { function getHead (line 305) | func getHead(ctx context.Context, t *testing.T, client *rpc.Client) (uin... function testRequest (line 326) | func testRequest(ctx context.Context, t *testing.T, client *rpc.Client) ... function freezeClient (line 339) | func freezeClient(ctx context.Context, t *testing.T, server *rpc.Client,... function setCapacity (line 346) | func setCapacity(ctx context.Context, t *testing.T, server *rpc.Client, ... function getCapacity (line 354) | func getCapacity(ctx context.Context, t *testing.T, server *rpc.Client, ... function getCapacityInfo (line 374) | func getCapacityInfo(ctx context.Context, t *testing.T, server *rpc.Clie... function NewNetwork (line 400) | func NewNetwork() (*simulations.Network, func(), error) { function NewAdapter (line 417) | func NewAdapter(adapterType string, services adapters.LifecycleConstruct... function testSim (line 442) | func testSim(t *testing.T, serverCount, clientCount int, serverDir, clie... function newLesClientService (line 495) | func newLesClientService(ctx *adapters.ServiceContext, stack *node.Node)... function newLesServerService (line 502) | func newLesServerService(ctx *adapters.ServiceContext, stack *node.Node)... FILE: les/bloombits.go constant bloomServiceThreads (line 29) | bloomServiceThreads = 16 constant bloomFilterThreads (line 33) | bloomFilterThreads = 3 constant bloomRetrievalBatch (line 37) | bloomRetrievalBatch = 16 constant bloomRetrievalWait (line 41) | bloomRetrievalWait = time.Microsecond * 100 method startBloomHandlers (line 46) | func (eth *LightEthereum) startBloomHandlers(sectionSize uint64) { FILE: les/checkpointoracle/oracle.go type CheckpointOracle (line 39) | type CheckpointOracle struct method Start (line 62) | func (oracle *CheckpointOracle) Start(backend bind.ContractBackend) { method IsRunning (line 76) | func (oracle *CheckpointOracle) IsRunning() bool { method Contract (line 81) | func (oracle *CheckpointOracle) Contract() *checkpointoracle.Checkpoin... method StableCheckpoint (line 87) | func (oracle *CheckpointOracle) StableCheckpoint() (*params.TrustedChe... method VerifySigners (line 121) | func (oracle *CheckpointOracle) VerifySigners(index uint64, hash [32]b... function New (line 53) | func New(config *params.CheckpointOracleConfig, getLocal func(uint64) pa... FILE: les/client.go type LightEthereum (line 52) | type LightEthereum struct method VfluxRequest (line 202) | func (s *LightEthereum) VfluxRequest(n *enode.Node, reqs vflux.Request... method vfxVersion (line 217) | func (s *LightEthereum) vfxVersion(n *enode.Node) uint { method prenegQuery (line 241) | func (s *LightEthereum) prenegQuery(n *enode.Node) int { method APIs (line 287) | func (s *LightEthereum) APIs() []rpc.API { method ResetWithGenesisBlock (line 325) | func (s *LightEthereum) ResetWithGenesisBlock(gb *types.Block) { method BlockChain (line 329) | func (s *LightEthereum) BlockChain() *light.LightChain { return s... method TxPool (line 330) | func (s *LightEthereum) TxPool() *light.TxPool { return s... method Engine (line 331) | func (s *LightEthereum) Engine() consensus.Engine { return s... method LesVersion (line 332) | func (s *LightEthereum) LesVersion() int { return i... method Downloader (line 333) | func (s *LightEthereum) Downloader() *downloader.Downloader { return s... method EventMux (line 334) | func (s *LightEthereum) EventMux() *event.TypeMux { return s... method Protocols (line 337) | func (s *LightEthereum) Protocols() []p2p.Protocol { method Start (line 348) | func (s *LightEthereum) Start() error { method Stop (line 371) | func (s *LightEthereum) Stop() error { function New (line 82) | func New(stack *node.Node, config *ethconfig.Config) (*LightEthereum, er... type LightDummyAPI (line 263) | type LightDummyAPI struct method Etherbase (line 266) | func (s *LightDummyAPI) Etherbase() (common.Address, error) { method Coinbase (line 271) | func (s *LightDummyAPI) Coinbase() (common.Address, error) { method Hashrate (line 276) | func (s *LightDummyAPI) Hashrate() hexutil.Uint { method Mining (line 281) | func (s *LightDummyAPI) Mining() bool { FILE: les/client_handler.go type clientHandler (line 39) | type clientHandler struct method start (line 80) | func (h *clientHandler) start() { method stop (line 84) | func (h *clientHandler) stop() { method runPeer (line 92) | func (h *clientHandler) runPeer(version uint, p *p2p.Peer, rw p2p.MsgR... method handle (line 105) | func (h *clientHandler) handle(p *serverPeer) error { method handleMsg (line 162) | func (h *clientHandler) handleMsg(p *serverPeer) error { method removePeer (line 367) | func (h *clientHandler) removePeer(id string) { function newClientHandler (line 55) | func newClientHandler(ulcServers []string, ulcFraction int, checkpoint *... type peerConnection (line 371) | type peerConnection struct method Head (line 376) | func (pc *peerConnection) Head() (common.Hash, *big.Int) { method RequestHeadersByHash (line 380) | func (pc *peerConnection) RequestHeadersByHash(origin common.Hash, amo... method RequestHeadersByNumber (line 404) | func (pc *peerConnection) RequestHeadersByNumber(origin uint64, amount... method RetrieveSingleHeaderByNumber (line 430) | func (pc *peerConnection) RetrieveSingleHeaderByNumber(context context... type downloaderPeerNotify (line 465) | type downloaderPeerNotify method registerPeer (line 467) | func (d *downloaderPeerNotify) registerPeer(p *serverPeer) { method unregisterPeer (line 476) | func (d *downloaderPeerNotify) unregisterPeer(p *serverPeer) { FILE: les/clientpool.go constant defaultNegExpTC (line 37) | defaultNegExpTC = 3600 constant defaultConnectedBias (line 46) | defaultConnectedBias = time.Minute * 3 constant inactiveTimeout (line 47) | inactiveTimeout = time.Second * 10 type clientPool (line 68) | type clientPool struct method stop (line 191) | func (f *clientPool) stop() { method connect (line 204) | func (f *clientPool) connect(peer clientPoolPeer) (uint64, error) { method setConnectedBias (line 251) | func (f *clientPool) setConnectedBias(bias time.Duration) { method disconnect (line 262) | func (f *clientPool) disconnect(p clientPoolPeer) { method disconnectNode (line 267) | func (f *clientPool) disconnectNode(node *enode.Node) { method setDefaultFactors (line 273) | func (f *clientPool) setDefaultFactors(posFactors, negFactors vfs.Pric... method capacityInfo (line 283) | func (f *clientPool) capacityInfo() (uint64, uint64, uint64) { method setLimits (line 294) | func (f *clientPool) setLimits(totalConn int, totalCap uint64) { method setCapacity (line 303) | func (f *clientPool) setCapacity(node *enode.Node, freeID string, capa... method setCapacityLocked (line 343) | func (f *clientPool) setCapacityLocked(node *enode.Node, freeID string... method forClients (line 354) | func (f *clientPool) forClients(ids []enode.ID, cb func(client *client... method serveCapQuery (line 393) | func (f *clientPool) serveCapQuery(id enode.ID, freeID string, data []... type clientPoolPeer (line 92) | type clientPoolPeer interface type clientInfo (line 101) | type clientInfo struct function newClientPool (line 111) | func newClientPool(ns *nodestate.NodeStateMachine, lesDb ethdb.Database,... FILE: les/clientpool_test.go function TestClientPoolL10C100Free (line 33) | func TestClientPoolL10C100Free(t *testing.T) { function TestClientPoolL40C200Free (line 37) | func TestClientPoolL40C200Free(t *testing.T) { function TestClientPoolL100C300Free (line 41) | func TestClientPoolL100C300Free(t *testing.T) { function TestClientPoolL10C100P4 (line 45) | func TestClientPoolL10C100P4(t *testing.T) { function TestClientPoolL40C200P30 (line 49) | func TestClientPoolL40C200P30(t *testing.T) { function TestClientPoolL100C300P20 (line 53) | func TestClientPoolL100C300P20(t *testing.T) { constant testClientPoolTicks (line 57) | testClientPoolTicks = 100000 type poolTestPeer (line 59) | type poolTestPeer struct method Node (line 80) | func (i *poolTestPeer) Node() *enode.Node { method freeClientId (line 84) | func (i *poolTestPeer) freeClientId() string { method updateCapacity (line 88) | func (i *poolTestPeer) updateCapacity(cap uint64) { method freeze (line 92) | func (i *poolTestPeer) freeze() {} method allowInactive (line 94) | func (i *poolTestPeer) allowInactive() bool { function testStateMachine (line 67) | func testStateMachine() *nodestate.NodeStateMachine { function newPoolTestPeer (line 72) | func newPoolTestPeer(i int, disconnCh chan int) *poolTestPeer { function getBalance (line 98) | func getBalance(pool *clientPool, p *poolTestPeer) (pos, neg uint64) { function addBalance (line 111) | func addBalance(pool *clientPool, id enode.ID, amount int64) { function checkDiff (line 117) | func checkDiff(a, b uint64) bool { function testClientPool (line 125) | func testClientPool(t *testing.T, activeLimit, clientCount, paidCount in... function testPriorityConnect (line 217) | func testPriorityConnect(t *testing.T, pool *clientPool, p *poolTestPeer... function TestConnectPaidClient (line 237) | func TestConnectPaidClient(t *testing.T) { function TestConnectPaidClientToSmallPool (line 253) | func TestConnectPaidClientToSmallPool(t *testing.T) { function TestConnectPaidClientToFullPool (line 271) | func TestConnectPaidClientToFullPool(t *testing.T) { function TestPaidClientKickedOut (line 298) | func TestPaidClientKickedOut(t *testing.T) { function TestConnectFreeClient (line 333) | func TestConnectFreeClient(t *testing.T) { function TestConnectFreeClientToFullPool (line 349) | func TestConnectFreeClientToFullPool(t *testing.T) { function TestFreeClientKickedOut (line 378) | func TestFreeClientKickedOut(t *testing.T) { function TestPositiveBalanceCalculation (line 420) | func TestPositiveBalanceCalculation(t *testing.T) { function TestDowngradePriorityClient (line 444) | func TestDowngradePriorityClient(t *testing.T) { function TestNegativeBalanceCalculation (line 481) | func TestNegativeBalanceCalculation(t *testing.T) { function TestInactiveClient (line 519) | func TestInactiveClient(t *testing.T) { FILE: les/commons.go function errResp (line 40) | func errResp(code errCode, format string, v ...interface{}) error { type chainReader (line 44) | type chainReader interface type lesCommons (line 49) | type lesCommons struct method makeProtocols (line 75) | func (c *lesCommons) makeProtocols(versions []uint, runPeer func(versi... method nodeInfo (line 95) | func (c *lesCommons) nodeInfo() interface{} { method latestLocalCheckpoint (line 111) | func (c *lesCommons) latestLocalCheckpoint() params.TrustedCheckpoint { method localCheckpoint (line 130) | func (c *lesCommons) localCheckpoint(index uint64) params.TrustedCheck... method setupOracle (line 141) | func (c *lesCommons) setupOracle(node *node.Node, genesis common.Hash,... type NodeInfo (line 65) | type NodeInfo struct FILE: les/costtracker.go constant makeCostStats (line 34) | makeCostStats = false constant maxCostFactor (line 85) | maxCostFactor = 2 constant bufLimitRatio (line 86) | bufLimitRatio = 6000 constant gfUsageThreshold (line 87) | gfUsageThreshold = 0.5 constant gfUsageTC (line 88) | gfUsageTC = time.Second constant gfRaiseTC (line 89) | gfRaiseTC = time.Second * 200 constant gfDropTC (line 90) | gfDropTC = time.Second * 50 constant gfDbKey (line 91) | gfDbKey = "_globalCostFactorV6" type costTracker (line 117) | type costTracker struct method stop (line 174) | func (ct *costTracker) stop() { method makeCostList (line 185) | func (ct *costTracker) makeCostList(globalFactor float64) RequestCostL... method gfLoop (line 244) | func (ct *costTracker) gfLoop() { method globalFactor (line 384) | func (ct *costTracker) globalFactor() float64 { method totalRecharge (line 393) | func (ct *costTracker) totalRecharge() uint64 { method subscribeTotalRecharge (line 402) | func (ct *costTracker) subscribeTotalRecharge(ch chan uint64) uint64 { method updateStats (line 412) | func (ct *costTracker) updateStats(code, amount, servingTime, realCost... method realCost (line 438) | func (ct *costTracker) realCost(servingTime uint64, inSize, outSize ui... method printStats (line 452) | func (ct *costTracker) printStats() { function newCostTracker (line 140) | func newCostTracker(db ethdb.Database, config *ethconfig.Config) (*costT... type reqInfo (line 223) | type reqInfo struct type requestCostTable (line 465) | type requestCostTable method getMaxCost (line 479) | func (table requestCostTable) getMaxCost(code, amount uint64) uint64 { type requestCosts (line 466) | type requestCosts struct type RequestCostList (line 472) | type RequestCostList method decode (line 485) | func (list RequestCostList) decode(protocolLength uint64) requestCostT... type requestCostListItem (line 473) | type requestCostListItem struct function testCostList (line 499) | func testCostList(testCost uint64) RequestCostList { FILE: les/distributor.go type requestDistributor (line 31) | type requestDistributor struct method registerPeer (line 94) | func (d *requestDistributor) registerPeer(p *serverPeer) { method unregisterPeer (line 101) | func (d *requestDistributor) unregisterPeer(p *serverPeer) { method registerTestPeer (line 108) | func (d *requestDistributor) registerTestPeer(p distPeer) { method loop (line 125) | func (d *requestDistributor) loop() { method nextRequest (line 192) | func (d *requestDistributor) nextRequest() (distPeer, *distReq, time.D... method queue (line 252) | func (d *requestDistributor) queue(r *distReq) chan distPeer { method cancel (line 288) | func (d *requestDistributor) cancel(r *distReq) bool { method remove (line 302) | func (d *requestDistributor) remove(r *distReq) { method close (line 310) | func (d *requestDistributor) close() { type distPeer (line 50) | type distPeer interface type distReq (line 64) | type distReq struct function newRequestDistributor (line 77) | func newRequestDistributor(peers *serverPeerSet, clock mclock.Clock) *re... type selectPeerItem (line 180) | type selectPeerItem struct function selectPeerWeight (line 186) | func selectPeerWeight(i interface{}) uint64 { FILE: les/distributor_test.go type testDistReq (line 28) | type testDistReq struct method getCost (line 33) | func (r *testDistReq) getCost(dp distPeer) uint64 { method canSend (line 37) | func (r *testDistReq) canSend(dp distPeer) bool { method request (line 42) | func (r *testDistReq) request(dp distPeer) func() { type testDistPeer (line 46) | type testDistPeer struct method send (line 52) | func (p *testDistPeer) send(r *testDistReq) { method worker (line 60) | func (p *testDistPeer) worker(t *testing.T, checkOrder bool, stop chan... method waitBefore (line 94) | func (p *testDistPeer) waitBefore(cost uint64) (time.Duration, float64) { method canQueue (line 104) | func (p *testDistPeer) canQueue() bool { method queueSend (line 108) | func (p *testDistPeer) queueSend(f func()) bool { constant testDistBufLimit (line 87) | testDistBufLimit = 10000000 constant testDistMaxCost (line 88) | testDistMaxCost = 1000000 constant testDistPeerCount (line 89) | testDistPeerCount = 2 constant testDistReqCount (line 90) | testDistReqCount = 10 constant testDistMaxResendCount (line 91) | testDistMaxResendCount = 3 function TestRequestDistributor (line 113) | func TestRequestDistributor(t *testing.T) { function TestRequestDistributorResend (line 117) | func TestRequestDistributorResend(t *testing.T) { function testRequestDistributor (line 121) | func testRequestDistributor(t *testing.T, resend bool) { FILE: les/enr_entry.go type lesEntry (line 27) | type lesEntry struct method ENRKey (line 33) | func (lesEntry) ENRKey() string { return "les" } type ethEntry (line 36) | type ethEntry struct method ENRKey (line 41) | func (ethEntry) ENRKey() string { return "eth" } method setupDiscovery (line 44) | func (eth *LightEthereum) setupDiscovery() (enode.Iterator, error) { function nodeIsServer (line 68) | func nodeIsServer(forkFilter forkid.Filter, n *enode.Node) bool { FILE: les/fetcher.go constant blockDelayTimeout (line 38) | blockDelayTimeout = 10 * time.Second constant gatherSlack (line 39) | gatherSlack = 100 * time.Millisecond constant cachedAnnosThreshold (line 40) | cachedAnnosThreshold = 64 type announce (line 44) | type announce struct type request (line 51) | type request struct type response (line 60) | type response struct type fetcherPeer (line 68) | type fetcherPeer struct method addAnno (line 80) | func (fp *fetcherPeer) addAnno(anno *announce) { method forwardAnno (line 104) | func (fp *fetcherPeer) forwardAnno(td *big.Int) []*announce { type lightFetcher (line 130) | type lightFetcher struct method start (line 197) | func (f *lightFetcher) start() { method stop (line 203) | func (f *lightFetcher) stop() { method registerPeer (line 210) | func (f *lightFetcher) registerPeer(p *serverPeer) { method unregisterPeer (line 218) | func (f *lightFetcher) unregisterPeer(p *serverPeer) { method peer (line 226) | func (f *lightFetcher) peer(id enode.ID) *fetcherPeer { method forEachPeer (line 235) | func (f *lightFetcher) forEachPeer(check func(id enode.ID, p *fetcherP... method mainloop (line 259) | func (f *lightFetcher) mainloop() { method announce (line 476) | func (f *lightFetcher) announce(p *serverPeer, head *announceData) { method trackRequest (line 491) | func (f *lightFetcher) trackRequest(peerid enode.ID, reqid uint64, has... method requestHeaderByHash (line 504) | func (f *lightFetcher) requestHeaderByHash(peerid enode.ID) func(commo... method startSync (line 526) | func (f *lightFetcher) startSync(id enode.ID) { method deliverHeaders (line 539) | func (f *lightFetcher) deliverHeaders(peer *serverPeer, reqid uint64, ... method rescheduleTimer (line 550) | func (f *lightFetcher) rescheduleTimer(requests map[uint64]*request, t... function newLightFetcher (line 162) | func newLightFetcher(chain *light.LightChain, engine consensus.Engine, p... FILE: les/fetcher_test.go function verifyImportEvent (line 32) | func verifyImportEvent(t *testing.T, imported chan interface{}, arrive b... function verifyImportDone (line 49) | func verifyImportDone(t *testing.T, imported chan interface{}) { function verifyChainHeight (line 58) | func verifyChainHeight(t *testing.T, fetcher *lightFetcher, height uint6... function TestSequentialAnnouncementsLes2 (line 65) | func TestSequentialAnnouncementsLes2(t *testing.T) { testSequentialAnnou... function TestSequentialAnnouncementsLes3 (line 66) | func TestSequentialAnnouncementsLes3(t *testing.T) { testSequentialAnnou... function testSequentialAnnouncements (line 68) | func testSequentialAnnouncements(t *testing.T, protocol int) { function TestGappedAnnouncementsLes2 (line 105) | func TestGappedAnnouncementsLes2(t *testing.T) { testGappedAnnouncements... function TestGappedAnnouncementsLes3 (line 106) | func TestGappedAnnouncementsLes3(t *testing.T) { testGappedAnnouncements... function testGappedAnnouncements (line 108) | func testGappedAnnouncements(t *testing.T, protocol int) { function TestTrustedAnnouncementsLes2 (line 172) | func TestTrustedAnnouncementsLes2(t *testing.T) { testTrustedAnnouncemen... function TestTrustedAnnouncementsLes3 (line 173) | func TestTrustedAnnouncementsLes3(t *testing.T) { testTrustedAnnouncemen... function testTrustedAnnouncement (line 175) | func testTrustedAnnouncement(t *testing.T, protocol int) { function TestInvalidAnnouncesLES2 (line 252) | func TestInvalidAnnouncesLES2(t *testing.T) { testInvalidAnnounces(t, lp... function TestInvalidAnnouncesLES3 (line 253) | func TestInvalidAnnouncesLES3(t *testing.T) { testInvalidAnnounces(t, lp... function TestInvalidAnnouncesLES4 (line 254) | func TestInvalidAnnouncesLES4(t *testing.T) { testInvalidAnnounces(t, lp... function testInvalidAnnounces (line 256) | func testInvalidAnnounces(t *testing.T, protocol int) { FILE: les/flowcontrol/control.go constant fcTimeConst (line 33) | fcTimeConst = time.Millisecond constant DecParamDelay (line 37) | DecParamDelay = time.Second * 2 constant keepLogs (line 39) | keepLogs = 0 type ServerParams (line 46) | type ServerParams struct type scheduledUpdate (line 51) | type scheduledUpdate struct type ClientNode (line 58) | type ClientNode struct method Disconnect (line 90) | func (node *ClientNode) Disconnect() { method BufferStatus (line 99) | func (node *ClientNode) BufferStatus() (uint64, uint64) { method OneTimeCost (line 121) | func (node *ClientNode) OneTimeCost(cost uint64) { method Freeze (line 133) | func (node *ClientNode) Freeze() { method update (line 142) | func (node *ClientNode) update(now mclock.AbsTime) { method recalcBV (line 152) | func (node *ClientNode) recalcBV(now mclock.AbsTime) { method UpdateParams (line 168) | func (node *ClientNode) UpdateParams(params ServerParams) { method updateParams (line 190) | func (node *ClientNode) updateParams(params ServerParams, now mclock.A... method AcceptRequest (line 203) | func (node *ClientNode) AcceptRequest(reqID, index, maxCost uint64) (a... method RequestProcessed (line 226) | func (node *ClientNode) RequestProcessed(reqID, index, maxCost, realCo... function NewClientNode (line 73) | func NewClientNode(cm *ClientManager, params ServerParams) *ClientNode { type ServerNode (line 246) | type ServerNode struct method UpdateParams (line 275) | func (node *ServerNode) UpdateParams(params ServerParams) { method recalcBLE (line 292) | func (node *ServerNode) recalcBLE(now mclock.AbsTime) { method CanSend (line 316) | func (node *ServerNode) CanSend(maxCost uint64) (time.Duration, float6... method QueuedRequest (line 346) | func (node *ServerNode) QueuedRequest(reqID, maxCost uint64) { method ReceivedReply (line 370) | func (node *ServerNode) ReceivedReply(reqID, bv uint64) { method ResumeFreeze (line 405) | func (node *ServerNode) ResumeFreeze(bv uint64) { method DumpLogs (line 426) | func (node *ServerNode) DumpLogs() { function NewServerNode (line 259) | func NewServerNode(params ServerParams, clock mclock.Clock) *ServerNode { constant safetyMargin (line 311) | safetyMargin = time.Millisecond FILE: les/flowcontrol/manager.go type cmNodeFields (line 31) | type cmNodeFields struct constant FixedPointMultiplier (line 47) | FixedPointMultiplier = 1000000 type ClientManager (line 60) | type ClientManager struct method Stop (line 136) | func (cm *ClientManager) Stop() { method SetRechargeCurve (line 143) | func (cm *ClientManager) SetRechargeCurve(curve PieceWiseLinear) { method SetCapacityLimits (line 161) | func (cm *ClientManager) SetCapacityLimits(min, max, raiseThreshold ui... method connect (line 177) | func (cm *ClientManager) connect(node *ClientNode) { method disconnect (line 192) | func (cm *ClientManager) disconnect(node *ClientNode) { method accepted (line 207) | func (cm *ClientManager) accepted(node *ClientNode, maxCost uint64, no... method processed (line 220) | func (cm *ClientManager) processed(node *ClientNode, maxCost, realCost... method updateBuffer (line 229) | func (cm *ClientManager) updateBuffer(node *ClientNode, add int64, now... method updateParams (line 243) | func (cm *ClientManager) updateParams(node *ClientNode, params ServerP... method updateRaiseLimit (line 256) | func (cm *ClientManager) updateRaiseLimit() { method updateRecharge (line 274) | func (cm *ClientManager) updateRecharge(now mclock.AbsTime) { method updateNodeRc (line 314) | func (cm *ClientManager) updateNodeRc(node *ClientNode, bvc int64, par... method reduceTotalCapacity (line 353) | func (cm *ClientManager) reduceTotalCapacity(frozenCap uint64) { method updateTotalCapacity (line 376) | func (cm *ClientManager) updateTotalCapacity(now mclock.AbsTime, refre... method refreshCapacity (line 396) | func (cm *ClientManager) refreshCapacity() { method SubscribeTotalCapacity (line 412) | func (cm *ClientManager) SubscribeTotalCapacity(ch chan uint64) uint64 { function NewClientManager (line 108) | func NewClientManager(curve PieceWiseLinear, clock mclock.Clock) *Client... type PieceWiseLinear (line 421) | type PieceWiseLinear method ValueAt (line 424) | func (pwl PieceWiseLinear) ValueAt(x uint64) float64 { method Valid (line 453) | func (pwl PieceWiseLinear) Valid() bool { FILE: les/flowcontrol/manager_test.go type testNode (line 27) | type testNode struct method send (line 110) | func (n *testNode) send(t *testing.T, now mclock.AbsTime) bool { constant testMaxCost (line 35) | testMaxCost = 1000000 constant testLength (line 36) | testLength = 100000 function TestConstantTotalCapacity (line 46) | func TestConstantTotalCapacity(t *testing.T) { function testConstantTotalCapacity (line 56) | func testConstantTotalCapacity(t *testing.T, nodeCount, maxCapacityNodes... FILE: les/handler_test.go function expectResponse (line 41) | func expectResponse(r p2p.MsgReader, msgcode, reqID, bv uint64, data int... function TestGetBlockHeadersLes2 (line 50) | func TestGetBlockHeadersLes2(t *testing.T) { testGetBlockHeaders(t, 2) } function TestGetBlockHeadersLes3 (line 51) | func TestGetBlockHeadersLes3(t *testing.T) { testGetBlockHeaders(t, 3) } function TestGetBlockHeadersLes4 (line 52) | func TestGetBlockHeadersLes4(t *testing.T) { testGetBlockHeaders(t, 4) } function testGetBlockHeaders (line 54) | func testGetBlockHeaders(t *testing.T, protocol int) { function TestGetBlockBodiesLes2 (line 187) | func TestGetBlockBodiesLes2(t *testing.T) { testGetBlockBodies(t, 2) } function TestGetBlockBodiesLes3 (line 188) | func TestGetBlockBodiesLes3(t *testing.T) { testGetBlockBodies(t, 3) } function TestGetBlockBodiesLes4 (line 189) | func TestGetBlockBodiesLes4(t *testing.T) { testGetBlockBodies(t, 4) } function testGetBlockBodies (line 191) | func testGetBlockBodies(t *testing.T, protocol int) { function TestGetCodeLes2 (line 273) | func TestGetCodeLes2(t *testing.T) { testGetCode(t, 2) } function TestGetCodeLes3 (line 274) | func TestGetCodeLes3(t *testing.T) { testGetCode(t, 3) } function TestGetCodeLes4 (line 275) | func TestGetCodeLes4(t *testing.T) { testGetCode(t, 4) } function testGetCode (line 277) | func testGetCode(t *testing.T, protocol int) { function TestGetStaleCodeLes2 (line 313) | func TestGetStaleCodeLes2(t *testing.T) { testGetStaleCode(t, 2) } function TestGetStaleCodeLes3 (line 314) | func TestGetStaleCodeLes3(t *testing.T) { testGetStaleCode(t, 3) } function TestGetStaleCodeLes4 (line 315) | func TestGetStaleCodeLes4(t *testing.T) { testGetStaleCode(t, 4) } function testGetStaleCode (line 317) | func testGetStaleCode(t *testing.T, protocol int) { function TestGetReceiptLes2 (line 347) | func TestGetReceiptLes2(t *testing.T) { testGetReceipt(t, 2) } function TestGetReceiptLes3 (line 348) | func TestGetReceiptLes3(t *testing.T) { testGetReceipt(t, 3) } function TestGetReceiptLes4 (line 349) | func TestGetReceiptLes4(t *testing.T) { testGetReceipt(t, 4) } function testGetReceipt (line 351) | func testGetReceipt(t *testing.T, protocol int) { function TestGetProofsLes2 (line 383) | func TestGetProofsLes2(t *testing.T) { testGetProofs(t, 2) } function TestGetProofsLes3 (line 384) | func TestGetProofsLes3(t *testing.T) { testGetProofs(t, 3) } function TestGetProofsLes4 (line 385) | func TestGetProofsLes4(t *testing.T) { testGetProofs(t, 4) } function testGetProofs (line 387) | func testGetProofs(t *testing.T, protocol int) { function TestGetStaleProofLes2 (line 427) | func TestGetStaleProofLes2(t *testing.T) { testGetStaleProof(t, 2) } function TestGetStaleProofLes3 (line 428) | func TestGetStaleProofLes3(t *testing.T) { testGetStaleProof(t, 3) } function TestGetStaleProofLes4 (line 429) | func TestGetStaleProofLes4(t *testing.T) { testGetStaleProof(t, 4) } function testGetStaleProof (line 431) | func testGetStaleProof(t *testing.T, protocol int) { function TestGetCHTProofsLes2 (line 473) | func TestGetCHTProofsLes2(t *testing.T) { testGetCHTProofs(t, 2) } function TestGetCHTProofsLes3 (line 474) | func TestGetCHTProofsLes3(t *testing.T) { testGetCHTProofs(t, 3) } function TestGetCHTProofsLes4 (line 475) | func TestGetCHTProofsLes4(t *testing.T) { testGetCHTProofs(t, 4) } function testGetCHTProofs (line 477) | func testGetCHTProofs(t *testing.T, protocol int) { function TestGetBloombitsProofsLes2 (line 531) | func TestGetBloombitsProofsLes2(t *testing.T) { testGetBloombitsProofs(t... function TestGetBloombitsProofsLes3 (line 532) | func TestGetBloombitsProofsLes3(t *testing.T) { testGetBloombitsProofs(t... function TestGetBloombitsProofsLes4 (line 533) | func TestGetBloombitsProofsLes4(t *testing.T) { testGetBloombitsProofs(t... function testGetBloombitsProofs (line 536) | func testGetBloombitsProofs(t *testing.T, protocol int) { function TestTransactionStatusLes2 (line 591) | func TestTransactionStatusLes2(t *testing.T) { testTransactionStatus(t, ... function TestTransactionStatusLes3 (line 592) | func TestTransactionStatusLes3(t *testing.T) { testTransactionStatus(t, ... function TestTransactionStatusLes4 (line 593) | func TestTransactionStatusLes4(t *testing.T) { testTransactionStatus(t, ... function testTransactionStatus (line 595) | func testTransactionStatus(t *testing.T, protocol int) { function TestStopResumeLES3 (line 694) | func TestStopResumeLES3(t *testing.T) { testStopResume(t, lpv3) } function TestStopResumeLES4 (line 695) | func TestStopResumeLES4(t *testing.T) { testStopResume(t, lpv4) } function testStopResume (line 697) | func testStopResume(t *testing.T, protocol int) { FILE: les/metrics.go type meteredMsgReadWriter (line 123) | type meteredMsgReadWriter struct method ReadMsg (line 137) | func (rw *meteredMsgReadWriter) ReadMsg() (p2p.Msg, error) { method WriteMsg (line 151) | func (rw *meteredMsgReadWriter) WriteMsg(msg p2p.Msg) error { function newMeteredMsgWriter (line 130) | func newMeteredMsgWriter(rw p2p.MsgReadWriter, version int) p2p.MsgReadW... FILE: les/odr.go type LesOdr (line 31) | type LesOdr struct method Stop (line 51) | func (odr *LesOdr) Stop() { method Database (line 56) | func (odr *LesOdr) Database() ethdb.Database { method SetIndexers (line 61) | func (odr *LesOdr) SetIndexers(chtIndexer, bloomTrieIndexer, bloomInde... method ChtIndexer (line 68) | func (odr *LesOdr) ChtIndexer() *core.ChainIndexer { method BloomTrieIndexer (line 73) | func (odr *LesOdr) BloomTrieIndexer() *core.ChainIndexer { method BloomIndexer (line 78) | func (odr *LesOdr) BloomIndexer() *core.ChainIndexer { method IndexerConfig (line 83) | func (odr *LesOdr) IndexerConfig() *light.IndexerConfig { method RetrieveTxStatus (line 131) | func (odr *LesOdr) RetrieveTxStatus(ctx context.Context, req *light.Tx... method Retrieve (line 200) | func (odr *LesOdr) Retrieve(ctx context.Context, req light.OdrRequest)... function NewLesOdr (line 40) | func NewLesOdr(db ethdb.Database, config *light.IndexerConfig, peers *se... constant MsgBlockHeaders (line 88) | MsgBlockHeaders = iota constant MsgBlockBodies (line 89) | MsgBlockBodies constant MsgCode (line 90) | MsgCode constant MsgReceipts (line 91) | MsgReceipts constant MsgProofsV2 (line 92) | MsgProofsV2 constant MsgHelperTrieProofs (line 93) | MsgHelperTrieProofs constant MsgTxStatus (line 94) | MsgTxStatus type Msg (line 98) | type Msg struct type peerByTxHistory (line 106) | type peerByTxHistory method Len (line 108) | func (h peerByTxHistory) Len() int { return len(h) } method Less (line 109) | func (h peerByTxHistory) Less(i, j int) bool { method Swap (line 118) | func (h peerByTxHistory) Swap(i, j int) { h[i], h[j] = h[j], h[i] } constant maxTxStatusRetry (line 121) | maxTxStatusRetry = 3 constant maxTxStatusCandidates (line 122) | maxTxStatusCandidates = 5 FILE: les/odr_requests.go type LesOdrRequest (line 48) | type LesOdrRequest interface function LesRequest (line 55) | func LesRequest(req light.OdrRequest) LesOdrRequest { type BlockRequest (line 77) | type BlockRequest method GetCost (line 81) | func (r *BlockRequest) GetCost(peer *serverPeer) uint64 { method CanSend (line 86) | func (r *BlockRequest) CanSend(peer *serverPeer) bool { method Request (line 91) | func (r *BlockRequest) Request(reqID uint64, peer *serverPeer) error { method Validate (line 99) | func (r *BlockRequest) Validate(db ethdb.Database, msg *Msg) error { type ReceiptsRequest (line 135) | type ReceiptsRequest method GetCost (line 139) | func (r *ReceiptsRequest) GetCost(peer *serverPeer) uint64 { method CanSend (line 144) | func (r *ReceiptsRequest) CanSend(peer *serverPeer) bool { method Request (line 149) | func (r *ReceiptsRequest) Request(reqID uint64, peer *serverPeer) error { method Validate (line 157) | func (r *ReceiptsRequest) Validate(db ethdb.Database, msg *Msg) error { type ProofReq (line 185) | type ProofReq struct type TrieRequest (line 192) | type TrieRequest method GetCost (line 196) | func (r *TrieRequest) GetCost(peer *serverPeer) uint64 { method CanSend (line 201) | func (r *TrieRequest) CanSend(peer *serverPeer) bool { method Request (line 206) | func (r *TrieRequest) Request(reqID uint64, peer *serverPeer) error { method Validate (line 219) | func (r *TrieRequest) Validate(db ethdb.Database, msg *Msg) error { type CodeReq (line 240) | type CodeReq struct type CodeRequest (line 246) | type CodeRequest method GetCost (line 250) | func (r *CodeRequest) GetCost(peer *serverPeer) uint64 { method CanSend (line 255) | func (r *CodeRequest) CanSend(peer *serverPeer) bool { method Request (line 260) | func (r *CodeRequest) Request(reqID uint64, peer *serverPeer) error { method Validate (line 272) | func (r *CodeRequest) Validate(db ethdb.Database, msg *Msg) error { constant htCanonical (line 295) | htCanonical = iota constant htBloomBits (line 296) | htBloomBits constant htAuxHeader (line 300) | htAuxHeader = 2 type HelperTrieReq (line 303) | type HelperTrieReq struct type HelperTrieResps (line 310) | type HelperTrieResps struct type ChtRequest (line 316) | type ChtRequest method GetCost (line 320) | func (r *ChtRequest) GetCost(peer *serverPeer) uint64 { method CanSend (line 325) | func (r *ChtRequest) CanSend(peer *serverPeer) bool { method Request (line 333) | func (r *ChtRequest) Request(reqID uint64, peer *serverPeer) error { method Validate (line 349) | func (r *ChtRequest) Validate(db ethdb.Database, msg *Msg) error { type BloomReq (line 399) | type BloomReq struct type BloomRequest (line 404) | type BloomRequest method GetCost (line 408) | func (r *BloomRequest) GetCost(peer *serverPeer) uint64 { method CanSend (line 413) | func (r *BloomRequest) CanSend(peer *serverPeer) bool { method Request (line 424) | func (r *BloomRequest) Request(reqID uint64, peer *serverPeer) error { method Validate (line 445) | func (r *BloomRequest) Validate(db ethdb.Database, msg *Msg) error { type TxStatusRequest (line 480) | type TxStatusRequest method GetCost (line 484) | func (r *TxStatusRequest) GetCost(peer *serverPeer) uint64 { method CanSend (line 489) | func (r *TxStatusRequest) CanSend(peer *serverPeer) bool { method Request (line 494) | func (r *TxStatusRequest) Request(reqID uint64, peer *serverPeer) error { method Validate (line 502) | func (r *TxStatusRequest) Validate(db ethdb.Database, msg *Msg) error { type readTraceDB (line 518) | type readTraceDB struct method Get (line 524) | func (db *readTraceDB) Get(k []byte) ([]byte, error) { method Has (line 533) | func (db *readTraceDB) Has(key []byte) (bool, error) { FILE: les/odr_test.go type odrTestFn (line 42) | type odrTestFn function TestOdrGetBlockLes2 (line 44) | func TestOdrGetBlockLes2(t *testing.T) { testOdr(t, 2, 1, true, odrGetBl... function TestOdrGetBlockLes3 (line 45) | func TestOdrGetBlockLes3(t *testing.T) { testOdr(t, 3, 1, true, odrGetBl... function TestOdrGetBlockLes4 (line 46) | func TestOdrGetBlockLes4(t *testing.T) { testOdr(t, 4, 1, true, odrGetBl... function odrGetBlock (line 48) | func odrGetBlock(ctx context.Context, db ethdb.Database, config *params.... function TestOdrGetReceiptsLes2 (line 62) | func TestOdrGetReceiptsLes2(t *testing.T) { testOdr(t, 2, 1, true, odrGe... function TestOdrGetReceiptsLes3 (line 63) | func TestOdrGetReceiptsLes3(t *testing.T) { testOdr(t, 3, 1, true, odrGe... function TestOdrGetReceiptsLes4 (line 64) | func TestOdrGetReceiptsLes4(t *testing.T) { testOdr(t, 4, 1, true, odrGe... function odrGetReceipts (line 66) | func odrGetReceipts(ctx context.Context, db ethdb.Database, config *para... function TestOdrAccountsLes2 (line 84) | func TestOdrAccountsLes2(t *testing.T) { testOdr(t, 2, 1, true, odrAccou... function TestOdrAccountsLes3 (line 85) | func TestOdrAccountsLes3(t *testing.T) { testOdr(t, 3, 1, true, odrAccou... function TestOdrAccountsLes4 (line 86) | func TestOdrAccountsLes4(t *testing.T) { testOdr(t, 4, 1, true, odrAccou... function odrAccounts (line 88) | func odrAccounts(ctx context.Context, db ethdb.Database, config *params.... function TestOdrContractCallLes2 (line 114) | func TestOdrContractCallLes2(t *testing.T) { testOdr(t, 2, 2, true, odrC... function TestOdrContractCallLes3 (line 115) | func TestOdrContractCallLes3(t *testing.T) { testOdr(t, 3, 2, true, odrC... function TestOdrContractCallLes4 (line 116) | func TestOdrContractCallLes4(t *testing.T) { testOdr(t, 4, 2, true, odrC... type callmsg (line 118) | type callmsg struct method CheckNonce (line 122) | func (callmsg) CheckNonce() bool { return false } function odrContractCall (line 124) | func odrContractCall(ctx context.Context, db ethdb.Database, config *par... function TestOdrTxStatusLes2 (line 167) | func TestOdrTxStatusLes2(t *testing.T) { testOdr(t, 2, 1, false, odrTxSt... function TestOdrTxStatusLes3 (line 168) | func TestOdrTxStatusLes3(t *testing.T) { testOdr(t, 3, 1, false, odrTxSt... function TestOdrTxStatusLes4 (line 169) | func TestOdrTxStatusLes4(t *testing.T) { testOdr(t, 4, 1, false, odrTxSt... function odrTxStatus (line 171) | func odrTxStatus(ctx context.Context, db ethdb.Database, config *params.... function testOdr (line 194) | func testOdr(t *testing.T, protocol int, expFail uint64, checkCached boo... function TestGetTxStatusFromUnindexedPeersLES4 (line 259) | func TestGetTxStatusFromUnindexedPeersLES4(t *testing.T) { testGetTxStat... function testGetTxStatusFromUnindexedPeers (line 261) | func testGetTxStatusFromUnindexedPeers(t *testing.T, protocol int) { function randomHash (line 432) | func randomHash() common.Hash { FILE: les/peer.go constant maxRequestErrors (line 51) | maxRequestErrors = 20 constant maxResponseErrors (line 52) | maxResponseErrors = 50 constant allowedUpdateBytes (line 54) | allowedUpdateBytes = 100000 constant allowedUpdateRate (line 55) | allowedUpdateRate = time.Millisecond * 10 constant freezeTimeBase (line 57) | freezeTimeBase = time.Millisecond * 700 constant freezeTimeRandom (line 58) | freezeTimeRandom = time.Millisecond * 600 constant freezeCheckPeriod (line 59) | freezeCheckPeriod = time.Millisecond * 100 constant txSizeCostLimit (line 64) | txSizeCostLimit = 0x4000 constant handshakeTimeout (line 67) | handshakeTimeout = 5 * time.Second constant announceTypeNone (line 71) | announceTypeNone = iota constant announceTypeSimple (line 72) | announceTypeSimple constant announceTypeSigned (line 73) | announceTypeSigned type keyValueEntry (line 76) | type keyValueEntry struct type keyValueList (line 81) | type keyValueList method add (line 84) | func (l keyValueList) add(key string, val interface{}) keyValueList { method decode (line 97) | func (l keyValueList) decode() (keyValueMap, uint64) { type keyValueMap (line 82) | type keyValueMap method get (line 107) | func (m keyValueMap) get(key string, val interface{}) error { type peerCommons (line 119) | type peerCommons struct method isFrozen (line 144) | func (p *peerCommons) isFrozen() bool { method canQueue (line 149) | func (p *peerCommons) canQueue() bool { method queueSend (line 155) | func (p *peerCommons) queueSend(f func()) bool { method String (line 160) | func (p *peerCommons) String() string { method Info (line 173) | func (p *peerCommons) Info() *PeerInfo { method Head (line 182) | func (p *peerCommons) Head() (hash common.Hash) { method Td (line 190) | func (p *peerCommons) Td() *big.Int { method HeadAndTd (line 198) | func (p *peerCommons) HeadAndTd() (hash common.Hash, td *big.Int) { method sendReceiveHandshake (line 207) | func (p *peerCommons) sendReceiveHandshake(sendList keyValueList) (key... method handshake (line 257) | func (p *peerCommons) handshake(td *big.Int, head common.Hash, headNum... method close (line 329) | func (p *peerCommons) close() { type PeerInfo (line 166) | type PeerInfo struct type serverPeer (line 336) | type serverPeer struct method rejectUpdate (line 382) | func (p *serverPeer) rejectUpdate(size uint64) bool { method freeze (line 403) | func (p *serverPeer) freeze() { method unfreeze (line 411) | func (p *serverPeer) unfreeze() { method sendRequest (line 425) | func (p *serverPeer) sendRequest(msgcode, reqID uint64, data interface... method requestHeadersByHash (line 432) | func (p *serverPeer) requestHeadersByHash(reqID uint64, origin common.... method requestHeadersByNumber (line 439) | func (p *serverPeer) requestHeadersByNumber(reqID, origin uint64, amou... method requestBodies (line 446) | func (p *serverPeer) requestBodies(reqID uint64, hashes []common.Hash)... method requestCode (line 453) | func (p *serverPeer) requestCode(reqID uint64, reqs []CodeReq) error { method requestReceipts (line 459) | func (p *serverPeer) requestReceipts(reqID uint64, hashes []common.Has... method requestProofs (line 465) | func (p *serverPeer) requestProofs(reqID uint64, reqs []ProofReq) error { method requestHelperTrieProofs (line 471) | func (p *serverPeer) requestHelperTrieProofs(reqID uint64, reqs []Help... method requestTxStatus (line 477) | func (p *serverPeer) requestTxStatus(reqID uint64, txHashes []common.H... method sendTxs (line 483) | func (p *serverPeer) sendTxs(reqID uint64, amount int, txs rlp.RawValu... method waitBefore (line 493) | func (p *serverPeer) waitBefore(maxCost uint64) (time.Duration, float6... method getRequestCost (line 499) | func (p *serverPeer) getRequestCost(msgcode uint64, amount int) uint64 { method getTxRelayCost (line 516) | func (p *serverPeer) getTxRelayCost(amount, size int) uint64 { method HasBlock (line 536) | func (p *serverPeer) HasBlock(hash common.Hash, number uint64, hasStat... method updateFlowControl (line 557) | func (p *serverPeer) updateFlowControl(update keyValueMap) { method updateHead (line 579) | func (p *serverPeer) updateHead(hash common.Hash, number uint64, td *b... method Handshake (line 588) | func (p *serverPeer) Handshake(genesis common.Hash, forkid forkid.ID, ... method setValueTracker (line 678) | func (p *serverPeer) setValueTracker(nvt *vfc.NodeValueTracker) { method updateVtParams (line 690) | func (p *serverPeer) updateVtParams() { method sentRequest (line 716) | func (p *serverPeer) sentRequest(id uint64, reqType, amount uint32) { method answeredRequest (line 725) | func (p *serverPeer) answeredRequest(id uint64) { function newServerPeer (line 364) | func newServerPeer(version int, network uint64, trusted bool, p *p2p.Pee... function sendRequest (line 417) | func sendRequest(w p2p.MsgWriter, msgcode, reqID uint64, data interface{... type sentReqEntry (line 710) | type sentReqEntry struct type clientPeer (line 757) | type clientPeer struct method freeClientId (line 794) | func (p *clientPeer) freeClientId() string { method sendStop (line 808) | func (p *clientPeer) sendStop() error { method sendResume (line 813) | func (p *clientPeer) sendResume(bv uint64) error { method freeze (line 821) | func (p *clientPeer) freeze() { method replyBlockHeaders (line 874) | func (p *clientPeer) replyBlockHeaders(reqID uint64, headers []*types.... method replyBlockBodiesRLP (line 881) | func (p *clientPeer) replyBlockBodiesRLP(reqID uint64, bodies []rlp.Ra... method replyCode (line 888) | func (p *clientPeer) replyCode(reqID uint64, codes [][]byte) *reply { method replyReceiptsRLP (line 895) | func (p *clientPeer) replyReceiptsRLP(reqID uint64, receipts []rlp.Raw... method replyProofsV2 (line 901) | func (p *clientPeer) replyProofsV2(reqID uint64, proofs light.NodeList... method replyHelperTrieProofs (line 907) | func (p *clientPeer) replyHelperTrieProofs(reqID uint64, resp HelperTr... method replyTxStatus (line 913) | func (p *clientPeer) replyTxStatus(reqID uint64, stats []light.TxStatu... method sendAnnounce (line 920) | func (p *clientPeer) sendAnnounce(request announceData) error { method allowInactive (line 925) | func (p *clientPeer) allowInactive() bool { method updateCapacity (line 931) | func (p *clientPeer) updateCapacity(cap uint64) { method freezeClient (line 950) | func (p *clientPeer) freezeClient() { method Handshake (line 981) | func (p *clientPeer) Handshake(td *big.Int, head common.Hash, headNum ... method bumpInvalid (line 1055) | func (p *clientPeer) bumpInvalid() { method getInvalid (line 1061) | func (p *clientPeer) getInvalid() uint64 { function newClientPeer (line 776) | func newClientPeer(version int, network uint64, p *p2p.Peer, rw p2p.MsgR... type reply (line 853) | type reply struct method send (line 860) | func (r *reply) send(bv uint64) error { method size (line 869) | func (r *reply) size() uint32 { type serverPeerSubscriber (line 1069) | type serverPeerSubscriber interface type serverPeerSet (line 1076) | type serverPeerSet struct method subscribe (line 1093) | func (ps *serverPeerSet) subscribe(sub serverPeerSubscriber) { method unSubscribe (line 1104) | func (ps *serverPeerSet) unSubscribe(sub serverPeerSubscriber) { method register (line 1118) | func (ps *serverPeerSet) register(peer *serverPeer) error { method unregister (line 1138) | func (ps *serverPeerSet) unregister(id string) error { method ids (line 1155) | func (ps *serverPeerSet) ids() []string { method peer (line 1167) | func (ps *serverPeerSet) peer(id string) *serverPeer { method len (line 1175) | func (ps *serverPeerSet) len() int { method bestPeer (line 1185) | func (ps *serverPeerSet) bestPeer() *serverPeer { method allPeers (line 1202) | func (ps *serverPeerSet) allPeers() []*serverPeer { method close (line 1215) | func (ps *serverPeerSet) close() { function newServerPeerSet (line 1087) | func newServerPeerSet() *serverPeerSet { FILE: les/peer_test.go type testServerPeerSub (line 38) | type testServerPeerSub struct method registerPeer (line 50) | func (t *testServerPeerSub) registerPeer(p *serverPeer) { t.regCh <-... method unregisterPeer (line 51) | func (t *testServerPeerSub) unregisterPeer(p *serverPeer) { t.unregCh ... function newTestServerPeerSub (line 43) | func newTestServerPeerSub() *testServerPeerSub { function TestPeerSubscription (line 53) | func TestPeerSubscription(t *testing.T) { type fakeChain (line 99) | type fakeChain struct method Config (line 101) | func (f *fakeChain) Config() *params.ChainConfig { return params.Mainn... method Genesis (line 102) | func (f *fakeChain) Genesis() *types.Block { method CurrentHeader (line 105) | func (f *fakeChain) CurrentHeader() *types.Header { return &types.Head... function TestHandshake (line 107) | func TestHandshake(t *testing.T) { FILE: les/protocol.go constant lpv2 (line 36) | lpv2 = 2 constant lpv3 (line 37) | lpv3 = 3 constant lpv4 (line 38) | lpv4 = 4 constant NetworkId (line 52) | NetworkId = 1 constant ProtocolMaxMsgSize (line 53) | ProtocolMaxMsgSize = 10 * 1024 * 1024 constant blockSafetyMargin (line 54) | blockSafetyMargin = 4 constant txIndexUnlimited (line 56) | txIndexUnlimited = 0 constant txIndexDisabled (line 57) | txIndexDisabled = 1 constant txIndexRecentOffset (line 58) | txIndexRecentOffset = 1 constant StatusMsg (line 64) | StatusMsg = 0x00 constant AnnounceMsg (line 65) | AnnounceMsg = 0x01 constant GetBlockHeadersMsg (line 66) | GetBlockHeadersMsg = 0x02 constant BlockHeadersMsg (line 67) | BlockHeadersMsg = 0x03 constant GetBlockBodiesMsg (line 68) | GetBlockBodiesMsg = 0x04 constant BlockBodiesMsg (line 69) | BlockBodiesMsg = 0x05 constant GetReceiptsMsg (line 70) | GetReceiptsMsg = 0x06 constant ReceiptsMsg (line 71) | ReceiptsMsg = 0x07 constant GetCodeMsg (line 72) | GetCodeMsg = 0x0a constant CodeMsg (line 73) | CodeMsg = 0x0b constant GetProofsV2Msg (line 75) | GetProofsV2Msg = 0x0f constant ProofsV2Msg (line 76) | ProofsV2Msg = 0x10 constant GetHelperTrieProofsMsg (line 77) | GetHelperTrieProofsMsg = 0x11 constant HelperTrieProofsMsg (line 78) | HelperTrieProofsMsg = 0x12 constant SendTxV2Msg (line 79) | SendTxV2Msg = 0x13 constant GetTxStatusMsg (line 80) | GetTxStatusMsg = 0x14 constant TxStatusMsg (line 81) | TxStatusMsg = 0x15 constant StopMsg (line 83) | StopMsg = 0x16 constant ResumeMsg (line 84) | ResumeMsg = 0x17 type GetBlockHeadersData (line 88) | type GetBlockHeadersData struct type GetBlockHeadersPacket (line 96) | type GetBlockHeadersPacket struct type GetBlockBodiesPacket (line 102) | type GetBlockBodiesPacket struct type GetCodePacket (line 108) | type GetCodePacket struct type GetReceiptsPacket (line 114) | type GetReceiptsPacket struct type GetProofsPacket (line 120) | type GetProofsPacket struct type GetHelperTrieProofsPacket (line 126) | type GetHelperTrieProofsPacket struct type SendTxPacket (line 132) | type SendTxPacket struct type GetTxStatusPacket (line 138) | type GetTxStatusPacket struct type requestInfo (line 143) | type requestInfo struct type reqMapping (line 152) | type reqMapping struct function init (line 176) | func init() { type errCode (line 198) | type errCode method String (line 219) | func (e errCode) String() string { constant ErrMsgTooLarge (line 201) | ErrMsgTooLarge = iota constant ErrDecode (line 202) | ErrDecode constant ErrInvalidMsgCode (line 203) | ErrInvalidMsgCode constant ErrProtocolVersionMismatch (line 204) | ErrProtocolVersionMismatch constant ErrNetworkIdMismatch (line 205) | ErrNetworkIdMismatch constant ErrGenesisBlockMismatch (line 206) | ErrGenesisBlockMismatch constant ErrNoStatusMsg (line 207) | ErrNoStatusMsg constant ErrExtraStatusMsg (line 208) | ErrExtraStatusMsg constant ErrSuspendedPeer (line 209) | ErrSuspendedPeer constant ErrUselessPeer (line 210) | ErrUselessPeer constant ErrRequestRejected (line 211) | ErrRequestRejected constant ErrUnexpectedResponse (line 212) | ErrUnexpectedResponse constant ErrInvalidResponse (line 213) | ErrInvalidResponse constant ErrTooManyTimeouts (line 214) | ErrTooManyTimeouts constant ErrMissingKey (line 215) | ErrMissingKey constant ErrForkIDRejected (line 216) | ErrForkIDRejected type announceData (line 243) | type announceData struct method sanityCheck (line 252) | func (a *announceData) sanityCheck() error { method sign (line 260) | func (a *announceData) sign(privKey *ecdsa.PrivateKey) { method checkSignature (line 267) | func (a *announceData) checkSignature(id enode.ID, update keyValueMap)... type blockInfo (line 283) | type blockInfo struct type hashOrNumber (line 290) | type hashOrNumber struct method EncodeRLP (line 297) | func (hn *hashOrNumber) EncodeRLP(w io.Writer) error { method DecodeRLP (line 309) | func (hn *hashOrNumber) DecodeRLP(s *rlp.Stream) error { type CodeData (line 326) | type CodeData FILE: les/pruner.go type pruner (line 30) | type pruner struct method close (line 50) | func (p *pruner) close() { method loop (line 60) | func (p *pruner) loop() { function newPruner (line 38) | func newPruner(db ethdb.Database, indexers ...*core.ChainIndexer) *pruner { FILE: les/pruner_test.go function TestLightPruner (line 30) | func TestLightPruner(t *testing.T) { FILE: les/request_test.go function secAddr (line 33) | func secAddr(addr common.Address) []byte { type accessTestFn (line 37) | type accessTestFn function TestBlockAccessLes2 (line 39) | func TestBlockAccessLes2(t *testing.T) { testAccess(t, 2, tfBlockAccess) } function TestBlockAccessLes3 (line 40) | func TestBlockAccessLes3(t *testing.T) { testAccess(t, 3, tfBlockAccess) } function TestBlockAccessLes4 (line 41) | func TestBlockAccessLes4(t *testing.T) { testAccess(t, 4, tfBlockAccess) } function tfBlockAccess (line 43) | func tfBlockAccess(db ethdb.Database, bhash common.Hash, number uint64) ... function TestReceiptsAccessLes2 (line 47) | func TestReceiptsAccessLes2(t *testing.T) { testAccess(t, 2, tfReceiptsA... function TestReceiptsAccessLes3 (line 48) | func TestReceiptsAccessLes3(t *testing.T) { testAccess(t, 3, tfReceiptsA... function TestReceiptsAccessLes4 (line 49) | func TestReceiptsAccessLes4(t *testing.T) { testAccess(t, 4, tfReceiptsA... function tfReceiptsAccess (line 51) | func tfReceiptsAccess(db ethdb.Database, bhash common.Hash, number uint6... function TestTrieEntryAccessLes2 (line 55) | func TestTrieEntryAccessLes2(t *testing.T) { testAccess(t, 2, tfTrieEntr... function TestTrieEntryAccessLes3 (line 56) | func TestTrieEntryAccessLes3(t *testing.T) { testAccess(t, 3, tfTrieEntr... function TestTrieEntryAccessLes4 (line 57) | func TestTrieEntryAccessLes4(t *testing.T) { testAccess(t, 4, tfTrieEntr... function tfTrieEntryAccess (line 59) | func tfTrieEntryAccess(db ethdb.Database, bhash common.Hash, number uint... function TestCodeAccessLes2 (line 66) | func TestCodeAccessLes2(t *testing.T) { testAccess(t, 2, tfCodeAccess) } function TestCodeAccessLes3 (line 67) | func TestCodeAccessLes3(t *testing.T) { testAccess(t, 3, tfCodeAccess) } function TestCodeAccessLes4 (line 68) | func TestCodeAccessLes4(t *testing.T) { testAccess(t, 4, tfCodeAccess) } function tfCodeAccess (line 70) | func tfCodeAccess(db ethdb.Database, bhash common.Hash, num uint64) ligh... function testAccess (line 84) | func testAccess(t *testing.T, protocol int, fn accessTestFn) { FILE: les/retrieve.go type retrieveManager (line 37) | type retrieveManager struct method retrieve (line 108) | func (rm *retrieveManager) retrieve(ctx context.Context, reqID uint64,... method sendReq (line 122) | func (rm *retrieveManager) sendReq(reqID uint64, req *distReq, val val... method requested (line 159) | func (rm *retrieveManager) requested(reqId uint64) bool { method deliver (line 168) | func (rm *retrieveManager) deliver(peer distPeer, msg *Msg) error { method frozen (line 181) | func (rm *retrieveManager) frozen(peer distPeer) { type validatorFunc (line 47) | type validatorFunc type sentReq (line 50) | type sentReq struct method retrieveLoop (line 194) | func (r *sentReq) retrieveLoop() { method stateRequesting (line 210) | func (r *sentReq) stateRequesting() reqStateFn { method stateNoMorePeers (line 252) | func (r *sentReq) stateNoMorePeers() reqStateFn { method stateStopped (line 276) | func (r *sentReq) stateStopped() reqStateFn { method update (line 284) | func (r *sentReq) update(ev reqPeerEvent) { method waiting (line 305) | func (r *sentReq) waiting() bool { method tryRequest (line 312) | func (r *sentReq) tryRequest() { method deliver (line 377) | func (r *sentReq) deliver(peer distPeer, msg *Msg) error { method frozen (line 405) | func (r *sentReq) frozen(peer distPeer) { method stop (line 418) | func (r *sentReq) stop(err error) { method getError (line 430) | func (r *sentReq) getError() error { type sentReqToPeer (line 73) | type sentReqToPeer struct type reqPeerEvent (line 80) | type reqPeerEvent struct constant rpSent (line 86) | rpSent = iota constant rpSoftTimeout (line 87) | rpSoftTimeout constant rpHardTimeout (line 88) | rpHardTimeout constant rpDeliveredValid (line 89) | rpDeliveredValid constant rpDeliveredInvalid (line 90) | rpDeliveredInvalid constant rpNotDelivered (line 91) | rpNotDelivered function newRetrieveManager (line 95) | func newRetrieveManager(peers *serverPeerSet, dist *requestDistributor, ... type reqStateFn (line 191) | type reqStateFn function genReqID (line 435) | func genReqID() uint64 { FILE: les/server.go function init (line 51) | func init() { type ethBackend (line 56) | type ethBackend interface type LesServer (line 65) | type LesServer struct method APIs (line 176) | func (s *LesServer) APIs() []rpc.API { method Protocols (line 199) | func (s *LesServer) Protocols() []p2p.Protocol { method Start (line 216) | func (s *LesServer) Start() error { method Stop (line 229) | func (s *LesServer) Stop() error { method capacityManagement (line 252) | func (s *LesServer) capacityManagement() { method getClient (line 308) | func (s *LesServer) getClient(id enode.ID) *clientPeer { method dropClient (line 317) | func (s *LesServer) dropClient(id enode.ID) { method ServiceInfo (line 324) | func (s *LesServer) ServiceInfo() (string, string) { method Handle (line 329) | func (s *LesServer) Handle(id enode.ID, address string, name string, d... function NewLesServer (line 89) | func NewLesServer(node *node.Node, e ethBackend, config *ethconfig.Confi... FILE: les/server_handler.go constant softResponseLimit (line 46) | softResponseLimit = 2 * 1024 * 1024 constant estHeaderRlpSize (line 47) | estHeaderRlpSize = 500 constant ethVersion (line 48) | ethVersion = 64 constant MaxHeaderFetch (line 50) | MaxHeaderFetch = 192 constant MaxBodyFetch (line 51) | MaxBodyFetch = 32 constant MaxReceiptFetch (line 52) | MaxReceiptFetch = 128 constant MaxCodeFetch (line 53) | MaxCodeFetch = 64 constant MaxProofsFetch (line 54) | MaxProofsFetch = 64 constant MaxHelperTrieProofsFetch (line 55) | MaxHelperTrieProofsFetch = 64 constant MaxTxSend (line 56) | MaxTxSend = 64 constant MaxTxStatus (line 57) | MaxTxStatus = 256 type serverHandler (line 67) | type serverHandler struct method start (line 96) | func (h *serverHandler) start() { method stop (line 102) | func (h *serverHandler) stop() { method runPeer (line 108) | func (h *serverHandler) runPeer(version uint, p *p2p.Peer, rw p2p.MsgR... method handle (line 116) | func (h *serverHandler) handle(p *clientPeer) error { method beforeHandle (line 208) | func (h *serverHandler) beforeHandle(p *clientPeer, reqID, responseCou... method afterHandle (line 247) | func (h *serverHandler) afterHandle(p *clientPeer, reqID, responseCoun... method handleMsg (line 293) | func (h *serverHandler) handleMsg(p *clientPeer, wg *sync.WaitGroup) e... method BlockChain (line 364) | func (h *serverHandler) BlockChain() *core.BlockChain { method TxPool (line 369) | func (h *serverHandler) TxPool() *core.TxPool { method ArchiveMode (line 374) | func (h *serverHandler) ArchiveMode() bool { method AddTxsSync (line 379) | func (h *serverHandler) AddTxsSync() bool { method GetHelperTrie (line 401) | func (h *serverHandler) GetHelperTrie(typ uint, index uint64) *trie.Tr... method broadcastLoop (line 425) | func (h *serverHandler) broadcastLoop() { function newServerHandler (line 82) | func newServerHandler(server *LesServer, blockchain *core.BlockChain, ch... function getAccount (line 384) | func getAccount(triedb *trie.Database, root, hash common.Hash) (state.Ac... type broadcaster (line 459) | type broadcaster struct method setSignerKey (line 479) | func (b *broadcaster) setSignerKey(privateKey *ecdsa.PrivateKey) { method broadcast (line 484) | func (b *broadcaster) broadcast(announce announceData) { method sendTo (line 496) | func (b *broadcaster) sendTo(node *enode.Node) { function newBroadcaster (line 466) | func newBroadcaster(ns *nodestate.NodeStateMachine) *broadcaster { FILE: les/server_requests.go type serverBackend (line 35) | type serverBackend interface type Decoder (line 44) | type Decoder interface type RequestType (line 50) | type RequestType struct type serveRequestFn (line 64) | type serveRequestFn function handleGetBlockHeaders (line 151) | func handleGetBlockHeaders(msg Decoder) (serveRequestFn, uint64, uint64,... function handleGetBlockBodies (line 244) | func handleGetBlockBodies(msg Decoder) (serveRequestFn, uint64, uint64, ... function handleGetCode (line 275) | func handleGetCode(msg Decoder) (serveRequestFn, uint64, uint64, error) { function handleGetReceipts (line 329) | func handleGetReceipts(msg Decoder) (serveRequestFn, uint64, uint64, err... function handleGetProofs (line 368) | func handleGetProofs(msg Decoder) (serveRequestFn, uint64, uint64, error) { function handleGetHelperTrieProofs (line 451) | func handleGetHelperTrieProofs(msg Decoder) (serveRequestFn, uint64, uin... function handleSendTx (line 505) | func handleSendTx(msg Decoder) (serveRequestFn, uint64, uint64, error) { function handleGetTxStatus (line 537) | func handleGetTxStatus(msg Decoder) (serveRequestFn, uint64, uint64, err... function txStatus (line 555) | func txStatus(b serverBackend, hash common.Hash) light.TxStatus { FILE: les/servingqueue.go type servingQueue (line 30) | type servingQueue struct method newTask (line 145) | func (sq *servingQueue) newTask(peer *clientPeer, maxTime uint64, prio... method threadController (line 161) | func (sq *servingQueue) threadController() { method freezePeers (line 213) | func (sq *servingQueue) freezePeers() { method updateRecentTime (line 263) | func (sq *servingQueue) updateRecentTime() { method addTask (line 279) | func (sq *servingQueue) addTask(task *servingTask) { method queueLoop (line 300) | func (sq *servingQueue) queueLoop() { method threadCountLoop (line 336) | func (sq *servingQueue) threadCountLoop() { method setThreads (line 366) | func (sq *servingQueue) setThreads(threadCount int) { method stop (line 375) | func (sq *servingQueue) stop() { type servingTask (line 55) | type servingTask struct method start (line 72) | func (t *servingTask) start() bool { method done (line 96) | func (t *servingTask) done() uint64 { method waitOrStop (line 114) | func (t *servingTask) waitOrStop() bool { type runToken (line 68) | type runToken function newServingQueue (line 124) | func newServingQueue(suspendBias int64, utilTarget float64) *servingQueue { type peerTasks (line 189) | type peerTasks struct type peerList (line 196) | type peerList method Len (line 199) | func (l peerList) Len() int { method Less (line 203) | func (l peerList) Less(i, j int) bool { method Swap (line 207) | func (l peerList) Swap(i, j int) { FILE: les/state_accessor.go method stateAtBlock (line 32) | func (leth *LightEthereum) stateAtBlock(ctx context.Context, block *type... method statesInRange (line 38) | func (leth *LightEthereum) statesInRange(ctx context.Context, fromBlock ... method stateAtTransaction (line 51) | func (leth *LightEthereum) stateAtTransaction(ctx context.Context, block... FILE: les/sync.go constant lightSync (line 37) | lightSync = iota constant legacyCheckpointSync (line 40) | legacyCheckpointSync constant checkpointSync (line 44) | checkpointSync method validateCheckpoint (line 55) | func (h *clientHandler) validateCheckpoint(peer *serverPeer) error { method synchronise (line 91) | func (h *clientHandler) synchronise(peer *serverPeer) { FILE: les/sync_test.go function TestLightSyncingLes3 (line 34) | func TestLightSyncingLes3(t *testing.T) { testCheckpointSyncing(t, lpv3,... function TestLegacyCheckpointSyncingLes3 (line 38) | func TestLegacyCheckpointSyncingLes3(t *testing.T) { testCheckpointSynci... function TestCheckpointSyncingLes3 (line 42) | func TestCheckpointSyncingLes3(t *testing.T) { testCheckpointSyncing(t, ... function testCheckpointSyncing (line 44) | func testCheckpointSyncing(t *testing.T, protocol int, syncMode int) { function TestMissOracleBackendLES3 (line 137) | func TestMissOracleBackendLES3(t *testing.T) { testMissOracl... function TestMissOracleBackendNoCheckpointLES3 (line 138) | func TestMissOracleBackendNoCheckpointLES3(t *testing.T) { testMissOracl... function testMissOracleBackend (line 140) | func testMissOracleBackend(t *testing.T, hasCheckpoint bool, protocol in... function TestSyncFromConfiguredCheckpointLES3 (line 235) | func TestSyncFromConfiguredCheckpointLES3(t *testing.T) { testSyncFromCo... function testSyncFromConfiguredCheckpoint (line 237) | func testSyncFromConfiguredCheckpoint(t *testing.T, protocol int) { function TestSyncAll (line 319) | func TestSyncAll(t *testing.T) { testSyncAll(t, lpv3) } function testSyncAll (line 321) | func testSyncAll(t *testing.T, protocol int) { FILE: les/test_helper.go function prepare (line 108) | func prepare(n int, backend *backends.SimulatedBackend) { function testIndexers (line 182) | func testIndexers(db ethdb.Database, odr light.OdrBackend, config *light... function newTestClientHandler (line 192) | func newTestClientHandler(backend *backends.SimulatedBackend, odr *LesOd... function newTestServerHandler (line 251) | func newTestServerHandler(blocks int, indexers []*core.ChainIndexer, db ... function alwaysTrueFn (line 322) | func alwaysTrueFn() bool { type testPeer (line 327) | type testPeer struct method handshakeWithServer (line 336) | func (p *testPeer) handshakeWithServer(t *testing.T, td *big.Int, head... method handshakeWithClient (line 360) | func (p *testPeer) handshakeWithClient(t *testing.T, td *big.Int, head... method close (line 394) | func (p *testPeer) close() { function newTestPeerPair (line 398) | func newTestPeerPair(name string, version int, server *serverHandler, cl... type indexerCallback (line 443) | type indexerCallback type testClient (line 446) | type testClient struct method newRawPeer (line 458) | func (client *testClient) newRawPeer(t *testing.T, name string, versio... type testServer (line 509) | type testServer struct method newRawPeer (line 522) | func (server *testServer) newRawPeer(t *testing.T, name string, versio... type testnetConfig (line 573) | type testnetConfig struct function newClientServerEnv (line 584) | func newClientServerEnv(t *testing.T, config testnetConfig) (*testServer... function NewFuzzerPeer (line 671) | func NewFuzzerPeer(version int) (p *clientPeer, closer func()) { FILE: les/txrelay.go type lesTxRelay (line 28) | type lesTxRelay struct method Stop (line 50) | func (ltrx *lesTxRelay) Stop() { method registerPeer (line 54) | func (ltrx *lesTxRelay) registerPeer(p *serverPeer) { method unregisterPeer (line 65) | func (ltrx *lesTxRelay) unregisterPeer(p *serverPeer) { method send (line 79) | func (ltrx *lesTxRelay) send(txs types.Transactions, count int) { method Send (line 140) | func (ltrx *lesTxRelay) Send(txs types.Transactions) { method NewHead (line 147) | func (ltrx *lesTxRelay) NewHead(head common.Hash, mined []common.Hash,... method Discard (line 170) | func (ltrx *lesTxRelay) Discard(hashes []common.Hash) { function newLesTxRelay (line 39) | func newLesTxRelay(ps *serverPeerSet, retriever *retrieveManager) *lesTx... FILE: les/ulc.go type ulc (line 26) | type ulc struct method trusted (line 52) | func (u *ulc) trusted(p enode.ID) bool { function newULC (line 32) | func newULC(servers []string, fraction int) (*ulc, error) { FILE: les/ulc_test.go function TestULCAnnounceThresholdLes2 (line 31) | func TestULCAnnounceThresholdLes2(t *testing.T) { testULCAnnounceThresho... function TestULCAnnounceThresholdLes3 (line 32) | func TestULCAnnounceThresholdLes3(t *testing.T) { testULCAnnounceThresho... function testULCAnnounceThreshold (line 34) | func testULCAnnounceThreshold(t *testing.T, protocol int) { function connect (line 89) | func connect(server *serverHandler, serverId enode.ID, client *clientHan... function newTestServerPeer (line 128) | func newTestServerPeer(t *testing.T, blocks int, protocol int) (*testSer... function newTestLightPeer (line 145) | func newTestLightPeer(t *testing.T, protocol int, ulcServers []string, u... FILE: les/utils/exec_queue.go type ExecQueue (line 23) | type ExecQueue struct method loop (line 38) | func (q *ExecQueue) loop() { method waitNext (line 45) | func (q *ExecQueue) waitNext(drop bool) (f func()) { method isClosed (line 63) | func (q *ExecQueue) isClosed() bool { method CanQueue (line 68) | func (q *ExecQueue) CanQueue() bool { method Queue (line 76) | func (q *ExecQueue) Queue(f func()) bool { method Clear (line 88) | func (q *ExecQueue) Clear() { method Quit (line 97) | func (q *ExecQueue) Quit() { function NewExecQueue (line 31) | func NewExecQueue(capacity int) *ExecQueue { FILE: les/utils/exec_queue_test.go function TestExecQueue (line 21) | func TestExecQueue(t *testing.T) { FILE: les/utils/expiredvalue.go type ExpiredValue (line 44) | type ExpiredValue struct method Value (line 71) | func (e ExpiredValue) Value(logOffset Fixed64) uint64 { method Add (line 77) | func (e *ExpiredValue) Add(amount int64, logOffset Fixed64) int64 { method AddExp (line 106) | func (e *ExpiredValue) AddExp(a ExpiredValue) { method SubExp (line 118) | func (e *ExpiredValue) SubExp(a ExpiredValue) { method IsZero (line 134) | func (e *ExpiredValue) IsZero() bool { type ExpirationFactor (line 54) | type ExpirationFactor struct method Value (line 66) | func (e ExpirationFactor) Value(base float64, exp uint64) float64 { function ExpFactor (line 60) | func ExpFactor(logOffset Fixed64) ExpirationFactor { type LinearExpiredValue (line 140) | type LinearExpiredValue struct method Value (line 148) | func (e LinearExpiredValue) Value(now mclock.AbsTime) uint64 { method Add (line 163) | func (e *LinearExpiredValue) Add(amount int64, now mclock.AbsTime) uin... type ValueExpirer (line 183) | type ValueExpirer interface type Expirer (line 194) | type Expirer struct method SetRate (line 203) | func (e *Expirer) SetRate(now mclock.AbsTime, rate float64) { method SetLogOffset (line 216) | func (e *Expirer) SetLogOffset(now mclock.AbsTime, logOffset Fixed64) { method LogOffset (line 225) | func (e *Expirer) LogOffset(now mclock.AbsTime) Fixed64 { constant fixedFactor (line 237) | fixedFactor = 0x1000000 type Fixed64 (line 240) | type Fixed64 method ToUint64 (line 253) | func (f64 Fixed64) ToUint64() uint64 { method Fraction (line 258) | func (f64 Fixed64) Fraction() Fixed64 { method Pow2 (line 268) | func (f64 Fixed64) Pow2() float64 { function Uint64ToFixed64 (line 243) | func Uint64ToFixed64(f uint64) Fixed64 { function Float64ToFixed64 (line 248) | func Float64ToFixed64(f float64) Fixed64 { FILE: les/utils/expiredvalue_test.go function TestValueExpiration (line 25) | func TestValueExpiration(t *testing.T) { function TestValueAddition (line 44) | func TestValueAddition(t *testing.T) { function TestExpiredValueAddition (line 82) | func TestExpiredValueAddition(t *testing.T) { function TestExpiredValueSubtraction (line 102) | func TestExpiredValueSubtraction(t *testing.T) { function TestLinearExpiredValue (line 122) | func TestLinearExpiredValue(t *testing.T) { function TestLinearExpiredAddition (line 159) | func TestLinearExpiredAddition(t *testing.T) { FILE: les/utils/limiter.go constant maxSelectionWeight (line 26) | maxSelectionWeight = 1000000000 type Limiter (line 31) | type Limiter struct method selectionWeights (line 146) | func (l *Limiter) selectionWeights(reqCost uint, value float64) (flatW... method Add (line 177) | func (l *Limiter) Add(id enode.ID, address string, value float64, reqC... method update (line 232) | func (l *Limiter) update(nq *nodeQueue) { method addToGroup (line 249) | func (l *Limiter) addToGroup(nq *nodeQueue, address string) { method removeFromGroup (line 261) | func (l *Limiter) removeFromGroup(nq *nodeQueue) { method remove (line 272) | func (l *Limiter) remove(nq *nodeQueue) { method choose (line 281) | func (l *Limiter) choose() *nodeQueue { method processLoop (line 294) | func (l *Limiter) processLoop() { method Stop (line 335) | func (l *Limiter) Stop() { method dropRequests (line 366) | func (l *Limiter) dropRequests() { type nodeQueue (line 45) | type nodeQueue struct type addressGroup (line 58) | type addressGroup struct method add (line 76) | func (ag *addressGroup) add(nq *nodeQueue) { method update (line 91) | func (ag *addressGroup) update(nq *nodeQueue, weight uint64) { method remove (line 103) | func (ag *addressGroup) remove(nq *nodeQueue) { method choose (line 125) | func (ag *addressGroup) choose() *nodeQueue { type request (line 65) | type request struct function flatWeight (line 71) | func flatWeight(item interface{}) uint64 { return item.(*nodeQueue).flat... function NewLimiter (line 130) | func NewLimiter(sumCostLimit uint) *Limiter { type dropList (line 344) | type dropList method Len (line 351) | func (l dropList) Len() int { method Less (line 355) | func (l dropList) Less(i, j int) bool { method Swap (line 359) | func (l dropList) Swap(i, j int) { type dropListItem (line 345) | type dropListItem struct FILE: les/utils/limiter_test.go constant ltTolerance (line 27) | ltTolerance = 0.03 constant ltRounds (line 28) | ltRounds = 7 type ltNode (line 32) | type ltNode struct type ltResult (line 43) | type ltResult struct type limTest (line 48) | type limTest struct method request (line 56) | func (lt *limTest) request(n *ltNode) { method moreRequests (line 81) | func (lt *limTest) moreRequests(n *ltNode) { method process (line 92) | func (lt *limTest) process() { function TestLimiter (line 108) | func TestLimiter(t *testing.T) { FILE: les/utils/timeutils.go type UpdateTimer (line 26) | type UpdateTimer struct method Update (line 49) | func (t *UpdateTimer) Update(callback func(diff time.Duration) bool) b... method UpdateAt (line 53) | func (t *UpdateTimer) UpdateAt(at mclock.AbsTime, callback func(diff t... function NewUpdateTimer (line 33) | func NewUpdateTimer(clock mclock.Clock, threshold time.Duration) *Update... FILE: les/utils/timeutils_test.go function TestUpdateTimer (line 26) | func TestUpdateTimer(t *testing.T) { FILE: les/utils/weighted_select.go type WeightedRandomSelect (line 28) | type WeightedRandomSelect struct method Update (line 44) | func (w *WeightedRandomSelect) Update(item WrsItem) { method Remove (line 49) | func (w *WeightedRandomSelect) Remove(item WrsItem) { method IsEmpty (line 54) | func (w *WeightedRandomSelect) IsEmpty() bool { method setWeight (line 59) | func (w *WeightedRandomSelect) setWeight(item WrsItem, weight uint64) { method Choose (line 92) | func (w *WeightedRandomSelect) Choose() WrsItem { type WrsItem (line 33) | type WrsItem interface type WeightFn (line 34) | type WeightFn function NewWeightedRandomSelect (line 38) | func NewWeightedRandomSelect(wfn WeightFn) *WeightedRandomSelect { constant wrsBranches (line 109) | wrsBranches = 8 type wrsNode (line 112) | type wrsNode struct method insert (line 120) | func (n *wrsNode) insert(item WrsItem, weight uint64) int { method setWeight (line 148) | func (n *wrsNode) setWeight(idx int, weight uint64) uint64 { method choose (line 172) | func (n *wrsNode) choose(val uint64) (WrsItem, uint64) { FILE: les/utils/weighted_select_test.go type testWrsItem (line 24) | type testWrsItem struct function testWeight (line 29) | func testWeight(i interface{}) uint64 { function TestWeightedRandomSelect (line 38) | func TestWeightedRandomSelect(t *testing.T) { FILE: les/vflux/client/api.go type PrivateClientAPI (line 28) | type PrivateClientAPI struct method RequestStats (line 51) | func (api *PrivateClientAPI) RequestStats() []RequestStatsItem { method Distribution (line 61) | func (api *PrivateClientAPI) Distribution(nodeStr string, normalized b... method Timeout (line 83) | func (api *PrivateClientAPI) Timeout(nodeStr string, failRate float64)... method Value (line 96) | func (api *PrivateClientAPI) Value(nodeStr string, timeout float64) (f... function NewPrivateClientAPI (line 33) | func NewPrivateClientAPI(vt *ValueTracker) *PrivateClientAPI { function parseNodeStr (line 38) | func parseNodeStr(nodeStr string) (enode.ID, error) { FILE: les/vflux/client/fillset.go type FillSet (line 31) | type FillSet struct method readLoop (line 70) | func (fs *FillSet) readLoop() { method SetTarget (line 89) | func (fs *FillSet) SetTarget(target int) { method Close (line 100) | func (fs *FillSet) Close() { function NewFillSet (line 42) | func NewFillSet(ns *nodestate.NodeStateMachine, input enode.Iterator, fl... FILE: les/vflux/client/queueiterator.go type QueueIterator (line 28) | type QueueIterator struct method Next (line 78) | func (qi *QueueIterator) Next() bool { method Close (line 110) | func (qi *QueueIterator) Close() { method Node (line 118) | func (qi *QueueIterator) Node() *enode.Node { function NewQueueIterator (line 42) | func NewQueueIterator(ns *nodestate.NodeStateMachine, requireFlags, disa... FILE: les/vflux/client/queueiterator_test.go function testNode (line 29) | func testNode(i int) *enode.Node { function TestQueueIteratorFIFO (line 33) | func TestQueueIteratorFIFO(t *testing.T) { function TestQueueIteratorLIFO (line 37) | func TestQueueIteratorLIFO(t *testing.T) { function testQueueIterator (line 41) | func testQueueIterator(t *testing.T, fifo bool) { FILE: les/vflux/client/requestbasket.go constant basketFactor (line 26) | basketFactor = 1000000 type referenceBasket (line 36) | type referenceBasket struct method init (line 144) | func (r *referenceBasket) init(size int) { method add (line 153) | func (r *referenceBasket) add(newBasket requestBasket) { method updateReqValues (line 177) | func (r *referenceBasket) updateReqValues() { method normalize (line 189) | func (r *referenceBasket) normalize() { method reqValueFactor (line 204) | func (r *referenceBasket) reqValueFactor(costList []uint64) float64 { type serverBasket (line 50) | type serverBasket struct method init (line 98) | func (s *serverBasket) init(size int) { method add (line 106) | func (s *serverBasket) add(reqType, reqAmount uint32, reqCost uint64, ... method updateRvFactor (line 115) | func (s *serverBasket) updateRvFactor(rvFactor float64) { method transfer (line 122) | func (s *serverBasket) transfer(ratio float64) requestBasket { type requestBasket (line 59) | type requestBasket struct method setExp (line 75) | func (b *requestBasket) setExp(exp uint64) { method EncodeRLP (line 237) | func (r *requestBasket) EncodeRLP(w io.Writer) error { method DecodeRLP (line 242) | func (r *requestBasket) DecodeRLP(s *rlp.Stream) error { method convertMapping (line 259) | func (r requestBasket) convertMapping(oldMapping, newMapping []string,... type basketItem (line 68) | type basketItem struct method EncodeRLP (line 220) | func (b *basketItem) EncodeRLP(w io.Writer) error { method DecodeRLP (line 225) | func (b *basketItem) DecodeRLP(s *rlp.Stream) error { FILE: les/vflux/client/requestbasket_test.go function checkU64 (line 26) | func checkU64(t *testing.T, name string, value, exp uint64) { function checkF64 (line 32) | func checkF64(t *testing.T, name string, value, exp, tol float64) { function TestServerBasket (line 38) | func TestServerBasket(t *testing.T) { function TestConvertMapping (line 72) | func TestConvertMapping(t *testing.T) { function TestReqValueFactor (line 84) | func TestReqValueFactor(t *testing.T) { function TestNormalize (line 97) | func TestNormalize(t *testing.T) { function TestReqValueAdjustment (line 121) | func TestReqValueAdjustment(t *testing.T) { FILE: les/vflux/client/serverpool.go constant minTimeout (line 39) | minTimeout = time.Millisecond * 500 constant timeoutRefresh (line 40) | timeoutRefresh = time.Second * 5 constant dialCost (line 41) | dialCost = 10000 constant dialWaitStep (line 42) | dialWaitStep = 1.5 constant queryCost (line 43) | queryCost = 500 constant queryWaitStep (line 44) | queryWaitStep = 1.02 constant waitThreshold (line 45) | waitThreshold = time.Hour * 2000 constant nodeWeightMul (line 46) | nodeWeightMul = 1000000 constant nodeWeightThreshold (line 47) | nodeWeightThreshold = 100 constant minRedialWait (line 48) | minRedialWait = 10 constant preNegLimit (line 49) | preNegLimit = 5 constant warnQueryFails (line 50) | warnQueryFails = 20 constant maxQueryFails (line 51) | maxQueryFails = 100 type ServerPool (line 56) | type ServerPool struct method AddMetrics (line 222) | func (s *ServerPool) AddMetrics( method AddSource (line 241) | func (s *ServerPool) AddSource(source enode.Iterator) { method addPreNegFilter (line 250) | func (s *ServerPool) addPreNegFilter(input enode.Iterator, query Query... method Start (line 307) | func (s *ServerPool) Start() { method Stop (line 341) | func (s *ServerPool) Stop() { method RegisterNode (line 356) | func (s *ServerPool) RegisterNode(node *enode.Node) (*NodeValueTracker... method UnregisterNode (line 372) | func (s *ServerPool) UnregisterNode(node *enode.Node) { method recalTimeout (line 384) | func (s *ServerPool) recalTimeout() { method GetTimeout (line 427) | func (s *ServerPool) GetTimeout() time.Duration { method getTimeoutAndWeight (line 436) | func (s *ServerPool) getTimeoutAndWeight() (time.Duration, ResponseTim... method addDialCost (line 445) | func (s *ServerPool) addDialCost(n *nodeHistory, amount int64) uint64 { method serviceValue (line 458) | func (s *ServerPool) serviceValue(node *enode.Node) (sessionValue, tot... method updateWeight (line 482) | func (s *ServerPool) updateWeight(node *enode.Node, totalValue float64... method setRedialWait (line 505) | func (s *ServerPool) setRedialWait(node *enode.Node, addDialCost int64... method calculateWeight (line 571) | func (s *ServerPool) calculateWeight(node *enode.Node) { method API (line 579) | func (s *ServerPool) API() *PrivateClientAPI { method DialNode (line 595) | func (s *ServerPool) DialNode(n *enode.Node) *enode.Node { method Persist (line 604) | func (s *ServerPool) Persist(n *enode.Node) { type nodeHistory (line 82) | type nodeHistory struct type nodeHistoryEnc (line 87) | type nodeHistoryEnc struct type QueryFunc (line 95) | type QueryFunc function NewServerPool (line 154) | func NewServerPool(db ethdb.KeyValueStore, dbKey []byte, mixTimeout time... type serverPoolIterator (line 196) | type serverPoolIterator struct method Next (line 203) | func (s *serverPoolIterator) Next() bool { method Node (line 212) | func (s *serverPoolIterator) Node() *enode.Node { method Close (line 217) | func (s *serverPoolIterator) Close() { type dummyIdentity (line 583) | type dummyIdentity method Verify (line 585) | func (id dummyIdentity) Verify(r *enr.Record, sig []byte) error { retu... method NodeAddr (line 586) | func (id dummyIdentity) NodeAddr(r *enr.Record) []byte { retu... FILE: les/vflux/client/serverpool_test.go constant spTestNodes (line 34) | spTestNodes = 1000 constant spTestTarget (line 35) | spTestTarget = 5 constant spTestLength (line 36) | spTestLength = 10000 constant spMinTotal (line 37) | spMinTotal = 40000 constant spMaxTotal (line 38) | spMaxTotal = 50000 function testNodeID (line 41) | func testNodeID(i int) enode.ID { function testNodeIndex (line 45) | func testNodeIndex(id enode.ID) int { type ServerPoolTest (line 52) | type ServerPoolTest struct method beginWait (line 92) | func (s *ServerPoolTest) beginWait() { method endWait (line 100) | func (s *ServerPoolTest) endWait() { method addTrusted (line 105) | func (s *ServerPoolTest) addTrusted(i int) { method start (line 109) | func (s *ServerPoolTest) start() { method stop (line 177) | func (s *ServerPoolTest) stop() { method run (line 193) | func (s *ServerPoolTest) run() { method setNodes (line 241) | func (s *ServerPoolTest) setNodes(count, conn, wait int, service, trus... method resetNodes (line 260) | func (s *ServerPoolTest) resetNodes() { method checkNodes (line 273) | func (s *ServerPoolTest) checkNodes(t *testing.T, nodes []int) { type spTestNode (line 70) | type spTestNode struct function newServerPoolTest (line 77) | func newServerPoolTest(preNeg, preNegFail bool) *ServerPoolTest { function TestServerPool (line 291) | func TestServerPool(t *testing.T) { testServerPool(t, fals... function TestServerPoolWithPreNeg (line 292) | func TestServerPoolWithPreNeg(t *testing.T) { testServerPool(t, true... function TestServerPoolWithPreNegFail (line 293) | func TestServerPoolWithPreNegFail(t *testing.T) { testServerPool(t, true... function testServerPool (line 294) | func testServerPool(t *testing.T, preNeg, fail bool) { function TestServerPoolChangedNodes (line 304) | func TestServerPoolChangedNodes(t *testing.T) { testServerPool... function TestServerPoolChangedNodesWithPreNeg (line 305) | func TestServerPoolChangedNodesWithPreNeg(t *testing.T) { testServerPool... function testServerPoolChangedNodes (line 306) | func testServerPoolChangedNodes(t *testing.T, preNeg bool) { function TestServerPoolRestartNoDiscovery (line 323) | func TestServerPoolRestartNoDiscovery(t *testing.T) { testServerPoolRest... function TestServerPoolRestartNoDiscoveryWithPreNeg (line 324) | func TestServerPoolRestartNoDiscoveryWithPreNeg(t *testing.T) { function testServerPoolRestartNoDiscovery (line 327) | func testServerPoolRestartNoDiscovery(t *testing.T, preNeg bool) { function TestServerPoolTrustedNoDiscovery (line 342) | func TestServerPoolTrustedNoDiscovery(t *testing.T) { testServerPoolTrus... function TestServerPoolTrustedNoDiscoveryWithPreNeg (line 343) | func TestServerPoolTrustedNoDiscoveryWithPreNeg(t *testing.T) { function testServerPoolTrustedNoDiscovery (line 346) | func testServerPoolTrustedNoDiscovery(t *testing.T, preNeg bool) { FILE: les/vflux/client/timestats.go constant minResponseTime (line 29) | minResponseTime = time.Millisecond * 50 constant maxResponseTime (line 30) | maxResponseTime = time.Second * 10 constant timeStatLength (line 31) | timeStatLength = 32 constant weightScaleFactor (line 32) | weightScaleFactor = 1000000 type ResponseTimeStats (line 42) | type ResponseTimeStats struct method EncodeRLP (line 96) | func (rt *ResponseTimeStats) EncodeRLP(w io.Writer) error { method DecodeRLP (line 105) | func (rt *ResponseTimeStats) DecodeRLP(s *rlp.Stream) error { method Add (line 118) | func (rt *ResponseTimeStats) Add(respTime time.Duration, weight float6... method setExp (line 132) | func (rt *ResponseTimeStats) setExp(exp uint64) { method Value (line 151) | func (rt ResponseTimeStats) Value(weights ResponseTimeWeights, expFact... method AddStats (line 163) | func (rt *ResponseTimeStats) AddStats(s *ResponseTimeStats) { method SubStats (line 171) | func (rt *ResponseTimeStats) SubStats(s *ResponseTimeStats) { method Timeout (line 188) | func (rt ResponseTimeStats) Timeout(failRatio float64) time.Duration { method Distribution (line 219) | func (rt ResponseTimeStats) Distribution(normalized bool, expFactor ut... type ResponseTimeWeights (line 46) | type ResponseTimeWeights function TimeToStatScale (line 53) | func TimeToStatScale(d time.Duration) float64 { function StatScaleToTime (line 70) | func StatScaleToTime(r float64) time.Duration { function TimeoutWeights (line 83) | func TimeoutWeights(timeout time.Duration) (res ResponseTimeWeights) { type RtDistribution (line 216) | type RtDistribution FILE: les/vflux/client/timestats_test.go function TestTransition (line 28) | func TestTransition(t *testing.T) { function TestValue (line 49) | func TestValue(t *testing.T) { function TestAddSubExpire (line 72) | func TestAddSubExpire(t *testing.T) { function TestTimeout (line 112) | func TestTimeout(t *testing.T) { function testTimeoutRange (line 118) | func testTimeoutRange(t *testing.T, min, max time.Duration) { function makeRangeStats (line 130) | func makeRangeStats(min, max time.Duration, amount float64, exp utils.Ex... FILE: les/vflux/client/valuetracker.go constant vtVersion (line 35) | vtVersion = 1 constant nvtVersion (line 36) | nvtVersion = 1 type NodeValueTracker (line 45) | type NodeValueTracker struct method UpdateCosts (line 57) | func (nv *NodeValueTracker) UpdateCosts(reqCosts []uint64) { method updateCosts (line 68) | func (nv *NodeValueTracker) updateCosts(reqCosts []uint64, reqValues *... method transferStats (line 83) | func (nv *NodeValueTracker) transferStats(now mclock.AbsTime, transfer... method Served (line 104) | func (nv *NodeValueTracker) Served(reqs []ServedRequest, respTime time... method RtStats (line 121) | func (nv *NodeValueTracker) RtStats() ResponseTimeStats { type ServedRequest (line 98) | type ServedRequest struct type ValueTracker (line 130) | type ValueTracker struct method StatsExpirer (line 232) | func (vt *ValueTracker) StatsExpirer() *utils.Expirer { method StatsExpFactor (line 238) | func (vt *ValueTracker) StatsExpFactor() utils.ExpirationFactor { method loadFromDb (line 247) | func (vt *ValueTracker) loadFromDb(mapping []string) error { method saveToDb (line 306) | func (vt *ValueTracker) saveToDb() { method Stop (line 332) | func (vt *ValueTracker) Stop() { method Register (line 347) | func (vt *ValueTracker) Register(id enode.ID) *NodeValueTracker { method Unregister (line 367) | func (vt *ValueTracker) Unregister(id enode.ID) { method GetNode (line 379) | func (vt *ValueTracker) GetNode(id enode.ID) *NodeValueTracker { method loadOrNewNode (line 388) | func (vt *ValueTracker) loadOrNewNode(id enode.ID) *NodeValueTracker { method saveNode (line 427) | func (vt *ValueTracker) saveNode(id enode.ID, nv *NodeValueTracker) { method RtStats (line 454) | func (vt *ValueTracker) RtStats() ResponseTimeStats { method periodicUpdate (line 465) | func (vt *ValueTracker) periodicUpdate() { method RequestStats (line 491) | func (vt *ValueTracker) RequestStats() []RequestStatsItem { type valueTrackerEncV1 (line 151) | type valueTrackerEncV1 struct type nodeValueTrackerEncV1 (line 159) | type nodeValueTrackerEncV1 struct type RequestInfo (line 166) | type RequestInfo struct function NewValueTracker (line 175) | func NewValueTracker(db ethdb.KeyValueStore, clock mclock.Clock, reqInfo... type RequestStatsItem (line 484) | type RequestStatsItem struct FILE: les/vflux/client/valuetracker_test.go constant testReqTypes (line 34) | testReqTypes = 3 constant testNodeCount (line 35) | testNodeCount = 5 constant testReqCount (line 36) | testReqCount = 10000 constant testRounds (line 37) | testRounds = 10 function TestValueTracker (line 40) | func TestValueTracker(t *testing.T) { FILE: les/vflux/client/wrsiterator.go type WrsIterator (line 29) | type WrsIterator struct method Next (line 87) | func (w *WrsIterator) Next() bool { method chooseNode (line 92) | func (w *WrsIterator) chooseNode() *enode.Node { method Close (line 116) | func (w *WrsIterator) Close() { method Node (line 124) | func (w *WrsIterator) Node() *enode.Node { function NewWrsIterator (line 42) | func NewWrsIterator(ns *nodestate.NodeStateMachine, requireFlags, disabl... FILE: les/vflux/client/wrsiterator_test.go constant iterTestNodeCount (line 37) | iterTestNodeCount = 6 function TestWrsIterator (line 39) | func TestWrsIterator(t *testing.T) { FILE: les/vflux/requests.go constant MaxRequestLength (line 30) | MaxRequestLength = 16 constant CapacityQueryName (line 31) | CapacityQueryName = "cq" constant CapacityQueryMaxLen (line 32) | CapacityQueryMaxLen = 16 type Request (line 38) | type Request struct type Requests (line 43) | type Requests method Add (line 58) | func (r *Requests) Add(service, name string, val interface{}) (int, er... type Replies (line 46) | type Replies method Get (line 72) | func (r Replies) Get(i int, val interface{}) error { type CapacityQueryReq (line 49) | type CapacityQueryReq struct type CapacityQueryReply (line 54) | type CapacityQueryReply constant IntNonNegative (line 80) | IntNonNegative = iota constant IntNegative (line 81) | IntNegative constant IntPlusInf (line 82) | IntPlusInf constant IntMinusInf (line 83) | IntMinusInf type IntOrInf (line 88) | type IntOrInf struct method BigInt (line 94) | func (i *IntOrInf) BigInt() *big.Int { method Inf (line 109) | func (i *IntOrInf) Inf() int { method Int64 (line 120) | func (i *IntOrInf) Int64() int64 { method SetBigInt (line 143) | func (i *IntOrInf) SetBigInt(v *big.Int) { method SetInt64 (line 155) | func (i *IntOrInf) SetInt64(v int64) { method SetInf (line 174) | func (i *IntOrInf) SetInf(sign int) { FILE: les/vflux/server/balance.go constant maxBalance (line 33) | maxBalance = math.MaxInt64 constant balanceCallbackUpdate (line 36) | balanceCallbackUpdate = iota constant balanceCallbackZero (line 37) | balanceCallbackZero constant balanceCallbackCount (line 38) | balanceCallbackCount type PriceFactors (line 46) | type PriceFactors struct method timePrice (line 51) | func (p PriceFactors) timePrice(cap uint64) float64 { type NodeBalance (line 58) | type NodeBalance struct method GetBalance (line 93) | func (n *NodeBalance) GetBalance() (uint64, uint64) { method GetRawBalance (line 104) | func (n *NodeBalance) GetRawBalance() (utils.ExpiredValue, utils.Expir... method AddBalance (line 117) | func (n *NodeBalance) AddBalance(amount int64) (uint64, uint64, error) { method SetBalance (line 163) | func (n *NodeBalance) SetBalance(pos, neg uint64) error { method RequestServed (line 198) | func (n *NodeBalance) RequestServed(cost uint64) uint64 { method Priority (line 246) | func (n *NodeBalance) Priority(capacity uint64) int64 { method EstimatePriority (line 259) | func (n *NodeBalance) EstimatePriority(capacity uint64, addBalance int... method PosBalanceMissing (line 297) | func (n *NodeBalance) PosBalanceMissing(targetPriority int64, targetCa... method SetPriceFactors (line 332) | func (n *NodeBalance) SetPriceFactors(posFactor, negFactor PriceFactor... method GetPriceFactors (line 349) | func (n *NodeBalance) GetPriceFactors() (posFactor, negFactor PriceFac... method activate (line 357) | func (n *NodeBalance) activate() { method deactivate (line 369) | func (n *NodeBalance) deactivate() { method updateBalance (line 386) | func (n *NodeBalance) updateBalance(now mclock.AbsTime) { method storeBalance (line 394) | func (n *NodeBalance) storeBalance(pos, neg bool) { method addCallback (line 408) | func (n *NodeBalance) addCallback(id int, threshold int64, callback fu... method removeCallback (line 428) | func (n *NodeBalance) removeCallback(id int) bool { method checkCallbacks (line 445) | func (n *NodeBalance) checkCallbacks(now mclock.AbsTime) (callbacks []... method scheduleCheck (line 461) | func (n *NodeBalance) scheduleCheck(now mclock.AbsTime) { method updateAfter (line 487) | func (n *NodeBalance) updateAfter(dt time.Duration) { method balanceExhausted (line 515) | func (n *NodeBalance) balanceExhausted() { method checkPriorityStatus (line 526) | func (n *NodeBalance) checkPriorityStatus() bool { method signalPriorityUpdate (line 537) | func (n *NodeBalance) signalPriorityUpdate() { method setCapacity (line 545) | func (n *NodeBalance) setCapacity(capacity uint64) { method balanceToPriority (line 560) | func (n *NodeBalance) balanceToPriority(b balance, capacity uint64) in... method reducedBalance (line 569) | func (n *NodeBalance) reducedBalance(b balance, start mclock.AbsTime, ... method timeUntil (line 596) | func (n *NodeBalance) timeUntil(priority int64) (time.Duration, bool) { type balance (line 80) | type balance struct type balanceCallback (line 86) | type balanceCallback struct FILE: les/vflux/server/balance_test.go function init (line 40) | func init() { type zeroExpirer (line 44) | type zeroExpirer struct method SetRate (line 46) | func (z zeroExpirer) SetRate(now mclock.AbsTime, rate float64) ... method SetLogOffset (line 47) | func (z zeroExpirer) SetLogOffset(now mclock.AbsTime, logOffset utils.... method LogOffset (line 48) | func (z zeroExpirer) LogOffset(now mclock.AbsTime) utils.Fixed64 ... type balanceTestSetup (line 50) | type balanceTestSetup struct method newNode (line 69) | func (b *balanceTestSetup) newNode(capacity uint64) *NodeBalance { method stop (line 80) | func (b *balanceTestSetup) stop() { function newBalanceTestSetup (line 56) | func newBalanceTestSetup() *balanceTestSetup { function TestAddBalance (line 85) | func TestAddBalance(t *testing.T) { function TestSetBalance (line 121) | func TestSetBalance(t *testing.T) { function TestBalanceTimeCost (line 146) | func TestBalanceTimeCost(t *testing.T) { function TestBalanceReqCost (line 187) | func TestBalanceReqCost(t *testing.T) { function TestBalanceToPriority (line 216) | func TestBalanceToPriority(t *testing.T) { function TestEstimatedPriority (line 241) | func TestEstimatedPriority(t *testing.T) { function TestPosBalanceMissing (line 282) | func TestPosBalanceMissing(t *testing.T) { function TestPostiveBalanceCounting (line 311) | func TestPostiveBalanceCounting(t *testing.T) { function TestCallbackChecking (line 352) | func TestCallbackChecking(t *testing.T) { function TestCallback (line 375) | func TestCallback(t *testing.T) { function TestBalancePersistence (line 405) | func TestBalancePersistence(t *testing.T) { FILE: les/vflux/server/balance_tracker.go constant posThreshold (line 32) | posThreshold = 1000000 constant negThreshold (line 33) | negThreshold = 1000000 constant persistExpirationRefresh (line 34) | persistExpirationRefresh = time.Minute * 5 type BalanceTrackerSetup (line 38) | type BalanceTrackerSetup struct method Connect (line 62) | func (bts *BalanceTrackerSetup) Connect(connAddressField, capacityFiel... function NewBalanceTrackerSetup (line 48) | func NewBalanceTrackerSetup(setup *nodestate.Setup) BalanceTrackerSetup { type BalanceTracker (line 75) | type BalanceTracker struct method Stop (line 161) | func (bt *BalanceTracker) Stop() { method TotalTokenAmount (line 177) | func (bt *BalanceTracker) TotalTokenAmount() uint64 { method GetPosBalanceIDs (line 197) | func (bt *BalanceTracker) GetPosBalanceIDs(start, stop enode.ID, maxCo... method SetExpirationTCs (line 203) | func (bt *BalanceTracker) SetExpirationTCs(pos, neg uint64) { method GetExpirationTCs (line 223) | func (bt *BalanceTracker) GetExpirationTCs() (pos, neg uint64) { method newNodeBalance (line 234) | func (bt *BalanceTracker) newNodeBalance(node *enode.Node, negBalanceK... method storeBalance (line 255) | func (bt *BalanceTracker) storeBalance(id []byte, neg bool, value util... method canDropBalance (line 265) | func (bt *BalanceTracker) canDropBalance(now mclock.AbsTime, neg bool,... method updateTotalBalance (line 273) | func (bt *BalanceTracker) updateTotalBalance(n *NodeBalance, callback ... function NewBalanceTracker (line 90) | func NewBalanceTracker(ns *nodestate.NodeStateMachine, setup BalanceTrac... FILE: les/vflux/server/clientdb.go constant balanceCacheLimit (line 35) | balanceCacheLimit = 8192 constant nodeDBVersion (line 46) | nodeDBVersion = 2 constant dbCleanupCycle (line 49) | dbCleanupCycle = time.Hour type nodeDB (line 58) | type nodeDB struct method close (line 83) | func (db *nodeDB) close() { method getPrefix (line 87) | func (db *nodeDB) getPrefix(neg bool) []byte { method key (line 95) | func (db *nodeDB) key(id []byte, neg bool) []byte { method getExpiration (line 109) | func (db *nodeDB) getExpiration() (utils.Fixed64, utils.Fixed64) { method setExpiration (line 117) | func (db *nodeDB) setExpiration(pos, neg utils.Fixed64) { method getOrNewBalance (line 124) | func (db *nodeDB) getOrNewBalance(id []byte, neg bool) utils.ExpiredVa... method setBalance (line 142) | func (db *nodeDB) setBalance(id []byte, neg bool, b utils.ExpiredValue) { method delBalance (line 152) | func (db *nodeDB) delBalance(id []byte, neg bool) { method getPosBalanceIDs (line 160) | func (db *nodeDB) getPosBalanceIDs(start, stop enode.ID, maxCount int)... method forEachBalance (line 188) | func (db *nodeDB) forEachBalance(neg bool, callback func(id enode.ID, ... method expirer (line 212) | func (db *nodeDB) expirer() { method expireNodes (line 225) | func (db *nodeDB) expireNodes() { function newNodeDB (line 69) | func newNodeDB(db ethdb.KeyValueStore, clock mclock.Clock) *nodeDB { FILE: les/vflux/server/prioritypool.go constant lazyQueueRefresh (line 33) | lazyQueueRefresh = time.Second * 10 type PriorityPoolSetup (line 39) | type PriorityPoolSetup struct method Connect (line 60) | func (pps *PriorityPoolSetup) Connect(priorityField nodestate.Field, u... function NewPriorityPoolSetup (line 50) | func NewPriorityPoolSetup(setup *nodestate.Setup) PriorityPoolSetup { type PriorityPool (line 91) | type PriorityPool struct method RequestCapacity (line 192) | func (pp *PriorityPool) RequestCapacity(node *enode.Node, targetCap ui... method SetLimits (line 233) | func (pp *PriorityPool) SetLimits(maxCount, maxCap uint64) { method SetActiveBias (line 255) | func (pp *PriorityPool) SetActiveBias(bias time.Duration) { method Active (line 264) | func (pp *PriorityPool) Active() (uint64, uint64) { method activeMaxPriority (line 304) | func (pp *PriorityPool) activeMaxPriority(a interface{}, until mclock.... method inactivePriority (line 317) | func (pp *PriorityPool) inactivePriority(p *ppNodeInfo) int64 { method connectedNode (line 323) | func (pp *PriorityPool) connectedNode(c *ppNodeInfo) { method disconnectedNode (line 343) | func (pp *PriorityPool) disconnectedNode(c *ppNodeInfo) { method markForChange (line 368) | func (pp *PriorityPool) markForChange(c *ppNodeInfo) { method setCapacity (line 380) | func (pp *PriorityPool) setCapacity(n *ppNodeInfo, cap uint64) { method enforceLimits (line 394) | func (pp *PriorityPool) enforceLimits() (*ppNodeInfo, int64) { method finalizeChanges (line 424) | func (pp *PriorityPool) finalizeChanges(commit bool) (updates []capUpd... method updateFlags (line 463) | func (pp *PriorityPool) updateFlags(updates []capUpdate) { method tryActivate (line 478) | func (pp *PriorityPool) tryActivate() []capUpdate { method updatePriority (line 500) | func (pp *PriorityPool) updatePriority(node *enode.Node) { method GetCapacityCurve (line 538) | func (pp *PriorityPool) GetCapacityCurve() *CapacityCurve { type nodePriority (line 111) | type nodePriority interface type ppNodeInfo (line 122) | type ppNodeInfo struct function NewPriorityPool (line 133) | func NewPriorityPool(ns *nodestate.NodeStateMachine, setup PriorityPoolS... function inactiveSetIndex (line 272) | func inactiveSetIndex(a interface{}, index int) { function activeSetIndex (line 277) | func activeSetIndex(a interface{}, index int) { function invertPriority (line 283) | func invertPriority(p int64) int64 { function activePriority (line 291) | func activePriority(a interface{}) int64 { type capUpdate (line 455) | type capUpdate struct type CapacityCurve (line 525) | type CapacityCurve struct method Exclude (line 604) | func (cc *CapacityCurve) Exclude(id enode.ID) *CapacityCurve { method getPoint (line 618) | func (cc *CapacityCurve) getPoint(i int) curvePoint { method MaxCapacity (line 639) | func (cc *CapacityCurve) MaxCapacity(priority func(cap uint64) int64) ... type curvePoint (line 532) | type curvePoint struct FILE: les/vflux/server/prioritypool_test.go function init (line 39) | func init() { constant testCapacityStepDiv (line 44) | testCapacityStepDiv = 100 constant testCapacityToleranceDiv (line 45) | testCapacityToleranceDiv = 10 constant testMinCap (line 46) | testMinCap = 100 type ppTestClient (line 49) | type ppTestClient struct method Priority (line 54) | func (c *ppTestClient) Priority(cap uint64) int64 { method EstimatePriority (line 58) | func (c *ppTestClient) EstimatePriority(cap uint64, addBalance int64, ... function TestPriorityPool (line 62) | func TestPriorityPool(t *testing.T) { function TestCapacityCurve (line 176) | func TestCapacityCurve(t *testing.T) { FILE: les/vflux/server/service.go type Server (line 34) | type Server struct method Register (line 63) | func (s *Server) Register(b Service) { method Serve (line 80) | func (s *Server) Serve(id enode.ID, address string, requests vflux.Req... method ServeEncoded (line 106) | func (s *Server) ServeEncoded(id enode.ID, addr *net.UDPAddr, req []by... method Stop (line 120) | func (s *Server) Stop() { type Service (line 42) | type Service interface type serviceEntry (line 47) | type serviceEntry struct function NewServer (line 54) | func NewServer(delayPerRequest time.Duration) *Server { FILE: liblangutil/CharStream.cpp function string (line 84) | string CharStream::lineAtPosition(int _position) const FILE: liblangutil/ErrorReporter.cpp function ErrorReporter (line 33) | ErrorReporter& ErrorReporter::operator=(ErrorReporter const& _errorRepor... function ErrorList (line 124) | ErrorList const& ErrorReporter::errors() const FILE: liblangutil/ParserBase.cpp function SourceLocation (line 32) | SourceLocation ParserBase::currentLocation() const function Token (line 37) | Token ParserBase::currentToken() const function Token (line 42) | Token ParserBase::peekNextToken() const function string (line 47) | string ParserBase::currentLiteral() const function Token (line 52) | Token ParserBase::advance() function string (line 57) | string ParserBase::tokenName(Token _token) FILE: liblangutil/Scanner.cpp type solidity::langutil (line 65) | namespace solidity::langutil { function string (line 67) | string to_string(ScannerError _errorCode) function ostream (line 92) | ostream& operator<<(ostream& os, ScannerError _errorCode) type LiteralType (line 99) | enum LiteralType class LiteralScope (line 106) | class LiteralScope method LiteralScope (line 109) | explicit LiteralScope(Scanner* _self, enum LiteralType _type): method complete (line 129) | void complete() { m_complete = true; } type LiteralType (line 132) | enum LiteralType function Token (line 238) | Token Scanner::next() function Token (line 250) | Token Scanner::selectToken(char _next, Token _then, Token _else) function ScannerError (line 286) | static ScannerError validateBiDiMarkup(CharStream& _stream, size_t _st... function Token (line 320) | Token Scanner::skipSingleLineComment() function Token (line 402) | Token Scanner::skipMultiLineComment() function Token (line 427) | Token Scanner::scanMultiLineDocComment() function Token (line 482) | Token Scanner::scanSlash() function Token (line 834) | Token Scanner::scanString(bool const _isUnicode) function Token (line 877) | Token Scanner::scanHexString() function Token (line 926) | Token Scanner::scanNumber(char _charSeen) FILE: liblangutil/SemVerHandler.cpp function Token (line 290) | Token SemVerMatchExpressionParser::currentToken() const FILE: liblangutil/SourceLocation.cpp type solidity::langutil (line 25) | namespace solidity::langutil function SourceLocation (line 28) | SourceLocation const parseSourceLocation(std::string const& _input, st... FILE: liblangutil/SourceReferenceExtractor.cpp function SourceReference (line 54) | SourceReference SourceReferenceExtractor::extract(SourceLocation const* ... FILE: liblangutil/SourceReferenceFormatter.cpp function replaceNonTabs (line 38) | std::string replaceNonTabs(std::string_view _utf8Input, char _filler) function AnsiColorized (line 49) | AnsiColorized SourceReferenceFormatter::normalColored() const function AnsiColorized (line 54) | AnsiColorized SourceReferenceFormatter::frameColored() const function AnsiColorized (line 59) | AnsiColorized SourceReferenceFormatter::errorColored() const function AnsiColorized (line 64) | AnsiColorized SourceReferenceFormatter::messageColored() const function AnsiColorized (line 69) | AnsiColorized SourceReferenceFormatter::secondaryColored() const function AnsiColorized (line 74) | AnsiColorized SourceReferenceFormatter::highlightColored() const function AnsiColorized (line 79) | AnsiColorized SourceReferenceFormatter::diagColored() const FILE: liblangutil/Token.cpp type solidity::langutil (line 48) | namespace solidity::langutil type TokenTraits (line 82) | namespace TokenTraits function friendlyName (line 106) | std::string friendlyName(Token tok) function Token (line 118) | static Token keywordByName(string const& _name) function isYulKeyword (line 131) | bool isYulKeyword(string const& _literal) function fromIdentifierOrKeyword (line 136) | tuple fromIdentifierOrKeyword(str... FILE: logging-toolkit/src/lib.rs function make_logger (line 14) | pub fn make_logger( FILE: sector-base/src/api/disk_backed_storage.rs constant REAL_SECTOR_SIZE (line 20) | pub const REAL_SECTOR_SIZE: u64 = 128; constant FAST_SECTOR_SIZE (line 23) | pub const FAST_SECTOR_SIZE: u64 = 1024; constant SLOW_SECTOR_SIZE (line 26) | pub const SLOW_SECTOR_SIZE: u64 = 1 << 30; constant FAST_DELAY_SECONDS (line 34) | pub const FAST_DELAY_SECONDS: u32 = 10; constant SLOW_DELAY_SECONDS (line 37) | pub const SLOW_DELAY_SECONDS: u32 = 0; function sector_size (line 39) | fn sector_size(env_var_name: &str, default: u64) -> u64 { function delay_seconds (line 46) | fn delay_seconds(env_var_name: &str, default: u32) -> u32 { function init_new_proof_test_sector_store (line 61) | pub unsafe extern "C" fn init_new_proof_test_sector_store( function init_new_test_sector_store (line 82) | pub unsafe extern "C" fn init_new_test_sector_store( function init_new_sector_store (line 103) | pub unsafe extern "C" fn init_new_sector_store( function destroy_storage (line 123) | pub unsafe extern "C" fn destroy_storage(ss_ptr: *mut Box) { type DiskManager (line 127) | pub struct DiskManager { method new_sector_access (line 210) | fn new_sector_access(&self, root: &Path) -> Result Result { method new_staging_sector_access (line 137) | fn new_staging_sector_access(&self) -> Result { method num_unsealed_bytes (line 141) | fn num_unsealed_bytes(&self, access: &str) -> Result Result<(), Secto... method write_and_preprocess (line 168) | fn write_and_preprocess(&self, access: &str, data: &[u8]) -> Result Result<(), Secto... method read_raw (line 185) | fn read_raw( type RealConfig (line 233) | pub struct RealConfig { type FakeConfig (line 237) | pub struct FakeConfig { type ConfiguredStore (line 244) | pub enum ConfiguredStore { type ConcreteSectorStore (line 250) | pub struct ConcreteSectorStore { method config (line 256) | fn config(&self) -> &SectorConfig { method manager (line 260) | fn manager(&self) -> &SectorManager { function new_sector_store (line 265) | pub fn new_sector_store( function new_sector_config (line 280) | pub fn new_sector_config(cs: &ConfiguredStore) -> Box { method is_fake (line 297) | fn is_fake(&self) -> bool { method simulate_delay_seconds (line 301) | fn simulate_delay_seconds(&self) -> Option { method max_unsealed_bytes_per_sector (line 305) | fn max_unsealed_bytes_per_sector(&self) -> u64 { method sector_bytes (line 309) | fn sector_bytes(&self) -> u64 { method dummy_parameter_cache_name (line 313) | fn dummy_parameter_cache_name(&self) -> String { method is_fake (line 319) | fn is_fake(&self) -> bool { method simulate_delay_seconds (line 323) | fn simulate_delay_seconds(&self) -> Option { method max_unsealed_bytes_per_sector (line 327) | fn max_unsealed_bytes_per_sector(&self) -> u64 { method sector_bytes (line 331) | fn sector_bytes(&self) -> u64 { method dummy_parameter_cache_name (line 335) | fn dummy_parameter_cache_name(&self) -> String { function create_sector_store (line 350) | fn create_sector_store(cs: &ConfiguredStore) -> Box { function read_all_bytes (line 364) | fn read_all_bytes(access: &str) -> Vec { function max_unsealed_bytes_per_sector_checks (line 373) | fn max_unsealed_bytes_per_sector_checks() { function unsealed_sector_write_and_truncate (line 388) | fn unsealed_sector_write_and_truncate() { function deletes_staging_access (line 470) | fn deletes_staging_access() { FILE: sector-base/src/api/errors.rs type SectorManagerErr (line 2) | pub enum SectorManagerErr { FILE: sector-base/src/api/sector_store.rs type SectorConfig (line 3) | pub trait SectorConfig { method is_fake (line 5) | fn is_fake(&self) -> bool; method simulate_delay_seconds (line 8) | fn simulate_delay_seconds(&self) -> Option; method max_unsealed_bytes_per_sector (line 11) | fn max_unsealed_bytes_per_sector(&self) -> u64; method sector_bytes (line 14) | fn sector_bytes(&self) -> u64; method dummy_parameter_cache_name (line 19) | fn dummy_parameter_cache_name(&self) -> String; type SectorManager (line 22) | pub trait SectorManager { method new_sealed_sector_access (line 24) | fn new_sealed_sector_access(&self) -> Result; method new_staging_sector_access (line 27) | fn new_staging_sector_access(&self) -> Result; method num_unsealed_bytes (line 30) | fn num_unsealed_bytes(&self, access: &str) -> Result Result<(), Sec... method write_and_preprocess (line 36) | fn write_and_preprocess(&self, access: &str, data: &[u8]) -> Result Result<(), Sec... method read_raw (line 40) | fn read_raw( type SectorStore (line 48) | pub trait SectorStore { method config (line 49) | fn config(&self) -> &SectorConfig; method manager (line 50) | fn manager(&self) -> &SectorManager; FILE: sector-base/src/api/util/mod.rs function rand_alpha_string (line 4) | pub fn rand_alpha_string(len: u8) -> String { FILE: sector-base/src/error.rs type Result (line 3) | pub type Result = ::std::result::Result; FILE: sector-base/src/io/fr32.rs type PaddingMap (line 117) | pub struct PaddingMap { method new (line 227) | pub fn new(data_bits: usize, element_bits: usize) -> PaddingMap { method pad (line 239) | pub fn pad(&self, bits_out: &mut Fr32BitVec) { method pad_bits (line 247) | pub fn pad_bits(&self) -> usize { method transform_bit_offset (line 256) | pub fn transform_bit_offset(&self, pos: usize, padding: bool) -> usize { method transform_byte_offset (line 283) | pub fn transform_byte_offset(&self, pos: usize, padding: bool) -> usize { method next_boundary (line 308) | pub fn next_boundary(&self, position: &BitByte) -> (usize, usize) { method target_offsets (line 325) | pub fn target_offsets(&self, target: &mut W) -> io::Result<... constant FR32_PADDING_MAP (line 133) | pub const FR32_PADDING_MAP: PaddingMap = PaddingMap { type Fr32BitVec (line 138) | pub type Fr32BitVec = BitVec; function target_unpadded_bytes (line 146) | pub fn target_unpadded_bytes(target: &mut W) -> io::Result function almost_truncate_to_unpadded_bytes (line 160) | pub fn almost_truncate_to_unpadded_bytes( function unpadded_bytes (line 174) | pub fn unpadded_bytes(padded_bytes: u64) -> u64 { function padded_bytes (line 178) | pub fn padded_bytes(unpadded_bytes: usize) -> usize { type BitByte (line 187) | pub struct BitByte { method from_bits (line 194) | pub fn from_bits(bits: usize) -> BitByte { method from_bytes (line 201) | pub fn from_bytes(bytes: usize) -> BitByte { method total_bits (line 206) | pub fn total_bits(&self) -> usize { method is_byte_aligned (line 211) | pub fn is_byte_aligned(&self) -> bool { method bytes_needed (line 216) | pub fn bytes_needed(&self) -> usize { function div_rem (line 352) | fn div_rem(a: usize, b: usize) -> (usize, usize) { function write_padded (line 358) | pub fn write_padded(source: &[u8], target: &mut W) -> io::Res... function write_padded_aux (line 397) | fn write_padded_aux( function write_unpadded (line 505) | pub fn write_unpadded( function write_unpadded_aux (line 555) | pub fn write_unpadded_aux( function test_position (line 632) | fn test_position() { function test_write_padded (line 645) | fn test_write_padded() { function test_write_padded_multiple_aligned (line 667) | fn test_write_padded_multiple_aligned() { function test_write_padded_multiple_first_aligned (line 694) | fn test_write_padded_multiple_first_aligned() { function validate_fr32 (line 715) | fn validate_fr32(bytes: &[u8]) { function test_write_padded_multiple_unaligned (line 729) | fn test_write_padded_multiple_unaligned() { function test_write_padded_alt (line 759) | fn test_write_padded_alt() { function test_read_write_padded (line 792) | fn test_read_write_padded() { function test_read_write_padded_offset (line 815) | fn test_read_write_padded_offset() { FILE: sha2raw/src/consts.rs constant STATE_LEN (line 3) | pub const STATE_LEN: usize = 8; constant BLOCK_LEN (line 4) | pub const BLOCK_LEN: usize = 16; constant K32 (line 7) | pub const K32: [u32; 64] = [ constant K32X4 (line 19) | pub const K32X4: [u32x4; 16] = [ FILE: sha2raw/src/platform.rs type Platform (line 7) | enum Platform { type Implementation (line 16) | pub struct Implementation(Platform); method detect (line 19) | pub fn detect() -> Self { method portable (line 37) | pub fn portable() -> Self { method sha_if_supported (line 43) | pub fn sha_if_supported() -> Option { method asm_if_supported (line 64) | pub fn asm_if_supported() -> Option { method compress256 (line 69) | pub fn compress256(self, state: &mut [u32; 8], blocks: &[&[u8]]) { FILE: sha2raw/src/sha256.rs type Sha256 (line 11) | pub struct Sha256 { method new (line 26) | pub fn new() -> Self { method digest (line 30) | pub fn digest(blocks: &[&[u8]]) -> [u8; 32] { method input (line 36) | pub fn input(&mut self, blocks: &[&[u8]]) { method finish (line 44) | pub fn finish(mut self) -> [u8; 32] { method finish_with (line 62) | pub fn finish_with(mut self, block0: &[u8]) -> [u8; 32] { method default (line 17) | fn default() -> Self { function test_fuzz_simple (line 93) | fn test_fuzz_simple() { function test_fuzz_long (line 99) | fn test_fuzz_long() { function fuzz (line 103) | fn fuzz(n: usize) { FILE: sha2raw/src/sha256_intrinsics.rs function compress256 (line 18) | pub unsafe fn compress256(state: &mut [u32; 8], blocks: &[&[u8]]) { FILE: sha2raw/src/sha256_utils.rs function sha256load (line 10) | fn sha256load(v2: u32x4, v3: u32x4) -> u32x4 { function sha256swap (line 16) | fn sha256swap(v0: u32x4) -> u32x4 { function sha256msg1 (line 22) | fn sha256msg1(v0: u32x4, v1: u32x4) -> u32x4 { function sha256msg2 (line 36) | fn sha256msg2(v4: u32x4, v3: u32x4) -> u32x4 { function sha256_digest_round_x2 (line 62) | fn sha256_digest_round_x2(cdgh: u32x4, abef: u32x4, wk: u32x4) -> u32x4 { function sha256_digest_block_u32 (line 126) | fn sha256_digest_block_u32(state: &mut [u32; 8], block: &[u32; 16]) { function compress256 (line 285) | pub fn compress256(state: &mut [u32; 8], blocks: &[&[u8]]) { FILE: src/bin/bencher.rs type Result (line 35) | type Result = ::std::result::Result; type Case (line 38) | struct Case { method params (line 109) | pub fn params(&self) -> Vec> { method get_param_name (line 123) | pub fn get_param_name(&self, i: usize) -> Result { method get_param_names (line 132) | pub fn get_param_names(&self) -> Vec { type Size (line 48) | struct Size(SpecificSize); method deserialize (line 74) | fn deserialize(deserializer: D) -> ::std::result::Result Self { method to_string (line 57) | fn to_string(&self) -> String { method serialize (line 65) | fn serialize(&self, serializer: S) -> ::std::result::Result(options: &'a [&'a [&'a T]]) -> Vec> { function run (line 181) | fn run(config_path: &str, print_table: bool) -> Result<()> { function print_result_table (line 221) | fn print_result_table(name: &str, example: &Case, results: &[BenchmarkRe... type TimeResult (line 271) | struct TimeResult { method from_str (line 321) | fn from_str(raw: &str) -> Result { type BenchmarkResult (line 427) | struct BenchmarkResult { method new (line 436) | pub fn new(combination: &[&str], stdout: &str, stderr: &str) -> Result... type LogResult (line 455) | struct LogResult { method from_str (line 461) | fn from_str(raw: &str) -> Result { function run_benchmark (line 498) | fn run_benchmark(name: &str, config: &Case) -> Result { function synthesize (line 20) | fn synthesize>(self, cs: &mut CS) -> Result<... function blake2s_benchmark (line 40) | fn blake2s_benchmark(c: &mut Criterion) { function blake2s_circuit_benchmark (line 58) | fn blake2s_circuit_benchmark(c: &mut Criterion) { FILE: storage-proofs-core/benches/drgraph.rs function drgraph (line 9) | fn drgraph(c: &mut Criterion) { FILE: storage-proofs-core/benches/merkle.rs function merkle_benchmark_sha256 (line 9) | fn merkle_benchmark_sha256(c: &mut Criterion) { function merkle_benchmark_poseidon (line 37) | fn merkle_benchmark_poseidon(c: &mut Criterion) { FILE: storage-proofs-core/benches/misc.rs function read_bytes_benchmark (line 7) | fn read_bytes_benchmark(c: &mut Criterion) { FILE: storage-proofs-core/benches/sha256.rs type Sha256Example (line 17) | struct Sha256Example<'a> { function synthesize (line 22) | fn synthesize>(self, cs: &mut CS) -> Result<... function sha256_benchmark (line 42) | fn sha256_benchmark(c: &mut Criterion) { function sha256_raw_benchmark (line 61) | fn sha256_raw_benchmark(c: &mut Criterion) { function sha256_circuit_benchmark (line 81) | fn sha256_circuit_benchmark(c: &mut Criterion) { FILE: storage-proofs-core/benches/xor.rs type XorExample (line 12) | struct XorExample<'a> { function synthesize (line 18) | fn synthesize>(self, cs: &mut CS) -> Result<... function xor_benchmark (line 49) | fn xor_benchmark(c: &mut Criterion) { function xor_circuit_benchmark (line 68) | fn xor_circuit_benchmark(c: &mut Criterion) { FILE: storage-proofs-core/src/api_version.rs type ApiVersion (line 8) | pub enum ApiVersion { method as_semver (line 14) | pub fn as_semver(&self) -> Version { method fmt (line 23) | fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { method fmt (line 30) | fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { type Err (line 37) | type Err = Error; method from_str (line 38) | fn from_str(api_version_str: &str) -> Result { function test_fmt (line 57) | fn test_fmt() { function test_as_semver (line 63) | fn test_as_semver() { FILE: storage-proofs-core/src/cache_key.rs type CacheKey (line 4) | pub enum CacheKey { method label_layer (line 25) | pub fn label_layer(layer: usize) -> String { method fmt (line 13) | fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { FILE: storage-proofs-core/src/compound_proof.rs type SetupParams (line 24) | pub struct SetupParams<'a, S: ProofScheme<'a>> { type PublicParams (line 32) | pub struct PublicParams<'a, S: ProofScheme<'a>> { type CircuitComponent (line 42) | pub trait CircuitComponent { type CompoundProof (line 51) | pub trait CompoundProof<'a, S: ProofScheme<'a>, C: Circuit + Circ... method setup (line 59) | fn setup(sp: &SetupParams<'a, S>) -> Result> { method partition_count (line 67) | fn partition_count(public_params: &PublicParams<'a, S>) -> usize { method prove (line 76) | fn prove<'b>( method prove_with_vanilla (line 114) | fn prove_with_vanilla<'b>( method verify (line 139) | fn verify<'b>( method batch_verify (line 172) | fn batch_verify<'b>( method circuit_proofs (line 231) | fn circuit_proofs( method generate_public_inputs (line 278) | fn generate_public_inputs( method circuit (line 288) | fn circuit( method blank_circuit (line 296) | fn blank_circuit(public_params: &S::PublicParams) -> C; method groth_params (line 303) | fn groth_params( method verifying_key (line 315) | fn verifying_key( method circuit_for_test (line 322) | fn circuit_for_test( method circuit_for_test_all (line 366) | fn circuit_for_test_all( FILE: storage-proofs-core/src/crypto/aes.rs constant IV (line 7) | const IV: [u8; 16] = [0u8; 16]; function encode (line 9) | pub fn encode(key: &[u8], plaintext: &[u8]) -> Result> { function decode (line 17) | pub fn decode(key: &[u8], ciphertext: &[u8]) -> Result> { function test_aes (line 36) | fn test_aes() { FILE: storage-proofs-core/src/crypto/feistel.rs constant FEISTEL_ROUNDS (line 5) | pub const FEISTEL_ROUNDS: usize = 3; type Index (line 10) | pub type Index = u64; type FeistelPrecomputed (line 12) | pub type FeistelPrecomputed = (Index, Index, Index); function precompute (line 17) | pub fn precompute(num_elements: Index) -> FeistelPrecomputed { function permute (line 35) | pub fn permute( function invert_permute (line 54) | pub fn invert_permute( function common_setup (line 72) | fn common_setup(index: Index, precomputed: FeistelPrecomputed) -> (Index... function encode (line 81) | fn encode(index: Index, keys: &[Index], precomputed: FeistelPrecomputed)... function decode (line 93) | fn decode(index: Index, keys: &[Index], precomputed: FeistelPrecomputed)... constant HALF_FEISTEL_BYTES (line 105) | const HALF_FEISTEL_BYTES: usize = size_of::(); constant FEISTEL_BYTES (line 106) | const FEISTEL_BYTES: usize = 2 * HALF_FEISTEL_BYTES; function feistel (line 111) | fn feistel(right: Index, key: Index, right_mask: Index) -> Index { constant BAD_NS (line 176) | const BAD_NS: &[Index] = &[5, 6, 8, 12, 17]; function encode_decode (line 178) | fn encode_decode(n: Index, expect_success: bool) { function test_feistel_power_of_4 (line 199) | fn test_feistel_power_of_4() { function test_feistel_on_arbitrary_set (line 218) | fn test_feistel_on_arbitrary_set() { function test_feistel_valid_permutation (line 234) | fn test_feistel_valid_permutation() { FILE: storage-proofs-core/src/crypto/mod.rs type DomainSeparationTag (line 8) | pub struct DomainSeparationTag(&'static str); constant DRSAMPLE_DST (line 10) | pub const DRSAMPLE_DST: DomainSeparationTag = DomainSeparationTag("Filec... constant FEISTEL_DST (line 11) | pub const FEISTEL_DST: DomainSeparationTag = DomainSeparationTag("Fileco... function derive_porep_domain_seed (line 13) | pub fn derive_porep_domain_seed( FILE: storage-proofs-core/src/crypto/sloth.rs function encode (line 6) | pub fn encode(key: &Fr, plaintext: &Fr) -> Fr { function decode (line 15) | pub fn decode(key: &Fr, ciphertext: &Fr) -> Fr { constant MODULUS (line 34) | const MODULUS: [u64; 4] = [ function sloth_bls_12 (line 42) | fn sloth_bls_12() { function sloth_bls_12_fake (line 52) | fn sloth_bls_12_fake() { FILE: storage-proofs-core/src/crypto/xor.rs function encode (line 6) | pub fn encode(key: &[u8], plaintext: &[u8]) -> Result> { function decode (line 11) | pub fn decode(key: &[u8], ciphertext: &[u8]) -> Result> { function xor (line 15) | fn xor(key: &[u8], input: &[u8]) -> Result> { function test_xor (line 36) | fn test_xor() { FILE: storage-proofs-core/src/data.rs type Data (line 12) | pub struct Data<'a> { type RawData (line 19) | enum RawData<'a> { type Target (line 25) | type Target = [u8]; method deref (line 27) | fn deref(&self) -> &Self::Target { method deref_mut (line 36) | fn deref_mut(&mut self) -> &mut Self::Target { function from (line 45) | fn from(raw: &'a mut [u8]) -> Self { function from (line 56) | fn from(raw: (MmapMut, PathBuf)) -> Self { function as_ref (line 67) | fn as_ref(&self) -> &[u8] { function as_mut (line 76) | fn as_mut(&mut self) -> &mut [u8] { function from_path (line 85) | pub fn from_path(path: PathBuf) -> Self { function new (line 93) | pub fn new(raw: &'a mut [u8], path: PathBuf) -> Self { function len (line 103) | pub fn len(&self) -> usize { function is_empty (line 107) | pub fn is_empty(&self) -> bool { function ensure_data (line 112) | pub fn ensure_data(&mut self) -> Result<()> { function drop_data (line 141) | pub fn drop_data(&mut self) { FILE: storage-proofs-core/src/drgraph.rs constant PARALLEL_MERKLE (line 23) | pub const PARALLEL_MERKLE: bool = true; constant BASE_DEGREE (line 28) | pub const BASE_DEGREE: usize = 6; type Graph (line 31) | pub trait Graph: Debug + Clone + PartialEq + Eq { method expected_size (line 35) | fn expected_size(&self) -> usize { method merkle_tree_depth (line 40) | fn merkle_tree_depth(&self) -> u64 { method parents (line 52) | fn parents(&self, node: usize, parents: &mut [u32]) -> Result<()>; method size (line 55) | fn size(&self) -> usize; method degree (line 58) | fn degree(&self) -> usize; method new (line 60) | fn new( method seed (line 67) | fn seed(&self) -> [u8; 28]; method create_key (line 71) | fn create_key( function graph_height (line 81) | pub fn graph_height(number_of_leafs: usize) -> usize { type BucketGraph (line 87) | pub struct BucketGraph { method identifier (line 96) | fn identifier(&self) -> String { method sector_size (line 106) | fn sector_size(&self) -> u64 { type Key (line 112) | type Key = H::Domain; function create_key (line 114) | fn create_key( function parents (line 138) | fn parents(&self, node: usize, parents: &mut [u32]) -> Result<()> { function size (line 203) | fn size(&self) -> usize { function degree (line 209) | fn degree(&self) -> usize { function seed (line 213) | fn seed(&self) -> [u8; 28] { function new (line 217) | fn new( function derive_drg_seed (line 247) | pub fn derive_drg_seed(porep_id: PoRepID) -> [u8; 28] { function mmap_from (line 270) | pub fn mmap_from(data: &[u8]) -> MmapMut { function graph_bucket (line 279) | fn graph_bucket() { function graph_bucket_aux (line 297) | fn graph_bucket_aux(porep_id: PoRepID, api_version: ApiVersio... function graph_bucket_sha256 (line 352) | fn graph_bucket_sha256() { function graph_bucket_blake2s (line 357) | fn graph_bucket_blake2s() { function gen_proof (line 361) | fn gen_proof(config: Op... function gen_proof_poseidon_binary (line 381) | fn gen_proof_poseidon_binary() { function gen_proof_sha256_binary (line 386) | fn gen_proof_sha256_binary() { function gen_proof_blake2s_binary (line 391) | fn gen_proof_blake2s_binary() { function gen_proof_poseidon_quad (line 396) | fn gen_proof_poseidon_quad() { function gen_proof_sha256_quad (line 401) | fn gen_proof_sha256_quad() { function gen_proof_blake2s_quad (line 406) | fn gen_proof_blake2s_quad() { function gen_proof_poseidon_oct (line 411) | fn gen_proof_poseidon_oct() { FILE: storage-proofs-core/src/error.rs type Error (line 11) | pub enum Error { method from (line 47) | fn from(inner: Box) -> Error { FILE: storage-proofs-core/src/gadgets/constraint.rs function equal (line 7) | pub fn equal>( function sum (line 28) | pub fn sum>( function add (line 47) | pub fn add>( function sub (line 70) | pub fn sub>( function difference (line 96) | pub fn difference>( function add_constraint (line 131) | fn add_constraint() { function sub_constraint (line 151) | fn sub_constraint() { FILE: storage-proofs-core/src/gadgets/encode.rs function encode (line 5) | pub fn encode( function decode (line 17) | pub fn decode( FILE: storage-proofs-core/src/gadgets/insertion.rs function insert (line 19) | pub fn insert>( function insert_2 (line 94) | pub fn insert_2>( function insert_4 (line 119) | pub fn insert_4>( function insert_8 (line 175) | pub fn insert_8>( function select (line 287) | pub fn select>( function pick (line 320) | pub fn pick>( function test_select (line 366) | fn test_select() { function test_insert (line 417) | fn test_insert() { FILE: storage-proofs-core/src/gadgets/multipack.rs function pack_bits (line 9) | pub fn pack_bits(mut cs: CS, bits: &[Boolean]) -> Result { type AuthPath (line 46) | pub struct AuthPath< function from (line 64) | fn from(mut base_opts: Vec<(Vec>, Option)>) -> Self { type SubPath (line 123) | struct SubPath { type PathElement (line 128) | struct PathElement { function synthesize (line 136) | fn synthesize>( function blank (line 198) | pub fn blank(leaves: usize) -> Self { type ComponentPrivateInputs (line 244) | type ComponentPrivateInputs = Option>; type PoRCompound (line 247) | pub struct PoRCompound { function to_bits (line 251) | fn to_bits(bit_count: u32, n: usize) -> Vec { function challenge_into_auth_path_bits (line 255) | pub fn challenge_into_auth_path_bits(challenge: usize, leaves: usize) ->... function cache_prefix (line 264) | fn cache_prefix() -> String { function circuit (line 273) | fn circuit<'b>( function blank_circuit (line 299) | fn blank_circuit( function generate_public_inputs (line 311) | fn generate_public_inputs( function synthesize (line 353) | fn synthesize>(self, cs: &mut CS) -> Result<... function new (line 424) | pub fn new(proof: Tree::Proof, private: bool) -> Self { function synthesize (line 435) | pub fn synthesize( function por_no_challenge_input (line 461) | pub fn por_no_challenge_input( type TestTree (line 542) | type TestTree = MerkleTreeWrapper::Domai... type TestTree2 (line 544) | type TestTree2 = MerkleTreeWrapper::D... type TestTree3 (line 546) | type TestTree3 = MerkleTreeWrapper... function por_test_compound_poseidon_base_8 (line 550) | fn por_test_compound_poseidon_base_8() { function por_compound (line 554) | fn por_compound() { function test_por_circuit_blake2s_base_2 (line 614) | fn test_por_circuit_blake2s_base_2() { function test_por_circuit_sha256_base_2 (line 619) | fn test_por_circuit_sha256_base_2() { function test_por_circuit_poseidon_base_2 (line 624) | fn test_por_circuit_poseidon_base_2() { function test_por_circuit_blake2s_base_4 (line 629) | fn test_por_circuit_blake2s_base_4() { function test_por_circuit_sha256_base_4 (line 634) | fn test_por_circuit_sha256_base_4() { function test_por_circuit_poseidon_base_4 (line 639) | fn test_por_circuit_poseidon_base_4() { function test_por_circuit_blake2s_base_8 (line 644) | fn test_por_circuit_blake2s_base_8() { function test_por_circuit_sha256_base_8 (line 649) | fn test_por_circuit_sha256_base_8() { function test_por_circuit_poseidon_base_8 (line 654) | fn test_por_circuit_poseidon_base_8() { function test_por_circuit_poseidon_sub_8_2 (line 659) | fn test_por_circuit_poseidon_sub_8_2() { function test_por_circuit_poseidon_top_8_4_2 (line 664) | fn test_por_circuit_poseidon_top_8_4_2() { function test_por_circuit_poseidon_top_8_8 (line 669) | fn test_por_circuit_poseidon_top_8_8() { function test_por_circuit_poseidon_top_8_8_2 (line 674) | fn test_por_circuit_poseidon_top_8_8_2() { function test_por_circuit_poseidon_top_8_2_4 (line 680) | fn test_por_circuit_poseidon_top_8_2_4() { function test_por_circuit (line 686) | fn test_por_circuit( function test_private_por_compound_poseidon_base_2 (line 780) | fn test_private_por_compound_poseidon_base_2() { function test_private_por_compound_poseidon_base_4 (line 786) | fn test_private_por_compound_poseidon_base_4() { function test_private_por_compound_poseidon_sub_8_2 (line 792) | fn test_private_por_compound_poseidon_sub_8_2() { function test_private_por_compound_poseidon_top_8_4_2 (line 798) | fn test_private_por_compound_poseidon_top_8_4_2() { function test_private_por_compound_poseidon_top_8_8 (line 804) | fn test_private_por_compound_poseidon_top_8_8() { function test_private_por_compound_poseidon_top_8_8_2 (line 810) | fn test_private_por_compound_poseidon_top_8_8_2() { function test_private_por_compound_poseidon_top_8_2_4 (line 816) | fn test_private_por_compound_poseidon_top_8_2_4() { function private_por_test_compound (line 820) | fn private_por_test_compound() { function test_private_por_input_circuit_poseidon_binary (line 924) | fn test_private_por_input_circuit_poseidon_binary() { function test_private_por_input_circuit_poseidon_quad (line 929) | fn test_private_por_input_circuit_poseidon_quad() { function test_private_por_input_circuit_poseidon_oct (line 934) | fn test_private_por_input_circuit_poseidon_oct() { function test_private_por_input_circuit (line 938) | fn test_private_por_input_circuit(num_constraints... FILE: storage-proofs-core/src/gadgets/uint64.rs type UInt64 (line 12) | pub struct UInt64 { method constant (line 20) | pub fn constant(value: u64) -> Self { method get_value (line 40) | pub fn get_value(&self) -> Option { method pack_into_input (line 44) | pub fn pack_into_input(&self, cs: CS) -> Result<(), SynthesisEr... method alloc (line 53) | pub fn alloc(mut cs: CS, value: Option) -> Result Vec { method from_bits_be (line 90) | pub fn from_bits_be(bits: &[Boolean]) -> Self { method to_bits_le (line 119) | pub fn to_bits_le(&self) -> Vec { method from_bits (line 125) | pub fn from_bits(bits: &[Boolean]) -> Self { function test_uint64_from_bits_be (line 182) | fn test_uint64_from_bits_be() { function test_uint64_from_bits (line 214) | fn test_uint64_from_bits() { FILE: storage-proofs-core/src/gadgets/variables.rs type Root (line 11) | pub enum Root { method fmt (line 17) | fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { function from_allocated (line 26) | pub fn from_allocated>(allocated: AllocatedNum>( function var (line 42) | pub fn var>(cs: CS, fr: E::Fr) -> Result { function is_some (line 46) | pub fn is_some(&self) -> bool { FILE: storage-proofs-core/src/gadgets/xor.rs function xor (line 3) | pub fn xor( function test_xor_input_circuit (line 43) | fn test_xor_input_circuit() { FILE: storage-proofs-core/src/lib.rs constant TEST_SEED (line 37) | pub const TEST_SEED: [u8; 16] = [ constant MAX_LEGACY_POREP_REGISTERED_PROOF_ID (line 41) | pub const MAX_LEGACY_POREP_REGISTERED_PROOF_ID: u64 = 4; type PoRepID (line 43) | pub type PoRepID = [u8; 32]; function is_legacy_porep_id (line 45) | pub fn is_legacy_porep_id(porep_id: PoRepID) -> bool { FILE: storage-proofs-core/src/measurements.rs type OpMeasurement (line 26) | pub struct OpMeasurement { type Operation (line 34) | pub enum Operation { function measure_op (line 50) | pub fn measure_op(op: Operation, f: F) -> T function measure_op (line 92) | pub fn measure_op(_: Operation, f: F) -> T FILE: storage-proofs-core/src/merkle/builders.rs function create_disk_tree (line 27) | pub fn create_disk_tree( function create_lc_tree (line 56) | pub fn create_lc_tree( function create_tree (line 92) | pub fn create_tree( function create_base_merkle_tree (line 174) | pub fn create_base_merkle_tree( function create_base_lcmerkle_tree (line 237) | pub fn create_base_lcmerkle_tree Result() -> usize { function get_base_tree_leafs (line 381) | pub fn get_base_tree_leafs(base_tree_size: usize)... type ResTree (line 385) | pub type ResTree = MerkleTreeWrapper< function generate_base_tree (line 393) | fn generate_base_tree( function generate_sub_tree (line 456) | fn generate_sub_tree( function generate_tree (line 485) | pub fn generate_tree( FILE: storage-proofs-core/src/merkle/mod.rs type LCStore (line 19) | pub type LCStore = LevelCacheStore; type MerkleStore (line 21) | pub type MerkleStore = DiskStore; type DiskTree (line 23) | pub type DiskTree = MerkleTreeWrapper = MerkleTreeWrapper... type MerkleTree (line 26) | pub type MerkleTree = DiskTree; type LCMerkleTree (line 27) | pub type LCMerkleTree = LCTree; type BinaryMerkleTree (line 29) | pub type BinaryMerkleTree = MerkleTree; type BinaryLCMerkleTree (line 30) | pub type BinaryLCMerkleTree = LCMerkleTree; type BinarySubMerkleTree (line 32) | pub type BinarySubMerkleTree = DiskTree; type QuadMerkleTree (line 34) | pub type QuadMerkleTree = MerkleTree; type QuadLCMerkleTree (line 35) | pub type QuadLCMerkleTree = LCMerkleTree; type OctMerkleTree (line 37) | pub type OctMerkleTree = DiskTree; type OctSubMerkleTree (line 38) | pub type OctSubMerkleTree = DiskTree; type OctTopMerkleTree (line 39) | pub type OctTopMerkleTree = DiskTree; type OctLCMerkleTree (line 41) | pub type OctLCMerkleTree = LCTree; type OctLCSubMerkleTree (line 42) | pub type OctLCSubMerkleTree = LCTree; type OctLCTopMerkleTree (line 43) | pub type OctLCTopMerkleTree = LCTree; FILE: storage-proofs-core/src/merkle/proof.rs type MerkleProofTrait (line 17) | pub trait MerkleProofTrait: Clone + Serialize + DeserializeOwned + Debug... method try_from_proof (line 24) | fn try_from_proof( method as_options (line 28) | fn as_options(&self) -> Vec<(Vec>, Option)> { method into_options_with_leaf (line 40) | fn into_options_with_leaf(self) -> (Option, Vec<(Vec>, ... method as_pairs (line 55) | fn as_pairs(&self) -> Vec<(Vec, usize)> { method verify (line 61) | fn verify(&self) -> bool; method validate (line 67) | fn validate(&self, node: usize) -> bool { method validate_data (line 75) | fn validate_data(&self, data: ::Domain) -> bool { method leaf (line 83) | fn leaf(&self) -> ::Domain; method root (line 84) | fn root(&self) -> ::Domain; method len (line 85) | fn len(&self) -> usize; method path (line 86) | fn path(&self) -> Vec<(Vec<::Domain>, usize)>; method path_index (line 88) | fn path_index(&self) -> usize { method proves_challenge (line 95) | fn proves_challenge(&self, challenge: usize) -> bool { method expected_len (line 100) | fn expected_len(&self, leaves: usize) -> usize { type Hasher (line 251) | type Hasher = H; type Arity (line 252) | type Arity = Arity; type SubTreeArity (line 253) | type SubTreeArity = SubTreeArity; type TopTreeArity (line 254) | type TopTreeArity = TopTreeArity; method try_from_proof (line 256) | fn try_from_proof( method verify (line 274) | fn verify(&self) -> bool { method leaf (line 278) | fn leaf(&self) -> H::Domain { method root (line 282) | fn root(&self) -> H::Domain { method len (line 286) | fn len(&self) -> usize { method path (line 290) | fn path(&self) -> Vec<(Vec, usize)> { method path_index (line 293) | fn path_index(&self) -> usize { function base_path_length (line 105) | pub fn base_path_length(leaves: u... function compound_path_length (line 117) | pub fn compound_path_length(leave... function compound_tree_height (line 129) | pub fn compound_tree_height(leave... type InclusionPath (line 168) | pub struct InclusionPath { function from (line 177) | fn from(path: Vec>) -> Self { function root (line 184) | pub fn root(&self, leaf: H::Domain) -> H::Domain { function len (line 197) | pub fn len(&self) -> usize { function is_empty (line 201) | pub fn is_empty(&self) -> bool { function iter (line 205) | pub fn iter(&self) -> Iter<'_, PathElement> { function path_index (line 209) | pub fn path_index(&self) -> usize { type PathElement (line 218) | pub struct PathElement { type MerkleProof (line 231) | pub struct MerkleProof< type ProofData (line 299) | enum ProofData< type SingleProof (line 323) | struct SingleProof { function new (line 345) | pub fn new(path: InclusionPath, root: H::Domain, leaf: H::Doma... type SubProof (line 351) | struct SubProof Self { function proof_to_single (line 477) | fn proof_to_single( function try_from_proof (line 515) | fn try_from_proof(p: merkletree::proof::Proof<::Domain, Ari... function verify (line 519) | fn verify(&self) -> bool { function leaf (line 524) | fn leaf(&self) -> H::Domain { function root (line 528) | fn root(&self) -> H::Domain { function len (line 532) | fn len(&self) -> usize { function path (line 536) | fn path(&self) -> Vec<(Vec, usize)> { function path_index (line 543) | fn path_index(&self) -> usize { function try_from_proof (line 551) | fn try_from_proof(p: merkletree::proof::Proof<::Domain, Ari... function verify (line 571) | fn verify(&self) -> bool { function leaf (line 578) | fn leaf(&self) -> H::Domain { function root (line 582) | fn root(&self) -> H::Domain { function len (line 586) | fn len(&self) -> usize { function path (line 590) | fn path(&self) -> Vec<(Vec, usize)> { function path_index (line 598) | fn path_index(&self) -> usize { function try_from_proof (line 617) | fn try_from_proof(p: merkletree::proof::Proof<::Domain, Ari... function verify (line 652) | fn verify(&self) -> bool { function leaf (line 660) | fn leaf(&self) -> H::Domain { function root (line 664) | fn root(&self) -> H::Domain { function len (line 668) | fn len(&self) -> usize { function path (line 672) | fn path(&self) -> Vec<(Vec, usize)> { function path_index (line 681) | fn path_index(&self) -> usize { function merklepath (line 712) | fn merklepath() { function merklepath_poseidon_2 (line 737) | fn merklepath_poseidon_2() { function merklepath_poseidon_4 (line 750) | fn merklepath_poseidon_4() { function merklepath_poseidon_8 (line 763) | fn merklepath_poseidon_8() { function merklepath_poseidon_8_2 (line 776) | fn merklepath_poseidon_8_2() { function merklepath_poseidon_8_4 (line 789) | fn merklepath_poseidon_8_4() { function merklepath_poseidon_8_4_2 (line 802) | fn merklepath_poseidon_8_4_2() { function merklepath_sha256_2 (line 815) | fn merklepath_sha256_2() { function merklepath_sha256_4 (line 828) | fn merklepath_sha256_4() { function merklepath_sha256_2_4 (line 841) | fn merklepath_sha256_2_4() { function merklepath_sha256_top_2_4_2 (line 854) | fn merklepath_sha256_top_2_4_2() { function merklepath_blake2s_2 (line 867) | fn merklepath_blake2s_2() { function merklepath_blake2s_4 (line 880) | fn merklepath_blake2s_4() { function merklepath_blake2s_8_4_2 (line 893) | fn merklepath_blake2s_8_4_2() { FILE: storage-proofs-core/src/merkle/tree.rs type MerkleTreeTrait (line 20) | pub trait MerkleTreeTrait: Send + Sync + Debug { method display (line 34) | fn display() -> String; method root (line 36) | fn root(&self) -> ::Domain; method gen_proof (line 38) | fn gen_proof(&self, index: usize) -> Result; method gen_cached_proof (line 39) | fn gen_cached_proof(&self, i: usize, rows_to_discard: Option) -... method row_count (line 40) | fn row_count(&self) -> usize; method leaves (line 41) | fn leaves(&self) -> usize; method from_merkle (line 42) | fn from_merkle( type Arity (line 73) | type Arity = U; type SubTreeArity (line 74) | type SubTreeArity = V; type TopTreeArity (line 75) | type TopTreeArity = W; type Hasher (line 76) | type Hasher = H; type Store (line 77) | type Store = S; type Proof (line 78) | type Proof = MerkleProof String { method root (line 90) | fn root(&self) -> ::Domain { method gen_proof (line 94) | fn gen_proof(&self, i: usize) -> Result { method gen_cached_proof (line 102) | fn gen_cached_proof(&self, i: usize, rows_to_discard: Option) -... method row_count (line 114) | fn row_count(&self) -> usize { method leaves (line 118) | fn leaves(&self) -> usize { method from_merkle (line 122) | fn from_merkle( type MerkleTreeWrapper (line 54) | pub struct MerkleTreeWrapper< function from (line 145) | fn from(tree: MerkleTree<::Domain, ::Function,... function new (line 161) | pub fn new>(data: I) -> Result { function new_with_config (line 166) | pub fn new_with_config>( function from_data_with_config (line 174) | pub fn from_data_with_config, I: IntoIterator Result { function from_byte_slice_with_config (line 187) | pub fn from_byte_slice_with_config(data: &[u8], config: StoreConfig) -> ... function from_tree_slice (line 192) | pub fn from_tree_slice(data: &[u8], leafs: usize) -> Result { function from_tree_slice_with_config (line 197) | pub fn from_tree_slice_with_config( function from_trees (line 206) | pub fn from_trees(trees: Vec>) -> Res... function from_sub_trees (line 212) | pub fn from_sub_trees(trees: Vec>) -> ... function from_sub_trees_as_trees (line 218) | pub fn from_sub_trees_as_trees(trees: Vec) -> Result { function from_store_configs (line 249) | pub fn from_store_configs(leafs: usize, configs: &[StoreConfig]) -> Resu... function from_store_configs_and_replica (line 254) | pub fn from_store_configs_and_replica( function from_sub_tree_store_configs (line 263) | pub fn from_sub_tree_store_configs(leafs: usize, configs: &[StoreConfig]... function try_from_iter (line 268) | pub fn try_from_iter>>(into: I)... function from_sub_tree_store_configs_and_replica (line 273) | pub fn from_sub_tree_store_configs_and_replica( function try_from_iter_with_config (line 283) | pub fn try_from_iter_with_config(par_iter: I) -> Result function from_par_iter_with_config (line 300) | pub fn from_par_iter_with_config(par_iter: I, config: StoreConfig) ->... method fmt (line 318) | fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { type Target (line 334) | type Target = MerkleTree &Self::Target { method deref_mut (line 349) | fn deref_mut(&mut self) -> &mut Self::Target { FILE: storage-proofs-core/src/multi_proof.rs type MultiProof (line 11) | pub struct MultiProof<'a> { constant GROTH_PROOF_SIZE (line 16) | const GROTH_PROOF_SIZE: usize = 192; function new (line 19) | pub fn new( function new_from_reader (line 29) | pub fn new_from_reader( function new_from_bytes (line 43) | pub fn new_from_bytes( function write (line 62) | pub fn write(&self, mut writer: W) -> Result<()> { function to_vec (line 69) | pub fn to_vec(&self) -> Result> { function len (line 75) | pub fn len(&self) -> usize { function is_empty (line 79) | pub fn is_empty(&self) -> bool { FILE: storage-proofs-core/src/parameter_cache.rs constant VERSION (line 25) | pub const VERSION: usize = 28; constant GROTH_PARAMETER_EXT (line 27) | pub const GROTH_PARAMETER_EXT: &str = "params"; constant PARAMETER_METADATA_EXT (line 28) | pub const PARAMETER_METADATA_EXT: &str = "meta"; constant VERIFYING_KEY_EXT (line 29) | pub const VERIFYING_KEY_EXT: &str = "vk"; type LockedFile (line 32) | pub struct LockedFile(File); method open_exclusive_read (line 83) | pub fn open_exclusive_read>(p: P) -> io::Result { method open_exclusive (line 90) | pub fn open_exclusive>(p: P) -> io::Result { method open_shared_read (line 101) | pub fn open_shared_read>(p: P) -> io::Result { method as_ref (line 110) | fn as_ref(&self) -> &File { type ParameterMap (line 34) | pub type ParameterMap = BTreeMap; type ParameterData (line 37) | pub struct ParameterData { constant PARAMETERS_DATA (line 43) | pub const PARAMETERS_DATA: &str = include_str!("../parameters.json"); function parameter_id (line 53) | pub fn parameter_id(cache_id: &str) -> String { function verifying_key_id (line 57) | pub fn verifying_key_id(cache_id: &str) -> String { function metadata_id (line 61) | pub fn metadata_id(cache_id: &str) -> String { function get_parameter_data_from_id (line 66) | pub fn get_parameter_data_from_id(parameter_id: &str) -> Option<&Paramet... function get_parameter_data (line 71) | pub fn get_parameter_data(cache_id: &str) -> Option<&ParameterData> { function get_verifying_key_data (line 76) | pub fn get_verifying_key_data(cache_id: &str) -> Option<&ParameterData> { method write (line 116) | fn write(&mut self, buf: &[u8]) -> io::Result { method flush (line 120) | fn flush(&mut self) -> io::Result<()> { method read (line 126) | fn read(&mut self, buf: &mut [u8]) -> io::Result { method seek (line 132) | fn seek(&mut self, pos: SeekFrom) -> io::Result { method drop (line 138) | fn drop(&mut self) { function parameter_cache_dir_name (line 145) | pub fn parameter_cache_dir_name() -> String { function parameter_cache_dir (line 149) | pub fn parameter_cache_dir() -> PathBuf { function parameter_cache_params_path (line 153) | pub fn parameter_cache_params_path(parameter_set_identifier: &str) -> Pa... function parameter_cache_metadata_path (line 161) | pub fn parameter_cache_metadata_path(parameter_set_identifier: &str) -> ... function parameter_cache_verifying_key_path (line 169) | pub fn parameter_cache_verifying_key_path(parameter_set_identifier: &str... function ensure_ancestor_dirs_exist (line 177) | fn ensure_ancestor_dirs_exist(cache_entry_path: PathBuf) -> Result String; method sector_size (line 199) | fn sector_size(&self) -> u64; type CacheEntryMetadata (line 203) | pub struct CacheEntryMetadata { type CacheableParameters (line 207) | pub trait CacheableParameters method cache_prefix (line 212) | fn cache_prefix() -> String; method cache_meta (line 214) | fn cache_meta(pub_params: &P) -> CacheEntryMetadata { method cache_identifier (line 220) | fn cache_identifier(pub_params: &P) -> String { method get_param_metadata (line 233) | fn get_param_metadata(_circuit: C, pub_params: &P) -> Result( method get_verifying_key (line 300) | fn get_verifying_key( function ensure_parent (line 322) | fn ensure_parent(path: &PathBuf) -> io::Result<()> { function read_cached_params (line 334) | pub fn read_cached_params(cache_entry_path: &PathBuf) -> Result io::Result(file_path: &PathBuf, f: F) -> std::r... function with_exclusive_read_lock (line 474) | pub fn with_exclusive_read_lock(file_path: &PathBuf, f: F) -> s... function with_open_file (line 482) | pub fn with_open_file<'a, T, E, F, G>( FILE: storage-proofs-core/src/partitions.rs type Partitions (line 1) | pub type Partitions = Option; function partition_count (line 3) | pub fn partition_count(partitions: Partitions) -> usize { FILE: storage-proofs-core/src/pieces.rs type PieceSpec (line 16) | pub struct PieceSpec { method compute_packing (line 27) | pub fn compute_packing(&self, tree_len: usize) -> Result<(Vec<(usize, ... method is_aligned (line 34) | pub fn is_aligned(&self, tree_len: usize) -> Result { method height (line 38) | fn height(&self) -> usize { method proof_length (line 43) | fn proof_length(&self, tree_len: usize) -> usize { function generate_piece_commitment_bytes_from_source (line 49) | pub fn generate_piece_commitment_bytes_from_source( function piece_is_aligned (line 76) | pub fn piece_is_aligned(position: usize, length: usize, tree_len: usize)... function height_for_length (line 82) | fn height_for_length(n: usize) -> usize { function subtree_capacity (line 90) | fn subtree_capacity(pos: usize, total: usize) -> Result { function test_subtree_capacity (line 112) | fn test_subtree_capacity() { function test_generate_piece_commitment_bytes_from_source (line 132) | fn test_generate_piece_commitment_bytes_from_source() -> Result<()> { FILE: storage-proofs-core/src/por.rs type DataProof (line 15) | pub struct DataProof { type PublicParams (line 30) | pub struct PublicParams { method identifier (line 37) | fn identifier(&self) -> String { method sector_size (line 44) | fn sector_size(&self) -> u64 { type PublicInputs (line 51) | pub struct PublicInputs { type PrivateInputs (line 61) | pub struct PrivateInputs<'a, Tree: MerkleTreeTrait> { function new (line 69) | pub fn new(leaf: ::Domain, tree: &'a Tree) -> Se... type SetupParams (line 75) | pub struct SetupParams { type PoR (line 82) | pub struct PoR { type PublicParams (line 87) | type PublicParams = PublicParams; type SetupParams (line 88) | type SetupParams = SetupParams; type PublicInputs (line 89) | type PublicInputs = PublicInputs<::Domain>; type PrivateInputs (line 90) | type PrivateInputs = PrivateInputs<'a, Tree>; type Proof (line 91) | type Proof = DataProof; type Requirements (line 92) | type Requirements = NoRequirements; function setup (line 94) | fn setup(sp: &SetupParams) -> Result { function prove (line 102) | fn prove<'b>( function verify (line 120) | fn verify( FILE: storage-proofs-core/src/proof.rs type ProofScheme (line 9) | pub trait ProofScheme<'a> { method setup (line 19) | fn setup(_: &Self::SetupParams) -> Result; method prove (line 22) | fn prove( method prove_all_partitions (line 28) | fn prove_all_partitions( method verify (line 64) | fn verify( method verify_all_partitions (line 72) | fn verify_all_partitions( method with_partition (line 89) | fn with_partition(pub_in: Self::PublicInputs, _k: Option) -> Se... method satisfies_requirements (line 93) | fn satisfies_requirements( type NoRequirements (line 103) | pub struct NoRequirements; FILE: storage-proofs-core/src/sector.rs type OrderedSectorSet (line 10) | pub type OrderedSectorSet = BTreeSet; type SectorId (line 16) | pub struct SectorId(u64); method from (line 19) | fn from(n: u64) -> Self { method as_fr_safe (line 43) | pub fn as_fr_safe(self) -> [u8; 32] { function from (line 25) | fn from(n: SectorId) -> Self { method from (line 31) | fn from(n: SectorId) -> Self { method fmt (line 37) | fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { FILE: storage-proofs-core/src/settings.rs constant SETTINGS_PATH (line 11) | const SETTINGS_PATH: &str = "./rust-fil-proofs.config.toml"; constant PREFIX (line 12) | const PREFIX: &str = "FIL_PROOFS"; type Settings (line 16) | pub struct Settings { method new (line 72) | fn new() -> Result { method default (line 36) | fn default() -> Self { function cache (line 64) | fn cache(s: &str) -> String { FILE: storage-proofs-core/src/test_helper.rs function setup_replica (line 7) | pub fn setup_replica(data: &[u8], replica_path: &Path) -> MmapMut { FILE: storage-proofs-core/src/util.rs constant NODE_SIZE (line 13) | pub const NODE_SIZE: usize = 32; function data_at_node_offset (line 16) | pub fn data_at_node_offset(v: usize) -> usize { function data_at_node (line 21) | pub fn data_at_node(data: &[u8], v: usize) -> anyhow::Result<&[u8]> { function bytes_into_bits (line 33) | pub fn bytes_into_bits(bytes: &[u8]) -> Vec { function bytes_into_bits_opt (line 41) | pub fn bytes_into_bits_opt(bytes: &[u8]) -> Vec> { function bytes_into_bits_be (line 49) | pub fn bytes_into_bits_be(bytes: &[u8]) -> Vec { function bytes_into_boolean_vec (line 57) | pub fn bytes_into_boolean_vec>( function bytes_into_boolean_vec_be (line 82) | pub fn bytes_into_boolean_vec_be>( function bool_to_u8 (line 108) | fn bool_to_u8(bit: bool, offset: usize) -> u8 { function bits_to_bytes (line 118) | pub fn bits_to_bytes(bits: &[bool]) -> Vec { function reverse_bit_numbering (line 136) | pub fn reverse_bit_numbering(bits: Vec) -> Vec { function default_rows_to_discard (line 152) | pub fn default_rows_to_discard(leafs: usize, arity: usize) -> usize { function test_bytes_into_boolean_vec (line 200) | fn test_bytes_into_boolean_vec() { function test_bool_to_u8 (line 225) | fn test_bool_to_u8() { function test_bits_into_bytes (line 233) | fn test_bits_into_bytes() { function test_bytes_into_bits (line 245) | fn test_bytes_into_bits() { function test_reverse_bit_numbering (line 262) | fn test_reverse_bit_numbering() { function hash_leaf_bits_circuit (line 296) | fn hash_leaf_bits_circuit() { FILE: storage-proofs-core/tests/por_circuit.rs type TreeBase (line 32) | type TreeBase = MerkleTreeWrapper::Domai... type TreeSub (line 33) | type TreeSub = MerkleTreeWrapper::Dom... type TreeTop (line 34) | type TreeTop = MerkleTreeWrapper::... function test_por_circuit_blake2s_base_2 (line 37) | fn test_por_circuit_blake2s_base_2() { function test_por_circuit_sha256_base_2 (line 42) | fn test_por_circuit_sha256_base_2() { function test_por_circuit_poseidon_base_2 (line 47) | fn test_por_circuit_poseidon_base_2() { function test_por_circuit_blake2s_base_4 (line 52) | fn test_por_circuit_blake2s_base_4() { function test_por_circuit_sha256_base_4 (line 57) | fn test_por_circuit_sha256_base_4() { function test_por_circuit_poseidon_base_4 (line 62) | fn test_por_circuit_poseidon_base_4() { function test_por_circuit_blake2s_base_8 (line 67) | fn test_por_circuit_blake2s_base_8() { function test_por_circuit_sha256_base_8 (line 72) | fn test_por_circuit_sha256_base_8() { function test_por_circuit_poseidon_base_8 (line 77) | fn test_por_circuit_poseidon_base_8() { function test_por_circuit_poseidon_sub_8_2 (line 82) | fn test_por_circuit_poseidon_sub_8_2() { function test_por_circuit_poseidon_top_8_4_2 (line 87) | fn test_por_circuit_poseidon_top_8_4_2() { function test_por_circuit_poseidon_sub_8_8 (line 92) | fn test_por_circuit_poseidon_sub_8_8() { function test_por_circuit_poseidon_top_8_8_2 (line 97) | fn test_por_circuit_poseidon_top_8_8_2() { function test_por_circuit_poseidon_top_8_2_4 (line 103) | fn test_por_circuit_poseidon_top_8_2_4() { function test_por_circuit (line 109) | fn test_por_circuit(num_inputs: usize, ... function test_por_circuit_poseidon_base_2_private_root (line 186) | fn test_por_circuit_poseidon_base_2_private_root() { function test_por_circuit_poseidon_base_4_private_root (line 191) | fn test_por_circuit_poseidon_base_4_private_root() { function test_por_circuit_poseidon_base_8_private_root (line 196) | fn test_por_circuit_poseidon_base_8_private_root() { function test_por_circuit_private_root (line 200) | fn test_por_circuit_private_root(num_constraints:... function test_por_no_challenge_input (line 279) | fn test_por_no_challenge_input() { FILE: storage-proofs-core/tests/por_compound.rs type TreeBase (line 27) | type TreeBase = MerkleTreeWrapper::Domai... type TreeSub (line 28) | type TreeSub = MerkleTreeWrapper::Dom... type TreeTop (line 29) | type TreeTop = MerkleTreeWrapper::... function test_por_compound_poseidon_base_8 (line 33) | fn test_por_compound_poseidon_base_8() { function por_compound (line 37) | fn por_compound() { function test_por_compound_poseidon_base_2_private_root (line 97) | fn test_por_compound_poseidon_base_2_private_root() { function test_por_compound_poseidon_base_4_private_root (line 103) | fn test_por_compound_poseidon_base_4_private_root() { function test_por_compound_poseidon_sub_8_2_private_root (line 109) | fn test_por_compound_poseidon_sub_8_2_private_root() { function test_por_compound_poseidon_top_8_4_2_private_root (line 115) | fn test_por_compound_poseidon_top_8_4_2_private_root() { function test_por_compound_poseidon_sub_8_8_private_root (line 121) | fn test_por_compound_poseidon_sub_8_8_private_root() { function test_por_compound_poseidon_top_8_8_2_private_root (line 127) | fn test_por_compound_poseidon_top_8_8_2_private_root() { function test_por_compound_poseidon_top_8_2_4_private_root (line 133) | fn test_por_compound_poseidon_top_8_2_4_private_root() { function por_compound_private_root (line 137) | fn por_compound_private_root() { FILE: storage-proofs-core/tests/por_vanilla.rs type TreeBase (line 22) | type TreeBase = MerkleTreeWrapper::Doma... function test_por_poseidon_base_2 (line 25) | fn test_por_poseidon_base_2() { function test_por_sha256_base_2 (line 30) | fn test_por_sha256_base_2() { function test_por_blake2s_base_2 (line 35) | fn test_por_blake2s_base_2() { function test_por_poseidon_base_4 (line 40) | fn test_por_poseidon_base_4() { function test_por_sha256_base_4 (line 45) | fn test_por_sha256_base_4() { function test_por_blake2s_base_4 (line 50) | fn test_por_blake2s_base_4() { function test_por (line 54) | fn test_por() { function test_por_validates_proof_sha256_base_2 (line 93) | fn test_por_validates_proof_sha256_base_2() { function test_por_validates_proof_blake2s_base_2 (line 98) | fn test_por_validates_proof_blake2s_base_2() { function test_por_validates_proof_poseidon_base_2 (line 103) | fn test_por_validates_proof_poseidon_base_2() { function test_por_validates_proof_sha256_base_4 (line 108) | fn test_por_validates_proof_sha256_base_4() { function test_por_validates_proof_blake2s_base_4 (line 113) | fn test_por_validates_proof_blake2s_base_4() { function test_por_validates_proof_poseidon_base_4 (line 118) | fn test_por_validates_proof_poseidon_base_4() { function test_por_validates_proof (line 122) | fn test_por_validates_proof() { function test_por_validates_challenge_sha256_base_2 (line 177) | fn test_por_validates_challenge_sha256_base_2() { function test_por_validates_challenge_blake2s_base_2 (line 182) | fn test_por_validates_challenge_blake2s_base_2() { function test_por_validates_challenge_poseidon_base_2 (line 187) | fn test_por_validates_challenge_poseidon_base_2() { function test_por_validates_challenge_sha256_base_4 (line 192) | fn test_por_validates_challenge_sha256_base_4() { function test_por_validates_challenge_blake2s_base_4 (line 197) | fn test_por_validates_challenge_blake2s_base_4() { function test_por_validates_challenge_poseidon_base_4 (line 202) | fn test_por_validates_challenge_poseidon_base_4() { function test_por_validates_challenge (line 206) | fn test_por_validates_challenge() { FILE: storage-proofs-porep/benches/encode.rs type Pregenerated (line 13) | struct Pregenerated { function pregenerate_data (line 19) | fn pregenerate_data(degree: usize) -> Pregenerated { function kdf_benchmark (line 38) | fn kdf_benchmark(c: &mut Criterion) { FILE: storage-proofs-porep/benches/parents.rs function start_profile (line 13) | fn start_profile(stage: &str) { function start_profile (line 23) | fn start_profile(_stage: &str) {} function stop_profile (line 27) | fn stop_profile() { function stop_profile (line 33) | fn stop_profile() {} function pregenerate_graph (line 35) | fn pregenerate_graph(size: usize, api_version: ApiVersion) ->... function parents_loop (line 40) | fn parents_loop>(graph: &G, parents: &mut [u32]) { function parents_loop_benchmark (line 47) | fn parents_loop_benchmark(cc: &mut Criterion) { FILE: storage-proofs-porep/src/drg/circuit.rs type DrgPoRepCircuit (line 40) | pub struct DrgPoRepCircuit<'a, H: Hasher> { function synthesize (line 59) | pub fn synthesize( type ComponentPrivateInputs (line 93) | pub struct ComponentPrivateInputs { type ComponentPrivateInputs (line 99) | type ComponentPrivateInputs = ComponentPrivateInputs; function synthesize (line 126) | fn synthesize>(self, cs: &mut CS) -> Result<... function kdf (line 249) | fn kdf( FILE: storage-proofs-porep/src/drg/compound.rs type DrgPoRepCompound (line 45) | pub struct DrgPoRepCompound function cache_prefix (line 61) | fn cache_prefix() -> String { function generate_public_inputs (line 73) | fn generate_public_inputs( function circuit (line 137) | fn circuit( function blank_circuit (line 240) | fn blank_circuit( FILE: storage-proofs-porep/src/drg/vanilla.rs type Tau (line 31) | pub struct Tau { function new (line 37) | pub fn new(comm_d: T, comm_r: T) -> Self { type ProverAux (line 43) | pub struct ProverAux { function new (line 49) | pub fn new(tree_d: BinaryMerkleTree, tree_r: BinaryLCMerkleTree) -... type PublicInputs (line 55) | pub struct PublicInputs { type PrivateInputs (line 64) | pub struct PrivateInputs<'a, H: Hasher> { type SetupParams (line 71) | pub struct SetupParams { type DrgParams (line 79) | pub struct DrgParams { type PublicParams (line 92) | pub struct PublicParams function new (line 109) | pub fn new(graph: G, private: bool, challenges_count: usize) -> Self { method identifier (line 124) | fn identifier(&self) -> String { method sector_size (line 131) | fn sector_size(&self) -> u64 { type DataProof (line 137) | pub struct DataProof { function new (line 147) | pub fn new(n: usize) -> Self { function proves_challenge (line 156) | pub fn proves_challenge(&self, challenge: usize) -> bool { type ReplicaParents (line 161) | pub type ReplicaParents = Vec<(u32, DataProof)>; type Proof (line 164) | pub struct Proof { function new_empty (line 193) | pub fn new_empty(height: usize, degree: usize, challenges: usize) -> Pro... function new (line 203) | pub fn new( function from (line 219) | fn from(p: &Proof) -> Proof { type DrgPoRep (line 231) | pub struct DrgPoRep<'a, H, G> type PublicParams (line 245) | type PublicParams = PublicParams; type SetupParams (line 246) | type SetupParams = SetupParams; type PublicInputs (line 247) | type PublicInputs = PublicInputs<::Domain>; type PrivateInputs (line 248) | type PrivateInputs = PrivateInputs<'a, H>; type Proof (line 249) | type Proof = Proof; type Requirements (line 250) | type Requirements = NoRequirements; function setup (line 252) | fn setup(sp: &Self::SetupParams) -> Result { function prove (line 264) | fn prove<'b>( function verify (line 344) | fn verify( type Tau (line 437) | type Tau = Tau<::Domain>; type ProverAux (line 438) | type ProverAux = ProverAux; function replicate (line 440) | fn replicate( function extract_all (line 498) | fn extract_all<'b>( function extract (line 507) | fn extract( function decode (line 524) | pub fn decode<'a, H, G>( function decode_block (line 549) | pub fn decode_block<'a, H, G>( function decode_domain_block (line 569) | pub fn decode_domain_block( function create_key_from_tree (line 587) | pub fn create_key_from_tree( function replica_id (line 609) | pub fn replica_id(prover_id: [u8; 32], sector_id: [u8; 32]) -... function sloth_encode (line 617) | fn sloth_encode(key: &H::Domain, ciphertext: &H::Domain) -> R... FILE: storage-proofs-porep/src/encode.rs function encode (line 5) | pub fn encode(key: T, value: T) -> T { function decode (line 13) | pub fn decode(key: T, value: T) -> T { FILE: storage-proofs-porep/src/lib.rs constant MAX_LEGACY_POREP_REGISTERED_PROOF_ID (line 17) | pub const MAX_LEGACY_POREP_REGISTERED_PROOF_ID: u64 = 4; type PoRep (line 19) | pub trait PoRep<'a, H: Hasher, G: Hasher>: ProofScheme<'a> { method replicate (line 23) | fn replicate( method extract_all (line 32) | fn extract_all( method extract (line 39) | fn extract( FILE: storage-proofs-porep/src/stacked/circuit/column.rs type Column (line 12) | pub struct Column { method from (line 22) | fn from(other: VanillaColumn) -> Self { method empty (line 33) | pub fn empty(params: &PublicParams) -> Se... method alloc (line 40) | pub fn alloc>( type AllocatedColumn (line 17) | pub struct AllocatedColumn { method len (line 61) | pub fn len(&self) -> usize { method hash (line 66) | pub fn hash>( method get_value (line 73) | pub fn get_value(&self, layer: usize) -> &AllocatedNum { FILE: storage-proofs-porep/src/stacked/circuit/column_proof.rs type ColumnProof (line 15) | pub struct ColumnProof< function empty (line 33) | pub fn empty< function alloc (line 46) | pub fn alloc>( function from (line 64) | fn from(vanilla_proof: VanillaColumnProof) -> Self { FILE: storage-proofs-porep/src/stacked/circuit/create_label.rs function create_label_circuit (line 15) | pub fn create_label_circuit( function test_create_label (line 95) | fn test_create_label() { FILE: storage-proofs-porep/src/stacked/circuit/hash.rs function hash_single_column (line 7) | pub fn hash_single_column( function test_hash2_circuit (line 35) | fn test_hash2_circuit() { function test_hash_single_column_circuit (line 76) | fn test_hash_single_column_circuit() { FILE: storage-proofs-porep/src/stacked/circuit/params.rs type TreeAuthPath (line 25) | type TreeAuthPath = AuthPath< type TreeColumnProof (line 32) | type TreeColumnProof = ColumnProof< type Proof (line 41) | pub struct Proof { method clone (line 64) | fn clone(&self) -> Self { function empty (line 80) | pub fn empty(params: &PublicParams) -> Self { function synthesize (line 98) | pub fn synthesize>( function from (line 284) | fn from(vanilla_proof: VanillaProof) -> Self { function enforce_inclusion (line 314) | fn enforce_inclusion>( FILE: storage-proofs-porep/src/stacked/circuit/proof.rs type StackedCircuit (line 31) | pub struct StackedCircuit<'a, Tree: 'static + MerkleTreeTrait, G: 'stati... method clone (line 48) | fn clone(&self) -> Self { type ComponentPrivateInputs (line 62) | type ComponentPrivateInputs = (); function synthesize (line 67) | pub fn synthesize( function synthesize (line 95) | fn synthesize>(self, cs: &mut CS) -> Result<... type StackedCompound (line 187) | pub struct StackedCompound { function cache_prefix (line 196) | fn cache_prefix() -> String { function generate_public_inputs (line 209) | fn generate_public_inputs( function circuit (line 291) | fn circuit<'b>( function blank_circuit (line 327) | fn blank_circuit( function generate_inclusion_inputs (line 345) | fn generate_inclusion_inputs( FILE: storage-proofs-porep/src/stacked/vanilla/cache.rs constant NODE_BYTES (line 26) | const NODE_BYTES: usize = 4; constant PARENT_CACHE_DATA (line 28) | pub const PARENT_CACHE_DATA: &str = include_str!("../../../parent_cache.... type ParentCacheDataMap (line 30) | pub type ParentCacheDataMap = BTreeMap; type ParentCacheData (line 33) | pub struct ParentCacheData { type ParentCache (line 45) | pub struct ParentCache { method new (line 152) | pub fn new(len: u32, cache_entries: u32, graph: &StackedGraph( method generate (line 284) | pub fn generate( method read (line 367) | pub fn read(&mut self, node: u32) -> Result<[u32; DEGREE]> { method reset (line 390) | pub fn reset(&mut self) -> Result<()> { type CacheData (line 56) | struct CacheData { method shift (line 72) | fn shift(&mut self, new_offset: u32) -> Result<()> { method contains (line 93) | fn contains(&self, node: u32) -> bool { method read (line 100) | fn read(&self, node: u32) -> [u32; DEGREE] { method reset (line 110) | fn reset(&mut self) -> Result<()> { method open (line 118) | fn open(offset: u32, len: u32, path: &Path) -> Result { function parent_cache_dir_name (line 395) | fn parent_cache_dir_name() -> String { function parent_cache_id (line 399) | fn parent_cache_id(path: &Path) -> String { function get_parent_cache_data (line 409) | fn get_parent_cache_data(path: &Path) -> Option<&ParentCacheData> { function cache_path (line 413) | fn cache_path(cache_entries: u32, graph: &StackedGraph) -> P... function test_read_full_range (line 444) | fn test_read_full_range() { function test_read_partial_range (line 469) | fn test_read_partial_range() { FILE: storage-proofs-porep/src/stacked/vanilla/challenges.rs type LayerChallenges (line 8) | pub struct LayerChallenges { method new (line 16) | pub const fn new(layers: usize, max_count: usize) -> Self { method layers (line 20) | pub fn layers(&self) -> usize { method challenges_count_all (line 24) | pub fn challenges_count_all(&self) -> usize { method derive (line 29) | pub fn derive( method derive_internal (line 39) | pub fn derive_internal( type ChallengeRequirements (line 74) | pub struct ChallengeRequirements { function test_calculate_fixed_challenges (line 88) | fn test_calculate_fixed_challenges() { function challenge_derivation (line 97) | fn challenge_derivation() { function challenge_partition_equivalence (line 137) | fn challenge_partition_equivalence() { FILE: storage-proofs-porep/src/stacked/vanilla/column.rs type Column (line 14) | pub struct Column { function new (line 21) | pub fn new(index: u32, rows: Vec) -> Result { function with_capacity (line 29) | pub fn with_capacity(index: u32, capacity: usize) -> Result { function rows (line 33) | pub fn rows(&self) -> &[H::Domain] { function index (line 37) | pub fn index(&self) -> u32 { function hash (line 42) | pub fn hash(&self) -> Fr { function get_node_at_layer (line 53) | pub fn get_node_at_layer(&self, layer: usize) -> Result<&H::Domain> { function into_proof (line 61) | pub fn into_proof, Tree: MerkleTreeTrait { function from_column (line 24) | pub fn from_column(column: Column, inclusion_proof: Proof... function root (line 31) | pub fn root(&self) -> ::Domain { function column (line 35) | fn column(&self) -> &Column { function get_node_at_layer (line 39) | pub fn get_node_at_layer(&self, layer: usize) -> Result<& Fr { function verify (line 47) | pub fn verify( FILE: storage-proofs-porep/src/stacked/vanilla/cores.rs type CoreGroup (line 9) | type CoreGroup = Vec; type CoreIndex (line 23) | pub struct CoreIndex(usize); function checkout_core_group (line 25) | pub fn checkout_core_group() -> Option> { type ThreadId (line 44) | pub type ThreadId = libc::pthread_t; type ThreadId (line 47) | pub type ThreadId = winapi::winnt::HANDLE; function get_thread_id (line 52) | fn get_thread_id() -> ThreadId { function get_thread_id (line 57) | fn get_thread_id() -> ThreadId { type Cleanup (line 61) | pub struct Cleanup { method drop (line 67) | fn drop(&mut self) { function bind_core (line 76) | pub fn bind_core(core_index: CoreIndex) -> Result { function get_core_by_index (line 111) | fn get_core_by_index(topo: &Topology, index: CoreIndex) -> Result<&Topol... function core_groups (line 125) | fn core_groups(cores_per_unit: usize) -> Option... function test_cores (line 196) | fn test_cores() { function test_checkout_cores (line 202) | fn test_checkout_cores() { FILE: storage-proofs-porep/src/stacked/vanilla/create_label/mod.rs function prepare_layers (line 19) | pub fn prepare_layers( function write_layer (line 50) | pub fn write_layer(data: &[u8], config: &StoreConfig) -> Result<()> { function read_layer (line 64) | pub fn read_layer(config: &StoreConfig, mut data: &mut [u8]) -> Result<(... function remove_tmp_layer (line 73) | pub fn remove_tmp_layer(config: &StoreConfig) { function is_layer_written (line 84) | pub fn is_layer_written( FILE: storage-proofs-porep/src/stacked/vanilla/create_label/multi.rs constant MIN_BASE_PARENT_NODE (line 40) | const MIN_BASE_PARENT_NODE: u64 = 2000; constant NODE_WORDS (line 42) | const NODE_WORDS: usize = NODE_SIZE / size_of::(); constant SHA_BLOCK_SIZE (line 43) | const SHA_BLOCK_SIZE: usize = 64; constant SHA256_INITIAL_DIGEST (line 45) | const SHA256_INITIAL_DIGEST: [u32; 8] = [ function fill_buffer (line 57) | fn fill_buffer( function create_label_runner (line 141) | fn create_label_runner( function create_layer_labels (line 205) | fn create_layer_labels( function create_labels_for_encoding (line 431) | pub fn create_labels_for_encoding>( function create_label_exp (line 210) | pub fn create_label_exp>( FILE: storage-proofs-porep/src/stacked/vanilla/encoding_proof.rs type EncodingProof (line 13) | pub struct EncodingProof { function new (line 22) | pub fn new(layer_index: u32, node: u64, parents: Vec) -> Self { function create_key (line 31) | fn create_key(&self, replica_id: &H::Domain) -> H::Domain { function verify (line 53) | pub fn verify( FILE: storage-proofs-porep/src/stacked/vanilla/graph.rs constant EXP_DEGREE (line 27) | pub const EXP_DEGREE: usize = 8; constant DEGREE (line 29) | pub(crate) const DEGREE: usize = BASE_DEGREE + EXP_DEGREE; type StackedGraph (line 32) | pub struct StackedGraph method fmt (line 51) | fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { type StackedBucketGraph (line 61) | pub type StackedBucketGraph = StackedGraph>; function prefetch (line 64) | fn prefetch(parents: &[u32], data: &[u8]) { function read_node (line 74) | fn read_node<'a>(i: usize, parents: &[u32], data: &'a [u8]) -> &'a [u8] { function derive_feistel_keys (line 80) | pub fn derive_feistel_keys(porep_id: PoRepID) -> [u64; 4] { function new (line 98) | pub fn new( function parent_cache (line 136) | pub fn parent_cache(&self) -> Result { function copy_parents_data_exp (line 146) | pub fn copy_parents_data_exp( function copy_parents_data (line 166) | pub fn copy_parents_data( function copy_parents_data_inner_exp (line 185) | fn copy_parents_data_inner_exp( function copy_parents_data_inner (line 224) | fn copy_parents_data_inner( method identifier (line 270) | fn identifier(&self) -> String { method sector_size (line 274) | fn sector_size(&self) -> u64 { type Key (line 284) | type Key = Vec; function size (line 286) | fn size(&self) -> usize { function degree (line 290) | fn degree(&self) -> usize { function parents (line 295) | fn parents(&self, node: usize, parents: &mut [u32]) -> Result<()> { function seed (line 308) | fn seed(&self) -> [u8; 28] { function new (line 312) | fn new( function create_key (line 322) | fn create_key( function correspondent (line 341) | fn correspondent(&self, node: usize, i: usize) -> u32 { function generate_expanded_parents (line 386) | pub fn generate_expanded_parents(&self, node: usize, expanded_parents: &... function new_stacked (line 393) | pub fn new_stacked( function base_graph (line 410) | pub fn base_graph(&self) -> &G { function expansion_degree (line 414) | pub fn expansion_degree(&self) -> usize { function base_parents (line 418) | pub fn base_parents(&self, node: usize, parents: &mut [u32]) -> Result<(... function expanded_parents (line 427) | pub fn expanded_parents(&self, node: usize, parents: &mut [u32]) -> Resu... method eq (line 439) | fn eq(&self, other: &StackedGraph) -> bool { function test_shuffle (line 466) | fn test_shuffle() { function test_graph_distribution_pathology (line 503) | fn test_graph_distribution_pathology() { function test_pathology_aux (line 521) | fn test_pathology_aux(porep_id: PoRepID, nodes: u32, api_version: ApiVer... function test_high_parent_bits (line 588) | fn test_high_parent_bits() { function test_exp_parent_histogram (line 625) | fn test_exp_parent_histogram() { FILE: storage-proofs-porep/src/stacked/vanilla/hash.rs function hash_single_column (line 6) | pub fn hash_single_column(column: &[Fr]) -> Fr { FILE: storage-proofs-porep/src/stacked/vanilla/labeling_proof.rs type LabelingProof (line 10) | pub struct LabelingProof { function new (line 19) | pub fn new(layer_index: u32, node: u64, parents: Vec) -> Self { function create_label (line 28) | fn create_label(&self, replica_id: &H::Domain) -> H::Domain { function verify (line 52) | pub fn verify(&self, replica_id: &H::Domain, expected_label: &H::Domain)... FILE: storage-proofs-porep/src/stacked/vanilla/memory_handling.rs type CacheReader (line 15) | pub struct CacheReader { type IncrementingCursor (line 28) | struct IncrementingCursor { method new (line 47) | fn new(val: usize) -> Self { method store (line 54) | fn store(&self, val: usize) { method compare_and_swap (line 59) | fn compare_and_swap(&self, before: usize, after: usize) { method increment (line 64) | fn increment bool, G: Fn()>(&self, target: usize, wait_fn: ... function compare_and_swap (line 33) | fn compare_and_swap(atomic: &AtomicUsize, before: usize, after: usize) -... function new (line 96) | pub fn new(filename: &Path, window_size: Option, degree: usize) -... function size (line 133) | pub fn size(&self) -> usize { function window_nodes (line 137) | pub fn window_nodes(&self) -> usize { function increment_consumer (line 143) | pub unsafe fn increment_consumer(&self) { function store_consumer (line 147) | pub fn store_consumer(&self, val: u64) { function get_consumer (line 151) | pub fn get_consumer(&self) -> u64 { function get_bufs (line 156) | fn get_bufs(&self) -> &[Mmap] { function get_mut_bufs (line 162) | unsafe fn get_mut_bufs(&self) -> &mut [Mmap] { function reset (line 169) | pub fn reset(&self) -> Result<()> { function start_reset (line 174) | pub fn start_reset(&self) -> Result<()> { function finish_reset (line 181) | pub fn finish_reset(&self) -> Result<()> { function map_buf (line 189) | fn map_buf(offset: u64, len: usize, file: &File) -> Result { function window_element_count (line 201) | fn window_element_count(&self) -> usize { function consumer_slice_at (line 212) | pub unsafe fn consumer_slice_at(&self, pos: usize) -> &[T] { function slice_at (line 232) | pub unsafe fn slice_at(&self, pos: usize) -> &[T] { function advance_rear_window (line 259) | fn advance_rear_window(&self, new_window: usize) { function allocate_layer (line 277) | fn allocate_layer(sector_size: usize) -> Result { function setup_create_label_memory (line 298) | pub fn setup_create_label_memory( FILE: storage-proofs-porep/src/stacked/vanilla/params.rs constant BINARY_ARITY (line 33) | pub const BINARY_ARITY: usize = 2; constant QUAD_ARITY (line 34) | pub const QUAD_ARITY: usize = 4; constant OCT_ARITY (line 35) | pub const OCT_ARITY: usize = 8; type SetupParams (line 38) | pub struct SetupParams { type PublicParams (line 53) | pub struct PublicParams method clone (line 66) | fn clone(&self) -> Self { function new (line 79) | pub fn new(graph: StackedBucketGraph, layer_challenges: La... method identifier (line 92) | fn identifier(&self) -> String { method sector_size (line 101) | fn sector_size(&self) -> u64 { function from (line 110) | fn from(other: &PublicParams) -> PublicParams { type PublicInputs (line 116) | pub struct PublicInputs { function challenges (line 127) | pub fn challenges( type PrivateInputs (line 140) | pub struct PrivateInputs { type Proof (line 146) | pub struct Proof { method clone (line 179) | fn clone(&self) -> Self { function comm_r_last (line 191) | pub fn comm_r_last(&self) -> ::Domain { function comm_c (line 195) | pub fn comm_c(&self) -> ::Domain { function verify (line 200) | pub fn verify( function verify_labels (line 247) | fn verify_labels( function verify_final_replica_layer (line 273) | fn verify_final_replica_layer(&self, challenge: usize) -> bool { type ReplicaColumnProof (line 282) | pub struct ReplicaColumnProof { function verify (line 301) | pub fn verify(&self, challenge: usize, parents: &[u32]) -> bool { type TransformedLayers (line 325) | pub type TransformedLayers = ( type Tau (line 333) | pub struct Tau { type PersistentAux (line 342) | pub struct PersistentAux { type TemporaryAux (line 348) | pub struct TemporaryAux { method clone (line 362) | fn clone(&self) -> Self { function set_cache_path (line 374) | pub fn set_cache_path>(&mut self, cache_path: P) { function labels_for_layer (line 384) | pub fn labels_for_layer( function domain_node_at_layer (line 391) | pub fn domain_node_at_layer( function column (line 399) | pub fn column(&self, column_index: u32) -> Result> { function clear_temp (line 405) | pub fn clear_temp(t_aux: TemporaryAux) -> Result<()> { type TemporaryAuxCache (line 487) | pub struct TemporaryAuxCache { function new (line 505) | pub fn new(t_aux: &TemporaryAux, replica_path: PathBuf) -> Resu... function labels_for_layer (line 568) | pub fn labels_for_layer(&self, layer: usize) -> &DiskStore< Result> { type VerifyCallback (line 585) | type VerifyCallback = fn(&StoreConfig, usize, usize) -> Result<()>; type Labels (line 588) | pub struct Labels { method clone (line 598) | fn clone(&self) -> Self { function new (line 607) | pub fn new(labels: Vec) -> Self { function len (line 614) | pub fn len(&self) -> usize { function is_empty (line 618) | pub fn is_empty(&self) -> bool { function verify_stores (line 622) | pub fn verify_stores(&self, callback: VerifyCallback, cache_dir: &Path) ... function labels_for_layer (line 633) | pub fn labels_for_layer( function labels_for_last_layer (line 657) | pub fn labels_for_last_layer(&self) -> Result usize { function column (line 667) | pub fn column(&self, node: u32) -> Result> { function update_root (line 686) | pub fn update_root>(&mut self, root: P) { type LabelsCache (line 694) | pub struct LabelsCache { function new (line 699) | pub fn new(labels: &Labels) -> Result { function len (line 711) | pub fn len(&self) -> usize { function is_empty (line 715) | pub fn is_empty(&self) -> bool { function labels_for_layer (line 719) | pub fn labels_for_layer(&self, layer: usize) -> &DiskStore< Result<&DiskStore< usize { function column (line 743) | pub fn column(&self, node: u32) -> Result> { function get_node (line 754) | pub fn get_node(data: &[u8], index: usize) -> Result>( FILE: storage-proofs-porep/src/stacked/vanilla/porep.rs type Tau (line 22) | type Tau = Tau<::Domain, ::Domain>; type ProverAux (line 23) | type ProverAux = ( function replicate (line 28) | fn replicate( function extract_all (line 49) | fn extract_all<'b>( function extract (line 66) | fn extract( FILE: storage-proofs-porep/src/stacked/vanilla/proof.rs constant TOTAL_PARENTS (line 54) | pub const TOTAL_PARENTS: usize = 37; type StackedDrg (line 65) | pub struct StackedDrg<'a, Tree: MerkleTreeTrait, G: Hasher> { type LayerState (line 71) | pub struct LayerState { function prove_layers (line 78) | pub(crate) fn prove_layers( function extract_and_invert_transform_layers (line 273) | pub(crate) fn extract_and_invert_transform_layers( function generate_labels_for_encoding (line 308) | pub fn generate_labels_for_encoding( function generate_labels_for_decoding (line 338) | pub fn generate_labels_for_decoding( function build_binary_tree (line 367) | fn build_binary_tree( function generate_tree_c (line 387) | fn generate_tree_c( function generate_tree_c (line 418) | fn generate_tree_c( function generate_tree_c_gpu (line 440) | fn generate_tree_c_gpu( function generate_tree_c_cpu (line 688) | fn generate_tree_c_cpu( function generate_tree_r_last (line 757) | fn generate_tree_r_last( function generate_tree_r_last (line 790) | fn generate_tree_r_last( function generate_tree_r_last_gpu (line 812) | fn generate_tree_r_last_gpu( function generate_tree_r_last_cpu (line 1020) | fn generate_tree_r_last_cpu( function transform_and_replicate_layers (line 1100) | pub(crate) fn transform_and_replicate_layers( function transform_and_replicate_layers_inner (line 1128) | pub(crate) fn transform_and_replicate_layers_inner( function replicate_phase1 (line 1315) | pub fn replicate_phase1( function replicate_phase2 (line 1332) | pub fn replicate_phase2( function generate_fake_tree_r_last (line 1362) | fn generate_fake_tree_r_last( function generate_fake_tree_r_last (line 1493) | fn generate_fake_tree_r_last( function fake_replicate_phase2 (line 1531) | pub fn fake_replicate_phase2, S: AsRef>( function fake_comm_r (line 1582) | pub fn fake_comm_r>( FILE: storage-proofs-porep/src/stacked/vanilla/proof_scheme.rs type PublicParams (line 19) | type PublicParams = PublicParams; type SetupParams (line 20) | type SetupParams = SetupParams; type PublicInputs (line 21) | type PublicInputs = PublicInputs<::Domain, ; type Proof (line 23) | type Proof = Vec>; type Requirements (line 24) | type Requirements = ChallengeRequirements; function setup (line 26) | fn setup(sp: &Self::SetupParams) -> Result { function prove (line 38) | fn prove<'b>( function prove_all_partitions (line 56) | fn prove_all_partitions<'b>( function verify_all_partitions (line 76) | fn verify_all_partitions( function with_partition (line 135) | fn with_partition(pub_in: Self::PublicInputs, k: Option) -> Self:... function satisfies_requirements (line 144) | fn satisfies_requirements( FILE: storage-proofs-porep/src/stacked/vanilla/utils.rs type UnsafeSlice (line 7) | pub struct UnsafeSlice<'a, T> { function from_slice (line 20) | pub fn from_slice(source: &'a mut [T]) -> Self { function as_mut_slice (line 29) | pub unsafe fn as_mut_slice(&self) -> &'a mut [T] { function as_slice (line 34) | pub unsafe fn as_slice(&self) -> &'a [T] { function get (line 39) | pub unsafe fn get(&self, index: usize) -> &'a T { function get_mut (line 44) | pub unsafe fn get_mut(&self, index: usize) -> &'a mut T { function memset (line 51) | pub fn memset(slice: &mut [u8], value: u8) { function prepare_block (line 58) | pub fn prepare_block(replica_id: &[u8], layer: u32, buf: &mut [u8]) { type BitMask (line 66) | pub struct BitMask(u32); method set_upto (line 71) | pub fn set_upto(&mut self, n: u8) { method set (line 78) | pub fn set(&mut self, i: usize) { method get (line 84) | pub fn get(self, i: usize) -> bool { type RingBuf (line 90) | pub struct RingBuf { method new (line 100) | pub fn new(slot_size: usize, num_slots: usize) -> Self { method slice_mut (line 111) | unsafe fn slice_mut(&self) -> &mut [u8] { method len (line 115) | fn len(&self) -> usize { method slot_mut (line 120) | pub unsafe fn slot_mut(&self, slot: usize) -> &mut [u8] { method iter_slot_mut (line 127) | pub fn iter_slot_mut(&mut self) -> ChunksExactMut<'_, u8> { FILE: storage-proofs-porep/tests/drg_circuit.rs function test_drg_porep_circuit (line 34) | fn test_drg_porep_circuit() { function test_drg_porep_circuit_inputs_and_constraints (line 209) | fn test_drg_porep_circuit_inputs_and_constraints() { FILE: storage-proofs-porep/tests/drg_compound.rs function test_drg_porep_compound_poseidon (line 33) | fn test_drg_porep_compound_poseidon() { function drg_porep_compound (line 37) | fn drg_porep_compound() { FILE: storage-proofs-porep/tests/drg_vanilla.rs function text_drg_porep_extract_all_sha256 (line 28) | fn text_drg_porep_extract_all_sha256() { function text_drg_porep_extract_all_blake2s (line 33) | fn text_drg_porep_extract_all_blake2s() { function test_extract_all (line 37) | fn test_extract_all() { function test_drg_porep_extract_sha256 (line 98) | fn test_drg_porep_extract_sha256() { function test_drg_porep_extract_blake2s (line 103) | fn test_drg_porep_extract_blake2s() { function test_extract (line 107) | fn test_extract() { function test_prove_verify (line 187) | fn test_prove_verify(n: usize, i: usize) { function test_prove_verify_aux (line 192) | fn test_prove_verify_aux( function test_drg_porep_verify_fails_on_wrong_challenge (line 374) | fn test_drg_porep_verify_fails_on_wrong_challenge() { function test_drg_porep_verify_fails_on_wrong_parents (line 380) | fn test_drg_porep_verify_fails_on_wrong_parents() { FILE: storage-proofs-porep/tests/stacked_circuit.rs function test_stacked_porep_circuit_poseidon_base_2 (line 34) | fn test_stacked_porep_circuit_poseidon_base_2() { function test_stacked_input_circuit_poseidon_base_8 (line 39) | fn test_stacked_input_circuit_poseidon_base_8() { function test_stacked_input_circuit_poseidon_sub_8_4 (line 44) | fn test_stacked_input_circuit_poseidon_sub_8_4() { function test_stacked_input_circuit_poseidon_top_8_4_2 (line 49) | fn test_stacked_input_circuit_poseidon_top_8_4_2() { function test_stacked_porep_circuit (line 53) | fn test_stacked_porep_circuit( FILE: storage-proofs-porep/tests/stacked_compound.rs function test_stacked_compound_poseidon_base_8 (line 34) | fn test_stacked_compound_poseidon_base_8() { function test_stacked_compound_poseidon_sub_8_4 (line 40) | fn test_stacked_compound_poseidon_sub_8_4() { function test_stacked_compound_poseidon_top_8_4_2 (line 46) | fn test_stacked_compound_poseidon_top_8_4_2() { function test_stacked_compound (line 50) | fn test_stacked_compound() { FILE: storage-proofs-porep/tests/stacked_vanilla.rs constant DEFAULT_STACKED_LAYERS (line 34) | const DEFAULT_STACKED_LAYERS: usize = 11; function test_stacked_porep_extract_all_sha256_base_8 (line 37) | fn test_stacked_porep_extract_all_sha256_base_8() { function test_stacked_porep_extract_all_sha256_sub_8_8 (line 42) | fn test_stacked_porep_extract_all_sha256_sub_8_8() { function test_stacked_porep_extract_all_sha256_top_8_8_2 (line 47) | fn test_stacked_porep_extract_all_sha256_top_8_8_2() { function test_stacked_porep_extract_all_blake2s_base_8 (line 52) | fn test_stacked_porep_extract_all_blake2s_base_8() { function test_stacked_porep_extract_all_blake2s_sub_8_8 (line 57) | fn test_stacked_porep_extract_all_blake2s_sub_8_8() { function test_stacked_porep_extract_all_blake2s_top_8_8_2 (line 62) | fn test_stacked_porep_extract_all_blake2s_top_8_8_2() { function test_stacked_porep_extract_all_poseidon_base_8 (line 67) | fn test_stacked_porep_extract_all_poseidon_base_8() { function test_stacked_porep_extract_all_poseidon_sub_8_2 (line 72) | fn test_stacked_porep_extract_all_poseidon_sub_8_2() { function test_stacked_porep_extract_all_poseidon_top_8_8_2 (line 77) | fn test_stacked_porep_extract_all_poseidon_top_8_8_2() { function test_extract_all (line 81) | fn test_extract_all() { function test_stacked_porep_resume_seal (line 183) | fn test_stacked_porep_resume_seal() { function test_prove_verify_fixed (line 316) | fn test_prove_verify_fixed(n: usize) { function test_prove_verify (line 344) | fn test_prove_verify(n: usize, challeng... function test_stacked_porep_setup_terminates (line 446) | fn test_stacked_porep_setup_terminates() { function test_stacked_porep_generate_labels (line 467) | fn test_stacked_porep_generate_labels() { function test_generate_labels_aux (line 535) | fn test_generate_labels_aux( FILE: storage-proofs-post/src/election/circuit.rs type ElectionPoStCircuit (line 18) | pub struct ElectionPoStCircuit { type ComponentPrivateInputs (line 33) | pub struct ComponentPrivateInputs {} type ComponentPrivateInputs (line 36) | type ComponentPrivateInputs = ComponentPrivateInputs; function synthesize (line 40) | fn synthesize>(self, cs: &mut CS) -> Result<... FILE: storage-proofs-post/src/election/compound.rs type ElectionPoStCompound (line 22) | pub struct ElectionPoStCompound function cache_prefix (line 32) | fn cache_prefix() -> String { function generate_public_inputs (line 42) | fn generate_public_inputs( function circuit (line 88) | fn circuit( function blank_circuit (line 134) | fn blank_circuit( FILE: storage-proofs-post/src/election/vanilla.rs type SetupParams (line 31) | pub struct SetupParams { type PublicParams (line 39) | pub struct PublicParams { method identifier (line 47) | fn identifier(&self) -> String { method sector_size (line 56) | fn sector_size(&self) -> u64 { type PublicInputs (line 62) | pub struct PublicInputs { type PrivateInputs (line 75) | pub struct PrivateInputs { type Candidate (line 89) | pub struct Candidate { method fmt (line 97) | fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { type Proof (line 108) | pub struct Proof { function leafs (line 119) | pub fn leafs(&self) -> Vec<::Domain> { function comm_r_last (line 126) | pub fn comm_r_last(&self) -> ::Domain { function commitments (line 130) | pub fn commitments(&self) -> Vec<::Domain> { function paths (line 138) | pub fn paths(&self) -> Vec::Domain>, usiz... type ElectionPoSt (line 147) | pub struct ElectionPoSt<'a, Tree> function generate_candidates (line 155) | pub fn generate_candidates( function generate_candidate (line 192) | fn generate_candidate( function finalize_ticket (line 247) | pub fn finalize_ticket(partial_ticket: &Fr) -> [u8; 32] { function is_valid_sector_challenge_index (line 255) | pub fn is_valid_sector_challenge_index(challenge_count: u64, index: u64)... function generate_sector_challenges (line 259) | pub fn generate_sector_challenges( function generate_sector_challenge (line 270) | pub fn generate_sector_challenge( function generate_leaf_challenges (line 291) | pub fn generate_leaf_challenges( function generate_leaf_challenge (line 313) | pub fn generate_leaf_challenge( type PublicParams (line 340) | type PublicParams = PublicParams; type SetupParams (line 341) | type SetupParams = SetupParams; type PublicInputs (line 342) | type PublicInputs = PublicInputs<::Domain>; type PrivateInputs (line 343) | type PrivateInputs = PrivateInputs; type Proof (line 344) | type Proof = Proof; type Requirements (line 345) | type Requirements = NoRequirements; function setup (line 347) | fn setup(sp: &Self::SetupParams) -> Result { function prove (line 355) | fn prove<'b>( function verify (line 403) | fn verify( FILE: storage-proofs-post/src/fallback/circuit.rs type FallbackPoStCircuit (line 26) | pub struct FallbackPoStCircuit { method clone (line 36) | fn clone(&self) -> Self { type Sector (line 44) | pub struct Sector { method clone (line 56) | fn clone(&self) -> Self { function circuit (line 69) | pub fn circuit( function blank_circuit (line 95) | pub fn blank_circuit(pub_params: &PublicParams) -> Self { function synthesize (line 118) | fn synthesize>(self, cs: &mut CS) -> Result<... type ComponentPrivateInputs (line 184) | pub struct ComponentPrivateInputs {} type ComponentPrivateInputs (line 187) | type ComponentPrivateInputs = ComponentPrivateInputs; function synthesize (line 191) | fn synthesize>(self, cs: &mut CS) -> Result<... function synthesize_default (line 201) | fn synthesize_default>( function synthesize_extendable (line 214) | fn synthesize_extendable>( FILE: storage-proofs-post/src/fallback/compound.rs type FallbackPoStCompound (line 23) | pub struct FallbackPoStCompound function cache_prefix (line 33) | fn cache_prefix() -> String { function generate_public_inputs (line 42) | fn generate_public_inputs( function circuit (line 109) | fn circuit( function blank_circuit (line 152) | fn blank_circuit( FILE: storage-proofs-post/src/fallback/vanilla.rs type SetupParams (line 26) | pub struct SetupParams { type PublicParams (line 37) | pub struct PublicParams { type ChallengeRequirements (line 48) | pub struct ChallengeRequirements { method identifier (line 54) | fn identifier(&self) -> String { method sector_size (line 63) | fn sector_size(&self) -> u64 { type PublicInputs (line 69) | pub struct PublicInputs { type PublicSector (line 81) | pub struct PublicSector { type PrivateSector (line 88) | pub struct PrivateSector<'a, Tree: MerkleTreeTrait> { type PrivateInputs (line 101) | pub struct PrivateInputs<'a, Tree: MerkleTreeTrait> { type Proof (line 106) | pub struct Proof { type SectorProof (line 115) | pub struct SectorProof { function leafs (line 127) | pub fn leafs(&self) -> Vec<::Domain> { function comm_r_last (line 134) | pub fn comm_r_last(&self) -> ::Domain { function commitments (line 138) | pub fn commitments(&self) -> Vec<::Domain> { function paths (line 146) | pub fn paths(&self) -> Vec::Domain>, usiz... function as_options (line 153) | pub fn as_options(&self) -> Vec>, Option)>> { function inclusion_proofs (line 161) | pub fn inclusion_proofs( type FallbackPoSt (line 169) | pub struct FallbackPoSt<'a, Tree> function generate_sector_challenges (line 176) | pub fn generate_sector_challenges( function generate_sector_challenge (line 188) | pub fn generate_sector_challenge( function generate_leaf_challenges (line 208) | pub fn generate_leaf_challenges( function generate_leaf_challenge (line 230) | pub fn generate_leaf_challenge( function generate_leaf_challenge_inner (line 243) | pub fn generate_leaf_challenge_inner( function vanilla_proof (line 257) | pub fn vanilla_proof( type PublicParams (line 307) | type PublicParams = PublicParams; type SetupParams (line 308) | type SetupParams = SetupParams; type PublicInputs (line 309) | type PublicInputs = PublicInputs<::Domain>; type PrivateInputs (line 310) | type PrivateInputs = PrivateInputs<'a, Tree>; type Proof (line 311) | type Proof = Proof; type Requirements (line 312) | type Requirements = ChallengeRequirements; function setup (line 314) | fn setup(sp: &Self::SetupParams) -> Result { function prove (line 323) | fn prove<'b>( function prove_all_partitions (line 341) | fn prove_all_partitions<'b>( function verify_all_partitions (line 494) | fn verify_all_partitions( function satisfies_requirements (line 615) | fn satisfies_requirements( FILE: storage-proofs-post/src/rational/circuit.rs type RationalPoStCircuit (line 15) | pub struct RationalPoStCircuit { type ComponentPrivateInputs (line 27) | pub struct ComponentPrivateInputs {} type ComponentPrivateInputs (line 30) | type ComponentPrivateInputs = ComponentPrivateInputs; function synthesize (line 34) | fn synthesize>(self, cs: &mut CS) -> Result<... FILE: storage-proofs-post/src/rational/compound.rs type RationalPoStCompound (line 21) | pub struct RationalPoStCompound function cache_prefix (line 31) | fn cache_prefix() -> String { function generate_public_inputs (line 42) | fn generate_public_inputs( function circuit (line 78) | fn circuit( function blank_circuit (line 129) | fn blank_circuit( function synthesize (line 154) | pub fn synthesize>( FILE: storage-proofs-post/src/rational/vanilla.rs type SetupParams (line 19) | pub struct SetupParams { type PublicParams (line 28) | pub struct PublicParams { method identifier (line 36) | fn identifier(&self) -> String { method sector_size (line 44) | fn sector_size(&self) -> u64 { type PublicInputs (line 50) | pub struct PublicInputs { type PrivateInputs (line 60) | pub struct PrivateInputs<'a, Tree: 'a + MerkleTreeTrait> { type Proof (line 76) | pub struct Proof { function leafs (line 86) | pub fn leafs(&self) -> Vec<::Domain> { function commitments (line 93) | pub fn commitments(&self) -> Vec<::Domain> { function paths (line 101) | pub fn paths(&self) -> Vec::Domain>, usiz... type RationalPoSt (line 110) | pub struct RationalPoSt<'a, Tree> type PublicParams (line 118) | type PublicParams = PublicParams; type SetupParams (line 119) | type SetupParams = SetupParams; type PublicInputs (line 120) | type PublicInputs = PublicInputs<::Domain>; type PrivateInputs (line 121) | type PrivateInputs = PrivateInputs<'a, Tree>; type Proof (line 122) | type Proof = Proof; type Requirements (line 123) | type Requirements = NoRequirements; function setup (line 125) | fn setup(sp: &Self::SetupParams) -> Result { function prove (line 132) | fn prove<'b>( function verify (line 173) | fn verify( type Challenge (line 231) | pub struct Challenge { function derive_challenges (line 239) | pub fn derive_challenges( function derive_challenge (line 271) | fn derive_challenge( function test_derive_challenges_fails_on_all_faulty (line 306) | fn test_derive_challenges_fails_on_all_faulty() { FILE: storage-proofs-post/tests/election_circuit.rs function test_election_post_circuit_poseidon (line 28) | fn test_election_post_circuit_poseidon() { function test_election_post_circuit (line 32) | fn test_election_post_circuit(expected_... FILE: storage-proofs-post/tests/election_compound.rs function test_election_post_compound_poseidon (line 26) | fn test_election_post_compound_poseidon() { function test_election_post_compound (line 30) | fn test_election_post_compound() { FILE: storage-proofs-post/tests/election_vanilla.rs function test_election_post_poseidon_base_8 (line 20) | fn test_election_post_poseidon_base_8() { function test_election_post_poseidon_sub_8_8 (line 25) | fn test_election_post_poseidon_sub_8_8() { function test_election_post_poseidon_top_8_8_2 (line 30) | fn test_election_post_poseidon_top_8_8_2() { function test_election_post (line 34) | fn test_election_post() { FILE: storage-proofs-post/tests/fallback_circuit.rs function test_fallback_post_circuit_poseidon_single_partition_base_8 (line 27) | fn test_fallback_post_circuit_poseidon_single_partition_base_8() { function test_fallback_post_circuit_poseidon_single_partition_sub_8_4 (line 32) | fn test_fallback_post_circuit_poseidon_single_partition_sub_8_4() { function test_fallback_post_circuit_poseidon_single_partition_top_8_4_2 (line 37) | fn test_fallback_post_circuit_poseidon_single_partition_top_8_4_2() { function test_fallback_post_circuit_poseidon_two_partitions_base_8 (line 42) | fn test_fallback_post_circuit_poseidon_two_partitions_base_8() { function test_fallback_post_circuit_poseidon_single_partition_smaller_base_8 (line 47) | fn test_fallback_post_circuit_poseidon_single_partition_smaller_base_8() { function test_fallback_post_circuit_poseidon_two_partitions_smaller_base_8 (line 52) | fn test_fallback_post_circuit_poseidon_two_partitions_smaller_base_8() { function test_fallback_post (line 56) | fn test_fallback_post( function test_fallback_post_circuit_poseidon_base_8_bench_cs (line 206) | fn test_fallback_post_circuit_poseidon_base_8_bench_cs() { FILE: storage-proofs-post/tests/fallback_compound.rs function test_fallback_post_compound_poseidon_single_partition_base_8 (line 25) | fn test_fallback_post_compound_poseidon_single_partition_base_8() { function test_fallback_post_compound_poseidon_single_partition_sub_8_4 (line 32) | fn test_fallback_post_compound_poseidon_single_partition_sub_8_4() { function test_fallback_post_compound_poseidon_single_partition_top_8_4_2 (line 39) | fn test_fallback_post_compound_poseidon_single_partition_top_8_4_2() { function test_fallback_post_compound_poseidon_single_partition_smaller_base_8 (line 46) | fn test_fallback_post_compound_poseidon_single_partition_smaller_base_8() { function test_fallback_post_compound_poseidon_two_partitions_base_8 (line 53) | fn test_fallback_post_compound_poseidon_two_partitions_base_8() { function test_fallback_post_compound_poseidon_two_partitions_smaller_base_8 (line 60) | fn test_fallback_post_compound_poseidon_two_partitions_smaller_base_8() { function fallback_post (line 65) | fn fallback_post( FILE: storage-proofs-post/tests/fallback_vanilla.rs function test_fallback_post_poseidon_single_partition_base_8 (line 18) | fn test_fallback_post_poseidon_single_partition_base_8() { function test_fallback_post_poseidon_single_partition_smaller_base_8 (line 24) | fn test_fallback_post_poseidon_single_partition_smaller_base_8() { function test_fallback_post_poseidon_two_partitions_base_8 (line 30) | fn test_fallback_post_poseidon_two_partitions_base_8() { function test_fallback_post_poseidon_two_partitions_smaller_base_8 (line 36) | fn test_fallback_post_poseidon_two_partitions_smaller_base_8() { function test_fallback_post_poseidon_single_partition_sub_8_4 (line 42) | fn test_fallback_post_poseidon_single_partition_sub_8_4() { function test_fallback_post_poseidon_single_partition_smaller_sub_8_4 (line 48) | fn test_fallback_post_poseidon_single_partition_smaller_sub_8_4() { function test_fallback_post_poseidon_two_partitions_sub_8_4 (line 54) | fn test_fallback_post_poseidon_two_partitions_sub_8_4() { function test_fallback_post_poseidon_two_partitions_sub_8_8 (line 60) | fn test_fallback_post_poseidon_two_partitions_sub_8_8() { function test_fallback_post_poseidon_two_partitions_smaller_sub_8_4 (line 66) | fn test_fallback_post_poseidon_two_partitions_smaller_sub_8_4() { function test_fallback_post_poseidon_two_partitions_smaller_sub_8_8 (line 72) | fn test_fallback_post_poseidon_two_partitions_smaller_sub_8_8() { function test_fallback_post_poseidon_single_partition_top_8_4_2 (line 78) | fn test_fallback_post_poseidon_single_partition_top_8_4_2() { function test_fallback_post_poseidon_single_partition_top_8_8_2 (line 84) | fn test_fallback_post_poseidon_single_partition_top_8_8_2() { function test_fallback_post_poseidon_single_partition_smaller_top_8_4_2 (line 90) | fn test_fallback_post_poseidon_single_partition_smaller_top_8_4_2() { function test_fallback_post_poseidon_two_partitions_top_8_4_2 (line 96) | fn test_fallback_post_poseidon_two_partitions_top_8_4_2() { function test_fallback_post_poseidon_two_partitions_smaller_top_8_4_2 (line 102) | fn test_fallback_post_poseidon_two_partitions_smaller_top_8_4_2() { function test_fallback_post_poseidon_two_partitions_smaller_top_8_8_2 (line 108) | fn test_fallback_post_poseidon_two_partitions_smaller_top_8_8_2() { function test_fallback_post (line 113) | fn test_fallback_post( function test_invalid_fallback_post_poseidon_single_partition_base_8 (line 189) | fn test_invalid_fallback_post_poseidon_single_partition_base_8() { function test_invalid_fallback_post_poseidon_single_partition_smaller_base_8 (line 195) | fn test_invalid_fallback_post_poseidon_single_partition_smaller_base_8() { function test_invalid_fallback_post_poseidon_two_partitions_base_8 (line 201) | fn test_invalid_fallback_post_poseidon_two_partitions_base_8() { function test_invalid_fallback_post_poseidon_two_partitions_smaller_base_8 (line 207) | fn test_invalid_fallback_post_poseidon_two_partitions_smaller_base_8() { function test_invalid_fallback_post_poseidon_single_partition_sub_8_4 (line 213) | fn test_invalid_fallback_post_poseidon_single_partition_sub_8_4() { function test_invalid_fallback_post_poseidon_single_partition_smaller_sub_8_4 (line 219) | fn test_invalid_fallback_post_poseidon_single_partition_smaller_sub_8_4() { function test_invalid_fallback_post_poseidon_two_partitions_sub_8_4 (line 225) | fn test_invalid_fallback_post_poseidon_two_partitions_sub_8_4() { function test_invalid_fallback_post_poseidon_two_partitions_sub_8_8 (line 231) | fn test_invalid_fallback_post_poseidon_two_partitions_sub_8_8() { function test_invalid_fallback_post_poseidon_two_partitions_smaller_sub_8_4 (line 237) | fn test_invalid_fallback_post_poseidon_two_partitions_smaller_sub_8_4() { function test_invalid_fallback_post_poseidon_two_partitions_smaller_sub_8_8 (line 243) | fn test_invalid_fallback_post_poseidon_two_partitions_smaller_sub_8_8() { function test_invalid_fallback_post_poseidon_single_partition_top_8_4_2 (line 249) | fn test_invalid_fallback_post_poseidon_single_partition_top_8_4_2() { function test_invalid_fallback_post_poseidon_single_partition_top_8_8_2 (line 255) | fn test_invalid_fallback_post_poseidon_single_partition_top_8_8_2() { function test_invalid_fallback_post_poseidon_single_partition_smaller_top_8_4_2 (line 261) | fn test_invalid_fallback_post_poseidon_single_partition_smaller_top_8_4_... function test_invalid_fallback_post_poseidon_two_partitions_top_8_4_2 (line 267) | fn test_invalid_fallback_post_poseidon_two_partitions_top_8_4_2() { function test_invalid_fallback_post_poseidon_two_partitions_smaller_top_8_4_2 (line 273) | fn test_invalid_fallback_post_poseidon_two_partitions_smaller_top_8_4_2() { function test_invalid_fallback_post_poseidon_two_partitions_smaller_top_8_8_2 (line 279) | fn test_invalid_fallback_post_poseidon_two_partitions_smaller_top_8_8_2() { function test_invalid_fallback_post (line 284) | fn test_invalid_fallback_post( FILE: storage-proofs-post/tests/rational_circuit.rs function test_rational_post_circuit_poseidon (line 27) | fn test_rational_post_circuit_poseidon() { function test_rational_post_circuit (line 31) | fn test_rational_post_circuit(expected_... FILE: storage-proofs-post/tests/rational_compound.rs function test_rational_post_compound_poseidon (line 20) | fn test_rational_post_compound_poseidon() { function test_rational_post_compound (line 24) | fn test_rational_post_compound() { FILE: storage-proofs-post/tests/rational_vanilla.rs function test_rational_post_sha256_base_8 (line 20) | fn test_rational_post_sha256_base_8() { function test_rational_post_blake2s_base_8 (line 25) | fn test_rational_post_blake2s_base_8() { function test_rational_post_poseidon_base_8 (line 30) | fn test_rational_post_poseidon_base_8() { function test_rational_post_poseidon_sub_8_8 (line 35) | fn test_rational_post_poseidon_sub_8_8() { function test_rational_post_poseidon_top_8_8_2 (line 40) | fn test_rational_post_poseidon_top_8_8_2() { function test_rational_post (line 44) | fn test_rational_post() function test_rational_post_validates_challenge_sha256_base_8 (line 129) | fn test_rational_post_validates_challenge_sha256_base_8() { function test_rational_post_validates_challenge_blake2s_base_8 (line 134) | fn test_rational_post_validates_challenge_blake2s_base_8() { function test_rational_post_validates_challenge_poseidon_base_8 (line 139) | fn test_rational_post_validates_challenge_poseidon_base_8() { function test_rational_post_validates_challenge_poseidon_sub_8_8 (line 144) | fn test_rational_post_validates_challenge_poseidon_sub_8_8() { function test_rational_post_validates_challenge_poseidon_top_8_8_2 (line 149) | fn test_rational_post_validates_challenge_poseidon_top_8_8_2() { function test_rational_post_validates_challenge (line 153) | fn test_rational_post_validates_challenge { function synthesize (line 30) | fn synthesize>(self, cs: &mut CS) -> Result<(), ... function blake2s_benchmark (line 50) | fn blake2s_benchmark(c: &mut Criterion) { FILE: storage-proofs/benches/drgraph.rs function drgraph (line 9) | fn drgraph(c: &mut Criterion) { FILE: storage-proofs/benches/pedersen.rs type PedersenExample (line 22) | struct PedersenExample<'a, E: JubjubEngine> { function synthesize (line 28) | fn synthesize>(self, cs: &mut CS) -> Result<(), ... function pedersen_benchmark (line 53) | fn pedersen_benchmark(c: &mut Criterion) { FILE: storage-proofs/benches/preprocessing.rs function random_data (line 15) | fn random_data(size: usize) -> Vec { function preprocessing_benchmark (line 24) | fn preprocessing_benchmark(c: &mut Criterion) { function write_padded_bench (line 54) | fn write_padded_bench(file: &mut File, data: &[u8]) { function write_padded_unpadded_bench (line 62) | fn write_padded_unpadded_bench(file: &mut File, data: &[u8]) { FILE: storage-proofs/benches/sha256.rs type Sha256Example (line 23) | struct Sha256Example<'a> { function synthesize (line 31) | fn synthesize>(self, cs: &mut CS) -> Result<(), ... function sha256_benchmark (line 51) | fn sha256_benchmark(c: &mut Criterion) { FILE: storage-proofs/benches/sloth.rs type SlothExample (line 22) | struct SlothExample { function synthesize (line 29) | fn synthesize>(self, cs: &mut CS) -> Result<(), ... function sloth_benchmark (line 49) | fn sloth_benchmark(c: &mut Criterion) { FILE: storage-proofs/build.rs function is_compiled_for_64_bit_arch (line 1) | fn is_compiled_for_64_bit_arch() -> bool { function main (line 5) | fn main() { FILE: storage-proofs/core/benches/blake2s.rs type Blake2sExample (line 9) | struct Blake2sExample<'a> { function synthesize (line 14) | fn synthesize>(self, cs: &mut CS) -> Result<... function blake2s_benchmark (line 34) | fn blake2s_benchmark(c: &mut Criterion) { function blake2s_circuit_benchmark (line 52) | fn blake2s_circuit_benchmark(c: &mut Criterion) { FILE: storage-proofs/core/benches/drgraph.rs function drgraph (line 5) | fn drgraph(c: &mut Criterion) { FILE: storage-proofs/core/benches/encode.rs type Pregenerated (line 11) | struct Pregenerated { function pregenerate_data (line 17) | fn pregenerate_data(degree: usize) -> Pregenerated { function kdf_benchmark (line 35) | fn kdf_benchmark(c: &mut Criterion) { FILE: storage-proofs/core/benches/fr.rs function fr_benchmark (line 7) | fn fr_benchmark(c: &mut Criterion) { FILE: storage-proofs/core/benches/merkle.rs function merkle_benchmark (line 6) | fn merkle_benchmark(c: &mut Criterion) { FILE: storage-proofs/core/benches/misc.rs function read_bytes_benchmark (line 7) | fn read_bytes_benchmark(c: &mut Criterion) { FILE: storage-proofs/core/benches/pedersen.rs type PedersenExample (line 10) | struct PedersenExample<'a> { function synthesize (line 15) | fn synthesize>(self, cs: &mut CS) -> Result<... type PedersenMdExample (line 40) | struct PedersenMdExample<'a> { function synthesize (line 45) | fn synthesize>(self, cs: &mut CS) -> Result<... function pedersen_benchmark (line 70) | fn pedersen_benchmark(c: &mut Criterion) { function pedersen_md_benchmark (line 88) | fn pedersen_md_benchmark(c: &mut Criterion) { function pedersen_circuit_benchmark (line 106) | fn pedersen_circuit_benchmark(c: &mut Criterion) { function pedersen_md_circuit_benchmark (line 160) | fn pedersen_md_circuit_benchmark(c: &mut Criterion) { FILE: storage-proofs/core/benches/sha256.rs type Sha256Example (line 12) | struct Sha256Example<'a> { function synthesize (line 17) | fn synthesize>(self, cs: &mut CS) -> Result<... function sha256_benchmark (line 37) | fn sha256_benchmark(c: &mut Criterion) { function sha256_raw_benchmark (line 56) | fn sha256_raw_benchmark(c: &mut Criterion) { function sha256_circuit_benchmark (line 78) | fn sha256_circuit_benchmark(c: &mut Criterion) { FILE: storage-proofs/core/benches/xor.rs type XorExample (line 11) | struct XorExample<'a> { function synthesize (line 17) | fn synthesize>(self, cs: &mut CS) -> Result<... function xor_benchmark (line 48) | fn xor_benchmark(c: &mut Criterion) { function xor_circuit_benchmark (line 67) | fn xor_circuit_benchmark(c: &mut Criterion) { FILE: storage-proofs/core/src/cache_key.rs type CacheKey (line 4) | pub enum CacheKey { method fmt (line 13) | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { method label_layer (line 25) | pub fn label_layer(layer: usize) -> String { FILE: storage-proofs/core/src/compound_proof.rs type SetupParams (line 15) | pub struct SetupParams<'a, S: ProofScheme<'a>> { type PublicParams (line 23) | pub struct PublicParams<'a, S: ProofScheme<'a>> { type CircuitComponent (line 33) | pub trait CircuitComponent { type CompoundProof (line 42) | pub trait CompoundProof<'a, S: ProofScheme<'a>, C: Circuit + Circ... method setup (line 50) | fn setup(sp: &SetupParams<'a, S>) -> Result> { method partition_count (line 58) | fn partition_count(public_params: &PublicParams<'a, S>) -> usize { method prove (line 67) | fn prove<'b>( method verify (line 106) | fn verify<'b>( method batch_verify (line 139) | fn batch_verify<'b>( method circuit_proofs (line 203) | fn circuit_proofs( method generate_public_inputs (line 250) | fn generate_public_inputs( method circuit (line 260) | fn circuit( method blank_circuit (line 268) | fn blank_circuit(public_params: &S::PublicParams) -> C; method groth_params (line 275) | fn groth_params( method verifying_key (line 287) | fn verifying_key( method circuit_for_test (line 294) | fn circuit_for_test( method circuit_for_test_all (line 338) | fn circuit_for_test_all( FILE: storage-proofs/core/src/crypto/aes.rs constant IV (line 8) | const IV: [u8; 16] = [0u8; 16]; function encode (line 10) | pub fn encode(key: &[u8], plaintext: &[u8]) -> Result> { function decode (line 18) | pub fn decode(key: &[u8], ciphertext: &[u8]) -> Result> { function test_aes (line 34) | fn test_aes() { FILE: storage-proofs/core/src/crypto/feistel.rs constant FEISTEL_ROUNDS (line 4) | pub const FEISTEL_ROUNDS: usize = 3; type Index (line 9) | pub type Index = u64; type FeistelPrecomputed (line 11) | pub type FeistelPrecomputed = (Index, Index, Index); function precompute (line 16) | pub fn precompute(num_elements: Index) -> FeistelPrecomputed { function permute (line 34) | pub fn permute( function invert_permute (line 53) | pub fn invert_permute( function common_setup (line 71) | fn common_setup(index: Index, precomputed: FeistelPrecomputed) -> (Index... function encode (line 80) | fn encode(index: Index, keys: &[Index], precomputed: FeistelPrecomputed)... function decode (line 92) | fn decode(index: Index, keys: &[Index], precomputed: FeistelPrecomputed)... constant HALF_FEISTEL_BYTES (line 104) | const HALF_FEISTEL_BYTES: usize = mem::size_of::(); constant FEISTEL_BYTES (line 105) | const FEISTEL_BYTES: usize = 2 * HALF_FEISTEL_BYTES; function feistel (line 110) | fn feistel(right: Index, key: Index, right_mask: Index) -> Index { constant BAD_NS (line 173) | const BAD_NS: &[Index] = &[5, 6, 8, 12, 17]; function encode_decode (line 175) | fn encode_decode(n: Index, expect_success: bool) { function test_feistel_power_of_4 (line 198) | fn test_feistel_power_of_4() { function test_feistel_on_arbitrary_set (line 217) | fn test_feistel_on_arbitrary_set() { FILE: storage-proofs/core/src/crypto/pedersen.rs constant PEDERSEN_BLOCK_SIZE (line 21) | pub const PEDERSEN_BLOCK_SIZE: usize = 256; constant PEDERSEN_BLOCK_BYTES (line 22) | pub const PEDERSEN_BLOCK_BYTES: usize = PEDERSEN_BLOCK_SIZE / 8; function pedersen (line 24) | pub fn pedersen(data: &[u8]) -> Fr { function pedersen_bits (line 28) | pub fn pedersen_bits<'a, S: Iterator>(data: Bits<&'a [u... function pedersen_md_no_padding (line 41) | pub fn pedersen_md_no_padding(data: &[u8]) -> Fr { function pedersen_md_no_padding_bits (line 45) | pub fn pedersen_md_no_padding_bits, S: Iterator>( function pedersen_compression_bits (line 69) | fn pedersen_compression_bits(bits: T) -> FrRepr type Hasher (line 85) | pub struct Hasher { method new (line 90) | pub fn new(data: &[u8]) -> Result { method new_empty (line 98) | pub fn new_empty() -> Self { method update (line 102) | pub fn update(&mut self, data: &[u8]) -> Result<()> { method finalize_bytes (line 123) | pub fn finalize_bytes(self) -> [u8; 32] { method finalize (line 128) | pub fn finalize(self) -> Result { type Bits (line 138) | pub struct Bits, S: Iterator> { type ManyOrSingle (line 155) | enum ManyOrSingle as IntoIterator>::IntoIter> function new (line 164) | pub fn new(parts: T) -> Self { function new_many (line 177) | pub fn new_many(parts: S) -> Self { function is_done (line 188) | pub fn is_done(&self) -> bool { function inc_part (line 192) | fn inc_part(&mut self) { function inc (line 212) | fn inc(&mut self) { function ref_take (line 231) | fn ref_take(&mut self, take: usize) -> BitsTake<'_, T, S> { type BitsTake (line 237) | struct BitsTake<'a, T: AsRef<[u8]>, S: Iterator> { function new (line 243) | pub fn new(iter: &'a mut Bits, take: usize) -> Self { type Item (line 254) | type Item = bool; method next (line 256) | fn next(&mut self) -> Option { type Item (line 272) | type Item = bool; method next (line 274) | fn next(&mut self) -> Option { method nth (line 299) | fn nth(&mut self, n: usize) -> Option { function test_bit_vec_le (line 319) | fn test_bit_vec_le() { function test_pedersen_compression (line 330) | fn test_pedersen_compression() { function test_pedersen_md_no_padding (line 345) | fn test_pedersen_md_no_padding() { function test_bits_collect (line 356) | fn test_bits_collect() { function test_bits_take (line 377) | fn test_bits_take() { function test_pedersen_hasher_update (line 397) | fn test_pedersen_hasher_update() { FILE: storage-proofs/core/src/crypto/sloth.rs function encode (line 6) | pub fn encode(key: &Fr, plaintext: &Fr) -> Fr { function decode (line 15) | pub fn decode(key: &Fr, ciphertext: &Fr) -> Fr { constant MODULUS (line 33) | const MODULUS: [u64; 4] = [ function sloth_bls_12 (line 41) | fn sloth_bls_12() { function sloth_bls_12_fake (line 51) | fn sloth_bls_12_fake() { FILE: storage-proofs/core/src/crypto/xor.rs function encode (line 5) | pub fn encode(key: &[u8], plaintext: &[u8]) -> Result> { function decode (line 10) | pub fn decode(key: &[u8], ciphertext: &[u8]) -> Result> { function xor (line 14) | fn xor(key: &[u8], input: &[u8]) -> Result> { function test_xor (line 32) | fn test_xor() { FILE: storage-proofs/core/src/data.rs type Data (line 9) | pub struct Data<'a> { type RawData (line 16) | enum RawData<'a> { type Target (line 24) | type Target = [u8]; method deref (line 26) | fn deref(&self) -> &Self::Target { method deref_mut (line 35) | fn deref_mut(&mut self) -> &mut Self::Target { function from (line 44) | fn from(raw: &'a mut [u8]) -> Self { function from (line 55) | fn from(raw: (memmap::MmapMut, PathBuf)) -> Self { function as_ref (line 66) | fn as_ref(&self) -> &[u8] { function as_mut (line 75) | fn as_mut(&mut self) -> &mut [u8] { function from_path (line 84) | pub fn from_path(path: PathBuf) -> Self { function new (line 92) | pub fn new(raw: &'a mut [u8], path: PathBuf) -> Self { function len (line 102) | pub fn len(&self) -> usize { function is_empty (line 106) | pub fn is_empty(&self) -> bool { function ensure_data (line 111) | pub fn ensure_data(&mut self) -> Result<()> { function drop_data (line 140) | pub fn drop_data(&mut self) { FILE: storage-proofs/core/src/drgraph.rs constant PARALLEL_MERKLE (line 16) | pub const PARALLEL_MERKLE: bool = true; constant BASE_DEGREE (line 21) | pub const BASE_DEGREE: usize = 6; type Graph (line 24) | pub trait Graph: ::std::fmt::Debug + Clone + PartialEq + Eq { method expected_size (line 28) | fn expected_size(&self) -> usize { method merkle_tree_depth (line 33) | fn merkle_tree_depth(&self) -> u64 { method parents (line 45) | fn parents(&self, node: usize, parents: &mut [u32]) -> Result<()>; method size (line 48) | fn size(&self) -> usize; method degree (line 51) | fn degree(&self) -> usize; method new (line 53) | fn new( method seed (line 59) | fn seed(&self) -> [u8; 28]; method create_key (line 63) | fn create_key( function graph_height (line 73) | pub fn graph_height(number_of_leafs: usize) -> usi... type BucketGraph (line 79) | pub struct BucketGraph { method identifier (line 87) | fn identifier(&self) -> String { method sector_size (line 97) | fn sector_size(&self) -> u64 { type Key (line 103) | type Key = H::Domain; function create_key (line 105) | fn create_key( function parents (line 129) | fn parents(&self, node: usize, parents: &mut [u32]) -> Result<()> { function size (line 188) | fn size(&self) -> usize { function degree (line 194) | fn degree(&self) -> usize { function seed (line 198) | fn seed(&self) -> [u8; 28] { function new (line 202) | fn new( function new_seed (line 228) | pub fn new_seed() -> [u8; 28] { function mmap_from (line 249) | pub fn mmap_from(data: &[u8]) -> MmapMut { function graph_bucket (line 258) | fn graph_bucket() { function graph_bucket_sha256 (line 296) | fn graph_bucket_sha256() { function graph_bucket_blake2s (line 301) | fn graph_bucket_blake2s() { function graph_bucket_pedersen (line 306) | fn graph_bucket_pedersen() { function gen_proof (line 310) | fn gen_proof(config: Op... function gen_proof_pedersen_binary (line 326) | fn gen_proof_pedersen_binary() { function gen_proof_poseidon_binary (line 331) | fn gen_proof_poseidon_binary() { function gen_proof_sha256_binary (line 336) | fn gen_proof_sha256_binary() { function gen_proof_blake2s_binary (line 341) | fn gen_proof_blake2s_binary() { function gen_proof_pedersen_quad (line 346) | fn gen_proof_pedersen_quad() { function gen_proof_poseidon_quad (line 351) | fn gen_proof_poseidon_quad() { function gen_proof_sha256_quad (line 356) | fn gen_proof_sha256_quad() { function gen_proof_blake2s_quad (line 361) | fn gen_proof_blake2s_quad() { function gen_proof_pedersen_oct (line 366) | fn gen_proof_pedersen_oct() { function gen_proof_poseidon_oct (line 371) | fn gen_proof_poseidon_oct() { FILE: storage-proofs/core/src/error.rs type Error (line 9) | pub enum Error { method from (line 43) | fn from(inner: Box) -> Error { FILE: storage-proofs/core/src/fr32.rs type Fr32 (line 12) | pub type Fr32 = [u8]; type Fr32Vec (line 19) | pub type Fr32Vec = Vec; type Fr32Ary (line 24) | pub type Fr32Ary = [u8; 32]; function bytes_into_fr (line 28) | pub fn bytes_into_fr(bytes: &[u8]) -> Result { function trim_bytes_to_fr_safe (line 38) | pub fn trim_bytes_to_fr_safe(r: &[u8]) -> Result> { function bytes_into_fr_repr_safe (line 47) | pub fn bytes_into_fr_repr_safe(r: &[u8]) -> FrRepr { function fr_into_bytes (line 68) | pub fn fr_into_bytes(fr: &Fr) -> Fr32Vec { function bytes_into_frs (line 76) | pub fn bytes_into_frs(bytes: &[u8]) -> Result> { function frs_into_bytes (line 85) | pub fn frs_into_bytes(frs: &[Fr]) -> Fr32Vec { function u32_into_fr (line 90) | pub fn u32_into_fr(n: u32) -> Fr { function u64_into_fr (line 99) | pub fn u64_into_fr(n: u64) -> Fr { function bytes_fr_test (line 111) | fn bytes_fr_test(bytes: Fr32Ary, expect_success: bool) { function test_bytes_into_fr_into_bytes (line 124) | fn test_bytes_into_fr_into_bytes() { function bytes_into_frs_into_bytes_test (line 166) | fn bytes_into_frs_into_bytes_test(bytes: &Fr32) { function test_bytes_into_frs_into_bytes (line 175) | fn test_bytes_into_frs_into_bytes() { FILE: storage-proofs/core/src/gadgets/bench/mod.rs type BenchCS (line 7) | pub struct BenchCS { function new (line 17) | pub fn new() -> Self { function num_constraints (line 21) | pub fn num_constraints(&self) -> usize { function num_inputs (line 25) | pub fn num_inputs(&self) -> usize { method default (line 31) | fn default() -> Self { type Root (line 44) | type Root = Self; function alloc (line 46) | fn alloc(&mut self, _: A, _f: F) -> Result(&mut self, _: A, _f: F) -> Result(&mut self, _: A, _a: LA, _b: LB, _c: LC) function push_namespace (line 83) | fn push_namespace(&mut self, _: N) function pop_namespace (line 90) | fn pop_namespace(&mut self) {} function get_root (line 92) | fn get_root(&mut self) -> &mut Self::Root { FILE: storage-proofs/core/src/gadgets/constraint.rs function equal (line 8) | pub fn equal>( function sum (line 29) | pub fn sum>( function add (line 48) | pub fn add>( function sub (line 71) | pub fn sub>( function difference (line 97) | pub fn difference>( function add_constraint (line 128) | fn add_constraint() { function sub_constraint (line 148) | fn sub_constraint() { FILE: storage-proofs/core/src/gadgets/encode.rs function encode (line 7) | pub fn encode( function decode (line 19) | pub fn decode( FILE: storage-proofs/core/src/gadgets/insertion.rs function insert (line 15) | pub fn insert>( function insert_2 (line 90) | pub fn insert_2>( function insert_4 (line 115) | pub fn insert_4>( function insert_8 (line 170) | pub fn insert_8>( function select (line 282) | pub fn select>( function pick (line 315) | pub fn pick>( function test_select (line 359) | fn test_select() { function test_insert (line 410) | fn test_insert() { FILE: storage-proofs/core/src/gadgets/metric/mod.rs type OrderedVariable (line 7) | struct OrderedVariable(Variable); type NamedObject (line 10) | enum NamedObject { method eq (line 18) | fn eq(&self, other: &OrderedVariable) -> bool { method partial_cmp (line 27) | fn partial_cmp(&self, other: &Self) -> Option { method cmp (line 32) | fn cmp(&self, other: &Self) -> Ordering { type MetricCS (line 42) | pub struct MetricCS { function new (line 57) | pub fn new() -> Self { function num_constraints (line 61) | pub fn num_constraints(&self) -> usize { function num_inputs (line 65) | pub fn num_inputs(&self) -> usize { function pretty_print_list (line 69) | pub fn pretty_print_list(&self) -> Vec { function pretty_print (line 86) | pub fn pretty_print(&self) -> String { function set_named_obj (line 92) | fn set_named_obj(&mut self, path: String, to: NamedObject) { method default (line 102) | fn default() -> Self { type Root (line 116) | type Root = Self; function alloc (line 118) | fn alloc(&mut self, annotation: A, _f: F) -> Result(&mut self, annotation: A, _f: F) -> Result(&mut self, annotation: A, a: LA, b: LB, c:... function push_namespace (line 161) | fn push_namespace(&mut self, name_fn: N) function pop_namespace (line 172) | fn pop_namespace(&mut self) { function get_root (line 176) | fn get_root(&mut self) -> &mut Self::Root { function compute_path (line 181) | fn compute_path(ns: &[String], this: &str) -> String { FILE: storage-proofs/core/src/gadgets/multipack.rs function pack_bits (line 9) | pub fn pack_bits(mut cs: CS, bits: &[Boolean]) -> Result( function pedersen_compression_num (line 50) | pub fn pedersen_compression_num>( function pedersen_compression (line 64) | pub fn pedersen_compression>( function test_pedersen_single_input_circut (line 93) | fn test_pedersen_single_input_circut() { function test_pedersen_md_input_circut (line 128) | fn test_pedersen_md_input_circut() { FILE: storage-proofs/core/src/gadgets/por.rs type PoRCircuit (line 30) | pub struct PoRCircuit { type AuthPath (line 39) | pub struct AuthPath< function from (line 57) | fn from(mut base_opts: Vec<(Vec>, Option)>) -> Self { type SubPath (line 116) | struct SubPath { type PathElement (line 121) | struct PathElement { function synthesize (line 129) | fn synthesize>( function blank (line 191) | pub fn blank(leaves: usize) -> Self { type ComponentPrivateInputs (line 237) | type ComponentPrivateInputs = Option>; type PoRCompound (line 240) | pub struct PoRCompound { function to_bits (line 244) | fn to_bits(bit_count: u32, n: usize) -> Vec { function challenge_into_auth_path_bits (line 248) | pub fn challenge_into_auth_path_bits(challenge: usize, leaves: usize) ->... function cache_prefix (line 257) | fn cache_prefix() -> String { function circuit (line 266) | fn circuit<'b>( function blank_circuit (line 292) | fn blank_circuit( function generate_public_inputs (line 304) | fn generate_public_inputs( function synthesize (line 337) | fn synthesize>(self, cs: &mut CS) -> Result<... function synthesize (line 409) | pub fn synthesize( type TestTree (line 458) | type TestTree = type TestTree2 (line 461) | type TestTree2 = type TestTree3 (line 464) | type TestTree3 = MerkleTreeWrapper... function por_test_compound_poseidon_base_8 (line 468) | fn por_test_compound_poseidon_base_8() { function por_compound (line 472) | fn por_compound() { function test_por_circuit_pedersen_base_2 (line 528) | fn test_por_circuit_pedersen_base_2() { function test_por_circuit_blake2s_base_2 (line 533) | fn test_por_circuit_blake2s_base_2() { function test_por_circuit_sha256_base_2 (line 538) | fn test_por_circuit_sha256_base_2() { function test_por_circuit_poseidon_base_2 (line 543) | fn test_por_circuit_poseidon_base_2() { function test_por_circuit_pedersen_base_4 (line 548) | fn test_por_circuit_pedersen_base_4() { function test_por_circuit_pedersen_sub_8_2 (line 553) | fn test_por_circuit_pedersen_sub_8_2() { function test_por_circuit_pedersen_top_8_4_2 (line 558) | fn test_por_circuit_pedersen_top_8_4_2() { function test_por_circuit_pedersen_top_8_2_4 (line 565) | fn test_por_circuit_pedersen_top_8_2_4() { function test_por_circuit_blake2s_base_4 (line 574) | fn test_por_circuit_blake2s_base_4() { function test_por_circuit_sha256_base_4 (line 579) | fn test_por_circuit_sha256_base_4() { function test_por_circuit_poseidon_base_4 (line 584) | fn test_por_circuit_poseidon_base_4() { function test_por_circuit_pedersen_base_8 (line 589) | fn test_por_circuit_pedersen_base_8() { function test_por_circuit_blake2s_base_8 (line 594) | fn test_por_circuit_blake2s_base_8() { function test_por_circuit_sha256_base_8 (line 599) | fn test_por_circuit_sha256_base_8() { function test_por_circuit_poseidon_base_8 (line 604) | fn test_por_circuit_poseidon_base_8() { function test_por_circuit_poseidon_sub_8_2 (line 609) | fn test_por_circuit_poseidon_sub_8_2() { function test_por_circuit_poseidon_top_8_4_2 (line 614) | fn test_por_circuit_poseidon_top_8_4_2() { function test_por_circuit_poseidon_top_8_8 (line 621) | fn test_por_circuit_poseidon_top_8_8() { function test_por_circuit_poseidon_top_8_8_2 (line 626) | fn test_por_circuit_poseidon_top_8_8_2() { function test_por_circuit_poseidon_top_8_2_4 (line 634) | fn test_por_circuit_poseidon_top_8_2_4() { function test_por_circuit (line 642) | fn test_por_circuit( function test_private_por_compound_pedersen_base_2 (line 729) | fn test_private_por_compound_pedersen_base_2() { function test_private_por_compound_pedersen_base_4 (line 735) | fn test_private_por_compound_pedersen_base_4() { function test_private_por_compound_poseidon_base_2 (line 741) | fn test_private_por_compound_poseidon_base_2() { function test_private_por_compound_poseidon_base_4 (line 747) | fn test_private_por_compound_poseidon_base_4() { function test_private_por_compound_poseidon_sub_8_2 (line 753) | fn test_private_por_compound_poseidon_sub_8_2() { function test_private_por_compound_poseidon_top_8_4_2 (line 759) | fn test_private_por_compound_poseidon_top_8_4_2() { function test_private_por_compound_poseidon_top_8_8 (line 766) | fn test_private_por_compound_poseidon_top_8_8() { function test_private_por_compound_poseidon_top_8_8_2 (line 772) | fn test_private_por_compound_poseidon_top_8_8_2() { function test_private_por_compound_poseidon_top_8_2_4 (line 779) | fn test_private_por_compound_poseidon_top_8_2_4() { function private_por_test_compound (line 784) | fn private_por_test_compound() { function test_private_por_input_circuit_pedersen_binary (line 885) | fn test_private_por_input_circuit_pedersen_binary() { function test_private_por_input_circuit_poseidon_binary (line 890) | fn test_private_por_input_circuit_poseidon_binary() { function test_private_por_input_circuit_pedersen_quad (line 895) | fn test_private_por_input_circuit_pedersen_quad() { function test_private_por_input_circuit_poseidon_quad (line 900) | fn test_private_por_input_circuit_poseidon_quad() { function test_private_por_input_circuit_poseidon_oct (line 905) | fn test_private_por_input_circuit_poseidon_oct() { function test_private_por_input_circuit (line 909) | fn test_private_por_input_circuit(num_constraints... FILE: storage-proofs/core/src/gadgets/test/mod.rs type NamedObject (line 12) | enum NamedObject { type TestConstraintSystem (line 19) | pub struct TestConstraintSystem { type OrderedVariable (line 34) | struct OrderedVariable(Variable); method eq (line 38) | fn eq(&self, other: &OrderedVariable) -> bool { method partial_cmp (line 47) | fn partial_cmp(&self, other: &Self) -> Option { method cmp (line 52) | fn cmp(&self, other: &Self) -> Ordering { function proc_lc (line 62) | fn proc_lc(terms: &[(Variable, E::Fr)]) -> BTreeMap(terms: &[(Variable, E::Fr)], h: &mut Blake2s) { function _eval_lc2 (line 113) | fn _eval_lc2(terms: &[(Variable, E::Fr)], inputs: &[E::Fr], a... function eval_lc (line 129) | fn eval_lc( method default (line 150) | fn default() -> Self { function new (line 168) | pub fn new() -> Self { function pretty_print_list (line 172) | pub fn pretty_print_list(&self) -> Vec { function pretty_print (line 189) | pub fn pretty_print(&self) -> String { function hash (line 195) | pub fn hash(&self) -> String { function which_is_unsatisfied (line 220) | pub fn which_is_unsatisfied(&self) -> Option<&str> { function is_satisfied (line 236) | pub fn is_satisfied(&self) -> bool { function num_constraints (line 247) | pub fn num_constraints(&self) -> usize { function set (line 251) | pub fn set(&mut self, path: &str, to: E::Fr) { function verify (line 265) | pub fn verify(&self, expected: &[E::Fr]) -> bool { function num_inputs (line 276) | pub fn num_inputs(&self) -> usize { function get_input (line 280) | pub fn get_input(&mut self, index: usize, path: &str) -> E::Fr { function get_inputs (line 288) | pub fn get_inputs(&self) -> &[(E::Fr, String)] { function get (line 292) | pub fn get(&mut self, path: &str) -> E::Fr { function set_named_obj (line 306) | fn set_named_obj(&mut self, path: String, to: NamedObject) { function compute_path (line 315) | fn compute_path(ns: &[String], this: &str) -> String { type Root (line 330) | type Root = Self; function alloc (line 332) | fn alloc(&mut self, annotation: A, f: F) -> Result(&mut self, annotation: A, f: F) -> Result(&mut self, annotation: A, a: LA, b: LB, c:... function push_namespace (line 381) | fn push_namespace(&mut self, name_fn: N) function pop_namespace (line 392) | fn pop_namespace(&mut self) { function get_root (line 396) | fn get_root(&mut self) -> &mut Self::Root { function test_compute_path (line 406) | fn test_compute_path() { function test_cs (line 421) | fn test_cs() { FILE: storage-proofs/core/src/gadgets/uint64.rs type UInt64 (line 8) | pub struct UInt64 { method constant (line 16) | pub fn constant(value: u64) -> Self { method get_value (line 36) | pub fn get_value(&self) -> Option { method pack_into_input (line 40) | pub fn pack_into_input(&self, cs: CS) -> Result<(), SynthesisEr... method alloc (line 49) | pub fn alloc(mut cs: CS, value: Option) -> Result Vec { method from_bits_be (line 86) | pub fn from_bits_be(bits: &[Boolean]) -> Self { method to_bits_le (line 115) | pub fn to_bits_le(&self) -> Vec { method from_bits (line 121) | pub fn from_bits(bits: &[Boolean]) -> Self { function test_uint64_from_bits_be (line 176) | fn test_uint64_from_bits_be() { function test_uint64_from_bits (line 208) | fn test_uint64_from_bits() { FILE: storage-proofs/core/src/gadgets/variables.rs type Root (line 13) | pub enum Root { function fmt (line 19) | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { function from_allocated (line 28) | pub fn from_allocated>(allocated: AllocatedNum>( function var (line 44) | pub fn var>(cs: CS, fr: E::Fr) -> Result { function is_some (line 48) | pub fn is_some(&self) -> bool { FILE: storage-proofs/core/src/gadgets/xor.rs function xor (line 5) | pub fn xor( function test_xor_input_circut (line 44) | fn test_xor_input_circut() { FILE: storage-proofs/core/src/hasher/blake2s.rs type Blake2sHasher (line 21) | pub struct Blake2sHasher {} type Domain (line 24) | type Domain = Blake2sDomain; type Function (line 25) | type Function = Blake2sFunction; method name (line 27) | fn name() -> String { method sloth_encode (line 31) | fn sloth_encode(key: &Self::Domain, ciphertext: &Self::Domain) -> Result... method sloth_decode (line 39) | fn sloth_decode(key: &Self::Domain, ciphertext: &Self::Domain) -> Result... type Blake2sFunction (line 46) | pub struct Blake2sFunction(State); method fmt (line 63) | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { method hash (line 193) | fn hash(data: &[u8]) -> Blake2sDomain { method hash2 (line 202) | fn hash2(a: &Blake2sDomain, b: &Blake2sDomain) -> Blake2sDomain { method hash_multi_leaf_circuit (line 212) | fn hash_multi_leaf_circuit>( method hash_leaf_bits_circuit (line 229) | fn hash_leaf_bits_circuit>( method hash_circuit (line 250) | fn hash_circuit>( method hash2_circuit (line 261) | fn hash2_circuit( method hash (line 291) | fn hash(&mut self) -> Blake2sDomain { method reset (line 296) | fn reset(&mut self) { method leaf (line 300) | fn leaf(&mut self, leaf: Blake2sDomain) -> Blake2sDomain { method node (line 304) | fn node(&mut self, left: Blake2sDomain, right: Blake2sDomain, _height:... method multi_node (line 310) | fn multi_node(&mut self, parts: &[Blake2sDomain], _height: usize) -> B... method default (line 49) | fn default() -> Self { method eq (line 55) | fn eq(&self, other: &Self) -> bool { method write (line 70) | fn write(&mut self, msg: &[u8]) { method finish (line 75) | fn finish(&self) -> u64 { type Blake2sDomain (line 83) | pub struct Blake2sDomain(pub [u8; 32]); method as_ref (line 86) | fn as_ref(&self) -> &Self { method trim_to_fr32 (line 92) | pub fn trim_to_fr32(&mut self) { method as_ref (line 99) | fn as_ref(&self) -> &[u8] { method hash (line 105) | fn hash(&self, state: &mut Blake2sFunction) { method from (line 111) | fn from(val: Fr) -> Self { method from (line 120) | fn from(val: FrRepr) -> Self { method from (line 320) | fn from(val: [u8; 32]) -> Self { method byte_len (line 129) | fn byte_len() -> usize { method from_slice (line 133) | fn from_slice(bytes: &[u8]) -> Self { method copy_to_slice (line 140) | fn copy_to_slice(&self, bytes: &mut [u8]) { method from (line 146) | fn from(val: Blake2sDomain) -> Self { method into_bytes (line 155) | fn into_bytes(&self) -> Vec { method try_from_bytes (line 159) | fn try_from_bytes(raw: &[u8]) -> Result { method write_bytes (line 170) | fn write_bytes(&self, dest: &mut [u8]) -> Result<()> { method random (line 176) | fn random(rng: &mut R) -> Self { method into (line 183) | fn into(self) -> Blake2sDomain { function from (line 327) | fn from(val: Blake2sDomain) -> Self { FILE: storage-proofs/core/src/hasher/pedersen.rs type PedersenHasher (line 20) | pub struct PedersenHasher {} type Domain (line 23) | type Domain = PedersenDomain; type Function (line 24) | type Function = PedersenFunction; method name (line 26) | fn name() -> String { method sloth_encode (line 31) | fn sloth_encode(key: &Self::Domain, ciphertext: &Self::Domain) -> Result... method sloth_decode (line 39) | fn sloth_decode(key: &Self::Domain, ciphertext: &Self::Domain) -> Result... type PedersenFunction (line 49) | pub struct PedersenFunction(Fr); method hash (line 194) | fn hash(data: &[u8]) -> PedersenDomain { method hash2 (line 198) | fn hash2(a: &PedersenDomain, b: &PedersenDomain) -> PedersenDomain { method hash_multi_leaf_circuit (line 215) | fn hash_multi_leaf_circuit>( method hash_leaf_bits_circuit (line 248) | fn hash_leaf_bits_circuit>( method hash_circuit (line 268) | fn hash_circuit>( method hash2_circuit (line 275) | fn hash2_circuit( method hash (line 302) | fn hash(&mut self) -> PedersenDomain { method reset (line 307) | fn reset(&mut self) { method leaf (line 311) | fn leaf(&mut self, leaf: PedersenDomain) -> PedersenDomain { method node (line 315) | fn node( method multi_node (line 338) | fn multi_node(&mut self, parts: &[PedersenDomain], height: usize) -> P... method default (line 52) | fn default() -> PedersenFunction { method hash (line 58) | fn hash(&self, state: &mut PedersenFunction) { type PedersenDomain (line 76) | pub struct PedersenDomain(pub FrRepr); method hash (line 66) | fn hash(&self, state: &mut PedersenFunction) { method as_ref (line 79) | fn as_ref(&self) -> &PedersenDomain { method hash (line 85) | fn hash(&self, state: &mut H) { method as_ref (line 121) | fn as_ref(&self) -> &[u8] { method from (line 394) | fn from(val: Fr) -> Self { method from (line 401) | fn from(val: FrRepr) -> Self { method eq (line 92) | fn eq(&self, other: &Self) -> bool { method default (line 100) | fn default() -> PedersenDomain { method cmp (line 107) | fn cmp(&self, other: &PedersenDomain) -> ::std::cmp::Ordering { method partial_cmp (line 114) | fn partial_cmp(&self, other: &PedersenDomain) -> Option<::std::cmp::Orde... function as_ref (line 131) | fn as_ref<'a>(src: &'a [u64; 4]) -> &'a [u8] { method into_bytes (line 141) | fn into_bytes(&self) -> Vec { method try_from_bytes (line 148) | fn try_from_bytes(raw: &[u8]) -> Result { method write_bytes (line 156) | fn write_bytes(&self, dest: &mut [u8]) -> Result<()> { method random (line 161) | fn random(rng: &mut R) -> Self { method byte_len (line 168) | fn byte_len() -> usize { method from_slice (line 172) | fn from_slice(bytes: &[u8]) -> Self { method copy_to_slice (line 176) | fn copy_to_slice(&self, bytes: &mut [u8]) { method write (line 183) | fn write(&mut self, msg: &[u8]) { method finish (line 188) | fn finish(&self) -> u64 { type NodeBits (line 351) | struct NodeBits<'a> { function new (line 360) | pub fn new(lhs: &'a [u64], rhs: &'a [u64]) -> Self { type Item (line 366) | type Item = bool; method next (line 369) | fn next(&mut self) -> Option { method from (line 408) | fn from(val: PedersenDomain) -> Self { function test_as_ref (line 496) | fn test_as_ref() { function test_serialize (line 528) | fn test_serialize() { FILE: storage-proofs/core/src/hasher/poseidon.rs type PoseidonHasher (line 24) | pub struct PoseidonHasher {} type Domain (line 27) | type Domain = PoseidonDomain; type Function (line 28) | type Function = PoseidonFunction; method name (line 30) | fn name() -> String { method sloth_encode (line 35) | fn sloth_encode(key: &Self::Domain, ciphertext: &Self::Domain) -> Result... method sloth_decode (line 43) | fn sloth_decode(key: &Self::Domain, ciphertext: &Self::Domain) -> Result... type PoseidonFunction (line 53) | pub struct PoseidonFunction(Fr); method hash (line 239) | fn hash(data: &[u8]) -> PoseidonDomain { method hash2 (line 243) | fn hash2(a: &PoseidonDomain, b: &PoseidonDomain) -> PoseidonDomain { method hash_md (line 250) | fn hash_md(input: &[PoseidonDomain]) -> PoseidonDomain { method hash_leaf_circuit (line 274) | fn hash_leaf_circuit>( method hash_multi_leaf_circuit (line 285) | fn hash_multi_leaf_circuit>( method hash_circuit (line 327) | fn hash_circuit>( method hash2_circuit (line 334) | fn hash2_circuit( method hash (line 349) | fn hash(&mut self) -> PoseidonDomain { method reset (line 354) | fn reset(&mut self) { method leaf (line 358) | fn leaf(&mut self, leaf: PoseidonDomain) -> PoseidonDomain { method node (line 362) | fn node( method multi_node (line 375) | fn multi_node(&mut self, parts: &[PoseidonDomain], _height: usize) -> ... method default (line 56) | fn default() -> PoseidonFunction { method hash (line 62) | fn hash(&self, state: &mut PoseidonFunction) { type PoseidonDomain (line 80) | pub struct PoseidonDomain(pub FrRepr); method hash (line 70) | fn hash(&self, state: &mut PoseidonFunction) { method as_ref (line 83) | fn as_ref(&self) -> &PoseidonDomain { method hash (line 89) | fn hash(&self, state: &mut H) { method as_ref (line 125) | fn as_ref(&self) -> &[u8] { method from (line 391) | fn from(val: Fr) -> Self { method from (line 398) | fn from(val: FrRepr) -> Self { method eq (line 96) | fn eq(&self, other: &Self) -> bool { method default (line 104) | fn default() -> PoseidonDomain { method cmp (line 111) | fn cmp(&self, other: &PoseidonDomain) -> ::std::cmp::Ordering { method partial_cmp (line 118) | fn partial_cmp(&self, other: &PoseidonDomain) -> Option<::std::cmp::Orde... function as_ref (line 135) | fn as_ref<'a>(src: &'a [u64; 4]) -> &'a [u8] { method into_bytes (line 145) | fn into_bytes(&self) -> Vec { method try_from_bytes (line 152) | fn try_from_bytes(raw: &[u8]) -> Result { method write_bytes (line 160) | fn write_bytes(&self, dest: &mut [u8]) -> Result<()> { method random (line 165) | fn random(rng: &mut R) -> Self { method byte_len (line 172) | fn byte_len() -> usize { method from_slice (line 176) | fn from_slice(bytes: &[u8]) -> Self { method copy_to_slice (line 183) | fn copy_to_slice(&self, bytes: &mut [u8]) { method write (line 190) | fn write(&mut self, msg: &[u8]) { method finish (line 195) | fn finish(&self) -> u64 { function shared_hash (line 200) | fn shared_hash(data: &[u8]) -> PoseidonDomain { function shared_hash_frs (line 213) | fn shared_hash_frs( method from (line 405) | fn from(val: PoseidonDomain) -> Self { function test_path (line 420) | fn test_path() { function test_poseidon_hasher (line 448) | fn test_poseidon_hasher() { function test_as_ref (line 501) | fn test_as_ref() { function test_serialize (line 533) | fn test_serialize() { function test_hash_md (line 546) | fn test_hash_md() { function test_hash_md_circuit (line 563) | fn test_hash_md_circuit() { FILE: storage-proofs/core/src/hasher/sha256.rs type Sha256Hasher (line 20) | pub struct Sha256Hasher {} type Domain (line 23) | type Domain = Sha256Domain; type Function (line 24) | type Function = Sha256Function; method name (line 26) | fn name() -> String { method sloth_encode (line 30) | fn sloth_encode(key: &Self::Domain, ciphertext: &Self::Domain) -> Result... method sloth_decode (line 38) | fn sloth_decode(key: &Self::Domain, ciphertext: &Self::Domain) -> Result... type Sha256Function (line 45) | pub struct Sha256Function(Sha256); method hash (line 170) | fn hash(data: &[u8]) -> Sha256Domain { method hash2 (line 178) | fn hash2(a: &Sha256Domain, b: &Sha256Domain) -> Sha256Domain { method hash_multi_leaf_circuit (line 189) | fn hash_multi_leaf_circuit>( method hash_leaf_bits_circuit (line 211) | fn hash_leaf_bits_circuit>( method hash_circuit (line 246) | fn hash_circuit>( method hash2_circuit (line 260) | fn hash2_circuit( method hash (line 304) | fn hash(&mut self) -> Sha256Domain { method reset (line 313) | fn reset(&mut self) { method leaf (line 317) | fn leaf(&mut self, leaf: Sha256Domain) -> Sha256Domain { method node (line 321) | fn node(&mut self, left: Sha256Domain, right: Sha256Domain, _height: u... method multi_node (line 327) | fn multi_node(&mut self, parts: &[Sha256Domain], _height: usize) -> Sh... method write (line 49) | fn write(&mut self, msg: &[u8]) { method finish (line 54) | fn finish(&self) -> u64 { type Sha256Domain (line 60) | pub struct Sha256Domain(pub [u8; 32]); method fmt (line 63) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method as_ref (line 69) | fn as_ref(&self) -> &Self { method trim_to_fr32 (line 75) | fn trim_to_fr32(&mut self) { method as_ref (line 82) | fn as_ref(&self) -> &[u8] { method hash (line 88) | fn hash(&self, state: &mut Sha256Function) { method from (line 94) | fn from(val: Fr) -> Self { method from (line 103) | fn from(val: FrRepr) -> Self { method from (line 337) | fn from(val: [u8; 32]) -> Self { method from (line 112) | fn from(val: Sha256Domain) -> Self { method into_bytes (line 121) | fn into_bytes(&self) -> Vec { method try_from_bytes (line 125) | fn try_from_bytes(raw: &[u8]) -> Result { method write_bytes (line 136) | fn write_bytes(&self, dest: &mut [u8]) -> Result<()> { method random (line 146) | fn random(rng: &mut R) -> Self { method byte_len (line 153) | fn byte_len() -> usize { method from_slice (line 157) | fn from_slice(bytes: &[u8]) -> Self { method copy_to_slice (line 164) | fn copy_to_slice(&self, bytes: &mut [u8]) { function from (line 344) | fn from(val: Sha256Domain) -> Self { function hash_leaf_bits_circuit (line 366) | fn hash_leaf_bits_circuit() { FILE: storage-proofs/core/src/hasher/types.rs type PoseidonBinaryArity (line 14) | pub type PoseidonBinaryArity = U2; type PoseidonQuadArity (line 15) | pub type PoseidonQuadArity = U4; type PoseidonOctArity (line 16) | pub type PoseidonOctArity = U8; type PoseidonMDArity (line 19) | pub type PoseidonMDArity = U36; constant MERKLE_TREE_ARITY (line 23) | pub const MERKLE_TREE_ARITY: usize = 2; type PoseidonArity (line 41) | pub trait PoseidonArity: neptune::Arity + Send + Sync + Clone + std:... method PARAMETERS (line 43) | fn PARAMETERS() -> &'static PoseidonConstants; method PARAMETERS (line 47) | fn PARAMETERS() -> &'static PoseidonConstants { method PARAMETERS (line 53) | fn PARAMETERS() -> &'static PoseidonConstants { method PARAMETERS (line 59) | fn PARAMETERS() -> &'static PoseidonConstants { method PARAMETERS (line 65) | fn PARAMETERS() -> &'static PoseidonConstants { method PARAMETERS (line 71) | fn PARAMETERS() -> &'static PoseidonConstants { method PARAMETERS (line 77) | fn PARAMETERS() -> &'static PoseidonConstants { method PARAMETERS (line 82) | fn PARAMETERS() -> &'static PoseidonConstants { method PARAMETERS (line 87) | fn PARAMETERS() -> &'static PoseidonConstants { type Domain (line 92) | pub trait Domain: method into_bytes (line 110) | fn into_bytes(&self) -> Vec; method try_from_bytes (line 111) | fn try_from_bytes(raw: &[u8]) -> Result; method write_bytes (line 113) | fn write_bytes(&self, _: &mut [u8]) -> Result<()>; method random (line 115) | fn random(rng: &mut R) -> Self; type HashFunction (line 118) | pub trait HashFunction: method hash (line 121) | fn hash(data: &[u8]) -> T; method hash2 (line 122) | fn hash2(a: &T, b: &T) -> T; method hash_md (line 123) | fn hash_md(input: &[T]) -> T { method hash_leaf (line 132) | fn hash_leaf(data: &dyn LightHashable) -> T { method hash_single_node (line 139) | fn hash_single_node(data: &dyn LightHashable) -> T { method hash_leaf_circuit (line 145) | fn hash_leaf_circuit>( method hash_multi_leaf_circuit (line 157) | fn hash_multi_leaf_circuit>( method hash_leaf_bits_circuit (line 170) | fn hash_leaf_bits_circuit>( method hash_circuit (line 179) | fn hash_circuit>( method hash2_circuit (line 184) | fn hash2_circuit( type Hasher (line 193) | pub trait Hasher: Clone + ::std::fmt::Debug + Eq + Default + Send + Sync { method sloth_encode (line 197) | fn sloth_encode(key: &Self::Domain, ciphertext: &Self::Domain) -> Resu... method sloth_decode (line 198) | fn sloth_decode(key: &Self::Domain, ciphertext: &Self::Domain) -> Resu... method name (line 200) | fn name() -> String; FILE: storage-proofs/core/src/lib.rs constant TEST_SEED (line 33) | pub(crate) const TEST_SEED: [u8; 16] = [ FILE: storage-proofs/core/src/measurements.rs type OpMeasurement (line 32) | pub struct OpMeasurement { type Operation (line 40) | pub enum Operation { function measure_op (line 56) | pub fn measure_op(op: Operation, f: F) -> T function measure_op (line 96) | pub fn measure_op(_: Operation, f: F) -> T FILE: storage-proofs/core/src/merkle/builders.rs function create_disk_tree (line 21) | pub fn create_disk_tree( function create_lc_tree (line 50) | pub fn create_lc_tree( function create_tree (line 86) | pub fn create_tree( function create_base_merkle_tree (line 170) | pub fn create_base_merkle_tree( function create_base_lcmerkle_tree (line 233) | pub fn create_base_lcmerkle_tree Result() -> usize { function get_base_tree_leafs (line 377) | pub fn get_base_tree_leafs(base_tree_size: usize)... type ResTree (line 381) | pub type ResTree = MerkleTreeWrapper< function generate_base_tree (line 389) | fn generate_base_tree( function generate_sub_tree (line 454) | fn generate_sub_tree( function generate_tree (line 480) | pub fn generate_tree( FILE: storage-proofs/core/src/merkle/mod.rs type DiskStore (line 18) | pub type DiskStore = merkletree::store::DiskStore; type LCStore (line 19) | pub type LCStore = merkletree::store::LevelCacheStore; type MerkleStore (line 21) | pub type MerkleStore = DiskStore; type DiskTree (line 23) | pub type DiskTree = MerkleTreeWrapper = MerkleTreeWrapper... type MerkleTree (line 26) | pub type MerkleTree = DiskTree; type LCMerkleTree (line 27) | pub type LCMerkleTree = LCTree; type BinaryMerkleTree (line 29) | pub type BinaryMerkleTree = MerkleTree; type BinaryLCMerkleTree (line 30) | pub type BinaryLCMerkleTree = LCMerkleTree; type BinarySubMerkleTree (line 32) | pub type BinarySubMerkleTree = DiskTree; type QuadMerkleTree (line 34) | pub type QuadMerkleTree = MerkleTree; type QuadLCMerkleTree (line 35) | pub type QuadLCMerkleTree = LCMerkleTree; type OctMerkleTree (line 37) | pub type OctMerkleTree = DiskTree; type OctSubMerkleTree (line 38) | pub type OctSubMerkleTree = DiskTree; type OctTopMerkleTree (line 39) | pub type OctTopMerkleTree = DiskTree; type OctLCMerkleTree (line 41) | pub type OctLCMerkleTree = LCTree; type OctLCSubMerkleTree (line 42) | pub type OctLCSubMerkleTree = LCTree; type OctLCTopMerkleTree (line 43) | pub type OctLCTopMerkleTree = LCTree; FILE: storage-proofs/core/src/merkle/proof.rs type MerkleProofTrait (line 16) | pub trait MerkleProofTrait: method try_from_proof (line 25) | fn try_from_proof( method as_options (line 29) | fn as_options(&self) -> Vec<(Vec>, Option)> { method into_options_with_leaf (line 41) | fn into_options_with_leaf(self) -> (Option, Vec<(Vec>, ... method as_pairs (line 56) | fn as_pairs(&self) -> Vec<(Vec, usize)> { method verify (line 62) | fn verify(&self) -> bool; method validate (line 68) | fn validate(&self, node: usize) -> bool { method validate_data (line 76) | fn validate_data(&self, data: ::Domain) -> bool { method leaf (line 84) | fn leaf(&self) -> ::Domain; method root (line 85) | fn root(&self) -> ::Domain; method len (line 86) | fn len(&self) -> usize; method path (line 87) | fn path(&self) -> Vec<(Vec<::Domain>, usize)>; method path_index (line 89) | fn path_index(&self) -> usize { method proves_challenge (line 96) | fn proves_challenge(&self, challenge: usize) -> bool { method expected_len (line 101) | fn expected_len(&self, leaves: usize) -> usize { method break_me (line 107) | fn break_me(&mut self, leaf: ::Domain); type Hasher (line 256) | type Hasher = H; type Arity (line 257) | type Arity = Arity; type SubTreeArity (line 258) | type SubTreeArity = SubTreeArity; type TopTreeArity (line 259) | type TopTreeArity = TopTreeArity; method try_from_proof (line 261) | fn try_from_proof( method verify (line 279) | fn verify(&self) -> bool { method leaf (line 283) | fn leaf(&self) -> H::Domain { method root (line 287) | fn root(&self) -> H::Domain { method len (line 291) | fn len(&self) -> usize { method path (line 295) | fn path(&self) -> Vec<(Vec, usize)> { method path_index (line 298) | fn path_index(&self) -> usize { method break_me (line 304) | fn break_me(&mut self, leaf: H::Domain) { function base_path_length (line 110) | pub fn base_path_length(leaves: u... function compound_path_length (line 122) | pub fn compound_path_length(leave... function compound_tree_height (line 134) | pub fn compound_tree_height(leave... type InclusionPath (line 173) | pub struct InclusionPath { function from (line 182) | fn from(path: Vec>) -> Self { function root (line 189) | pub fn root(&self, leaf: H::Domain) -> H::Domain { function len (line 202) | pub fn len(&self) -> usize { function is_empty (line 206) | pub fn is_empty(&self) -> bool { function iter (line 210) | pub fn iter(&self) -> std::slice::Iter> { function path_index (line 214) | pub fn path_index(&self) -> usize { type PathElement (line 223) | pub struct PathElement { type MerkleProof (line 236) | pub struct MerkleProof< type ProofData (line 320) | enum ProofData< type SingleProof (line 344) | struct SingleProof { function new (line 366) | pub fn new(path: InclusionPath, root: H::Domain, leaf: H::Doma... type SubProof (line 372) | struct SubProof Self { function proof_to_single (line 498) | fn proof_to_single( function try_from_proof (line 536) | fn try_from_proof(p: proof::Proof<::Domain, Arity>) -> Resu... function verify (line 540) | fn verify(&self) -> bool { function leaf (line 545) | fn leaf(&self) -> H::Domain { function root (line 549) | fn root(&self) -> H::Domain { function len (line 553) | fn len(&self) -> usize { function path (line 557) | fn path(&self) -> Vec<(Vec, usize)> { function path_index (line 564) | fn path_index(&self) -> usize { function try_from_proof (line 572) | fn try_from_proof(p: proof::Proof<::Domain, Arity>) -> Resu... function verify (line 592) | fn verify(&self) -> bool { function leaf (line 599) | fn leaf(&self) -> H::Domain { function root (line 603) | fn root(&self) -> H::Domain { function len (line 607) | fn len(&self) -> usize { function path (line 611) | fn path(&self) -> Vec<(Vec, usize)> { function path_index (line 619) | fn path_index(&self) -> usize { function try_from_proof (line 638) | fn try_from_proof(p: proof::Proof<::Domain, Arity>) -> Resu... function verify (line 670) | fn verify(&self) -> bool { function leaf (line 678) | fn leaf(&self) -> H::Domain { function root (line 682) | fn root(&self) -> H::Domain { function len (line 686) | fn len(&self) -> usize { function path (line 690) | fn path(&self) -> Vec<(Vec, usize)> { function path_index (line 699) | fn path_index(&self) -> usize { function merklepath (line 726) | fn merklepath() { function merklepath_pedersen_2 (line 750) | fn merklepath_pedersen_2() { function merklepath_pedersen_4 (line 763) | fn merklepath_pedersen_4() { function merklepath_pedersen_8 (line 776) | fn merklepath_pedersen_8() { function merklepath_pedersen_2_2 (line 789) | fn merklepath_pedersen_2_2() { function merklepath_pedersen_2_2_2 (line 802) | fn merklepath_pedersen_2_2_2() { function merklepath_poseidon_2 (line 815) | fn merklepath_poseidon_2() { function merklepath_poseidon_4 (line 828) | fn merklepath_poseidon_4() { function merklepath_poseidon_8 (line 841) | fn merklepath_poseidon_8() { function merklepath_poseidon_8_2 (line 854) | fn merklepath_poseidon_8_2() { function merklepath_poseidon_8_4 (line 867) | fn merklepath_poseidon_8_4() { function merklepath_poseidon_8_4_2 (line 880) | fn merklepath_poseidon_8_4_2() { function merklepath_sha256_2 (line 893) | fn merklepath_sha256_2() { function merklepath_sha256_4 (line 906) | fn merklepath_sha256_4() { function merklepath_sha256_2_4 (line 919) | fn merklepath_sha256_2_4() { function merklepath_sha256_top_2_4_2 (line 932) | fn merklepath_sha256_top_2_4_2() { function merklepath_blake2s_2 (line 945) | fn merklepath_blake2s_2() { function merklepath_blake2s_4 (line 958) | fn merklepath_blake2s_4() { function merklepath_blake2s_8_4_2 (line 971) | fn merklepath_blake2s_8_4_2() { FILE: storage-proofs/core/src/merkle/tree.rs type MerkleTreeTrait (line 18) | pub trait MerkleTreeTrait: Send + Sync + std::fmt::Debug { method display (line 32) | fn display() -> String; method root (line 34) | fn root(&self) -> ::Domain; method gen_proof (line 36) | fn gen_proof(&self, index: usize) -> Result; method gen_cached_proof (line 37) | fn gen_cached_proof(&self, i: usize, rows_to_discard: Option) -... method row_count (line 38) | fn row_count(&self) -> usize; method leaves (line 39) | fn leaves(&self) -> usize; method from_merkle (line 40) | fn from_merkle( type Arity (line 71) | type Arity = U; type SubTreeArity (line 72) | type SubTreeArity = V; type TopTreeArity (line 73) | type TopTreeArity = W; type Hasher (line 74) | type Hasher = H; type Store (line 75) | type Store = S; type Proof (line 76) | type Proof = MerkleProof String { method root (line 88) | fn root(&self) -> ::Domain { method gen_proof (line 92) | fn gen_proof(&self, i: usize) -> Result { method gen_cached_proof (line 100) | fn gen_cached_proof(&self, i: usize, rows_to_discard: Option) -... method row_count (line 112) | fn row_count(&self) -> usize { method leaves (line 116) | fn leaves(&self) -> usize { method from_merkle (line 120) | fn from_merkle( type MerkleTreeWrapper (line 52) | pub struct MerkleTreeWrapper< function from (line 143) | fn from( function new (line 161) | pub fn new>(data: I) -> Result { function new_with_config (line 166) | pub fn new_with_config>( function from_data_with_config (line 174) | pub fn from_data_with_config, I: IntoIterator Result { function from_byte_slice_with_config (line 187) | pub fn from_byte_slice_with_config(data: &[u8], config: StoreConfig) -> ... function from_tree_slice (line 192) | pub fn from_tree_slice(data: &[u8], leafs: usize) -> Result { function from_tree_slice_with_config (line 197) | pub fn from_tree_slice_with_config( function from_trees (line 206) | pub fn from_trees(trees: Vec>) -> Res... function from_sub_trees (line 212) | pub fn from_sub_trees(trees: Vec>) -> ... function from_sub_trees_as_trees (line 218) | pub fn from_sub_trees_as_trees(trees: Vec) -> Result { function from_store_configs (line 248) | pub fn from_store_configs(leafs: usize, configs: &[StoreConfig]) -> Resu... function from_store_configs_and_replica (line 253) | pub fn from_store_configs_and_replica( function from_sub_tree_store_configs (line 263) | pub fn from_sub_tree_store_configs(leafs: usize, configs: &[StoreConfig]... function try_from_iter (line 268) | pub fn try_from_iter>>(into: I)... function from_sub_tree_store_configs_and_replica (line 273) | pub fn from_sub_tree_store_configs_and_replica( function try_from_iter_with_config (line 286) | pub fn try_from_iter_with_config(par_iter: I) -> Result function from_par_iter_with_config (line 303) | pub fn from_par_iter_with_config(par_iter: I, config: StoreConfig) ->... function fmt (line 321) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type Target (line 337) | type Target = function deref (line 340) | fn deref(&self) -> &Self::Target { function deref_mut (line 353) | fn deref_mut(&mut self) -> &mut Self::Target { FILE: storage-proofs/core/src/multi_proof.rs type MultiProof (line 8) | pub struct MultiProof<'a> { function new (line 14) | pub fn new( function new_from_reader (line 24) | pub fn new_from_reader( function write (line 40) | pub fn write(&self, mut writer: W) -> Result<()> { function to_vec (line 47) | pub fn to_vec(&self) -> Result> { function len (line 53) | pub fn len(&self) -> usize { function is_empty (line 57) | pub fn is_empty(&self) -> bool { FILE: storage-proofs/core/src/parameter_cache.rs constant VERSION (line 19) | pub const VERSION: usize = 26; constant PARAMETER_CACHE_ENV_VAR (line 21) | pub const PARAMETER_CACHE_ENV_VAR: &str = "FIL_PROOFS_PARAMETER_CACHE"; constant PARAMETER_CACHE_DIR (line 22) | pub const PARAMETER_CACHE_DIR: &str = "/var/tmp/filecoin-proof-parameter... constant GROTH_PARAMETER_EXT (line 23) | pub const GROTH_PARAMETER_EXT: &str = "params"; constant PARAMETER_METADATA_EXT (line 24) | pub const PARAMETER_METADATA_EXT: &str = "meta"; constant VERIFYING_KEY_EXT (line 25) | pub const VERIFYING_KEY_EXT: &str = "vk"; type LockedFile (line 28) | struct LockedFile(File); method open_exclusive_read (line 33) | pub fn open_exclusive_read>(p: P) -> io::Result { method open_exclusive (line 40) | pub fn open_exclusive>(p: P) -> io::Result { method write (line 53) | fn write(&mut self, buf: &[u8]) -> io::Result { method flush (line 57) | fn flush(&mut self) -> io::Result<()> { method read (line 63) | fn read(&mut self, buf: &mut [u8]) -> io::Result { method seek (line 69) | fn seek(&mut self, pos: SeekFrom) -> io::Result { method drop (line 75) | fn drop(&mut self) { function parameter_cache_dir_name (line 82) | fn parameter_cache_dir_name() -> String { function parameter_cache_dir (line 89) | pub fn parameter_cache_dir() -> PathBuf { function parameter_cache_params_path (line 93) | pub fn parameter_cache_params_path(parameter_set_identifier: &str) -> Pa... function parameter_cache_metadata_path (line 101) | pub fn parameter_cache_metadata_path(parameter_set_identifier: &str) -> ... function parameter_cache_verifying_key_path (line 109) | pub fn parameter_cache_verifying_key_path(parameter_set_identifier: &str... function ensure_ancestor_dirs_exist (line 117) | fn ensure_ancestor_dirs_exist(cache_entry_path: PathBuf) -> Result String; method sector_size (line 139) | fn sector_size(&self) -> u64; type CacheEntryMetadata (line 143) | pub struct CacheEntryMetadata { type CacheableParameters (line 147) | pub trait CacheableParameters method cache_prefix (line 152) | fn cache_prefix() -> String; method cache_meta (line 154) | fn cache_meta(pub_params: &P) -> CacheEntryMetadata { method cache_identifier (line 160) | fn cache_identifier(pub_params: &P) -> String { method get_param_metadata (line 173) | fn get_param_metadata(_circuit: C, pub_params: &P) -> Result( method get_verifying_key (line 230) | fn get_verifying_key( function ensure_parent (line 250) | fn ensure_parent(path: &PathBuf) -> Result<()> { function read_cached_params (line 262) | fn read_cached_params(cache_entry_path: &PathBuf) -> Result Result Result( function with_exclusive_read_lock (line 338) | fn with_exclusive_read_lock( function with_open_file (line 345) | fn with_open_file<'a, T>( FILE: storage-proofs/core/src/partitions.rs type Partitions (line 1) | pub type Partitions = Option; function partition_count (line 3) | pub fn partition_count(partitions: Partitions) -> usize { FILE: storage-proofs/core/src/pieces.rs type PieceSpec (line 14) | pub struct PieceSpec { method compute_packing (line 25) | pub fn compute_packing(&self, tree_len: usize) -> Result<(Vec<(usize, ... method is_aligned (line 32) | pub fn is_aligned(&self, tree_len: usize) -> Result { method height (line 36) | fn height(&self) -> usize { method proof_length (line 41) | fn proof_length(&self, tree_len: usize) -> usize { function generate_piece_commitment_bytes_from_source (line 47) | pub fn generate_piece_commitment_bytes_from_source( function piece_is_aligned (line 74) | pub fn piece_is_aligned(position: usize, length: usize, tree_len: usize)... function height_for_length (line 80) | fn height_for_length(n: usize) -> usize { function subtree_capacity (line 88) | fn subtree_capacity(pos: usize, total: usize) -> Result { function test_subtree_capacity (line 109) | fn test_subtree_capacity() { function test_generate_piece_commitment_bytes_from_source (line 129) | fn test_generate_piece_commitment_bytes_from_source() -> Result<()> { FILE: storage-proofs/core/src/por.rs type DataProof (line 12) | pub struct DataProof { type PublicParams (line 27) | pub struct PublicParams { method identifier (line 34) | fn identifier(&self) -> String { method sector_size (line 41) | fn sector_size(&self) -> u64 { type PublicInputs (line 48) | pub struct PublicInputs { type PrivateInputs (line 57) | pub struct PrivateInputs<'a, Tree: 'a + MerkleTreeTrait> { function new (line 65) | pub fn new(leaf: ::Domain, tree: &'a Tree) -> Se... type SetupParams (line 71) | pub struct SetupParams { type PoR (line 78) | pub struct PoR { type PublicParams (line 83) | type PublicParams = PublicParams; type SetupParams (line 84) | type SetupParams = SetupParams; type PublicInputs (line 85) | type PublicInputs = PublicInputs<::Domain>; type PrivateInputs (line 86) | type PrivateInputs = PrivateInputs<'a, Tree>; type Proof (line 87) | type Proof = DataProof; type Requirements (line 88) | type Requirements = NoRequirements; function setup (line 90) | fn setup(sp: &SetupParams) -> Result { function prove (line 98) | fn prove<'b>( function verify (line 116) | fn verify( function test_merklepor (line 165) | fn test_merklepor() { type TestTree (line 202) | type TestTree = function merklepor_pedersen_binary (line 206) | fn merklepor_pedersen_binary() { function merklepor_poseidon_binary (line 211) | fn merklepor_poseidon_binary() { function merklepor_sha256_binary (line 216) | fn merklepor_sha256_binary() { function merklepor_blake2s_binary (line 221) | fn merklepor_blake2s_binary() { function merklepor_pedersen_quad (line 226) | fn merklepor_pedersen_quad() { function merklepor_poseidon_quad (line 231) | fn merklepor_poseidon_quad() { function merklepor_sha256_quad (line 236) | fn merklepor_sha256_quad() { function merklepor_blake2s_quad (line 241) | fn merklepor_blake2s_quad() { function make_bogus_proof (line 246) | fn make_bogus_proof( function test_merklepor_validates (line 255) | fn test_merklepor_validates() { function merklepor_actually_validates_sha256_binary (line 302) | fn merklepor_actually_validates_sha256_binary() { function merklepor_actually_validates_blake2s_binary (line 307) | fn merklepor_actually_validates_blake2s_binary() { function merklepor_actually_validates_pedersen_binary (line 312) | fn merklepor_actually_validates_pedersen_binary() { function merklepor_actually_validates_poseidon_binary (line 317) | fn merklepor_actually_validates_poseidon_binary() { function merklepor_actually_validates_sha256_quad (line 322) | fn merklepor_actually_validates_sha256_quad() { function merklepor_actually_validates_blake2s_quad (line 327) | fn merklepor_actually_validates_blake2s_quad() { function merklepor_actually_validates_pedersen_quad (line 332) | fn merklepor_actually_validates_pedersen_quad() { function merklepor_actually_validates_poseidon_quad (line 337) | fn merklepor_actually_validates_poseidon_quad() { function test_merklepor_validates_challenge_identity (line 341) | fn test_merklepor_validates_challenge_identity() { function merklepor_actually_validates_challenge_identity_sha256_binary (line 387) | fn merklepor_actually_validates_challenge_identity_sha256_binary() { function merklepor_actually_validates_challenge_identity_blake2s_binary (line 392) | fn merklepor_actually_validates_challenge_identity_blake2s_binary() { function merklepor_actually_validates_challenge_identity_pedersen_binary (line 397) | fn merklepor_actually_validates_challenge_identity_pedersen_binary() { function merklepor_actually_validates_challenge_identity_poseidon_binary (line 402) | fn merklepor_actually_validates_challenge_identity_poseidon_binary() { function merklepor_actually_validates_challenge_identity_sha256_quad (line 407) | fn merklepor_actually_validates_challenge_identity_sha256_quad() { function merklepor_actually_validates_challenge_identity_blake2s_quad (line 412) | fn merklepor_actually_validates_challenge_identity_blake2s_quad() { function merklepor_actually_validates_challenge_identity_pedersen_quad (line 417) | fn merklepor_actually_validates_challenge_identity_pedersen_quad() { function merklepor_actually_validates_challenge_identity_poseidon_quad (line 422) | fn merklepor_actually_validates_challenge_identity_poseidon_quad() { FILE: storage-proofs/core/src/proof.rs type ProofScheme (line 10) | pub trait ProofScheme<'a> { method setup (line 20) | fn setup(_: &Self::SetupParams) -> Result; method prove (line 23) | fn prove( method prove_all_partitions (line 29) | fn prove_all_partitions( method verify (line 64) | fn verify( method verify_all_partitions (line 72) | fn verify_all_partitions( method with_partition (line 89) | fn with_partition(pub_in: Self::PublicInputs, _k: Option) -> Se... method satisfies_requirements (line 93) | fn satisfies_requirements( type NoRequirements (line 103) | pub struct NoRequirements; FILE: storage-proofs/core/src/sector.rs type OrderedSectorSet (line 10) | pub type OrderedSectorSet = BTreeSet; type SectorId (line 16) | pub struct SectorId(u64); method from (line 19) | fn from(n: u64) -> Self { method fmt (line 37) | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { method as_fr_safe (line 43) | pub fn as_fr_safe(self) -> [u8; 31] { function from (line 25) | fn from(n: SectorId) -> Self { method from (line 31) | fn from(n: SectorId) -> Self { FILE: storage-proofs/core/src/settings.rs constant SETTINGS_PATH (line 12) | const SETTINGS_PATH: &str = "./rust-fil-proofs.config.toml"; type Settings (line 16) | pub struct Settings { method new (line 39) | fn new() -> Result { method default (line 26) | fn default() -> Self { FILE: storage-proofs/core/src/test_helper.rs function setup_replica (line 7) | pub fn setup_replica(data: &[u8], replica_path: &Path) -> MmapMut { FILE: storage-proofs/core/src/util.rs constant NODE_SIZE (line 10) | pub const NODE_SIZE: usize = 32; function data_at_node_offset (line 13) | pub fn data_at_node_offset(v: usize) -> usize { function data_at_node (line 18) | pub fn data_at_node(data: &[u8], v: usize) -> error::Result<&[u8]> { function bytes_into_bits (line 30) | pub fn bytes_into_bits(bytes: &[u8]) -> Vec { function bytes_into_bits_opt (line 38) | pub fn bytes_into_bits_opt(bytes: &[u8]) -> Vec> { function bytes_into_bits_be (line 46) | pub fn bytes_into_bits_be(bytes: &[u8]) -> Vec { function bytes_into_boolean_vec (line 54) | pub fn bytes_into_boolean_vec>( function bytes_into_boolean_vec_be (line 79) | pub fn bytes_into_boolean_vec_be>( function bool_to_u8 (line 105) | fn bool_to_u8(bit: bool, offset: usize) -> u8 { function bits_to_bytes (line 115) | pub fn bits_to_bytes(bits: &[bool]) -> Vec { function reverse_bit_numbering (line 133) | pub fn reverse_bit_numbering(bits: Vec) -> Vec usize { function test_bytes_into_boolean_vec (line 191) | fn test_bytes_into_boolean_vec() { function test_bool_to_u8 (line 215) | fn test_bool_to_u8() { function test_bits_into_bytes (line 223) | fn test_bits_into_bytes() { function test_bytes_into_bits (line 235) | fn test_bytes_into_bits() { function test_reverse_bit_numbering (line 252) | fn test_reverse_bit_numbering() { FILE: storage-proofs/porep/benches/batch_hasher.rs function bench_batch_hash (line 10) | fn bench_batch_hash(c: &mut Criterion) { FILE: storage-proofs/porep/benches/encode.rs type Pregenerated (line 10) | struct Pregenerated { function pregenerate_data (line 16) | fn pregenerate_data(degree: usize) -> Pregenerated { function kdf_benchmark (line 34) | fn kdf_benchmark(c: &mut Criterion) { FILE: storage-proofs/porep/benches/parents.rs function start_profile (line 13) | fn start_profile(stage: &str) { function start_profile (line 23) | fn start_profile(_stage: &str) {} function stop_profile (line 27) | fn stop_profile() { function stop_profile (line 37) | fn stop_profile() {} function pregenerate_graph (line 39) | fn pregenerate_graph(size: usize) -> StackedBucketGraph { function parents_loop (line 44) | fn parents_loop>(graph: &G, parents: &mut [u32]) { function parents_loop_benchmark (line 50) | fn parents_loop_benchmark(cc: &mut Criterion) { FILE: storage-proofs/porep/src/drg/circuit.rs type DrgPoRepCircuit (line 41) | pub struct DrgPoRepCircuit<'a, H: Hasher> { function synthesize (line 60) | pub fn synthesize( type ComponentPrivateInputs (line 94) | pub struct ComponentPrivateInputs { type ComponentPrivateInputs (line 100) | type ComponentPrivateInputs = ComponentPrivateInputs; function synthesize (line 127) | fn synthesize>(self, cs: &mut CS) -> Result<... function kdf (line 253) | fn kdf( function drgporep_input_circuit_with_bls12_381 (line 332) | fn drgporep_input_circuit_with_bls12_381() { function drgporep_input_circuit_num_constraints (line 507) | fn drgporep_input_circuit_num_constraints() { FILE: storage-proofs/porep/src/drg/compound.rs type DrgPoRepCompound (line 46) | pub struct DrgPoRepCompound function cache_prefix (line 62) | fn cache_prefix() -> String { function generate_public_inputs (line 74) | fn generate_public_inputs( function circuit (line 139) | fn circuit( function blank_circuit (line 242) | fn blank_circuit( function test_drgporep_compound_pedersen (line 307) | fn test_drgporep_compound_pedersen() { function test_drgporep_compound_poseidon (line 313) | fn test_drgporep_compound_poseidon() { function drgporep_test_compound (line 317) | fn drgporep_test_compound() { FILE: storage-proofs/porep/src/drg/vanilla.rs type Tau (line 29) | pub struct Tau { function new (line 35) | pub fn new(comm_d: T, comm_r: T) -> Self { type ProverAux (line 41) | pub struct ProverAux { function new (line 47) | pub fn new(tree_d: BinaryMerkleTree, tree_r: BinaryLCMerkleTree) -... type PublicInputs (line 53) | pub struct PublicInputs { type PrivateInputs (line 60) | pub struct PrivateInputs<'a, H: 'a + Hasher> { type SetupParams (line 67) | pub struct SetupParams { type DrgParams (line 74) | pub struct DrgParams { type PublicParams (line 87) | pub struct PublicParams function new (line 104) | pub fn new(graph: G, private: bool, challenges_count: usize) -> Self { method identifier (line 119) | fn identifier(&self) -> String { method sector_size (line 126) | fn sector_size(&self) -> u64 { type DataProof (line 132) | pub struct DataProof { function new (line 142) | pub fn new(n: usize) -> Self { function proves_challenge (line 151) | pub fn proves_challenge(&self, challenge: usize) -> bool { type ReplicaParents (line 156) | pub type ReplicaParents = Vec<(u32, DataProof)>; type Proof (line 159) | pub struct Proof { function new_empty (line 188) | pub fn new_empty(height: usize, degree: usize, challenges: usize) -> Pro... function new (line 198) | pub fn new( function from (line 214) | fn from(p: &Proof) -> Proof { type DrgPoRep (line 226) | pub struct DrgPoRep<'a, H, G> type PublicParams (line 240) | type PublicParams = PublicParams; type SetupParams (line 241) | type SetupParams = SetupParams; type PublicInputs (line 242) | type PublicInputs = PublicInputs<::Domain>; type PrivateInputs (line 243) | type PrivateInputs = PrivateInputs<'a, H>; type Proof (line 244) | type Proof = Proof; type Requirements (line 245) | type Requirements = NoRequirements; function setup (line 247) | fn setup(sp: &Self::SetupParams) -> Result { function prove (line 258) | fn prove<'b>( function verify (line 338) | fn verify( type Tau (line 431) | type Tau = Tau<::Domain>; type ProverAux (line 432) | type ProverAux = ProverAux; function replicate (line 434) | fn replicate( function extract_all (line 494) | fn extract_all<'b>( function extract (line 503) | fn extract( function decode (line 514) | pub fn decode<'a, H, G>( function decode_block (line 538) | pub fn decode_block<'a, H, G>( function decode_domain_block (line 558) | pub fn decode_domain_block( function create_key_from_tree (line 576) | pub fn create_key_from_tree( function replica_id (line 598) | pub fn replica_id(prover_id: [u8; 32], sector_id: [u8; 32]) -... function test_extract_all (line 628) | fn test_extract_all() { function extract_all_pedersen (line 693) | fn extract_all_pedersen() { function extract_all_sha256 (line 698) | fn extract_all_sha256() { function extract_all_blake2s (line 703) | fn extract_all_blake2s() { function test_extract (line 707) | fn test_extract() { function extract_pedersen (line 772) | fn extract_pedersen() { function extract_sha256 (line 777) | fn extract_sha256() { function extract_blake2s (line 782) | fn extract_blake2s() { function prove_verify_aux (line 786) | fn prove_verify_aux( function prove_verify (line 967) | fn prove_verify(n: usize, i: usize) { function prove_verify_wrong_challenge (line 973) | fn prove_verify_wrong_challenge(n: usize, i: usize) { function prove_verify_wrong_parents (line 979) | fn prove_verify_wrong_parents(n: usize, i: usize) { function test_drgporep_verifies_using_challenge (line 1001) | fn test_drgporep_verifies_using_challenge() { function test_drgporep_verifies_parents (line 1006) | fn test_drgporep_verifies_parents() { FILE: storage-proofs/porep/src/encode.rs function encode (line 5) | pub fn encode(key: T, value: T) -> T { function decode (line 13) | pub fn decode(key: T, value: T) -> T { FILE: storage-proofs/porep/src/lib.rs type PoRep (line 17) | pub trait PoRep<'a, H: Hasher, G: Hasher>: ProofScheme<'a> { method replicate (line 21) | fn replicate( method extract_all (line 30) | fn extract_all( method extract (line 37) | fn extract( constant TEST_SEED (line 47) | pub(crate) const TEST_SEED: [u8; 16] = [ FILE: storage-proofs/porep/src/nse/vanilla/batch_hasher.rs function batch_hash (line 16) | pub fn batch_hash( function batch_hash_expanded (line 58) | pub fn batch_hash_expanded( function truncate_hash (line 98) | pub fn truncate_hash(hash: &mut [u8]) { function read_at (line 106) | fn read_at(data: &[u8], index: usize) -> FrRepr { function fr_repr_from_slice (line 115) | fn fr_repr_from_slice(r: &[u8]) -> FrRepr { function add_assign (line 130) | fn add_assign(a: &mut FrRepr, b: &FrRepr, modulus: &FrRepr) { function add_assign (line 144) | fn add_assign(a: &mut FrRepr, b: &FrRepr, modulus: &FrRepr) { function fr_repr_as_bytes (line 167) | fn fr_repr_as_bytes(a: &FrRepr) -> [u8; 32] { function test_read_at (line 188) | fn test_read_at() { function test_truncate_hash (line 198) | fn test_truncate_hash() { function test_add_assign (line 212) | fn test_add_assign() { function test_fr_repr_from_slice (line 231) | fn test_fr_repr_from_slice() { function test_fr_repr_as_bytes (line 245) | fn test_fr_repr_as_bytes() { FILE: storage-proofs/porep/src/nse/vanilla/butterfly_graph.rs type ButterflyGraph (line 6) | pub struct ButterflyGraph { method parents (line 20) | pub fn parents(&self, index: u32, layer: u32) -> ButterflyGraphParents... method from (line 74) | fn from(config: &Config) -> Self { method from (line 93) | fn from(config: Config) -> Self { type ButterflyGraphParentsIter (line 29) | pub struct ButterflyGraphParentsIter<'a> { function new (line 40) | fn new(graph: &'a ButterflyGraph, node: u32, layer: u32) -> Self { type Item (line 53) | type Item = Parent; method next (line 55) | fn next(&mut self) -> Option { method size_hint (line 68) | fn size_hint(&self) -> (usize, Option) { function test_from_config (line 103) | fn test_from_config() { function test_parents (line 121) | fn test_parents() { FILE: storage-proofs/porep/src/nse/vanilla/challenges.rs type ChallengeRequirements (line 9) | pub struct ChallengeRequirements { type Challenges (line 17) | pub struct Challenges { function new (line 37) | pub fn new( type Challenge (line 57) | pub struct Challenge { type Item (line 67) | type Item = Challenge; method next (line 69) | fn next(&mut self) -> Option { method size_hint (line 112) | fn size_hint(&self) -> (usize, Option) { function test_challenges_smoke (line 127) | fn test_challenges_smoke() { FILE: storage-proofs/porep/src/nse/vanilla/config.rs type Config (line 5) | pub struct Config { method num_layers (line 24) | pub fn num_layers(&self) -> usize { method window_size (line 29) | pub fn window_size(&self) -> usize { method num_windows (line 34) | pub fn num_windows(&self) -> usize { method num_nodes_sector (line 38) | pub fn num_nodes_sector(&self) -> usize { method is_layer_expander (line 43) | pub fn is_layer_expander(&self, layer: usize) -> bool { method is_layer_replica (line 48) | pub fn is_layer_replica(&self, layer: usize) -> bool { FILE: storage-proofs/porep/src/nse/vanilla/expander_graph.rs type ExpanderGraph (line 8) | pub struct ExpanderGraph { method parents (line 19) | pub fn parents(&self, index: u32) -> ExpanderGraphParentsIter { method expanded_parents (line 24) | pub fn expanded_parents(&self, index: u32) -> impl Iterator Self { method from (line 167) | fn from(config: Config) -> Self { type ExpanderGraphParentsIter (line 33) | pub struct ExpanderGraphParentsIter<'a> { function new (line 48) | fn new(graph: &'a ExpanderGraph, node: u32) -> Self { function update_hash (line 64) | fn update_hash(&mut self) { type Item (line 85) | type Item = Parent; method next (line 87) | fn next(&mut self) -> Option { method size_hint (line 149) | fn size_hint(&self) -> (usize, Option) { function test_from_config (line 177) | fn test_from_config() { function test_parents (line 196) | fn test_parents() { function test_expanded_parents (line 236) | fn test_expanded_parents() { function test_expand_flatten (line 252) | fn test_expand_flatten() { FILE: storage-proofs/porep/src/nse/vanilla/labels.rs type LCMerkleTree (line 22) | pub type LCMerkleTree = type MerkleTree (line 24) | pub type MerkleTree = function encode_with_trees (line 28) | pub fn encode_with_trees( function decode (line 130) | pub fn decode( function mask_layer (line 196) | fn mask_layer( function expander_layer (line 227) | pub fn expander_layer( function butterfly_layer (line 291) | pub fn butterfly_layer( function butterfly_encode_layer (line 352) | pub fn butterfly_encode_layer( function butterfly_decode_layer (line 372) | pub fn butterfly_decode_layer( function butterfly_encode_decode_layer (line 392) | fn butterfly_encode_decode_layer D>( function hash_prefix (line 454) | pub fn hash_prefix(layer: u32, node_index: u32, window_index: u32) -> [u... function lc_tree_from_slice (line 468) | fn lc_tree_from_slice( function tree_from_slice (line 480) | fn tree_from_slice( function sample_config (line 511) | fn sample_config() -> Config { function test_mask_layer (line 524) | fn test_mask_layer() { function test_expander_layer (line 539) | fn test_expander_layer() { function test_butterfly_layer (line 569) | fn test_butterfly_layer() { function test_butterfly_encode_decode_layer (line 602) | fn test_butterfly_encode_decode_layer() { function test_encode_decode_layer (line 648) | fn test_encode_decode_layer() { function test_hash_prefix (line 688) | fn test_hash_prefix() { FILE: storage-proofs/porep/src/nse/vanilla/mod.rs type Parent (line 12) | pub type Parent = u32; FILE: storage-proofs/porep/src/nse/vanilla/nse.rs type NarrowStackedExpander (line 23) | pub struct NarrowStackedExpander<'a, Tree: MerkleTreeTrait, G: Hasher> { type SetupParams (line 29) | pub struct SetupParams { type PublicParams (line 36) | pub struct PublicParams { method clone (line 44) | fn clone(&self) -> Self { function from (line 54) | fn from(setup_params: SetupParams) -> Self { method identifier (line 64) | fn identifier(&self) -> String { method sector_size (line 73) | fn sector_size(&self) -> u64 { type PersistentAux (line 80) | pub struct PersistentAux { type TemporaryAux (line 88) | pub struct TemporaryAux { method clone (line 97) | fn clone(&self) -> Self { function new (line 109) | pub fn new(layer_config: StoreConfig, tree_d_config: StoreConfig) -> Self { function clear_temp (line 119) | pub fn clear_temp(self) -> Result<()> { type Tau (line 157) | pub struct Tau { type PublicInputs (line 165) | pub struct PublicInputs { type PrivateInputs (line 174) | pub struct PrivateInputs { type TemporaryAuxCache (line 180) | pub struct TemporaryAuxCache { function new (line 213) | pub fn new( type Proof (line 290) | pub struct Proof { function new (line 314) | pub fn new( method clone (line 334) | fn clone(&self) -> Self { function hash_comm_r (line 347) | pub fn hash_comm_r(comm_layers: &[D], comm_replica: D) -> Fr { FILE: storage-proofs/porep/src/nse/vanilla/porep.rs function generate_data_tree_config (line 22) | fn generate_data_tree_config( function build_data_tree (line 39) | fn build_data_tree(data: &[u8], data_tree_config: StoreConfig) -> Result... function generate_store_configs (line 47) | fn generate_store_configs( type Tau (line 82) | type Tau = Tau<::Domain, ::Domain>; type ProverAux (line 83) | type ProverAux = ( function replicate (line 88) | fn replicate( function extract_all (line 190) | fn extract_all<'b>( function extract (line 209) | fn extract( function test_bench_encode (line 238) | fn test_bench_encode() { function test_extract_all (line 310) | fn test_extract_all() { FILE: storage-proofs/porep/src/nse/vanilla/proof_scheme.rs type PublicParams (line 22) | type PublicParams = PublicParams; type SetupParams (line 23) | type SetupParams = SetupParams; type PublicInputs (line 24) | type PublicInputs = PublicInputs<::Domain, ; type Proof (line 26) | type Proof = Vec>; type Requirements (line 27) | type Requirements = ChallengeRequirements; function setup (line 29) | fn setup(sp: &Self::SetupParams) -> Result { function prove (line 33) | fn prove<'b>( function prove_all_partitions (line 52) | fn prove_all_partitions<'b>( function verify_all_partitions (line 145) | fn verify_all_partitions( function with_partition (line 296) | fn with_partition(mut pub_in: Self::PublicInputs, k: Option) -> S... function satisfies_requirements (line 301) | fn satisfies_requirements( function test_prove_verify (line 329) | fn test_prove_verify() { FILE: storage-proofs/porep/src/stacked/circuit/column.rs type Column (line 10) | pub struct Column { method from (line 20) | fn from(other: VanillaColumn) -> Self { method empty (line 31) | pub fn empty(params: &PublicParams) -> Se... method alloc (line 38) | pub fn alloc>( type AllocatedColumn (line 15) | pub struct AllocatedColumn { method hash (line 60) | pub fn hash>( method get_value (line 67) | pub fn get_value(&self, layer: usize) -> &num::AllocatedNum { FILE: storage-proofs/porep/src/stacked/circuit/column_proof.rs type ColumnProof (line 14) | pub struct ColumnProof< function empty (line 32) | pub fn empty< function alloc (line 45) | pub fn alloc>( function from (line 63) | fn from(vanilla_proof: VanillaColumnProof) -> Self { FILE: storage-proofs/porep/src/stacked/circuit/create_label.rs function create_label_circuit (line 14) | pub fn create_label_circuit( function test_create_label (line 104) | fn test_create_label() { FILE: storage-proofs/porep/src/stacked/circuit/hash.rs function hash_single_column (line 8) | pub fn hash_single_column( function test_hash2_circuit (line 45) | fn test_hash2_circuit() { function test_hash_single_column_circuit (line 86) | fn test_hash_single_column_circuit() { FILE: storage-proofs/porep/src/stacked/circuit/params.rs type TreeAuthPath (line 23) | type TreeAuthPath = AuthPath< type TreeColumnProof (line 30) | type TreeColumnProof = ColumnProof< type Proof (line 39) | pub struct Proof { function empty (line 59) | pub fn empty(params: &PublicParams) -> Self { function synthesize (line 77) | pub fn synthesize>( function from (line 258) | fn from(vanilla_proof: VanillaProof) -> Self { function enforce_inclusion (line 288) | fn enforce_inclusion>( FILE: storage-proofs/porep/src/stacked/circuit/proof.rs type StackedCircuit (line 31) | pub struct StackedCircuit<'a, Tree: 'static + MerkleTreeTrait, G: 'stati... type ComponentPrivateInputs (line 44) | type ComponentPrivateInputs = (); function synthesize (line 49) | pub fn synthesize( function synthesize (line 77) | fn synthesize>(self, cs: &mut CS) -> Result<... type StackedCompound (line 169) | pub struct StackedCompound { function cache_prefix (line 178) | fn cache_prefix() -> String { function generate_public_inputs (line 191) | fn generate_public_inputs( function circuit (line 273) | fn circuit<'b>( function blank_circuit (line 309) | fn blank_circuit( function generate_inclusion_inputs (line 327) | fn generate_inclusion_inputs( function stacked_input_circuit_pedersen_base_2 (line 369) | fn stacked_input_circuit_pedersen_base_2() { function stacked_input_circuit_poseidon_base_2 (line 374) | fn stacked_input_circuit_poseidon_base_2() { function stacked_input_circuit_poseidon_base_8 (line 379) | fn stacked_input_circuit_poseidon_base_8() { function stacked_input_circuit_poseidon_sub_8_4 (line 384) | fn stacked_input_circuit_poseidon_sub_8_4() { function stacked_input_circuit_poseidon_top_8_4_2 (line 389) | fn stacked_input_circuit_poseidon_top_8_4_2() { function stacked_input_circuit (line 393) | fn stacked_input_circuit( function test_stacked_compound_pedersen (line 555) | fn test_stacked_compound_pedersen() { function test_stacked_compound_poseidon_base_8 (line 561) | fn test_stacked_compound_poseidon_base_8() { function test_stacked_compound_poseidon_sub_8_4 (line 567) | fn test_stacked_compound_poseidon_sub_8_4() { function test_stacked_compound_poseidon_top_8_4_2 (line 573) | fn test_stacked_compound_poseidon_top_8_4_2() { function stacked_test_compound (line 577) | fn stacked_test_compound() { FILE: storage-proofs/porep/src/stacked/vanilla/cache.rs constant PARENT_CACHE_DIR (line 20) | const PARENT_CACHE_DIR: &str = "/var/tmp/filecoin-parents"; constant NODE_BYTES (line 23) | const NODE_BYTES: usize = 4; type ParentCache (line 27) | pub struct ParentCache { method new (line 134) | pub fn new(len: u32, cache_entries: u32, graph: &StackedGraph Result( method read (line 220) | pub fn read(&mut self, node: u32) -> Result<[u32; DEGREE]> { method reset (line 243) | pub fn reset(&mut self) -> Result<()> { type CacheData (line 36) | struct CacheData { method shift (line 52) | fn shift(&mut self, new_offset: u32) -> Result<()> { method contains (line 73) | fn contains(&self, node: u32) -> bool { method read (line 80) | fn read(&self, node: u32) -> [u32; DEGREE] { method reset (line 90) | fn reset(&mut self) -> Result<()> { method open (line 98) | fn open(offset: u32, len: u32, path: &PathBuf) -> Result { function cache_path (line 248) | fn cache_path(cache_entries: u32, graph: &StackedGraph) -> P... function test_read_full_range (line 277) | fn test_read_full_range() { function test_read_partial_range (line 299) | fn test_read_partial_range() { FILE: storage-proofs/porep/src/stacked/vanilla/challenges.rs type LayerChallenges (line 9) | pub struct LayerChallenges { method new (line 17) | pub const fn new(layers: usize, max_count: usize) -> Self { method layers (line 21) | pub fn layers(&self) -> usize { method challenges_count_all (line 25) | pub fn challenges_count_all(&self) -> usize { method derive (line 30) | pub fn derive( method derive_internal (line 40) | pub fn derive_internal( type ChallengeRequirements (line 75) | pub struct ChallengeRequirements { function challenge_derivation (line 88) | fn challenge_derivation() { function challenge_partition_equivalence (line 128) | fn challenge_partition_equivalence() { FILE: storage-proofs/porep/src/stacked/vanilla/column.rs type Column (line 14) | pub struct Column { function new (line 21) | pub fn new(index: u32, rows: Vec) -> Result { function with_capacity (line 29) | pub fn with_capacity(index: u32, capacity: usize) -> Result { function rows (line 33) | pub fn rows(&self) -> &[H::Domain] { function index (line 37) | pub fn index(&self) -> u32 { function hash (line 42) | pub fn hash(&self) -> Fr { function get_node_at_layer (line 53) | pub fn get_node_at_layer(&self, layer: usize) -> Result<&H::Domain> { function into_proof (line 61) | pub fn into_proof, Tree: MerkleTreeTrait { function from_column (line 23) | pub fn from_column(column: Column, inclusion_proof: Proof... function root (line 30) | pub fn root(&self) -> ::Domain { function column (line 34) | fn column(&self) -> &Column { function get_node_at_layer (line 38) | pub fn get_node_at_layer(&self, layer: usize) -> Result<& Fr { function verify (line 46) | pub fn verify( FILE: storage-proofs/porep/src/stacked/vanilla/create_label.rs function create_label (line 15) | pub fn create_label( function create_label_exp (line 51) | pub fn create_label_exp( FILE: storage-proofs/porep/src/stacked/vanilla/create_label/mod.rs function prepare_layers (line 16) | pub fn prepare_layers( function write_layer (line 47) | pub fn write_layer(data: &[u8], config: &StoreConfig) -> Result<()> { function read_layer (line 61) | pub fn read_layer(config: &StoreConfig, mut data: &mut [u8]) -> Result<(... function remove_tmp_layer (line 70) | pub fn remove_tmp_layer(config: &StoreConfig) { function is_layer_written (line 81) | pub fn is_layer_written( FILE: storage-proofs/porep/src/stacked/vanilla/create_label/multi.rs constant NODE_WORDS (line 34) | const NODE_WORDS: usize = NODE_SIZE / size_of::(); constant SHA256_INITIAL_DIGEST (line 36) | const SHA256_INITIAL_DIGEST: [u32; 8] = [ function fill_buffer (line 48) | fn fill_buffer( function create_label_runner (line 130) | fn create_label_runner( function create_layer_labels (line 201) | fn create_layer_labels( function create_labels_for_encoding (line 401) | pub fn create_labels_for_encoding>( function create_label_exp (line 206) | pub fn create_label_exp>( FILE: storage-proofs/porep/src/stacked/vanilla/encoding_proof.rs type EncodingProof (line 12) | pub struct EncodingProof { function new (line 21) | pub fn new(layer_index: u32, node: u64, parents: Vec) -> Self { function create_key (line 30) | fn create_key(&self, replica_id: &H::Domain) -> H::Domain { function verify (line 52) | pub fn verify( FILE: storage-proofs/porep/src/stacked/vanilla/graph.rs constant EXP_DEGREE (line 25) | pub const EXP_DEGREE: usize = 8; constant FEISTEL_KEYS (line 26) | const FEISTEL_KEYS: [feistel::Index; 4] = [1, 2, 3, 4]; constant DEGREE (line 28) | const DEGREE: usize = BASE_DEGREE + EXP_DEGREE; function parent_cache (line 31) | fn parent_cache( type ParentCache (line 61) | struct ParentCache { method new (line 68) | pub fn new(cache_entries: u32, graph: &StackedGraph) -> Re... method read (line 102) | pub fn read(&self, node: u32) -> &[u32] { type StackedGraph (line 110) | pub struct StackedGraph function fmt (line 128) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { type StackedBucketGraph (line 139) | pub type StackedBucketGraph = StackedGraph>; function prefetch (line 142) | fn prefetch(parents: &[u32], data: &[u8]) { function read_node (line 154) | fn read_node<'a>(i: usize, parents: &[u32], data: &'a [u8]) -> &'a [u8] { function new (line 165) | pub fn new( function copy_parents_data_exp (line 206) | pub fn copy_parents_data_exp( function copy_parents_data (line 224) | pub fn copy_parents_data(&self, node: u32, base_data: &[u8], hasher: Sha... function copy_parents_data_inner_exp (line 236) | fn copy_parents_data_inner_exp( function copy_parents_data_inner (line 275) | fn copy_parents_data_inner( method identifier (line 321) | fn identifier(&self) -> String { method sector_size (line 325) | fn sector_size(&self) -> u64 { type Key (line 335) | type Key = Vec; function size (line 337) | fn size(&self) -> usize { function degree (line 341) | fn degree(&self) -> usize { function parents (line 346) | fn parents(&self, node: usize, parents: &mut [u32]) -> Result<()> { function seed (line 364) | fn seed(&self) -> [u8; 28] { function new (line 368) | fn new( function create_key (line 377) | fn create_key( function correspondent (line 396) | fn correspondent(&self, node: usize, i: usize) -> u32 { function generate_expanded_parents (line 435) | fn generate_expanded_parents(&self, node: usize, expanded_parents: &mut ... function new_stacked (line 442) | pub fn new_stacked( function base_graph (line 451) | pub fn base_graph(&self) -> &G { function expansion_degree (line 455) | pub fn expansion_degree(&self) -> usize { function base_parents (line 459) | pub fn base_parents(&self, node: usize, parents: &mut [u32]) -> Result<(... function expanded_parents (line 475) | pub fn expanded_parents(&self, node: usize, parents: &mut [u32]) { method eq (line 492) | fn eq(&self, other: &StackedGraph) -> bool { function test_shuffle (line 517) | fn test_shuffle() { FILE: storage-proofs/porep/src/stacked/vanilla/hash.rs function hash_single_column (line 6) | pub fn hash_single_column(column: &[Fr]) -> Fr { FILE: storage-proofs/porep/src/stacked/vanilla/labeling_proof.rs type LabelingProof (line 9) | pub struct LabelingProof { function new (line 17) | pub fn new(node: u64, parents: Vec) -> Self { function create_label (line 25) | fn create_label(&self, replica_id: &H::Domain) -> H::Domain { function verify (line 46) | pub fn verify(&self, replica_id: &H::Domain, expected_label: &H::Domain)... FILE: storage-proofs/porep/src/stacked/vanilla/memory_handling.rs type CacheReader (line 13) | pub struct CacheReader { function new (line 27) | pub fn new(filename: &PathBuf, window_size: Option, degree: usize... function get_bufs (line 65) | fn get_bufs(&self) -> &[Mmap] { function get_mut_bufs (line 71) | unsafe fn get_mut_bufs(&self) -> &mut [Mmap] { function reset (line 78) | pub fn reset(&self) -> Result<()> { function start_reset (line 84) | pub fn start_reset(&self) -> Result<()> { function finish_reset (line 90) | pub fn finish_reset(&self) -> Result<()> { function map_buf (line 99) | fn map_buf(offset: u64, len: usize, file: &File) -> Result { function window_element_count (line 129) | fn window_element_count(&self) -> usize { function consumer_slice_at (line 135) | pub fn consumer_slice_at(&self, pos: usize) -> &[T] { function slice_at (line 151) | pub fn slice_at(&self, pos: usize, consumer: &AtomicU64) -> &[T] { function advance_rear_window (line 199) | fn advance_rear_window(&self, new_window: usize) { function allocate_layer (line 217) | fn allocate_layer(sector_size: usize) -> Result { function setup_create_label_memory (line 238) | pub fn setup_create_label_memory( FILE: storage-proofs/porep/src/stacked/vanilla/params.rs constant BINARY_ARITY (line 25) | pub const BINARY_ARITY: usize = 2; constant QUAD_ARITY (line 26) | pub const QUAD_ARITY: usize = 4; constant OCT_ARITY (line 27) | pub const OCT_ARITY: usize = 8; type SetupParams (line 30) | pub struct SetupParams { type PublicParams (line 46) | pub struct PublicParams method clone (line 59) | fn clone(&self) -> Self { function new (line 72) | pub fn new(graph: StackedBucketGraph, layer_challenges: La... method identifier (line 85) | fn identifier(&self) -> String { method sector_size (line 94) | fn sector_size(&self) -> u64 { function from (line 103) | fn from(other: &PublicParams) -> PublicParams { type PublicInputs (line 109) | pub struct PublicInputs { function challenges (line 118) | pub fn challenges( type PrivateInputs (line 131) | pub struct PrivateInputs { type Proof (line 137) | pub struct Proof { method clone (line 170) | fn clone(&self) -> Self { function comm_r_last (line 182) | pub fn comm_r_last(&self) -> ::Domain { function comm_c (line 186) | pub fn comm_c(&self) -> ::Domain { function verify (line 191) | pub fn verify( function verify_labels (line 236) | fn verify_labels( function verify_final_replica_layer (line 259) | fn verify_final_replica_layer(&self, challenge: usize) -> bool { type ReplicaColumnProof (line 268) | pub struct ReplicaColumnProof { function verify (line 287) | pub fn verify(&self, challenge: usize, parents: &[u32]) -> bool { type TransformedLayers (line 311) | pub type TransformedLayers = ( type Tau (line 319) | pub struct Tau { type PersistentAux (line 326) | pub struct PersistentAux { type TemporaryAux (line 332) | pub struct TemporaryAux { method clone (line 346) | fn clone(&self) -> Self { function set_cache_path (line 358) | pub fn set_cache_path>(&mut self, cache_path: P) { function labels_for_layer (line 368) | pub fn labels_for_layer( function domain_node_at_layer (line 375) | pub fn domain_node_at_layer( function column (line 383) | pub fn column(&self, column_index: u32) -> Result> { function clear_temp (line 389) | pub fn clear_temp(t_aux: TemporaryAux) -> Result<()> { type TemporaryAuxCache (line 458) | pub struct TemporaryAuxCache { function new (line 476) | pub fn new(t_aux: &TemporaryAux, replica_path: PathBuf) -> Resu... function labels_for_layer (line 538) | pub fn labels_for_layer(&self, layer: usize) -> &DiskStore< Result> { type VerifyCallback (line 555) | type VerifyCallback = fn(&StoreConfig, usize) -> Result<()>; type Labels (line 558) | pub struct Labels { method clone (line 568) | fn clone(&self) -> Self { function new (line 577) | pub fn new(labels: Vec) -> Self { function len (line 584) | pub fn len(&self) -> usize { function is_empty (line 588) | pub fn is_empty(&self) -> bool { function verify_stores (line 592) | pub fn verify_stores(&self, callback: VerifyCallback, cache_dir: &PathBu... function labels_for_layer (line 602) | pub fn labels_for_layer( function labels_for_last_layer (line 622) | pub fn labels_for_last_layer(&self) -> Result usize { function column (line 632) | pub fn column(&self, node: u32) -> Result> { function update_root (line 648) | pub fn update_root>(&mut self, root: P) { type LabelsCache (line 656) | pub struct LabelsCache { function new (line 661) | pub fn new(labels: &Labels) -> Result { function len (line 673) | pub fn len(&self) -> usize { function is_empty (line 677) | pub fn is_empty(&self) -> bool { function labels_for_layer (line 681) | pub fn labels_for_layer(&self, layer: usize) -> &DiskStore< Result<&DiskStore< usize { function column (line 705) | pub fn column(&self, node: u32) -> Result> { function get_node (line 716) | pub fn get_node(data: &[u8], index: usize) -> Result>( FILE: storage-proofs/porep/src/stacked/vanilla/porep.rs type Tau (line 20) | type Tau = Tau<::Domain, ::Domain>; type ProverAux (line 21) | type ProverAux = ( function replicate (line 26) | fn replicate( function extract_all (line 47) | fn extract_all<'b>( function extract (line 66) | fn extract( FILE: storage-proofs/porep/src/stacked/vanilla/proof.rs constant TOTAL_PARENTS (line 55) | pub const TOTAL_PARENTS: usize = 37; type StackedDrg (line 58) | pub struct StackedDrg<'a, Tree: 'a + MerkleTreeTrait, G: 'a + Hasher> { function prove_layers (line 65) | pub(crate) fn prove_layers( function extract_and_invert_transform_layers (line 251) | pub(crate) fn extract_and_invert_transform_layers( function generate_labels (line 286) | fn generate_labels( function build_binary_tree (line 378) | fn build_binary_tree( function generate_tree_c (line 397) | fn generate_tree_c( function generate_tree_c_gpu (line 428) | fn generate_tree_c_gpu( function generate_tree_c_cpu (line 639) | fn generate_tree_c_cpu( function generate_tree_r_last (line 708) | fn generate_tree_r_last( function transform_and_replicate_layers (line 924) | pub(crate) fn transform_and_replicate_layers( function transform_and_replicate_layers_inner (line 949) | pub(crate) fn transform_and_replicate_layers_inner( function replicate_phase1 (line 1122) | pub fn replicate_phase1( function replicate_phase2 (line 1139) | pub fn replicate_phase2( constant DEFAULT_STACKED_LAYERS (line 1187) | const DEFAULT_STACKED_LAYERS: usize = 11; function test_calculate_fixed_challenges (line 1190) | fn test_calculate_fixed_challenges() { function extract_all_pedersen_8 (line 1199) | fn extract_all_pedersen_8() { function extract_all_pedersen_8_2 (line 1204) | fn extract_all_pedersen_8_2() { function extract_all_pedersen_8_8_2 (line 1209) | fn extract_all_pedersen_8_8_2() { function extract_all_sha256_8 (line 1214) | fn extract_all_sha256_8() { function extract_all_sha256_8_8 (line 1219) | fn extract_all_sha256_8_8() { function extract_all_sha256_8_8_2 (line 1224) | fn extract_all_sha256_8_8_2() { function extract_all_blake2s_8 (line 1229) | fn extract_all_blake2s_8() { function extract_all_blake2s_8_8 (line 1234) | fn extract_all_blake2s_8_8() { function extract_all_blake2s_8_8_2 (line 1239) | fn extract_all_blake2s_8_8_2() { function extract_all_poseidon_8 (line 1244) | fn extract_all_poseidon_8() { function extract_all_poseidon_8_2 (line 1249) | fn extract_all_poseidon_8_2() { function extract_all_poseidon_8_8_2 (line 1254) | fn extract_all_poseidon_8_8_2() { function test_extract_all (line 1258) | fn test_extract_all() { function prove_verify_fixed (line 1328) | fn prove_verify_fixed(n: usize) { function test_prove_verify (line 1436) | fn test_prove_verify(n: usize, challeng... function setup_terminates (line 1543) | fn setup_terminates() { FILE: storage-proofs/porep/src/stacked/vanilla/proof_scheme.rs type PublicParams (line 22) | type PublicParams = PublicParams; type SetupParams (line 23) | type SetupParams = SetupParams; type PublicInputs (line 24) | type PublicInputs = PublicInputs<::Domain, ; type Proof (line 26) | type Proof = Vec>; type Requirements (line 27) | type Requirements = ChallengeRequirements; function setup (line 29) | fn setup(sp: &Self::SetupParams) -> Result { function prove (line 40) | fn prove<'b>( function prove_all_partitions (line 61) | fn prove_all_partitions<'b>( function verify_all_partitions (line 82) | fn verify_all_partitions( function with_partition (line 141) | fn with_partition(pub_in: Self::PublicInputs, k: Option) -> Self:... function satisfies_requirements (line 150) | fn satisfies_requirements( FILE: storage-proofs/porep/src/stacked/vanilla/utils.rs type UnsafeSlice (line 6) | pub struct UnsafeSlice<'a, T> { function from_slice (line 19) | pub fn from_slice(source: &'a mut [T]) -> Self { function as_mut_slice (line 28) | pub unsafe fn as_mut_slice(&self) -> &'a mut [T] { function as_slice (line 33) | pub unsafe fn as_slice(&self) -> &'a [T] { function get (line 38) | pub unsafe fn get(&self, index: usize) -> &'a T { function get_mut (line 43) | pub unsafe fn get_mut(&self, index: usize) -> &'a mut T { function memset (line 50) | pub fn memset(slice: &mut [u8], value: u8) { function prepare_block (line 57) | pub fn prepare_block(replica_id: &[u8], layer: u32, buf: &mut [u8]) { type BitMask (line 65) | pub struct BitMask(u32); method set_upto (line 70) | pub fn set_upto(&mut self, n: u8) { method set (line 77) | pub fn set(&mut self, i: usize) { method get (line 83) | pub fn get(self, i: usize) -> bool { type RingBuf (line 89) | pub struct RingBuf { method new (line 99) | pub fn new(slot_size: usize, num_slots: usize) -> Self { method slice_mut (line 110) | unsafe fn slice_mut(&self) -> &mut [u8] { method len (line 114) | fn len(&self) -> usize { method slot_mut (line 119) | pub unsafe fn slot_mut(&self, slot: usize) -> &mut [u8] { method iter_slot_mut (line 126) | pub fn iter_slot_mut(&mut self) -> std::slice::ChunksExactMut { FILE: storage-proofs/post/src/election/circuit.rs type ElectionPoStCircuit (line 20) | pub struct ElectionPoStCircuit { type ComponentPrivateInputs (line 35) | pub struct ComponentPrivateInputs {} type ComponentPrivateInputs (line 38) | type ComponentPrivateInputs = ComponentPrivateInputs; function synthesize (line 42) | fn synthesize>(self, cs: &mut CS) -> Result<... function test_election_post_circuit_pedersen (line 199) | fn test_election_post_circuit_pedersen() { function test_election_post_circuit_poseidon (line 204) | fn test_election_post_circuit_poseidon() { function test_election_post_circuit (line 208) | fn test_election_post_circuit(expected_... FILE: storage-proofs/post/src/election/compound.rs type ElectionPoStCompound (line 22) | pub struct ElectionPoStCompound function cache_prefix (line 32) | fn cache_prefix() -> String { function generate_public_inputs (line 42) | fn generate_public_inputs( function circuit (line 88) | fn circuit( function blank_circuit (line 134) | fn blank_circuit( function election_post_test_compound_pedersen (line 185) | fn election_post_test_compound_pedersen() { function election_post_test_compound_poseidon (line 191) | fn election_post_test_compound_poseidon() { function election_post_test_compound (line 195) | fn election_post_test_compound() { FILE: storage-proofs/post/src/election/vanilla.rs type SetupParams (line 29) | pub struct SetupParams { type PublicParams (line 37) | pub struct PublicParams { method identifier (line 45) | fn identifier(&self) -> String { method sector_size (line 54) | fn sector_size(&self) -> u64 { type PublicInputs (line 60) | pub struct PublicInputs { type PrivateInputs (line 70) | pub struct PrivateInputs { type Candidate (line 84) | pub struct Candidate { method fmt (line 92) | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { type Proof (line 103) | pub struct Proof { function leafs (line 114) | pub fn leafs(&self) -> Vec<::Domain> { function comm_r_last (line 121) | pub fn comm_r_last(&self) -> ::Domain { function commitments (line 125) | pub fn commitments(&self) -> Vec<::Domain> { function paths (line 133) | pub fn paths(&self) -> Vec::Domain>, usiz... type ElectionPoSt (line 142) | pub struct ElectionPoSt<'a, Tree> function generate_candidates (line 150) | pub fn generate_candidates( function generate_candidate (line 187) | fn generate_candidate( function finalize_ticket (line 242) | pub fn finalize_ticket(partial_ticket: &Fr) -> [u8; 32] { function is_valid_sector_challenge_index (line 250) | pub fn is_valid_sector_challenge_index(challenge_count: u64, index: u64)... function generate_sector_challenges (line 254) | pub fn generate_sector_challenges( function generate_sector_challenge (line 265) | pub fn generate_sector_challenge( function generate_leaf_challenges (line 286) | pub fn generate_leaf_challenges( function generate_leaf_challenge (line 308) | pub fn generate_leaf_challenge( type PublicParams (line 335) | type PublicParams = PublicParams; type SetupParams (line 336) | type SetupParams = SetupParams; type PublicInputs (line 337) | type PublicInputs = PublicInputs<::Domain>; type PrivateInputs (line 338) | type PrivateInputs = PrivateInputs; type Proof (line 339) | type Proof = Proof; type Requirements (line 340) | type Requirements = NoRequirements; function setup (line 342) | fn setup(sp: &Self::SetupParams) -> Result { function prove (line 350) | fn prove<'b>( function verify (line 402) | fn verify( function test_election_post (line 467) | fn test_election_post() { function election_post_pedersen (line 531) | fn election_post_pedersen() { function election_post_poseidon (line 536) | fn election_post_poseidon() { function election_post_poseidon_8_8 (line 541) | fn election_post_poseidon_8_8() { function election_post_poseidon_8_8_2 (line 546) | fn election_post_poseidon_8_8_2() { FILE: storage-proofs/post/src/fallback/circuit.rs type FallbackPoStCircuit (line 20) | pub struct FallbackPoStCircuit { type Sector (line 26) | pub struct Sector { function circuit (line 36) | pub fn circuit( function blank_circuit (line 62) | pub fn blank_circuit(pub_params: &PublicParams) -> Self { function synthesize (line 85) | fn synthesize>(self, cs: &mut CS) -> Result<... type ComponentPrivateInputs (line 151) | pub struct ComponentPrivateInputs {} type ComponentPrivateInputs (line 154) | type ComponentPrivateInputs = ComponentPrivateInputs; function synthesize (line 158) | fn synthesize>(self, cs: &mut CS) -> Result<... function fallback_post_pedersen_single_partition_matching_base_8 (line 193) | fn fallback_post_pedersen_single_partition_matching_base_8() { function fallback_post_poseidon_single_partition_matching_base_8 (line 198) | fn fallback_post_poseidon_single_partition_matching_base_8() { function fallback_post_poseidon_single_partition_matching_sub_8_4 (line 203) | fn fallback_post_poseidon_single_partition_matching_sub_8_4() { function fallback_post_poseidon_single_partition_matching_top_8_4_2 (line 208) | fn fallback_post_poseidon_single_partition_matching_top_8_4_2() { function fallback_post_poseidon_single_partition_smaller_base_8 (line 213) | fn fallback_post_poseidon_single_partition_smaller_base_8() { function fallback_post_poseidon_two_partitions_matching_base_8 (line 218) | fn fallback_post_poseidon_two_partitions_matching_base_8() { function fallback_post_poseidon_two_partitions_smaller_base_8 (line 223) | fn fallback_post_poseidon_two_partitions_smaller_base_8() { function metric_fallback_post_circuit_poseidon (line 229) | fn metric_fallback_post_circuit_poseidon() { function fallback_post (line 248) | fn fallback_post( FILE: storage-proofs/post/src/fallback/compound.rs type FallbackPoStCompound (line 21) | pub struct FallbackPoStCompound function cache_prefix (line 31) | fn cache_prefix() -> String { function generate_public_inputs (line 40) | fn generate_public_inputs( function circuit (line 103) | fn circuit( function blank_circuit (line 146) | fn blank_circuit( function fallback_post_pedersen_single_partition_matching_base_8 (line 181) | fn fallback_post_pedersen_single_partition_matching_base_8() { function fallback_post_poseidon_single_partition_matching_base_8 (line 187) | fn fallback_post_poseidon_single_partition_matching_base_8() { function fallback_post_poseidon_single_partition_matching_sub_8_4 (line 193) | fn fallback_post_poseidon_single_partition_matching_sub_8_4() { function fallback_post_poseidon_single_partition_matching_top_8_4_2 (line 199) | fn fallback_post_poseidon_single_partition_matching_top_8_4_2() { function fallback_post_poseidon_single_partition_smaller_base_8 (line 205) | fn fallback_post_poseidon_single_partition_smaller_base_8() { function fallback_post_poseidon_two_partitions_matching_base_8 (line 211) | fn fallback_post_poseidon_two_partitions_matching_base_8() { function fallback_post_poseidon_two_partitions_smaller_base_8 (line 217) | fn fallback_post_poseidon_two_partitions_smaller_base_8() { function fallback_post (line 221) | fn fallback_post( FILE: storage-proofs/post/src/fallback/vanilla.rs type SetupParams (line 24) | pub struct SetupParams { type PublicParams (line 34) | pub struct PublicParams { type ChallengeRequirements (line 44) | pub struct ChallengeRequirements { method identifier (line 50) | fn identifier(&self) -> String { method sector_size (line 59) | fn sector_size(&self) -> u64 { type PublicInputs (line 65) | pub struct PublicInputs<'a, T: Domain> { type PublicSector (line 74) | pub struct PublicSector { type PrivateSector (line 80) | pub struct PrivateSector<'a, Tree: MerkleTreeTrait> { type PrivateInputs (line 93) | pub struct PrivateInputs<'a, Tree: MerkleTreeTrait> { type Proof (line 98) | pub struct Proof { type SectorProof (line 107) | pub struct SectorProof { function leafs (line 119) | pub fn leafs(&self) -> Vec<::Domain> { function comm_r_last (line 126) | pub fn comm_r_last(&self) -> ::Domain { function commitments (line 130) | pub fn commitments(&self) -> Vec<::Domain> { function paths (line 138) | pub fn paths(&self) -> Vec::Domain>, usiz... function as_options (line 145) | pub fn as_options(&self) -> Vec>, Option)>> { type FallbackPoSt (line 154) | pub struct FallbackPoSt<'a, Tree> function generate_sector_challenges (line 161) | pub fn generate_sector_challenges( function generate_sector_challenge (line 173) | pub fn generate_sector_challenge( function generate_leaf_challenges (line 193) | pub fn generate_leaf_challenges( function generate_leaf_challenge (line 215) | pub fn generate_leaf_challenge( type PublicParams (line 235) | type PublicParams = PublicParams; type SetupParams (line 236) | type SetupParams = SetupParams; type PublicInputs (line 237) | type PublicInputs = PublicInputs<'a, ::Domain>; type PrivateInputs (line 238) | type PrivateInputs = PrivateInputs<'a, Tree>; type Proof (line 239) | type Proof = Proof; type Requirements (line 240) | type Requirements = ChallengeRequirements; function setup (line 242) | fn setup(sp: &Self::SetupParams) -> Result { function prove (line 250) | fn prove<'b>( function prove_all_partitions (line 271) | fn prove_all_partitions<'b>( function verify_all_partitions (line 362) | fn verify_all_partitions( function satisfies_requirements (line 460) | fn satisfies_requirements( function test_fallback_post (line 483) | fn test_fallback_post( function fallback_post_pedersen_single_partition_matching_base_8 (line 561) | fn fallback_post_pedersen_single_partition_matching_base_8() { function fallback_post_poseidon_single_partition_matching_base_8 (line 566) | fn fallback_post_poseidon_single_partition_matching_base_8() { function fallback_post_poseidon_single_partition_smaller_base_8 (line 571) | fn fallback_post_poseidon_single_partition_smaller_base_8() { function fallback_post_poseidon_two_partitions_matching_base_8 (line 576) | fn fallback_post_poseidon_two_partitions_matching_base_8() { function fallback_post_poseidon_two_partitions_smaller_base_8 (line 581) | fn fallback_post_poseidon_two_partitions_smaller_base_8() { function fallback_post_pedersen_single_partition_matching_sub_8_4 (line 586) | fn fallback_post_pedersen_single_partition_matching_sub_8_4() { function fallback_post_poseidon_single_partition_matching_sub_8_4 (line 591) | fn fallback_post_poseidon_single_partition_matching_sub_8_4() { function fallback_post_poseidon_single_partition_smaller_sub_8_4 (line 596) | fn fallback_post_poseidon_single_partition_smaller_sub_8_4() { function fallback_post_poseidon_two_partitions_matching_sub_8_4 (line 601) | fn fallback_post_poseidon_two_partitions_matching_sub_8_4() { function fallback_post_poseidon_two_partitions_matching_sub_8_8 (line 606) | fn fallback_post_poseidon_two_partitions_matching_sub_8_8() { function fallback_post_poseidon_two_partitions_smaller_sub_8_4 (line 611) | fn fallback_post_poseidon_two_partitions_smaller_sub_8_4() { function fallback_post_poseidon_two_partitions_smaller_sub_8_8 (line 616) | fn fallback_post_poseidon_two_partitions_smaller_sub_8_8() { function fallback_post_pedersen_single_partition_matching_top_8_4_2 (line 621) | fn fallback_post_pedersen_single_partition_matching_top_8_4_2() { function fallback_post_pedersen_single_partition_matching_top_8_8_2 (line 625) | fn fallback_post_pedersen_single_partition_matching_top_8_8_2() { function fallback_post_poseidon_single_partition_matching_top_8_4_2 (line 630) | fn fallback_post_poseidon_single_partition_matching_top_8_4_2() { function fallback_post_poseidon_single_partition_matching_top_8_8_2 (line 635) | fn fallback_post_poseidon_single_partition_matching_top_8_8_2() { function fallback_post_poseidon_single_partition_smaller_top_8_4_2 (line 640) | fn fallback_post_poseidon_single_partition_smaller_top_8_4_2() { function fallback_post_poseidon_two_partitions_matching_top_8_4_2 (line 645) | fn fallback_post_poseidon_two_partitions_matching_top_8_4_2() { function fallback_post_poseidon_two_partitions_smaller_top_8_4_2 (line 650) | fn fallback_post_poseidon_two_partitions_smaller_top_8_4_2() { function fallback_post_poseidon_two_partitions_smaller_top_8_8_2 (line 655) | fn fallback_post_poseidon_two_partitions_smaller_top_8_8_2() { FILE: storage-proofs/post/src/lib.rs constant TEST_SEED (line 6) | pub(crate) const TEST_SEED: [u8; 16] = [ FILE: storage-proofs/post/src/rational/circuit.rs type RationalPoStCircuit (line 18) | pub struct RationalPoStCircuit { type ComponentPrivateInputs (line 30) | pub struct ComponentPrivateInputs {} type ComponentPrivateInputs (line 33) | type ComponentPrivateInputs = ComponentPrivateInputs; function synthesize (line 37) | fn synthesize>(self, cs: &mut CS) -> Result<... function test_rational_post_circuit_pedersen (line 132) | fn test_rational_post_circuit_pedersen() { function test_rational_post_circuit_poseidon (line 137) | fn test_rational_post_circuit_poseidon() { function test_rational_post_circuit (line 141) | fn test_rational_post_circuit(expected_... FILE: storage-proofs/post/src/rational/compound.rs type RationalPoStCompound (line 22) | pub struct RationalPoStCompound function cache_prefix (line 32) | fn cache_prefix() -> String { function generate_public_inputs (line 43) | fn generate_public_inputs( function circuit (line 79) | fn circuit( function blank_circuit (line 130) | fn blank_circuit( function synthesize (line 156) | pub fn synthesize>( function rational_post_test_compound_pedersen (line 197) | fn rational_post_test_compound_pedersen() { function rational_post_test_compound_poseidon (line 203) | fn rational_post_test_compound_poseidon() { function rational_post_test_compound (line 207) | fn rational_post_test_compound() { FILE: storage-proofs/post/src/rational/vanilla.rs type SetupParams (line 19) | pub struct SetupParams { type PublicParams (line 28) | pub struct PublicParams { method identifier (line 36) | fn identifier(&self) -> String { method sector_size (line 44) | fn sector_size(&self) -> u64 { type PublicInputs (line 50) | pub struct PublicInputs<'a, T: 'a + Domain> { type PrivateInputs (line 59) | pub struct PrivateInputs<'a, Tree: 'a + MerkleTreeTrait> { type Proof (line 75) | pub struct Proof { function leafs (line 85) | pub fn leafs(&self) -> Vec<::Domain> { function commitments (line 92) | pub fn commitments(&self) -> Vec<::Domain> { function paths (line 100) | pub fn paths(&self) -> Vec::Domain>, usiz... type RationalPoSt (line 109) | pub struct RationalPoSt<'a, Tree> type PublicParams (line 117) | type PublicParams = PublicParams; type SetupParams (line 118) | type SetupParams = SetupParams; type PublicInputs (line 119) | type PublicInputs = PublicInputs<'a, ::Domain>; type PrivateInputs (line 120) | type PrivateInputs = PrivateInputs<'a, Tree>; type Proof (line 121) | type Proof = Proof; type Requirements (line 122) | type Requirements = NoRequirements; function setup (line 124) | fn setup(sp: &Self::SetupParams) -> Result { function prove (line 131) | fn prove<'b>( function verify (line 172) | fn verify( type Challenge (line 230) | pub struct Challenge { function derive_challenges (line 238) | pub fn derive_challenges( function derive_challenge (line 270) | fn derive_challenge( function test_rational_post (line 311) | fn test_rational_post() function rational_post_pedersen (line 399) | fn rational_post_pedersen() { function rational_post_sha256 (line 404) | fn rational_post_sha256() { function rational_post_blake2s (line 409) | fn rational_post_blake2s() { function rational_post_poseidon (line 414) | fn rational_post_poseidon() { function rational_post_poseidon_8_8 (line 419) | fn rational_post_poseidon_8_8() { function rational_post_poseidon_8_8_2 (line 424) | fn rational_post_poseidon_8_8_2() { function test_rational_post_validates_challenge_identity (line 428) | fn test_rational_post_validates_challenge_identity { type PublicInputs (line 39) | pub struct PublicInputs<'a, T: 'a + Domain> { type PrivateInputs (line 50) | pub struct PrivateInputs<'a, H: 'a + Hasher> { function new (line 58) | pub fn new(data: &'a [u8], tree: &'a MerkleTree)... type BatchPoST (line 64) | pub struct BatchPoST { type PublicParams (line 69) | type PublicParams = PublicParams; type SetupParams (line 70) | type SetupParams = SetupParams; type PublicInputs (line 71) | type PublicInputs = PublicInputs<'a, H::Domain>; type PrivateInputs (line 72) | type PrivateInputs = PrivateInputs<'a, H>; type Proof (line 73) | type Proof = Proof; function setup (line 75) | fn setup(_sp: &Self::SetupParams) -> Result { function prove (line 80) | fn prove<'b>( function verify (line 124) | fn verify( function write_usize (line 174) | fn write_usize(target: &mut Vec, value: usize) -> ::std::result::Res... function write_usize (line 179) | fn write_usize(target: &mut Vec, value: usize) -> ::std::result::Res... function derive_challenge (line 184) | fn derive_challenge( function test_batchpost (line 222) | fn test_batchpost() { function batchpost_pedersen (line 267) | fn batchpost_pedersen() { function batchpost_sha256 (line 272) | fn batchpost_sha256() { function batchpost_blake2s (line 277) | fn batchpost_blake2s() { FILE: storage-proofs/src/beacon_post.rs type SetupParams (line 17) | pub struct SetupParams> { type PublicParams (line 23) | pub struct PublicParams> { method parameter_set_identifier (line 29) | fn parameter_set_identifier(&self) -> String { type PublicInputs (line 39) | pub struct PublicInputs { type PrivateInputs (line 45) | pub struct PrivateInputs<'a, H: 'a + Hasher> { function new (line 52) | pub fn new( type Proof (line 68) | pub struct Proof<'a, H: Hasher + 'a, V: Vdf>( function proofs (line 77) | pub fn proofs(&self) -> &[vdf_post::Proof<'a, H, V>] { type BeaconPoSt (line 83) | pub struct BeaconPoSt> { type Beacon (line 89) | pub struct Beacon { method get (line 97) | pub fn get(&mut self, t: usize) -> T { type PublicParams (line 116) | type PublicParams = PublicParams; type SetupParams (line 117) | type SetupParams = SetupParams; type PublicInputs (line 118) | type PublicInputs = PublicInputs; type PrivateInputs (line 119) | type PrivateInputs = PrivateInputs<'a, H>; type Proof (line 120) | type Proof = Proof<'a, H, V>; function setup (line 122) | fn setup(sp: &SetupParams) -> Result( function verify (line 172) | fn verify( function test_beacon_post_basics (line 219) | fn test_beacon_post_basics() { FILE: storage-proofs/src/challenge_derivation.rs function derive_challenges (line 7) | pub fn derive_challenges( function challenge_derivation (line 41) | fn challenge_derivation() { function challenge_partition_equivalence (line 78) | fn challenge_partition_equivalence() { FILE: storage-proofs/src/circuit/beacon_post.rs type BeaconPoStCircuit (line 16) | pub struct BeaconPoStCircuit<'a, E: JubjubEngine, H: Hasher, V: Vdf String { type ComponentPrivateInputs (line 39) | pub struct ComponentPrivateInputs {} type ComponentPrivateInputs (line 44) | type ComponentPrivateInputs = ComponentPrivateInputs; function synthesize (line 85) | fn synthesize>(self, cs: &mut CS) -> Result<(), ... function test_beacon_post_circuit_with_bls12_381 (line 133) | fn test_beacon_post_circuit_with_bls12_381() { FILE: storage-proofs/src/circuit/bench/mod.rs type OrderedVariable (line 6) | struct OrderedVariable(Variable); method eq (line 10) | fn eq(&self, other: &OrderedVariable) -> bool { method partial_cmp (line 19) | fn partial_cmp(&self, other: &Self) -> Option { method cmp (line 24) | fn cmp(&self, other: &Self) -> Ordering { function eval_lc (line 34) | fn eval_lc(terms: &[(Variable, E::Fr)], inputs: &[E::Fr], aux... type BenchCS (line 51) | pub struct BenchCS { function new (line 60) | pub fn new() -> Self { function num_constraints (line 64) | pub fn num_constraints(&self) -> usize { method default (line 70) | fn default() -> Self { type Root (line 82) | type Root = Self; function alloc (line 84) | fn alloc(&mut self, _: A, f: F) -> Result(&mut self, _: A, f: F) -> Result(&mut self, _: A, a: LA, b: LB, c: LC) function push_namespace (line 131) | fn push_namespace(&mut self, _: N) function pop_namespace (line 139) | fn pop_namespace(&mut self) {} function get_root (line 141) | fn get_root(&mut self) -> &mut Self::Root { FILE: storage-proofs/src/circuit/constraint.rs function equal (line 8) | pub fn equal>( function difference (line 29) | pub fn difference>( FILE: storage-proofs/src/circuit/drgporep.rs type DrgPoRepCircuit (line 54) | pub struct DrgPoRepCircuit<'a, E: JubjubEngine> { function synthesize (line 71) | pub fn synthesize( type ComponentPrivateInputs (line 111) | pub struct ComponentPrivateInputs { method default (line 117) | fn default() -> ComponentPrivateInputs { type ComponentPrivateInputs (line 126) | type ComponentPrivateInputs = ComponentPrivateInputs; type DrgPoRepCompound (line 129) | pub struct DrgPoRepCompound function cache_prefix (line 142) | fn cache_prefix() -> String { function generate_public_inputs (line 153) | fn generate_public_inputs( function circuit (line 213) | fn circuit<'b>( function synthesize (line 317) | fn synthesize>(self, cs: &mut CS) -> Result<(), ... function drgporep_input_circuit_with_bls12_381 (line 474) | fn drgporep_input_circuit_with_bls12_381() { function drgporep_input_circuit_num_constraints (line 602) | fn drgporep_input_circuit_num_constraints() { function drgporep_test_compound (line 637) | fn drgporep_test_compound() { FILE: storage-proofs/src/circuit/kdf.rs function kdf (line 8) | pub fn kdf( function kdf_circuit (line 58) | fn kdf_circuit() { FILE: storage-proofs/src/circuit/multi_proof.rs type MultiProof (line 7) | pub struct MultiProof { function new (line 13) | pub fn new( function new_from_reader (line 23) | pub fn new_from_reader( function write (line 39) | pub fn write(&self, mut writer: W) -> Result<()> { FILE: storage-proofs/src/circuit/pedersen.rs function pedersen_md_no_padding (line 9) | pub fn pedersen_md_no_padding( function pedersen_compression_num (line 50) | pub fn pedersen_compression_num>( function pedersen_compression (line 65) | pub fn pedersen_compression>( function test_pedersen_input_circut (line 94) | fn test_pedersen_input_circut() { FILE: storage-proofs/src/circuit/por.rs type PoRCircuit (line 26) | pub struct PoRCircuit<'a, E: JubjubEngine> { type ComponentPrivateInputs (line 35) | type ComponentPrivateInputs = Option>; type PoRCompound (line 38) | pub struct PoRCompound { function challenge_into_auth_path_bits (line 42) | pub fn challenge_into_auth_path_bits(challenge: usize, leaves: usize) ->... function cache_prefix (line 56) | fn cache_prefix() -> String { function circuit (line 66) | fn circuit<'b>( function generate_public_inputs (line 90) | fn generate_public_inputs( function synthesize (line 124) | fn synthesize>(self, cs: &mut CS) -> Result<(), ... function synthesize (line 210) | pub fn synthesize( function por_test_compound (line 254) | fn por_test_compound() { function test_por_input_circuit_with_bls12_381 (line 317) | fn test_por_input_circuit_with_bls12_381() { function private_por_test_compound (line 418) | fn private_por_test_compound() { function test_private_por_input_circuit_with_bls12_381 (line 484) | fn test_private_por_input_circuit_with_bls12_381() { FILE: storage-proofs/src/circuit/porc.rs function pack_into_allocated_num (line 21) | pub fn pack_into_allocated_num( type PoRCCircuit (line 44) | pub struct PoRCCircuit<'a, E: JubjubEngine> { type PoRCCompound (line 54) | pub struct PoRCCompound function cache_prefix (line 64) | fn cache_prefix() -> String { type ComponentPrivateInputs (line 70) | pub struct ComponentPrivateInputs {} type ComponentPrivateInputs (line 73) | type ComponentPrivateInputs = ComponentPrivateInputs; function generate_public_inputs (line 80) | fn generate_public_inputs( function circuit (line 88) | fn circuit( function synthesize (line 133) | fn synthesize>(self, cs: &mut CS) -> Result<(), ... function synthesize (line 233) | pub fn synthesize>( function test_porc_circuit_with_bls12_381 (line 271) | fn test_porc_circuit_with_bls12_381() { function porc_test_compound (line 357) | fn porc_test_compound() { FILE: storage-proofs/src/circuit/ppor/mod.rs type ParallelProofOfRetrievability (line 16) | pub struct ParallelProofOfRetrievability<'a, E: JubjubEngine> { function synthesize (line 31) | fn synthesize>(self, cs: &mut CS) -> Result<(), ... function test_parallel_por_input_circuit_with_bls12_381 (line 138) | fn test_parallel_por_input_circuit_with_bls12_381() { FILE: storage-proofs/src/circuit/sloth.rs function decode (line 8) | pub fn decode( function sub (line 40) | fn sub>( function sloth_snark_decode (line 72) | fn sloth_snark_decode() { function sloth_snark_decode_bad (line 96) | fn sloth_snark_decode_bad() { function sloth_snark_decode_different_iterations (line 119) | fn sloth_snark_decode_different_iterations() { function sub_constraint (line 163) | fn sub_constraint() { FILE: storage-proofs/src/circuit/test/mod.rs type NamedObject (line 15) | enum NamedObject { type TestConstraintSystem (line 22) | pub struct TestConstraintSystem { type OrderedVariable (line 36) | struct OrderedVariable(Variable); method eq (line 40) | fn eq(&self, other: &OrderedVariable) -> bool { method partial_cmp (line 49) | fn partial_cmp(&self, other: &Self) -> Option { method cmp (line 54) | fn cmp(&self, other: &Self) -> Ordering { function proc_lc (line 64) | fn proc_lc(terms: &[(Variable, E::Fr)]) -> BTreeMap(terms: &[(Variable, E::Fr)], h: &mut Blake2s) { function _eval_lc2 (line 112) | fn _eval_lc2(terms: &[(Variable, E::Fr)], inputs: &[E::Fr], a... function eval_lc (line 128) | fn eval_lc( method default (line 149) | fn default() -> Self { function new (line 167) | pub fn new() -> Self { function pretty_print (line 171) | pub fn pretty_print(&self) -> String { function hash (line 248) | pub fn hash(&self) -> String { function which_is_unsatisfied (line 273) | pub fn which_is_unsatisfied(&self) -> Option<&str> { function is_satisfied (line 289) | pub fn is_satisfied(&self) -> bool { function num_constraints (line 293) | pub fn num_constraints(&self) -> usize { function set (line 297) | pub fn set(&mut self, path: &str, to: E::Fr) { function verify (line 311) | pub fn verify(&self, expected: &[E::Fr]) -> bool { function num_inputs (line 323) | pub fn num_inputs(&self) -> usize { function get_input (line 327) | pub fn get_input(&mut self, index: usize, path: &str) -> E::Fr { function get (line 335) | pub fn get(&mut self, path: &str) -> E::Fr { function set_named_obj (line 349) | fn set_named_obj(&mut self, path: String, to: NamedObject) { function compute_path (line 358) | fn compute_path(ns: &[String], this: &str) -> String { type Root (line 379) | type Root = Self; function alloc (line 381) | fn alloc(&mut self, annotation: A, f: F) -> Result(&mut self, annotation: A, f: F) -> Result(&mut self, annotation: A, a: LA, b: LB, c:... function push_namespace (line 430) | fn push_namespace(&mut self, name_fn: N) function pop_namespace (line 441) | fn pop_namespace(&mut self) { function get_root (line 445) | fn get_root(&mut self) -> &mut Self::Root { function test_cs (line 451) | fn test_cs() { FILE: storage-proofs/src/circuit/variables.rs type Root (line 10) | pub enum Root { function allocated (line 16) | pub fn allocated>( function var (line 27) | pub fn var>(cs: CS, fr: E::Fr) -> Self { FILE: storage-proofs/src/circuit/vdf_post.rs type VDFPoStCircuit (line 20) | pub struct VDFPoStCircuit<'a, E: JubjubEngine> { type VDFPostCompound (line 41) | pub struct VDFPostCompound {} method cache_prefix (line 46) | fn cache_prefix() -> String { method generate_public_inputs (line 67) | fn generate_public_inputs( method circuit (line 77) | fn circuit( type ComponentPrivateInputs (line 52) | pub struct ComponentPrivateInputs {} type ComponentPrivateInputs (line 55) | type ComponentPrivateInputs = ComponentPrivateInputs; function synthesize (line 152) | fn synthesize>(self, cs: &mut CS) -> Result<(), ... function verify_challenges (line 269) | fn verify_challenges, T>( function synthesize (line 287) | pub fn synthesize>( function test_vdf_post_circuit_with_bls12_381 (line 338) | fn test_vdf_post_circuit_with_bls12_381() { function test_vdf_post_compound (line 474) | fn test_vdf_post_compound() { FILE: storage-proofs/src/circuit/xor.rs function xor (line 5) | pub fn xor( function test_xor_input_circut (line 42) | fn test_xor_input_circut() { FILE: storage-proofs/src/circuit/zigzag.rs type Layers (line 23) | type Layers<'a, H, G> = Vec<( type ZigZagCircuit (line 36) | pub struct ZigZagCircuit<'a, E: JubjubEngine, H: 'static + Hasher> { type ComponentPrivateInputs (line 50) | type ComponentPrivateInputs = (); function synthesize (line 54) | pub fn synthesize( function synthesize (line 83) | fn synthesize>(self, cs: &mut CS) -> Result<... type ZigZagCompound (line 192) | pub struct ZigZagCompound { method cache_prefix (line 199) | fn cache_prefix() -> String { method generate_public_inputs (line 208) | fn generate_public_inputs( method circuit (line 253) | fn circuit<'b>( method blank_circuit (line 285) | fn blank_circuit( function zigzag_drgporep_input_circuit_with_bls12_381 (line 339) | fn zigzag_drgporep_input_circuit_with_bls12_381() { function zigzag_input_circuit_num_constraints (line 448) | fn zigzag_input_circuit_num_constraints() { function zigzag_test_compound (line 504) | fn zigzag_test_compound() { FILE: storage-proofs/src/compound_proof.rs type SetupParams (line 12) | pub struct SetupParams<'a, 'b: 'a, E: JubjubEngine, S: ProofScheme<'a>> type PublicParams (line 23) | pub struct PublicParams<'a, E: JubjubEngine, S: ProofScheme<'a>> { type CircuitComponent (line 33) | pub trait CircuitComponent { type CompoundProof (line 42) | pub trait CompoundProof<'a, E: JubjubEngine, S: ProofScheme<'a>, C: Circ... method setup (line 50) | fn setup<'b>(sp: &SetupParams<'a, 'b, E, S>) -> Result) -> usize { method prove (line 70) | fn prove<'b>( method verify (line 125) | fn verify( method circuit_proof (line 150) | fn circuit_proof<'b>( method generate_public_inputs (line 184) | fn generate_public_inputs( method circuit (line 194) | fn circuit( method blank_circuit (line 202) | fn blank_circuit(_public_param: &S::PublicParams, _engine_params: &'a ... method circuit_for_test (line 206) | fn circuit_for_test( FILE: storage-proofs/src/crypto/aes.rs function encode (line 7) | pub fn encode(key: &[u8], plaintext: &[u8]) -> Result> { function decode (line 20) | pub fn decode(key: &[u8], ciphertext: &[u8]) -> Result> { function test_aes (line 39) | fn test_aes() { FILE: storage-proofs/src/crypto/blake2s.rs function blake2s (line 3) | pub fn blake2s(data: &[u8]) -> Vec { FILE: storage-proofs/src/crypto/feistel.rs constant FEISTEL_ROUNDS (line 3) | pub const FEISTEL_ROUNDS: usize = 3; type FeistelPrecomputed (line 4) | pub type FeistelPrecomputed = (u32, u32, u32); function precompute (line 6) | pub fn precompute(num_elements: u32) -> FeistelPrecomputed { function permute (line 22) | pub fn permute( function invert_permute (line 36) | pub fn invert_permute( function common_setup (line 51) | fn common_setup(index: u32, precomputed: FeistelPrecomputed) -> (u32, u3... function encode (line 60) | fn encode(index: u32, keys: &[u32], precomputed: FeistelPrecomputed) -> ... function decode (line 72) | fn decode(index: u32, keys: &[u32], precomputed: FeistelPrecomputed) -> ... function feistel (line 84) | fn feistel(right: u32, key: u32, right_mask: u32) -> u32 { constant BAD_NS (line 112) | const BAD_NS: &[u32] = &[5, 6, 8, 12, 17]; function encode_decode (line 114) | fn encode_decode(n: u32, expect_success: bool) { function test_feistel_power_of_4 (line 137) | fn test_feistel_power_of_4() { function test_feistel_on_arbitrary_set (line 156) | fn test_feistel_on_arbitrary_set() { FILE: storage-proofs/src/crypto/kdf.rs function kdf (line 7) | pub fn kdf(data: &[u8], m: usize) -> Fr { function kdf_valid_block_len (line 18) | fn kdf_valid_block_len() { function kdf_invalid_block_len (line 38) | fn kdf_invalid_block_len() { FILE: storage-proofs/src/crypto/pedersen.rs constant PEDERSEN_BLOCK_SIZE (line 14) | pub const PEDERSEN_BLOCK_SIZE: usize = 256; constant PEDERSEN_BLOCK_BYTES (line 15) | pub const PEDERSEN_BLOCK_BYTES: usize = PEDERSEN_BLOCK_SIZE / 8; function pedersen (line 17) | pub fn pedersen(data: &[u8]) -> Fr { function pedersen_md_no_padding (line 30) | pub fn pedersen_md_no_padding(data: &[u8]) -> Fr { function pedersen_compression (line 58) | pub fn pedersen_compression(bytes: &mut Vec) { function test_bit_vec_le (line 80) | fn test_bit_vec_le() { function test_pedersen_compression (line 91) | fn test_pedersen_compression() { function test_pedersen_md_no_padding (line 104) | fn test_pedersen_md_no_padding() { FILE: storage-proofs/src/crypto/sloth.rs constant DEFAULT_ROUNDS (line 3) | pub const DEFAULT_ROUNDS: usize = 1; constant SLOTH_V (line 13) | const SLOTH_V: [u64; 4] = [ constant FIVE (line 21) | const FIVE: [u64; 1] = [5]; function encode (line 24) | pub fn encode(key: &E::Fr, plaintext: &E::Fr, rounds: usize) ... function decode (line 40) | pub fn decode(key: &E::Fr, ciphertext: &E::Fr, rounds: usize)... constant MODULUS (line 66) | const MODULUS: [u64; 4] = [ constant MODULUS_STR (line 73) | const MODULUS_STR: &str = constant V_STR (line 76) | const V_STR: &str = function const_identities (line 80) | fn const_identities() { function sloth_bls_12 (line 95) | fn sloth_bls_12() { function sloth_bls_12_aux (line 100) | fn sloth_bls_12_aux(rounds: usize) { function sloth_bls_12_fake (line 110) | fn sloth_bls_12_fake() { function sloth_bls_12_fake_aux (line 115) | fn sloth_bls_12_fake_aux(rounds: usize) { FILE: storage-proofs/src/crypto/xor.rs function encode (line 4) | pub fn encode(key: &[u8], plaintext: &[u8]) -> Result> { function decode (line 9) | pub fn decode(key: &[u8], ciphertext: &[u8]) -> Result> { function xor (line 13) | fn xor(key: &[u8], input: &[u8]) -> Result> { function test_xor (line 30) | fn test_xor() { FILE: storage-proofs/src/drgporep.rs type PublicInputs (line 17) | pub struct PublicInputs { type PrivateInputs (line 24) | pub struct PrivateInputs<'a, H: 'a + Hasher> { type SetupParams (line 29) | pub struct SetupParams { type DrgParams (line 35) | pub struct DrgParams { type PublicParams (line 49) | pub struct PublicParams function new (line 65) | pub fn new(graph: G, sloth_iter: usize) -> Self { method parameter_set_identifier (line 79) | fn parameter_set_identifier(&self) -> String { type DataProof (line 89) | pub struct DataProof { function new (line 99) | pub fn new(n: usize) -> Self { function serialize (line 106) | pub fn serialize(&self) -> Vec { function proves_challenge (line 117) | pub fn proves_challenge(&self, challenge: usize) -> bool { type ReplicaParents (line 129) | pub type ReplicaParents = Vec<(usize, DataProof)>; type Proof (line 132) | pub struct Proof { function new_empty (line 163) | pub fn new_empty(height: usize, degree: usize) -> Proof { function serialize (line 172) | pub fn serialize(&self) -> Vec { function new (line 196) | pub fn new( function from (line 212) | fn from(p: &Proof) -> Proof { type DrgPoRep (line 224) | pub struct DrgPoRep<'a, H, G> type PublicParams (line 238) | type PublicParams = PublicParams; type SetupParams (line 239) | type SetupParams = SetupParams; type PublicInputs (line 240) | type PublicInputs = PublicInputs; type PrivateInputs (line 241) | type PrivateInputs = PrivateInputs<'a, H>; type Proof (line 242) | type Proof = Proof; function setup (line 244) | fn setup(sp: &Self::SetupParams) -> Result { function prove (line 255) | fn prove<'b>( function verify (line 327) | fn verify( type Tau (line 416) | type Tau = porep::Tau; type ProverAux (line 417) | type ProverAux = porep::ProverAux; function replicate (line 419) | fn replicate( function extract_all (line 442) | fn extract_all<'b>( function extract (line 450) | fn extract( function file_backed_mmap_from (line 477) | pub fn file_backed_mmap_from(data: &[u8]) -> MmapMut { function test_extract_all (line 484) | fn test_extract_all() { function extract_all_pedersen (line 517) | fn extract_all_pedersen() { function extract_all_sha256 (line 522) | fn extract_all_sha256() { function extract_all_blake2s (line 527) | fn extract_all_blake2s() { function test_extract (line 531) | fn test_extract() { function extract_pedersen (line 574) | fn extract_pedersen() { function extract_sha256 (line 579) | fn extract_sha256() { function extract_blake2s (line 584) | fn extract_blake2s() { function prove_verify_aux (line 588) | fn prove_verify_aux( function prove_verify (line 741) | fn prove_verify(n: usize, i: usize) { function prove_verify_wrong_challenge (line 747) | fn prove_verify_wrong_challenge(n: usize, i: usize) { function prove_verify_wrong_parents (line 753) | fn prove_verify_wrong_parents(n: usize, i: usize) { function test_drgporep_verifies_using_challenge (line 775) | fn test_drgporep_verifies_using_challenge() { function test_drgporep_verifies_parents (line 780) | fn test_drgporep_verifies_parents() { FILE: storage-proofs/src/drgraph.rs type DefaultTreeHasher (line 14) | pub type DefaultTreeHasher = PedersenHasher; constant PARALLEL_MERKLE (line 16) | pub const PARALLEL_MERKLE: bool = true; type Graph (line 19) | pub trait Graph: ::std::fmt::Debug + Clone + PartialEq + Eq { method expected_size (line 21) | fn expected_size(&self, node_size: usize) -> usize { method merkle_tree (line 26) | fn merkle_tree<'a>(&self, data: &'a [u8]) -> Result( method merkle_tree_depth (line 71) | fn merkle_tree_depth(&self) -> u64 { method parents (line 76) | fn parents(&self, node: usize) -> Vec; method size (line 79) | fn size(&self) -> usize; method degree (line 82) | fn degree(&self) -> usize; method new (line 84) | fn new(nodes: usize, base_degree: usize, expansion_degree: usize, seed... method seed (line 85) | fn seed(&self) -> [u32; 7]; method forward (line 88) | fn forward(&self) -> bool { function graph_height (line 93) | pub fn graph_height(size: usize) -> usize { type BucketGraph (line 99) | pub struct BucketGraph { method parameter_set_identifier (line 107) | fn parameter_set_identifier(&self) -> String { function parents (line 118) | fn parents(&self, node: usize) -> Vec { function size (line 161) | fn size(&self) -> usize { function degree (line 166) | fn degree(&self) -> usize { function seed (line 170) | fn seed(&self) -> [u32; 7] { function new (line 174) | fn new(nodes: usize, base_degree: usize, expansion_degree: usize, seed: ... function new_seed (line 185) | pub fn new_seed() -> [u32; 7] { function mmap_from (line 200) | pub fn mmap_from(data: &[u8]) -> MmapMut { function graph_bucket (line 206) | fn graph_bucket() { function graph_bucket_sha256 (line 240) | fn graph_bucket_sha256() { function graph_bucket_blake2s (line 245) | fn graph_bucket_blake2s() { function graph_bucket_pedersen (line 250) | fn graph_bucket_pedersen() { function gen_proof (line 254) | fn gen_proof(parallel: bool) { function gen_proof_pedersen (line 267) | fn gen_proof_pedersen() { function gen_proof_sha256 (line 273) | fn gen_proof_sha256() { function gen_proof_blake2s (line 279) | fn gen_proof_blake2s() { FILE: storage-proofs/src/error.rs type Result (line 3) | pub type Result = ::std::result::Result; type Error (line 7) | pub enum Error { method from (line 34) | fn from(inner: SynthesisError) -> Error { method from (line 40) | fn from(inner: ::std::io::Error) -> Error { FILE: storage-proofs/src/example_helper.rs function prettyb (line 19) | pub fn prettyb(num: usize) -> String { function get_cache_path (line 41) | fn get_cache_path( type CSType (line 60) | pub enum CSType { type Example (line 71) | pub trait Example<'a, C: Circuit>: Default { method work_groth (line 73) | fn work_groth( method work_bench (line 185) | fn work_bench( method work_circuit (line 255) | fn work_circuit( method clap (line 290) | fn clap(&self) -> clap::ArgMatches { method main (line 333) | fn main() { method name (line 364) | fn name() -> String; method generate_groth_params (line 367) | fn generate_groth_params( method samples (line 378) | fn samples() -> usize; method create_circuit (line 381) | fn create_circuit( method create_proof (line 392) | fn create_proof( method verify_proof (line 416) | fn verify_proof(&mut self, _: &Proof, _: &PreparedVerifyingKey<... method get_num_constraints (line 419) | fn get_num_constraints( FILE: storage-proofs/src/fr32.rs type Fr32 (line 11) | pub type Fr32 = [u8]; type Fr32Vec (line 18) | pub type Fr32Vec = Vec; type Fr32Ary (line 23) | pub type Fr32Ary = [u8; 32]; function bytes_into_fr (line 27) | pub fn bytes_into_fr(bytes: &[u8]) -> Result { function fr_into_bytes (line 38) | pub fn fr_into_bytes(fr: &E::Fr) -> Fr32Vec { function bytes_into_frs (line 46) | pub fn bytes_into_frs(bytes: &[u8]) -> Result> { function frs_into_bytes (line 55) | pub fn frs_into_bytes(frs: &[E::Fr]) -> Fr32Vec { function u32_into_fr (line 60) | pub fn u32_into_fr(n: u32) -> E::Fr { function bytes_fr_test (line 73) | fn bytes_fr_test(bytes: Fr32Ary, expect_success: bool) { function test_bytes_into_fr_into_bytes (line 86) | fn test_bytes_into_fr_into_bytes() { function bytes_into_frs_into_bytes_test (line 128) | fn bytes_into_frs_into_bytes_test(bytes: &Fr32) { function test_bytes_into_frs_into_bytes (line 137) | fn test_bytes_into_frs_into_bytes() { FILE: storage-proofs/src/hasher/blake2s.rs type Blake2sHasher (line 7) | pub type Blake2sHasher = DigestHasher; FILE: storage-proofs/src/hasher/digest.rs type Digester (line 15) | pub trait Digester: Digest + Clone + Default + ::std::fmt::Debug + Send ... type DigestHasher (line 18) | pub struct DigestHasher { method eq (line 23) | fn eq(&self, other: &Self) -> bool { type Domain (line 31) | type Domain = DigestDomain; type Function (line 32) | type Function = DigestFunction; method kdf (line 34) | fn kdf(data: &[u8], m: usize) -> Self::Domain { method sloth_encode (line 46) | fn sloth_encode(key: &Self::Domain, ciphertext: &Self::Domain, rounds: u... method sloth_decode (line 54) | fn sloth_decode(key: &Self::Domain, ciphertext: &Self::Domain, rounds: u... type DigestFunction (line 61) | pub struct DigestFunction(D); method eq (line 64) | fn eq(&self, other: &Self) -> bool { function fmt (line 72) | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { method write (line 79) | fn write(&mut self, msg: &[u8]) { method finish (line 84) | fn finish(&self) -> u64 { type DigestDomain (line 90) | pub struct DigestDomain(pub [u8; 32]); method trim_to_fr32 (line 93) | fn trim_to_fr32(&mut self) { method as_ref (line 107) | fn as_ref(&self) -> &[u8] { method hash (line 113) | fn hash(&self, state: &mut DigestFunction) { method from (line 119) | fn from(val: Fr) -> Self { method from (line 203) | fn from(val: [u8; 32]) -> Self { method rand (line 100) | fn rand(rng: &mut R) -> Self { method from (line 128) | fn from(val: DigestDomain) -> Self { method serialize (line 137) | fn serialize(&self) -> Vec { method into_bytes (line 141) | fn into_bytes(&self) -> Vec { method try_from_bytes (line 145) | fn try_from_bytes(raw: &[u8]) -> Result { method write_bytes (line 154) | fn write_bytes(&self, dest: &mut [u8]) -> Result<()> { function hash (line 164) | fn hash(data: &[u8]) -> DigestDomain { function hash (line 175) | fn hash(&mut self) -> DigestDomain { function reset (line 184) | fn reset(&mut self) { function leaf (line 188) | fn leaf(&mut self, leaf: DigestDomain) -> DigestDomain { function node (line 192) | fn node(&mut self, left: DigestDomain, right: DigestDomain, height: usiz... function from (line 210) | fn from(val: DigestDomain) -> Self { FILE: storage-proofs/src/hasher/pedersen.rs type PedersenHasher (line 18) | pub struct PedersenHasher {} type Domain (line 21) | type Domain = PedersenDomain; type Function (line 22) | type Function = PedersenFunction; method kdf (line 24) | fn kdf(data: &[u8], m: usize) -> Self::Domain { method sloth_encode (line 28) | fn sloth_encode(key: &Self::Domain, ciphertext: &Self::Domain, rounds: u... method sloth_decode (line 34) | fn sloth_decode(key: &Self::Domain, ciphertext: &Self::Domain, rounds: u... type PedersenFunction (line 43) | pub struct PedersenFunction(Fr); method hash (line 207) | fn hash(data: &[u8]) -> PedersenDomain { method hash (line 214) | fn hash(&mut self) -> PedersenDomain { method reset (line 219) | fn reset(&mut self) { method leaf (line 223) | fn leaf(&mut self, leaf: PedersenDomain) -> PedersenDomain { method node (line 227) | fn node( method default (line 46) | fn default() -> PedersenFunction { method hash (line 52) | fn hash(&self, state: &mut PedersenFunction) { type PedersenDomain (line 68) | pub struct PedersenDomain(#[serde(with = "FrReprDef")] pub FrRepr); method hash (line 60) | fn hash(&self, state: &mut PedersenFunction) { method as_ref (line 143) | fn as_ref(&self) -> &[u8] { method from (line 254) | fn from(val: Fr) -> Self { type FrReprDef (line 70) | pub struct FrReprDef(pub [u64; 4]); method serialize (line 73) | fn serialize(__self: &FrRepr, serializer: S) -> ::std::result::Resu... method deserialize (line 93) | fn deserialize<'de, D>(deserializer: D) -> ::std::result::Result PedersenDomain { method rand (line 121) | fn rand(rng: &mut R) -> Self { method cmp (line 129) | fn cmp(&self, other: &PedersenDomain) -> ::std::cmp::Ordering { method partial_cmp (line 136) | fn partial_cmp(&self, other: &PedersenDomain) -> Option<::std::cmp::Orde... function as_ref (line 153) | fn as_ref<'a>(src: &'a [u64; 4]) -> &'a [u8] { method serialize (line 165) | fn serialize(&self) -> Vec { method into_bytes (line 171) | fn into_bytes(&self) -> Vec { method try_from_bytes (line 178) | fn try_from_bytes(raw: &[u8]) -> Result { method write_bytes (line 188) | fn write_bytes(&self, dest: &mut [u8]) -> Result<()> { method write (line 196) | fn write(&mut self, msg: &[u8]) { method finish (line 201) | fn finish(&self) -> u64 { method from (line 261) | fn from(val: PedersenDomain) -> Self { function test_path (line 276) | fn test_path() { function test_pedersen_hasher (line 286) | fn test_pedersen_hasher() { function test_as_ref (line 344) | fn test_as_ref() { function test_serialize (line 376) | fn test_serialize() { FILE: storage-proofs/src/hasher/sha256.rs type Sha256Hasher (line 7) | pub type Sha256Hasher = DigestHasher; type HexSlice (line 21) | struct HexSlice<'a>(&'a [u8]); function new (line 24) | fn new(data: &'a T) -> HexSlice<'a> function fmt (line 34) | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { function test_sha256_hash (line 45) | fn test_sha256_hash() { function test_sha256_node (line 56) | fn test_sha256_node() { FILE: storage-proofs/src/hasher/types.rs type Domain (line 8) | pub trait Domain: method serialize (line 24) | fn serialize(&self) -> Vec; method into_bytes (line 25) | fn into_bytes(&self) -> Vec; method try_from_bytes (line 26) | fn try_from_bytes(raw: &[u8]) -> Result; method write_bytes (line 28) | fn write_bytes(&self, _: &mut [u8]) -> Result<()>; type HashFunction (line 31) | pub trait HashFunction: method hash (line 34) | fn hash(data: &[u8]) -> T; method hash_leaf (line 36) | fn hash_leaf(data: &LightHashable) -> T { method hash_single_node (line 43) | fn hash_single_node(data: &LightHashable) -> T { type Hasher (line 50) | pub trait Hasher: Clone + ::std::fmt::Debug + Eq + Default + Send + Sync { method kdf (line 54) | fn kdf(data: &[u8], m: usize) -> Self::Domain; method sloth_encode (line 55) | fn sloth_encode(key: &Self::Domain, ciphertext: &Self::Domain, rounds:... method sloth_decode (line 56) | fn sloth_decode(key: &Self::Domain, ciphertext: &Self::Domain, rounds:... FILE: storage-proofs/src/layered_drgporep.rs type SetupParams (line 22) | pub struct SetupParams { type PublicParams (line 29) | pub struct PublicParams type Tau (line 40) | pub struct Tau { function simplify (line 47) | pub fn simplify(&self) -> porep::Tau { method parameter_set_identifier (line 60) | fn parameter_set_identifier(&self) -> String { function from (line 75) | fn from(pp: &PublicParams) -> PublicParams { type EncodingProof (line 84) | pub type EncodingProof = drgporep::Proof; type PublicInputs (line 87) | pub struct PublicInputs { function challenges (line 96) | pub fn challenges(&self, leaves: usize, layer: u8, partition_k: Option { type Proof (line 115) | pub struct Proof { function serialize (line 125) | pub fn serialize(&self) -> Vec { type PartitionProofs (line 130) | pub type PartitionProofs = Vec>; function new (line 133) | pub fn new( type Layerable (line 144) | pub trait Layerable: Graph {} type Layers (line 148) | pub trait Layers { method transform (line 153) | fn transform( method invert_transform (line 160) | fn invert_transform( method prove_layers (line 166) | fn prove_layers<'a>( method extract_and_invert_transform_layers (line 222) | fn extract_and_invert_transform_layers<'a>( method transform_and_replicate_layers (line 243) | fn transform_and_replicate_layers( type PublicParams (line 382) | type PublicParams = PublicParams; type SetupParams (line 383) | type SetupParams = SetupParams; type PublicInputs (line 384) | type PublicInputs = PublicInputs<::Domain>; type PrivateInputs (line 385) | type PrivateInputs = PrivateInputs<'a, L::Hasher>; type Proof (line 386) | type Proof = Proof; method setup (line 388) | fn setup(sp: &Self::SetupParams) -> Result { method prove (line 399) | fn prove<'b>( method prove_all_partitions (line 413) | fn prove_all_partitions<'b>( method verify_all_partitions (line 447) | fn verify_all_partitions( method with_partition (line 506) | fn with_partition(pub_in: Self::PublicInputs, k: Option) -> Self:... function comm_r_star (line 518) | fn comm_r_star(replica_id: &H::Domain, comm_rs: &[H::Domain])... type Tau (line 532) | type Tau = Tau<::Domain>; type ProverAux (line 533) | type ProverAux = method replicate (line 536) | fn replicate( method extract_all (line 560) | fn extract_all<'b>( method extract (line 577) | fn extract( FILE: storage-proofs/src/merkle.rs type MerkleProof (line 17) | pub struct MerkleProof { function make_proof_for_test (line 26) | pub fn make_proof_for_test( function new (line 40) | pub fn new(n: usize) -> MerkleProof { function new_from_proof (line 47) | pub fn new_from_proof(p: &proof::Proof) -> MerkleProof { function as_options (line 64) | pub fn as_options(&self) -> Vec> { function as_pairs (line 71) | pub fn as_pairs(&self) -> Vec<(Fr, bool)> { function validate (line 79) | pub fn validate(&self, node: usize) -> bool { function validate_data (line 102) | pub fn validate_data(&self, data: &[u8]) -> bool { function leaf (line 107) | pub fn leaf(&self) -> &H::Domain { function root (line 112) | pub fn root(&self) -> &H::Domain { function len (line 118) | pub fn len(&self) -> usize { function serialize (line 124) | pub fn serialize(&self) -> Vec { function path (line 137) | pub fn path(&self) -> &Vec<(H::Domain, bool)> { function path_index (line 142) | fn path_index(path: &[(T, bool)]) -> usize { function merklepath (line 159) | fn merklepath() { function merklepath_pedersen (line 190) | fn merklepath_pedersen() { function merklepath_sha256 (line 195) | fn merklepath_sha256() { function merklepath_blake2s (line 200) | fn merklepath_blake2s() { FILE: storage-proofs/src/merklepor.rs type PublicParams (line 13) | pub struct PublicParams { method parameter_set_identifier (line 20) | fn parameter_set_identifier(&self) -> String { type PublicInputs (line 30) | pub struct PublicInputs { type PrivateInputs (line 39) | pub struct PrivateInputs<'a, H: 'a + Hasher> { function new (line 48) | pub fn new(leaf: H::Domain, tree: &'a MerkleTree... type Proof (line 58) | pub type Proof = DataProof; type SetupParams (line 61) | pub struct SetupParams { type MerklePoR (line 68) | pub struct MerklePoR { type PublicParams (line 73) | type PublicParams = PublicParams; type SetupParams (line 74) | type SetupParams = SetupParams; type PublicInputs (line 75) | type PublicInputs = PublicInputs; type PrivateInputs (line 76) | type PrivateInputs = PrivateInputs<'a, H>; type Proof (line 77) | type Proof = Proof; function setup (line 79) | fn setup(sp: &SetupParams) -> Result { function prove (line 86) | fn prove<'b>( function verify (line 106) | fn verify( function test_merklepor (line 144) | fn test_merklepor() { function merklepor_pedersen (line 176) | fn merklepor_pedersen() { function merklepor_sha256 (line 181) | fn merklepor_sha256() { function merklepor_blake2s (line 186) | fn merklepor_blake2s() { function make_bogus_proof (line 195) | fn make_bogus_proof( function test_merklepor_validates (line 212) | fn test_merklepor_validates() { function merklepor_actually_validates_sha256 (line 241) | fn merklepor_actually_validates_sha256() { function merklepor_actually_validates_blake2s (line 246) | fn merklepor_actually_validates_blake2s() { function merklepor_actually_validates_pedersen (line 251) | fn merklepor_actually_validates_pedersen() { function test_merklepor_validates_challenge_identity (line 255) | fn test_merklepor_validates_challenge_identity() { function merklepor_actually_validates_challenge_identity_sha256 (line 295) | fn merklepor_actually_validates_challenge_identity_sha256() { function merklepor_actually_validates_challenge_identity_blake2s (line 300) | fn merklepor_actually_validates_challenge_identity_blake2s() { function merklepor_actually_validates_challenge_identity_pedersen (line 305) | fn merklepor_actually_validates_challenge_identity_pedersen() { FILE: storage-proofs/src/parameter_cache.rs constant VERSION (line 19) | pub const VERSION: usize = 9; constant PARAMETER_CACHE_DIR (line 21) | pub const PARAMETER_CACHE_DIR: &str = "/tmp/filecoin-proof-parameters/"; function parameter_cache_dir_name (line 23) | fn parameter_cache_dir_name() -> String { function parameter_cache_dir (line 30) | pub fn parameter_cache_dir() -> PathBuf { function parameter_cache_path (line 34) | pub fn parameter_cache_path(filename: &str) -> PathBuf { type ParameterSetIdentifier (line 40) | pub trait ParameterSetIdentifier: Clone { method parameter_set_identifier (line 41) | fn parameter_set_identifier(&self) -> String; type CacheableParameters (line 44) | pub trait CacheableParameters, PP> method cache_prefix (line 48) | fn cache_prefix() -> String; method cache_identifier (line 49) | fn cache_identifier(pub_params: &PP) -> Option { method get_groth_params (line 62) | fn get_groth_params( function ensure_parent (line 109) | fn ensure_parent(path: &PathBuf) -> Result<()> { function read_cached_params (line 119) | pub fn read_cached_params(cache_path: &PathBuf) -> Resu... function write_params_to_cache (line 134) | pub fn write_params_to_cache( FILE: storage-proofs/src/partitions.rs type Partitions (line 1) | pub type Partitions = Option; function partition_count (line 3) | pub fn partition_count(partitions: Partitions) -> usize { FILE: storage-proofs/src/piece_inclusion_proof.rs type InclusionProof (line 10) | type InclusionProof = Proof; type PieceInclusionProof (line 19) | pub struct PieceInclusionProof { function file_inclusion_proofs (line 30) | pub fn file_inclusion_proofs( function bounds (line 41) | fn bounds(lengths: &[usize]) -> Vec<(usize, usize)> { function file_inclusion_proof (line 55) | pub fn file_inclusion_proof( function verify (line 72) | fn verify(&self, root: &H::Domain, piece: &[u8]) -> bool { function compute_root (line 90) | fn compute_root( function hash_pairs (line 124) | fn hash_pairs( function proof_vec (line 148) | fn proof_vec(proof: &Proof) -> impl Iterator( constant NODE_BYTES (line 171) | const NODE_BYTES: usize = 32; function compute_bounds (line 174) | fn compute_bounds() { function file_inclusion_proof_pedersen (line 179) | fn file_inclusion_proof_pedersen() { function file_inclusion_proof_sha256 (line 184) | fn file_inclusion_proof_sha256() { function file_inclusion_proof_blake2s (line 189) | fn file_inclusion_proof_blake2s() { function test_file_inclusion_proof (line 193) | fn test_file_inclusion_proof() { function file_inclusion_proof_aux (line 207) | fn file_inclusion_proof_aux(nodes: usize, node_lengths: &[usi... FILE: storage-proofs/src/porc.rs type SetupParams (line 16) | pub struct SetupParams { type PublicParams (line 24) | pub struct PublicParams { method parameter_set_identifier (line 33) | fn parameter_set_identifier(&self) -> String { type PublicInputs (line 42) | pub struct PublicInputs<'a, T: 'a + Domain> { type PrivateInputs (line 51) | pub struct PrivateInputs<'a, H: 'a + Hasher> { type Proof (line 56) | pub struct Proof( function leafs (line 65) | pub fn leafs(&self) -> Vec<&H::Domain> { function commitments (line 69) | pub fn commitments(&self) -> Vec<&H::Domain> { function paths (line 73) | pub fn paths(&self) -> Vec<&Vec<(H::Domain, bool)>> { type PoRC (line 79) | pub struct PoRC<'a, H> type PublicParams (line 87) | type PublicParams = PublicParams; type SetupParams (line 88) | type SetupParams = SetupParams; type PublicInputs (line 89) | type PublicInputs = PublicInputs<'a, H::Domain>; type PrivateInputs (line 90) | type PrivateInputs = PrivateInputs<'a, H>; type Proof (line 91) | type Proof = Proof; function setup (line 93) | fn setup(sp: &Self::SetupParams) -> Result { function prove (line 100) | fn prove<'b>( function verify (line 132) | fn verify( function slice_mod (line 163) | pub fn slice_mod(challenge: impl AsRef<[u8]>, count: usize) -> usize { function test_porc (line 183) | fn test_porc() { function porc_pedersen (line 213) | fn porc_pedersen() { function porc_sha256 (line 218) | fn porc_sha256() { function porc_blake2s (line 223) | fn porc_blake2s() { function make_bogus_proof (line 232) | fn make_bogus_proof( function test_porc_validates (line 246) | fn test_porc_validates() { function porc_actually_validates_sha256 (line 279) | fn porc_actually_validates_sha256() { function porc_actually_validates_blake2s (line 284) | fn porc_actually_validates_blake2s() { function porc_actually_validates_pedersen (line 289) | fn porc_actually_validates_pedersen() { function test_porc_validates_challenge_identity (line 293) | fn test_porc_validates_challenge_identity() { function porc_actually_validates_challenge_identity_sha256 (line 333) | fn porc_actually_validates_challenge_identity_sha256() { function porc_actually_validates_challenge_identity_blake2s (line 338) | fn porc_actually_validates_challenge_identity_blake2s() { function porc_actually_validates_challenge_identity_pedersen (line 343) | fn porc_actually_validates_challenge_identity_pedersen() { function test_slice_mod (line 348) | fn test_slice_mod() { FILE: storage-proofs/src/porep.rs type PublicParams (line 7) | pub struct PublicParams { type Tau (line 12) | pub struct Tau { function new (line 18) | pub fn new(comm_d: T, comm_r: T) -> Self { type PublicInputs (line 24) | pub struct PublicInputs<'a, T: Domain> { type PrivateInputs (line 31) | pub struct PrivateInputs<'a> { type ProverAux (line 36) | pub struct ProverAux { function new (line 42) | pub fn new( type PoRep (line 50) | pub trait PoRep<'a, H: Hasher>: ProofScheme<'a> { method replicate (line 54) | fn replicate( method extract_all (line 61) | fn extract_all( method extract (line 66) | fn extract( function replica_id (line 74) | pub fn replica_id(prover_id: [u8; 32], sector_id: [u8; 32]) -... FILE: storage-proofs/src/proof.rs type ProofScheme (line 6) | pub trait ProofScheme<'a> { method setup (line 15) | fn setup(_: &Self::SetupParams) -> Result; method prove (line 18) | fn prove<'b>( method prove_all_partitions (line 24) | fn prove_all_partitions<'b>( method verify (line 42) | fn verify( method verify_all_partitions (line 50) | fn verify_all_partitions( method with_partition (line 65) | fn with_partition(pub_in: Self::PublicInputs, _k: Option) -> Se... FILE: storage-proofs/src/test_helper.rs type FakeDrgParams (line 28) | pub struct FakeDrgParams { function fake_drgpoprep_proof (line 40) | pub fn fake_drgpoprep_proof( function random_merkle_path_with_value (line 134) | pub fn random_merkle_path_with_value( function random_merkle_path (line 178) | pub fn random_merkle_path( FILE: storage-proofs/src/util.rs constant NODE_SIZE (line 7) | pub const NODE_SIZE: usize = 32; function data_at_node_offset (line 10) | pub fn data_at_node_offset(v: usize) -> usize { function data_at_node (line 15) | pub fn data_at_node(data: &[u8], v: usize) -> error::Result<&[u8]> { function bytes_into_bits (line 26) | pub fn bytes_into_bits(bytes: &[u8]) -> Vec { function bytes_into_boolean_vec (line 34) | pub fn bytes_into_boolean_vec>( function bool_to_u8 (line 60) | fn bool_to_u8(bit: bool, offset: usize) -> u8 { function bits_to_bytes (line 70) | pub fn bits_to_bytes(bits: &[bool]) -> Vec { function test_bytes_into_boolean_vec (line 93) | fn test_bytes_into_boolean_vec() { function test_bool_to_u8 (line 117) | fn test_bool_to_u8() { function test_bits_into_bytes (line 125) | fn test_bits_into_bytes() { function test_bytes_into_bits (line 137) | fn test_bytes_into_bits() { FILE: storage-proofs/src/vde.rs function encode (line 7) | pub fn encode<'a, H, G>( function decode (line 51) | pub fn decode<'a, H, G>( function decode_block (line 70) | pub fn decode_block<'a, H, G>( function decode_domain_block (line 89) | pub fn decode_domain_block<'a, H, G>( function create_key (line 114) | fn create_key( FILE: storage-proofs/src/vdf.rs type Vdf (line 7) | pub trait Vdf: Clone + ::std::fmt::Debug { method setup (line 12) | fn setup(setup_params: &Self::SetupParams) -> Result; method eval (line 13) | fn eval(public_params: &Self::PublicParams, input: &T) -> Result<(T, S... method verify (line 14) | fn verify(public_params: &Self::PublicParams, input: &T, proof: &Self:... method key (line 16) | fn key(pp: &Self::PublicParams) -> T; method rounds (line 17) | fn rounds(pp: &Self::PublicParams) -> usize; method extract_output (line 18) | fn extract_output(proof: &Self::Proof) -> T; FILE: storage-proofs/src/vdf_post.rs type SetupParams (line 22) | pub struct SetupParams> { type PublicParams (line 35) | pub struct PublicParams> { method parameter_set_identifier (line 53) | fn parameter_set_identifier(&self) -> String { type PublicInputs (line 64) | pub struct PublicInputs { type PrivateInputs (line 72) | pub struct PrivateInputs<'a, H: 'a + Hasher> { function new (line 78) | pub fn new(trees: &'a [&'a MerkleTree]) -> Self { function compute_root_commitment (line 86) | pub fn compute_root_commitment(commitments: &[T]) -> T { type Proof (line 97) | pub struct Proof<'a, H: Hasher + 'a, V: Vdf> { type VDFPoSt (line 121) | pub struct VDFPoSt> { type PublicParams (line 127) | type PublicParams = PublicParams; type SetupParams (line 128) | type SetupParams = SetupParams; type PublicInputs (line 129) | type PublicInputs = PublicInputs; type PrivateInputs (line 130) | type PrivateInputs = PrivateInputs<'a, H>; type Proof (line 131) | type Proof = Proof<'a, H, V>; function setup (line 133) | fn setup(sp: &Self::SetupParams) -> Result { function prove (line 163) | fn prove<'b>( function verify (line 243) | fn verify( function extract_vdf_input (line 302) | pub fn extract_vdf_input(proof: &porc::Proof) -> H::Domain { function derive_partial_challenges (line 312) | fn derive_partial_challenges(count: usize, seed: &[u8]) -> Ve... type ChallengeStream (line 328) | struct ChallengeStream> { function new (line 340) | fn new(pp: &PublicParams) -> ChallengeStream { function ensure_partial_challenges (line 362) | fn ensure_partial_challenges(&mut self, mix: H::Domain) { function next (line 381) | fn next(&mut self, mix: H::Domain) -> Option<(Vec, Vec)> { function derive_final_challenges (line 418) | fn derive_final_challenges( function verify_final_challenge_derivation (line 466) | fn verify_final_challenge_derivation( function test_derive_and_verify_final_challenges (line 504) | fn test_derive_and_verify_final_challenges() { function test_vdf_post_basics (line 529) | fn test_vdf_post_basics() { FILE: storage-proofs/src/vdf_sloth.rs type Sloth (line 11) | pub struct Sloth {} type SetupParams (line 43) | type SetupParams = SetupParams; type PublicParams (line 44) | type PublicParams = PublicParams; type Proof (line 45) | type Proof = Proof; method setup (line 47) | fn setup(sp: &Self::SetupParams) -> Result { method eval (line 54) | fn eval(pp: &Self::PublicParams, x: &PedersenDomain) -> Result<(Peders... method verify (line 62) | fn verify(pp: &Self::PublicParams, x: &PedersenDomain, proof: &Self::P... method key (line 70) | fn key(pp: &self::PublicParams) -> PedersenDomain { method rounds (line 73) | fn rounds(pp: &self::PublicParams) -> usize { method extract_output (line 76) | fn extract_output(proof: &Proof) -> PedersenDomain { type SetupParams (line 17) | pub struct SetupParams { type PublicParams (line 23) | pub struct PublicParams { method parameter_set_identifier (line 29) | fn parameter_set_identifier(&self) -> String { type Proof (line 38) | pub struct Proof { FILE: storage-proofs/src/zigzag_drgporep.rs type ZigZagDrgPoRep (line 22) | pub struct ZigZagDrgPoRep<'a, H: 'a + Hasher> { type Hasher (line 27) | type Hasher = as ZigZag>::BaseHasher; type Graph (line 28) | type Graph = ZigZagBucketGraph; method transform (line 30) | fn transform( method invert_transform (line 38) | fn invert_transform( function zigzag (line 47) | fn zigzag(pp: &drgporep::PublicParams) -> drgporep::PublicPa... constant DEFAULT_ZIGZAG_LAYERS (line 69) | const DEFAULT_ZIGZAG_LAYERS: usize = 10; function extract_all_pedersen (line 72) | fn extract_all_pedersen() { function extract_all_sha256 (line 77) | fn extract_all_sha256() { function extract_all_blake2s (line 82) | fn extract_all_blake2s() { function test_extract_all (line 86) | fn test_extract_all() { function prove_verify (line 137) | fn prove_verify(n: usize, i: usize) { function test_prove_verify (line 143) | fn test_prove_verify(n: usize, i: usize) { FILE: storage-proofs/src/zigzag_graph.rs constant DEFAULT_EXPANSION_DEGREE (line 9) | pub const DEFAULT_EXPANSION_DEGREE: usize = 8; type ZigZagGraph (line 12) | pub struct ZigZagGraph type ZigZagBucketGraph (line 24) | pub type ZigZagBucketGraph = ZigZagGraph>; function new (line 38) | pub fn new( method parameter_set_identifier (line 63) | fn parameter_set_identifier(&self) -> String { type ZigZag (line 72) | pub trait ZigZag: ::std::fmt::Debug + Clone + PartialEq + Eq { method zigzag (line 79) | fn zigzag(&self) -> Self; method base_graph (line 81) | fn base_graph(&self) -> Self::BaseGraph; method expansion_degree (line 82) | fn expansion_degree(&self) -> usize; method reversed (line 83) | fn reversed(&self) -> bool; method expanded_parents (line 84) | fn expanded_parents(&self, node: usize) -> Vec; method real_index (line 85) | fn real_index(&self, i: usize) -> usize; method new_zigzag (line 86) | fn new_zigzag( type BaseHasher (line 188) | type BaseHasher = H; type BaseGraph (line 189) | type BaseGraph = G; method new_zigzag (line 191) | fn new_zigzag( method zigzag (line 202) | fn zigzag(&self) -> Self { method base_graph (line 212) | fn base_graph(&self) -> Self::BaseGraph { method expansion_degree (line 216) | fn expansion_degree(&self) -> usize { method reversed (line 220) | fn reversed(&self) -> bool { method expanded_parents (line 225) | fn expanded_parents(&self, node: usize) -> Vec { method real_index (line 245) | fn real_index(&self, i: usize) -> usize { method size (line 95) | fn size(&self) -> usize { method degree (line 99) | fn degree(&self) -> usize { method parents (line 104) | fn parents(&self, raw_node: usize) -> Vec { method seed (line 142) | fn seed(&self) -> [u32; 7] { method new (line 146) | fn new(nodes: usize, base_degree: usize, expansion_degree: usize, seed: ... method forward (line 150) | fn forward(&self) -> bool { function correspondent (line 160) | fn correspondent(&self, node: usize, i: usize) -> usize { function assert_graph_ascending (line 263) | fn assert_graph_ascending>(g: G) { function assert_graph_descending (line 275) | fn assert_graph_descending>(g: G) { function zigzag_graph_zigzags_pedersen (line 289) | fn zigzag_graph_zigzags_pedersen() { function zigzag_graph_zigzags_sha256 (line 294) | fn zigzag_graph_zigzags_sha256() { function zigzag_graph_zigzags_blake2s (line 299) | fn zigzag_graph_zigzags_blake2s() { function test_zigzag_graph_zigzags (line 303) | fn test_zigzag_graph_zigzags() { function expansion_pedersen (line 312) | fn expansion_pedersen() { function expansion_sha256 (line 317) | fn expansion_sha256() { function expansion_blake2s (line 322) | fn expansion_blake2s() { function test_expansion (line 326) | fn test_expansion() {