Documentation ¶
Overview ¶
Package encoding package provides helper functions to encode/decode a Point/Scalar in hexadecimal.
Index ¶
- func PointToStringHex(group kyber.Group, point kyber.Point) (string, error)
- func ReadHexPoint(group kyber.Group, r io.Reader) (kyber.Point, error)
- func ReadHexScalar(group kyber.Group, r io.Reader) (kyber.Scalar, error)
- func ScalarToStringHex(group kyber.Group, scalar kyber.Scalar) (string, error)
- func StringHexToPoint(group kyber.Group, s string) (kyber.Point, error)
- func StringHexToScalar(group kyber.Group, str string) (kyber.Scalar, error)
- func WriteHexPoint(group kyber.Group, w io.Writer, point kyber.Point) error
- func WriteHexScalar(group kyber.Group, w io.Writer, scalar kyber.Scalar) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PointToStringHex ¶
PointToStringHex converts a point to a hexadecimal representation
func ReadHexPoint ¶
ReadHexPoint reads a point from r in hex representation.
func ReadHexScalar ¶
ReadHexScalar takes a hex-encoded scalar and returns that scalar, optionally an error
func ScalarToStringHex ¶
ScalarToStringHex encodes a scalar to hexadecimal.
func StringHexToPoint ¶
StringHexToPoint reads a hexadecimal representation of a point from a string.
func StringHexToScalar ¶
StringHexToScalar reads a scalar in hexadecimal from string
func WriteHexPoint ¶
WriteHexPoint writes a point in hex representation to w.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.