Versions in this module Expand all Collapse all v1 v1.0.5 Nov 28, 2024 v1.0.4 Nov 22, 2024 v1.0.3 Nov 23, 2023 v1.0.2 Nov 24, 2022 Changes in this version + var ErrExceedMaxRetry = errors.New("exceed max retries") + var ErrNotCoprime = errors.New("two integers are not coprime") + var ErrSmallPublicKeySize = errors.New("small public key") + var ErrTrivialCase = errors.New("z is 1") + var File_github_com_getamis_alice_crypto_zkproof_message_proto protoreflect.FileDescriptor type IntegerFactorizationProofMessage + Salt []byte + X []byte + Y []byte + func (x *IntegerFactorizationProofMessage) GetSalt() []byte + func (x *IntegerFactorizationProofMessage) GetX() []byte + func (x *IntegerFactorizationProofMessage) GetY() []byte + func (x *IntegerFactorizationProofMessage) ProtoReflect() protoreflect.Message type SchnorrProofMessage + Salt []byte + func NewSchnorrMessageWithGivenMN(a1 *big.Int, a2 *big.Int, m, n *big.Int, R *pt.ECPoint, seedInfo ...[]byte) (*SchnorrProofMessage, error) + func (x *SchnorrProofMessage) GetSalt() []byte + func (x *SchnorrProofMessage) ProtoReflect() protoreflect.Message v1.0.1 Apr 24, 2020 v1.0.0 Apr 10, 2020 Changes in this version + var ErrDifferentCurves = errors.New("different curves") + var ErrVerifyFailure = errors.New("the verification is failure") + type IntegerFactorizationProofMessage struct + Challenge []byte + Proof []byte + PublicKey []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func NewIntegerFactorizationProofMessage(primeFactor []*big.Int, publicKey *big.Int) (*IntegerFactorizationProofMessage, error) + func (*IntegerFactorizationProofMessage) Descriptor() ([]byte, []int) + func (*IntegerFactorizationProofMessage) ProtoMessage() + func (m *IntegerFactorizationProofMessage) GetChallenge() []byte + func (m *IntegerFactorizationProofMessage) GetProof() []byte + func (m *IntegerFactorizationProofMessage) GetPublicKey() []byte + func (m *IntegerFactorizationProofMessage) Reset() + func (m *IntegerFactorizationProofMessage) String() string + func (m *IntegerFactorizationProofMessage) XXX_DiscardUnknown() + func (m *IntegerFactorizationProofMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *IntegerFactorizationProofMessage) XXX_Merge(src proto.Message) + func (m *IntegerFactorizationProofMessage) XXX_Size() int + func (m *IntegerFactorizationProofMessage) XXX_Unmarshal(b []byte) error + func (msg *IntegerFactorizationProofMessage) Verify() error + type SchnorrProofMessage struct + Alpha *ecpointgrouplaw.EcPointMessage + Blake2BKey []byte + T []byte + U []byte + V *ecpointgrouplaw.EcPointMessage + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func NewBaseSchorrMessage(curve elliptic.Curve, a1 *big.Int) (*SchnorrProofMessage, error) + func NewSchorrMessage(a1 *big.Int, a2 *big.Int, R *pt.ECPoint) (*SchnorrProofMessage, error) + func (*SchnorrProofMessage) Descriptor() ([]byte, []int) + func (*SchnorrProofMessage) ProtoMessage() + func (m *SchnorrProofMessage) GetAlpha() *ecpointgrouplaw.EcPointMessage + func (m *SchnorrProofMessage) GetBlake2BKey() []byte + func (m *SchnorrProofMessage) GetT() []byte + func (m *SchnorrProofMessage) GetU() []byte + func (m *SchnorrProofMessage) GetV() *ecpointgrouplaw.EcPointMessage + func (m *SchnorrProofMessage) Reset() + func (m *SchnorrProofMessage) String() string + func (m *SchnorrProofMessage) XXX_DiscardUnknown() + func (m *SchnorrProofMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SchnorrProofMessage) XXX_Merge(src proto.Message) + func (m *SchnorrProofMessage) XXX_Size() int + func (m *SchnorrProofMessage) XXX_Unmarshal(b []byte) error + func (s *SchnorrProofMessage) Verify(R *pt.ECPoint) error