Documentation
¶
Index ¶
- type Curve
- type CurveImpl
- func (c *CurveImpl) AltBasePoint() Point
- func (*CurveImpl) BasePoint() Point
- func (*CurveImpl) BitSize() uint64
- func (*CurveImpl) CompressedPointSize() int
- func (*CurveImpl) DecodeToPoint(in []byte) (Point, error)
- func (*CurveImpl) DecodeToScalar(in []byte) (Scalar, error)
- func (*CurveImpl) HashToScalar(in []byte) (Scalar, error)
- func (*CurveImpl) NewRandomScalar() Scalar
- func (*CurveImpl) ScalarBaseMul(s Scalar) Point
- func (*CurveImpl) ScalarFromBytes(b [32]byte) Scalar
- func (c *CurveImpl) ScalarFromInt(in uint32) Scalar
- func (*CurveImpl) ScalarMul(s Scalar, p Point) Point
- func (*CurveImpl) Sign(s Scalar, p Point) ([]byte, error)
- func (*CurveImpl) Verify(pubkey, msgPoint Point, sig []byte) bool
- type Point
- type PointImpl
- type Scalar
- type ScalarImpl
- func (s *ScalarImpl) Add(b Scalar) Scalar
- func (s *ScalarImpl) Encode() []byte
- func (s *ScalarImpl) Eq(b Scalar) bool
- func (s *ScalarImpl) Inverse() Scalar
- func (s *ScalarImpl) IsZero() bool
- func (s *ScalarImpl) Mul(b Scalar) Scalar
- func (s *ScalarImpl) Negate() Scalar
- func (s *ScalarImpl) Sub(b Scalar) Scalar
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CurveImpl ¶
type CurveImpl struct {
// contains filtered or unexported fields
}
func (*CurveImpl) AltBasePoint ¶
func (*CurveImpl) CompressedPointSize ¶
func (*CurveImpl) NewRandomScalar ¶
func (*CurveImpl) ScalarBaseMul ¶
func (*CurveImpl) ScalarFromBytes ¶
func (*CurveImpl) ScalarFromInt ¶
type PointImpl ¶
type PointImpl struct {
// contains filtered or unexported fields
}
func NewPoint ¶
func NewPoint(inner *edwards25519.Point) *PointImpl
type ScalarImpl ¶
type ScalarImpl struct {
// contains filtered or unexported fields
}
func (*ScalarImpl) Add ¶
func (s *ScalarImpl) Add(b Scalar) Scalar
func (*ScalarImpl) Encode ¶
func (s *ScalarImpl) Encode() []byte
func (*ScalarImpl) Eq ¶
func (s *ScalarImpl) Eq(b Scalar) bool
func (*ScalarImpl) Inverse ¶
func (s *ScalarImpl) Inverse() Scalar
func (*ScalarImpl) IsZero ¶
func (s *ScalarImpl) IsZero() bool
func (*ScalarImpl) Mul ¶
func (s *ScalarImpl) Mul(b Scalar) Scalar
func (*ScalarImpl) Negate ¶
func (s *ScalarImpl) Negate() Scalar
func (*ScalarImpl) Sub ¶
func (s *ScalarImpl) Sub(b Scalar) Scalar
Click to show internal directories.
Click to hide internal directories.