Versions in this module Expand all Collapse all v1 v1.0.3 Nov 23, 2023 Changes in this version type ECPoint + func (p *ECPoint) IsEvenY() bool v1.0.2 Nov 24, 2022 Changes in this version + var File_github_com_getamis_alice_crypto_ecpointgrouplaw_point_proto protoreflect.FileDescriptor type ECPoint + func (p *ECPoint) Neg() *ECPoint + func (p *ECPoint) ToPubKey() *ecdsa.PublicKey type EcPointMessage + func (x *EcPointMessage) ProtoReflect() protoreflect.Message type EcPointMessage_Curve + const EcPointMessage_EDWARD25519 + func (EcPointMessage_Curve) Descriptor() protoreflect.EnumDescriptor + func (EcPointMessage_Curve) Type() protoreflect.EnumType + func (x EcPointMessage_Curve) Enum() *EcPointMessage_Curve + func (x EcPointMessage_Curve) Number() protoreflect.EnumNumber v1.0.1 Apr 24, 2020 v1.0.0 Apr 10, 2020 Changes in this version + var EcPointMessage_Curve_name = map[int32]string + var EcPointMessage_Curve_value = map[string]int32 + var ErrDifferentCurve = errors.New("different elliptic curves") + var ErrDifferentLength = errors.New("different lengths of slices") + var ErrEmptySlice = errors.New("the length of slice is zero") + var ErrInvalidCurve = errors.New("invalid curve") + var ErrInvalidPoint = errors.New("invalid point") + type ECPoint struct + func ComputeLinearCombinationPoint(scalar []*big.Int, points []*ECPoint) (*ECPoint, error) + func NewBase(curve elliptic.Curve) *ECPoint + func NewECPoint(curve elliptic.Curve, x *big.Int, y *big.Int) (*ECPoint, error) + func NewIdentity(curve elliptic.Curve) *ECPoint + func ScalarBaseMult(c elliptic.Curve, k *big.Int) *ECPoint + func (p *ECPoint) Add(p1 *ECPoint) (*ECPoint, error) + func (p *ECPoint) Copy() *ECPoint + func (p *ECPoint) Equal(p1 *ECPoint) bool + func (p *ECPoint) GetCurve() elliptic.Curve + func (p *ECPoint) GetX() *big.Int + func (p *ECPoint) GetY() *big.Int + func (p *ECPoint) IsIdentity() bool + func (p *ECPoint) IsSameCurve(p2 *ECPoint) bool + func (p *ECPoint) ScalarMult(k *big.Int) *ECPoint + func (p *ECPoint) String() string + func (p *ECPoint) ToEcPointMessage() (*EcPointMessage, error) + type EcPointMessage struct + Curve EcPointMessage_Curve + X []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + Y []byte + func (*EcPointMessage) Descriptor() ([]byte, []int) + func (*EcPointMessage) ProtoMessage() + func (m *EcPointMessage) GetCurve() EcPointMessage_Curve + func (m *EcPointMessage) GetX() []byte + func (m *EcPointMessage) GetY() []byte + func (m *EcPointMessage) Reset() + func (m *EcPointMessage) String() string + func (m *EcPointMessage) XXX_DiscardUnknown() + func (m *EcPointMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *EcPointMessage) XXX_Merge(src proto.Message) + func (m *EcPointMessage) XXX_Size() int + func (m *EcPointMessage) XXX_Unmarshal(b []byte) error + func (p *EcPointMessage) ToPoint() (*ECPoint, error) + type EcPointMessage_Curve int32 + const EcPointMessage_P224 + const EcPointMessage_P256 + const EcPointMessage_P384 + const EcPointMessage_S256 + func ToCurve(c elliptic.Curve) (EcPointMessage_Curve, error) + func (EcPointMessage_Curve) EnumDescriptor() ([]byte, []int) + func (c EcPointMessage_Curve) GetEllipticCurve() (elliptic.Curve, error) + func (x EcPointMessage_Curve) String() string