MCPcopy Create free account

hub / github.com/FiloSottile/hstools / functions

Functions95 in github.com/FiloSottile/hstools

↓ 9 callersMethodNext
(p *big.Int)
src/hstools/hashring.go:54
↓ 6 callersMethodClose
()
src/hstools/keysdb.go:141
↓ 6 callersMethodDiff
(from, to *big.Int)
src/hstools/hashring.go:86
↓ 6 callersFunctionToBase32
(b []byte)
src/hstools/format.go:35
↓ 6 callersFunctionfatalIfErr
(err error)
src/cmd/scrolls.go:29
↓ 6 callersFunctiongetAge
(h *hstools.Hash, now hstools.Hour, since time.Time, keysDB *hstools.KeysDB)
src/cmd/scrolls.go:36
↓ 6 callersFunctiongetColo
(h *hstools.Hash, keysDB *hstools.KeysDB)
src/cmd/scrolls.go:74
↓ 6 callersFunctiongetLongevity
(h *hstools.Hash, now hstools.Hour, until time.Time, keysDB *hstools.KeysDB)
src/cmd/scrolls.go:55
↓ 5 callersMethodDistance
(p *big.Int)
src/hstools/stats.go:102
↓ 5 callersMethodNext3
(p *big.Int)
src/hstools/hashring.go:61
↓ 4 callersMethodErr
()
src/hstools/consensus.go:156
↓ 4 callersMethodLookup
(key Hash)
src/hstools/keysdb.go:125
↓ 4 callersFunctionNewHashring
NewHashring returns a Hashring with the given unsorted points.
src/hstools/hashring.go:32
↓ 4 callersFunctioncolorScore
(v int64)
src/cmd/scrolls.go:88
↓ 4 callersFunctionexitIfErr
(t *testing.T, err error)
src/hstools/format_test.go:10
↓ 4 callersFunctionfatalIfErr
(err error)
src/cmd/lookmeup.go:20
↓ 3 callersMethodDistance4
(p *big.Int)
src/hstools/stats.go:121
↓ 3 callersFunctionHashIdentity
(pk rsa.PublicKey)
src/hstools/brute.go:11
↓ 3 callersFunctionIntToHash
(i *big.Int)
src/hstools/format.go:81
↓ 3 callersFunctionOnionToDescID
(onion string, t time.Time)
src/hstools/descid.go:23
↓ 3 callersMethodPrev
(p *big.Int)
src/hstools/hashring.go:79
↓ 3 callersMethodView
(fn func(tx *bolt.Tx) error)
src/hstools/keysdb.go:137
↓ 3 callersFunctionbigMean
(nums []*big.Int)
src/hstools/stats.go:28
↓ 3 callersFunctionfatalIfErr
(err error)
src/cmd/grind.go:18
↓ 3 callersFunctionfatalIfErr
(err error)
src/cmd/brute.go:21
↓ 2 callersFunctionComputeRendV2DescID
(serviceID string, replica byte, time int64, descCookie string)
src/hstools/descid.go:51
↓ 2 callersMethodConsensus
()
src/hstools/consensus.go:152
↓ 2 callersMethodDistance
Distance efficiently calculates the difference (b - a) mod 2^160, or distance a -> b on a 20-byte ring and stores it in d. a and b unchanged.
src/hstools/format.go:18
↓ 2 callersMethodDistance4Data
()
src/hstools/stats.go:140
↓ 2 callersFunctionHourToTime
(h Hour)
src/hstools/format.go:58
↓ 2 callersMethodLen
()
src/hstools/hashring.go:50
↓ 2 callersMethodLoad
()
src/hstools/consensus.go:127
↓ 2 callersFunctionParseConsensus
ParseConsensus parses a consensus file and extracts the HSDir Hashring
src/hstools/consensus.go:51
↓ 2 callersFunctionToHex
(b []byte)
src/hstools/format.go:43
↓ 2 callersFunctionbigAbsDev
func bigAbsDev(nums []*big.Int, mean *big.Int) *big.Int { avg := big.NewInt(0) size := big.NewInt(int64(len(nums))) for _, n := range nums { d := new(
src/hstools/stats.go:89
↓ 1 callersMethodAge
(p *big.Int, now Hour, keysDB *KeysDB)
src/hstools/stats.go:208
↓ 1 callersFunctionAnalyzePartitionData
(data []*PartitionData)
src/hstools/stats.go:162
↓ 1 callersFunctionColocatedKeys
(k []byte, keysDB *KeysDB)
src/hstools/stats.go:257
↓ 1 callersMethodDistanceData
()
src/hstools/stats.go:152
↓ 1 callersMethodFourth
(p *big.Int)
src/hstools/hashring.go:72
↓ 1 callersFunctionFromBase32
(s string)
src/hstools/format.go:39
↓ 1 callersFunctionFromBase64
(s string)
src/hstools/format.go:51
↓ 1 callersFunctionFromHex
(s string)
src/hstools/format.go:47
↓ 1 callersFunctionHashesToIntSlice
(keys []Hash)
src/hstools/format.go:62
↓ 1 callersFunctionRandomDistance
(ring *hstools.Hashring)
src/cmd/montecarlo.go:20
↓ 1 callersFunctionRandomHashring
(entries int)
src/hstools/hashring.go:41
↓ 1 callersFunctionSampleDistance4
(h *Hashring)
src/hstools/stats.go:125
↓ 1 callersMethodSeen
(keys []Hash, ips []string, h Hour, wg *sync.WaitGroup)
src/hstools/keysdb.go:52
↓ 1 callersFunctionbigSqrt
(n *big.Int)
src/hstools/stats.go:37
↓ 1 callersFunctioncheckKey
(key *rsa.PrivateKey)
src/hstools/brute.go:27
↓ 1 callersFunctionfind_responsible_HSDir
(descriptor_id, consensus)
src/retrieve_hs_descriptor.py:45
↓ 1 callersFunctiongetSecretIDPartBytes
(timePeriod int64, descCookie string, replica byte)
src/hstools/descid.go:74
↓ 1 callersFunctiongetTimePeriod
(time int64, deviation int64, serviceIDBinary []byte)
src/hstools/descid.go:70
↓ 1 callersFunctionget_secret_id_part_bytes
(time_period, descriptor_cookie, replica)
src/retrieve_hs_descriptor.py:31
↓ 1 callersFunctionget_time_period
(time, deviation, service_id)
src/retrieve_hs_descriptor.py:26
↓ 1 callersFunctionmain
()
src/retrieve_hs_descriptor.py:68
↓ 1 callersFunctionplotDistance
()
src/cmd/montecarlo.go:25
↓ 1 callersFunctionrendGetDescriptorIDBytes
(serviceIDBinary, secretIDPart []byte)
src/hstools/descid.go:86
↓ 1 callersFunctionrend_compute_v2_desc_id
(service_id_base32, replica, time, descriptor_cookie = "")
src/retrieve_hs_descriptor.py:18
↓ 1 callersFunctionrend_get_descriptor_id_bytes
(service_id, secret_id_part)
src/retrieve_hs_descriptor.py:39
MethodAgeData
AgeData is not really in use, Age and Longevity are assessed in absolute
src/hstools/stats.go:243
FunctionBrute
(targetA, targetB, maxA, maxB Hash, numKeys, numP int, log func(v ...interface{}))
src/hstools/brute.go:36
MethodColocated
(p *big.Int, keysDB *KeysDB)
src/hstools/stats.go:232
FunctionHashToInt
(k Hash)
src/hstools/format.go:88
FunctionIntsToHashSlice
(ints []*big.Int)
src/hstools/format.go:70
MethodLen
()
src/hstools/hashring.go:27
MethodLess
(i, j int)
src/hstools/hashring.go:29
MethodLongevity
(p *big.Int, now Hour, keysDB *KeysDB)
src/hstools/stats.go:220
FunctionNewPackReader
(filename string)
src/hstools/consensus.go:114
FunctionOpenKeysDb
(filename string)
src/hstools/keysdb.go:27
FunctionReadConsensuses
ReadConsensuses reads consensus files from a folder structure like DIR/consensuses-2011-02/04/2011-02-04-02-00-00-consensus and sends them on the retu
src/hstools/consensus.go:29
FunctionSHA1
(data []byte)
src/hstools/format.go:30
FunctionSampleDistance
(h *Hashring)
src/hstools/stats.go:106
FunctionScore
(v *big.Int, res *MetricData)
src/hstools/stats.go:203
MethodSwap
(i, j int)
src/hstools/hashring.go:28
FunctionTestAnalyzePartitionData
(t *testing.T)
src/hstools/stats_test.go:5
FunctionTestCurrentOnion
(t *testing.T)
src/hstools/descid_test.go:22
FunctionTestFacebookOnion
(t *testing.T)
src/hstools/descid_test.go:8
FunctionTestHashDistance
(t *testing.T)
src/hstools/format_test.go:16
FunctionTestHashIdentity
(t *testing.T)
src/hstools/brute_test.go:10
FunctionTestHashringDistance
(t *testing.T)
src/hstools/hashring_test.go:31
FunctionTestHashringNext
(t *testing.T)
src/hstools/hashring_test.go:8
FunctionTestParseConsensus
(t *testing.T)
src/hstools/consensus_test.go:10
FunctionWSServer
(ws *websocket.Conn)
src/cmd/announce.go:20
FunctionWritePackedConsensus
(w io.Writer, c *Consensus)
src/hstools/consensus.go:94
FunctionbigCubeRoot
(n *big.Int)
src/hstools/stats.go:52
FunctionbigStdDev
(nums []*big.Int, mean *big.Int)
src/hstools/stats.go:67
Functionmain
()
src/cmd/grind.go:24
Functionmain
()
src/cmd/lookmeup.go:26
Functionmain
()
src/cmd/scrolls.go:101
Functionmain
()
src/cmd/brute.go:27
Functionmain
()
src/cmd/announce.go:53
Functionmain
()
src/cmd/curiosity.go:18
Functionmain
()
src/cmd/montecarlo.go:65
Functionmain
()
src/cmd/preprocess.go:16