Documentation ¶
Index ¶
- Variables
- func DataToPoint(data []byte) (x, y *big.Int)
- func HashToPoint(hash []byte) (x, y *big.Int)
- type GF
- func (g *GF) Add(a, b *big.Int) *big.Int
- func (g *GF) AddBytes(a []byte, b *big.Int) *big.Int
- func (g *GF) Cube(a *big.Int) *big.Int
- func (g *GF) Div(a, b *big.Int) *big.Int
- func (g *GF) Inv(a *big.Int) *big.Int
- func (g *GF) InvBytes(a []byte) *big.Int
- func (g *GF) Mul(a, b *big.Int) *big.Int
- func (g *GF) MulBytes(a []byte, b *big.Int) *big.Int
- func (g *GF) Neg(a *big.Int) *big.Int
- func (g *GF) NegBytes(a []byte) *big.Int
- func (g *GF) Pow(a, b *big.Int) *big.Int
- func (g *GF) Square(a *big.Int) *big.Int
- func (g *GF) Sub(a, b *big.Int) *big.Int
Constants ¶
This section is empty.
Variables ¶
View Source
var (
//PointHashLen is the length of a number that represents the point
PointHashLen = 32
)
Functions ¶
func DataToPoint ¶
DataToPoint hashes data using SHA-256 and maps it to a point on curve
func HashToPoint ¶
HashToPoint maps 32 byte hash to a point on curve
Types ¶
type GF ¶
GF represents galois field over prime
func (*GF) MulBytes ¶
MulBytes multiplies two numbers one of which is represented as a byte array over GFp
Click to show internal directories.
Click to hide internal directories.