all: replace tailcfg.DiscoKey with key.DiscoPublic.

Signed-off-by: David Anderson <[email protected]>
This commit is contained in:
David Anderson committed 2021-11-02 14:55:25 -07:00
1 parent 17b5782b3a
commit 4a51050c49
16 files changed
+51 -95

No files matched your search

+6 -3
View File
@@ -22,13 +22,16 @@ func testNodeKey(b byte) (ret key.NodePublic) {
return key.NodePublicFromRaw32(mem.B(bs[:]))
}
func testDiscoKey(hexPrefix string) (ret tailcfg.DiscoKey) {
func testDiscoKey(hexPrefix string) (ret key.DiscoPublic) {
b, err := hex.DecodeString(hexPrefix)
if err != nil {
panic(err)
}
copy(ret[:], b)
return
// this function is used with short hexes, so zero-extend the raw
// value.
var bs [32]byte
copy(bs[:], b)
return key.DiscoPublicFromRaw32(mem.B(bs[:]))
}
func TestNetworkMapConcise(t *testing.T) {