MCPcopy Index your code
hub / github.com/tailscale/tailscale / testNodeKey

Function testNodeKey

types/netmap/netmap_test.go:19–25  ·  view source on GitHub ↗
(b byte)

Source from the content-addressed store, hash-verified

17)
18
19func testNodeKey(b byte) (ret key.NodePublic) {
20 var bs [key.NodePublicRawLen]byte
21 for i := range bs {
22 bs[i] = b
23 }
24 return key.NodePublicFromRaw32(mem.B(bs[:]))
25}
26
27func testDiscoKey(hexPrefix string) (ret key.DiscoPublic) {
28 b, err := hex.DecodeString(hexPrefix)

Callers 2

TestNetworkMapConciseFunction · 0.85
TestConciseDiffFromFunction · 0.85

Calls 1

NodePublicFromRaw32Function · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…