utils

package
v1.53.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PATTERN = regexp.MustCompile(`((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?\.){3})(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`)

Functions

func FindNeighbors added in v1.44.0

func FindNeighbors(myHostIP string, myPort uint16, startIp uint8, endIp uint8, startPort uint16, endPort uint16) []string

func GetHost added in v1.45.0

func GetHost() string

func IsFoundNode added in v1.44.0

func IsFoundNode(host string, port uint16) bool

func JsonStatus added in v1.33.0

func JsonStatus(message string) []byte

func String2BigIntTuples added in v1.35.0

func String2BigIntTuples(s string) (big.Int, big.Int)

func String2PrivateKey added in v1.35.0

func String2PrivateKey(s string, publicKey *ecdsa.PublicKey) *ecdsa.PrivateKey

func String2PublicKey added in v1.35.0

func String2PublicKey(s string) *ecdsa.PublicKey

Types

type Signature

type Signature struct {
	R *big.Int
	S *big.Int
}

func String2Signature added in v1.35.0

func String2Signature(s string) *Signature

func (*Signature) String

func (s *Signature) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL