Documentation ¶
Index ¶
- Constants
- Variables
- type Error
- type Fp
- type Fp12
- type Fp2
- type P1
- type P1Affine
- func (p *P1Affine) Compress() []byte
- func (sig *P1Affine) CoreAggregateVerify(validate_sig bool, items PkMsgPairsG1, validate_pub bool, hash bool, ...) error
- func (sig *P1Affine) CoreVerify(validate_sig bool, pub *P2Affine, validate_pub bool, msg []byte, hash bool, ...) error
- func (p *P1Affine) Equal(x *P1Affine) bool
- func (p *P1Affine) IsInG1() bool
- func (p *P1Affine) IsInf() bool
- func (p *P1Affine) IsOnCurve() bool
- func (p *P1Affine) Jacobian() *P1
- type P2
- type P2Affine
- func (p *P2Affine) Compress() []byte
- func (sig *P2Affine) CoreAggregateVerify(validate_sig bool, items PkMsgPairsG2, validate_pub bool, hash bool, ...) error
- func (sig *P2Affine) CoreVerify(validate_sig bool, pub *P1Affine, validate_pub bool, msg []byte, hash bool, ...) error
- func (p *P2Affine) Equal(x *P2Affine) bool
- func (p *P2Affine) IsInG2() bool
- func (p *P2Affine) IsInf() bool
- func (p *P2Affine) IsOnCurve() bool
- func (p *P2Affine) Jacobian() *P2
- type Pairing
- func (p *Pairing) AggregateInG1(pub *P1Affine, validate_pub bool, sig *P2Affine, validate_sig bool, ...) error
- func (p *Pairing) AggregateInG2(pub *P2Affine, validate_pub bool, sig *P1Affine, validate_sig bool, ...) error
- func (p *Pairing) Commit()
- func (p *Pairing) FinalVerify(gtsig *Fp12) bool
- func (p *Pairing) Merge(other *Pairing) error
- type PkMsgPairG1
- type PkMsgPairG2
- type PkMsgPairsG1
- type PkMsgPairsG2
- type Scalar
- func (s *Scalar) Bytes() []byte
- func (s *Scalar) Equal(x *Scalar) bool
- func (s *Scalar) P1() *P1
- func (s *Scalar) P1Affine() *P1Affine
- func (s *Scalar) P2() *P2
- func (s *Scalar) P2Affine() *P2Affine
- func (s *Scalar) SignInG1(hash *P2) *P2
- func (s *Scalar) SignInG1Affine(hash *P2) *P2Affine
- func (s *Scalar) SignInG2(hash *P1) *P1
- func (s *Scalar) SignInG2Affine(hash *P1) *P1Affine
- type Scheme
Constants ¶
View Source
const ( P1ByteLength = 48 P2ByteLength = 96 ScalarByteLength = 32 )
Variables ¶
View Source
var ErrNotUnique = errors.New("messages are not unique")
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error int
const ( ErrSuccess Error = Error(C.BLST_SUCCESS) ErrBadEncoding Error = Error(C.BLST_BAD_ENCODING) ErrPointNotOnCurve Error = Error(C.BLST_POINT_NOT_ON_CURVE) ErrPointNotInGroup Error = Error(C.BLST_POINT_NOT_IN_GROUP) ErrAggrTypeMismatch Error = Error(C.BLST_AGGR_TYPE_MISMATCH) ErrVerifyFail Error = Error(C.BLST_VERIFY_FAIL) ErrPkIsInfinity Error = Error(C.BLST_PK_IS_INFINITY) ErrBadScalar Error = Error(C.BLST_BAD_SCALAR) )
type P1Affine ¶
type P1Affine p1Affine
func DecompressP1Affine ¶
func (*P1Affine) CoreAggregateVerify ¶
func (*P1Affine) CoreVerify ¶
type P2Affine ¶
type P2Affine p2Affine
func DecompressP2Affine ¶
func (*P2Affine) CoreAggregateVerify ¶
func (*P2Affine) CoreVerify ¶
type Pairing ¶
type Pairing struct {
// contains filtered or unexported fields
}
aligned memory
func NewPairing ¶
func (*Pairing) AggregateInG1 ¶
func (*Pairing) AggregateInG2 ¶
func (*Pairing) FinalVerify ¶
type PkMsgPairG1 ¶
type PkMsgPairG2 ¶
type PkMsgPairsG1 ¶
type PkMsgPairsG1 interface { Len() int Index(int) PkMsgPairG1 }
type PkMsgPairsG2 ¶
type PkMsgPairsG2 interface { Len() int Index(int) PkMsgPairG2 }
type Scalar ¶
type Scalar scalar
func GenerateKey ¶
func ScalarFromBytes ¶
func (*Scalar) SignInG1Affine ¶
func (*Scalar) SignInG2Affine ¶
Click to show internal directories.
Click to hide internal directories.