Documentation
¶
Overview ¶
Package utils provides auxiliary functions used throughout the repo
Index ¶
- func CompressECPBytes(b []byte) ([]byte, error)
- func FromPEMFile(o encoding.BinaryUnmarshaler, f, pemType string) error
- func GenerateRandomBytes(n int) ([]byte, error)
- func ReportNodePresence(server string, marshaledKey []byte, typ string, host ...string) error
- func ToPEMFile(o encoding.BinaryMarshaler, f, pemType string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressECPBytes ¶
CompressECPBytes takes the uncompressed byte representation of an EC point and returns corresponding compressed representation.
func FromPEMFile ¶
func FromPEMFile(o encoding.BinaryUnmarshaler, f, pemType string) error
func GenerateRandomBytes ¶
GenerateRandomBytes return slice of bytes of specified size of cryptographically secure random numbers. Refer to https://golang.org/pkg/crypto/rand/ for details regarding sources of entropy.
func ReportNodePresence ¶
ReportNodePresence registers server presence at the directory server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.