Documentation
¶
Index ¶
- func HashToCurveGenericBESwu(msg, domain []byte, hashFunc func() hash.Hash) (*bls12381.PointG1, error)
- func HashToG1GenericBESwu(data, domain []byte) (*bls12381.PointG1, error)
- func SwuMapG1BE(u *Fe) (*Fe, *Fe)
- type Bls12_381
- func (c *Bls12_381) CompressedG1ByteSize() int
- func (c *Bls12_381) CompressedG2ByteSize() int
- func (c *Bls12_381) CoordinateByteSize() int
- func (c *Bls12_381) FExp(a driver.Gt) driver.Gt
- func (c *Bls12_381) G1ByteSize() int
- func (c *Bls12_381) G2ByteSize() int
- func (c *Bls12_381) GenG1() driver.G1
- func (c *Bls12_381) GenG2() driver.G2
- func (c *Bls12_381) GenGt() driver.Gt
- func (c *Bls12_381) HashToG1(data []byte) driver.G1
- func (c *Bls12_381) HashToG1WithDomain(data, domain []byte) driver.G1
- func (c *Bls12_381) HashToG2(data []byte) driver.G2
- func (c *Bls12_381) HashToG2WithDomain(data, domain []byte) driver.G2
- func (c *Bls12_381) MultiScalarMul(a []driver.G1, b []driver.Zr) driver.G1
- func (c *Bls12_381) NewG1() driver.G1
- func (c *Bls12_381) NewG1FromBytes(b []byte) driver.G1
- func (c *Bls12_381) NewG1FromCompressed(b []byte) driver.G1
- func (c *Bls12_381) NewG2() driver.G2
- func (c *Bls12_381) NewG2FromBytes(b []byte) driver.G2
- func (c *Bls12_381) NewG2FromCompressed(b []byte) driver.G2
- func (c *Bls12_381) NewGtFromBytes(b []byte) driver.Gt
- func (c *Bls12_381) Pairing(p2 driver.G2, p1 driver.G1) driver.Gt
- func (c *Bls12_381) Pairing2(p2a, p2b driver.G2, p1a, p1b driver.G1) driver.Gt
- func (c *Bls12_381) ScalarByteSize() int
- type Bls12_381BBS
- type Fe
- type PointG1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashToCurveGenericBESwu ¶
func HashToG1GenericBESwu ¶
func SwuMapG1BE ¶
SwuMapG1BE is implementation of Simplified Shallue-van de Woestijne-Ulas Method follows the implementation at draft-irtf-cfrg-hash-to-curve-06. uses big-endian variant: https://tools.ietf.org/html/draft-irtf-cfrg-hash-to-curve-06#section-4.1.1
Types ¶
type Bls12_381 ¶
func NewBls12_381 ¶
func NewBls12_381() *Bls12_381
func (*Bls12_381) CompressedG1ByteSize ¶
func (*Bls12_381) CompressedG2ByteSize ¶
func (*Bls12_381) CoordinateByteSize ¶
func (*Bls12_381) G1ByteSize ¶
func (*Bls12_381) G2ByteSize ¶
func (*Bls12_381) HashToG1WithDomain ¶
func (*Bls12_381) HashToG2WithDomain ¶
func (*Bls12_381) MultiScalarMul ¶
func (*Bls12_381) ScalarByteSize ¶
type Bls12_381BBS ¶
type Bls12_381BBS struct {
Bls12_381
}
func NewBls12_381BBS ¶
func NewBls12_381BBS() *Bls12_381BBS
func (*Bls12_381BBS) HashToG1WithDomain ¶
func (c *Bls12_381BBS) HashToG1WithDomain(data, domain []byte) driver.G1
func (*Bls12_381BBS) HashToG2WithDomain ¶
func (c *Bls12_381BBS) HashToG2WithDomain(data, domain []byte) driver.G2
Click to show internal directories.
Click to hide internal directories.