(hexPrefix string)
| 25 | } |
| 26 | |
| 27 | func testDiscoKey(hexPrefix string) (ret key.DiscoPublic) { |
| 28 | b, err := hex.DecodeString(hexPrefix) |
| 29 | if err != nil { |
| 30 | panic(err) |
| 31 | } |
| 32 | // this function is used with short hexes, so zero-extend the raw |
| 33 | // value. |
| 34 | var bs [32]byte |
| 35 | copy(bs[:], b) |
| 36 | return key.DiscoPublicFromRaw32(mem.B(bs[:])) |
| 37 | } |
| 38 | |
| 39 | func nodeViews(v []*tailcfg.Node) []tailcfg.NodeView { |
| 40 | nv := make([]tailcfg.NodeView, len(v)) |
no test coverage detected
searching dependent graphs…