Versions in this module Expand all Collapse all v1 v1.0.3 Nov 15, 2023 Changes in this version + var A *big.Int + var Aff *ff.Element + var D *big.Int + var Dff *ff.Element + var Order *big.Int + var SubOrder *big.Int + func Blake512(m []byte) []byte + func PackSignY(sign bool, y *big.Int) [32]byte + func PointCoordSign(c *big.Int) bool + func SkToBigInt(k *PrivateKey) *big.Int + func UnpackSignY(leBuf [32]byte) (bool, *big.Int) + type BjjWrappedPrivateKey struct + func NewBjjWrappedKey(privKey *PrivateKey) *BjjWrappedPrivateKey + func RandomBjjWrappedKey() *BjjWrappedPrivateKey + func (w *BjjWrappedPrivateKey) Equal(x crypto.PrivateKey) bool + func (w *BjjWrappedPrivateKey) Public() crypto.PublicKey + func (w *BjjWrappedPrivateKey) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error) + type BjjWrappedPublicKey struct + func (pub *BjjWrappedPublicKey) Equal(x crypto.PublicKey) bool + type Point struct + X *big.Int + Y *big.Int + var B8 *Point + func NewPoint() *Point + func PointFromSignAndY(sign bool, y *big.Int) (*Point, error) + func (p *Point) Compress() [32]byte + func (p *Point) Decompress(leBuf [32]byte) (*Point, error) + func (p *Point) InCurve() bool + func (p *Point) InSubGroup() bool + func (p *Point) Mul(s *big.Int, q *Point) *Point + func (p *Point) Projective() *PointProjective + func (p *Point) Set(c *Point) *Point + type PointProjective struct + X *ff.Element + Y *ff.Element + Z *ff.Element + func NewPointProjective() *PointProjective + func (p *PointProjective) Add(q, o *PointProjective) *PointProjective + func (p *PointProjective) Affine() *Point + type PrivKeyScalar big.Int + func NewPrivKeyScalar(s *big.Int) *PrivKeyScalar + func (s *PrivKeyScalar) BigInt() *big.Int + func (s *PrivKeyScalar) Public() *PublicKey + type PrivateKey [32]byte + func NewRandPrivKey() PrivateKey + func (k *PrivateKey) Public() *PublicKey + func (k *PrivateKey) Scalar() *PrivKeyScalar + func (k *PrivateKey) SignMimc7(msg *big.Int) *Signature + func (k *PrivateKey) SignPoseidon(msg *big.Int) *Signature + type PublicKey Point + func (pk *PublicKey) Compress() PublicKeyComp + func (pk *PublicKey) Point() *Point + func (pk *PublicKey) Scan(src interface{}) error + func (pk *PublicKey) UnmarshalText(h []byte) error + func (pk *PublicKey) VerifyMimc7(msg *big.Int, sig *Signature) bool + func (pk *PublicKey) VerifyPoseidon(msg *big.Int, sig *Signature) bool + func (pk PublicKey) MarshalText() ([]byte, error) + func (pk PublicKey) String() string + func (pk PublicKey) Value() (driver.Value, error) + type PublicKeyComp [32]byte + func (pkComp *PublicKeyComp) Decompress() (*PublicKey, error) + func (pkComp *PublicKeyComp) Scan(src interface{}) error + func (pkComp *PublicKeyComp) UnmarshalText(h []byte) error + func (pkComp PublicKeyComp) MarshalText() ([]byte, error) + func (pkComp PublicKeyComp) String() string + func (pkComp PublicKeyComp) Value() (driver.Value, error) + type Signature struct + R8 *Point + S *big.Int + func DecompressSig(commpresedSig []byte) (*Signature, error) + func (s *Signature) Compress() SignatureComp + func (s *Signature) Decompress(buf [64]byte) (*Signature, error) + func (s *Signature) Scan(src interface{}) error + func (s Signature) Value() (driver.Value, error) + type SignatureComp [64]byte + func (sComp *SignatureComp) Decompress() (*Signature, error) + func (sComp *SignatureComp) Scan(src interface{}) error + func (sComp *SignatureComp) UnmarshalText(h []byte) error + func (sComp SignatureComp) MarshalText() ([]byte, error) + func (sComp SignatureComp) String() string + func (sComp SignatureComp) Value() (driver.Value, error)