Documentation
¶
Index ¶
- func GenerateP2PKey() (*ecdsa.PrivateKey, error)
- func GetAttackerIPInfo(d types.Description) map[string]int
- func GetBeaconP2PInfo(d types.Description) map[string]P2PInfo
- func GetP2PKeyFromHex(hexKey string) (*ecdsa.PrivateKey, error)
- func GetPid(priKey *ecdsa.PrivateKey) peer.ID
- func ValidateDescription(d types.Description) error
- type P2PInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateP2PKey ¶
func GenerateP2PKey() (*ecdsa.PrivateKey, error)
func GetAttackerIPInfo ¶
func GetAttackerIPInfo(d types.Description) map[string]int
func GetBeaconP2PInfo ¶
func GetBeaconP2PInfo(d types.Description) map[string]P2PInfo
func GetP2PKeyFromHex ¶
func GetP2PKeyFromHex(hexKey string) (*ecdsa.PrivateKey, error)
func ValidateDescription ¶
func ValidateDescription(d types.Description) error
Types ¶
Click to show internal directories.
Click to hide internal directories.