p2p/discover: remove unused function
This commit is contained in:
@ -17,7 +17,6 @@
|
||||
package discover
|
||||
|
||||
import (
|
||||
"crypto/ecdsa"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"math/rand"
|
||||
@ -167,11 +166,3 @@ func hexEncPubkey(h string) (ret encPubkey) {
|
||||
copy(ret[:], b)
|
||||
return ret
|
||||
}
|
||||
|
||||
func hexPubkey(h string) *ecdsa.PublicKey {
|
||||
k, err := decodePubkey(hexEncPubkey(h))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return k
|
||||
}
|
||||
|
Reference in New Issue
Block a user