amcl

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ECP

type ECP struct {
	X                    []byte   `protobuf:"bytes,1,opt,name=x,proto3" json:"x,omitempty"`
	Y                    []byte   `protobuf:"bytes,2,opt,name=y,proto3" json:"y,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ECP is an elliptic curve point specified by its coordinates ECP corresponds to an element of the first group (G1)

func (*ECP) Descriptor

func (*ECP) Descriptor() ([]byte, []int)

func (*ECP) GetX

func (m *ECP) GetX() []byte

func (*ECP) GetY

func (m *ECP) GetY() []byte

func (*ECP) ProtoMessage

func (*ECP) ProtoMessage()

func (*ECP) Reset

func (m *ECP) Reset()

func (*ECP) String

func (m *ECP) String() string

func (*ECP) XXX_DiscardUnknown

func (m *ECP) XXX_DiscardUnknown()

func (*ECP) XXX_Marshal

func (m *ECP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ECP) XXX_Merge

func (m *ECP) XXX_Merge(src proto.Message)

func (*ECP) XXX_Size

func (m *ECP) XXX_Size() int

func (*ECP) XXX_Unmarshal

func (m *ECP) XXX_Unmarshal(b []byte) error

type ECP2

type ECP2 struct {
	Xa                   []byte   `protobuf:"bytes,1,opt,name=xa,proto3" json:"xa,omitempty"`
	Xb                   []byte   `protobuf:"bytes,2,opt,name=xb,proto3" json:"xb,omitempty"`
	Ya                   []byte   `protobuf:"bytes,3,opt,name=ya,proto3" json:"ya,omitempty"`
	Yb                   []byte   `protobuf:"bytes,4,opt,name=yb,proto3" json:"yb,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ECP2 is an elliptic curve point specified by its coordinates ECP2 corresponds to an element of the second group (G2)

func (*ECP2) Descriptor

func (*ECP2) Descriptor() ([]byte, []int)

func (*ECP2) GetXa

func (m *ECP2) GetXa() []byte

func (*ECP2) GetXb

func (m *ECP2) GetXb() []byte

func (*ECP2) GetYa

func (m *ECP2) GetYa() []byte

func (*ECP2) GetYb

func (m *ECP2) GetYb() []byte

func (*ECP2) ProtoMessage

func (*ECP2) ProtoMessage()

func (*ECP2) Reset

func (m *ECP2) Reset()

func (*ECP2) String

func (m *ECP2) String() string

func (*ECP2) XXX_DiscardUnknown

func (m *ECP2) XXX_DiscardUnknown()

func (*ECP2) XXX_Marshal

func (m *ECP2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ECP2) XXX_Merge

func (m *ECP2) XXX_Merge(src proto.Message)

func (*ECP2) XXX_Size

func (m *ECP2) XXX_Size() int

func (*ECP2) XXX_Unmarshal

func (m *ECP2) XXX_Unmarshal(b []byte) error

type Fp256bn

type Fp256bn struct {
	C *math.Curve
}

func (*Fp256bn) G1FromProto

func (a *Fp256bn) G1FromProto(e *ECP) (*math.G1, error)

func (*Fp256bn) G1FromRawBytes

func (a *Fp256bn) G1FromRawBytes(raw []byte) (*math.G1, error)

func (*Fp256bn) G1ToProto

func (a *Fp256bn) G1ToProto(g1 *math.G1) *ECP

func (*Fp256bn) G2FromProto

func (a *Fp256bn) G2FromProto(e *ECP2) (*math.G2, error)

func (*Fp256bn) G2ToProto

func (a *Fp256bn) G2ToProto(g2 *math.G2) *ECP2

type Fp256bnMiracl

type Fp256bnMiracl struct {
	C *math.Curve
}

func (*Fp256bnMiracl) G1FromProto

func (a *Fp256bnMiracl) G1FromProto(e *ECP) (*math.G1, error)

func (*Fp256bnMiracl) G1FromRawBytes

func (a *Fp256bnMiracl) G1FromRawBytes(raw []byte) (*math.G1, error)

func (*Fp256bnMiracl) G1ToProto

func (a *Fp256bnMiracl) G1ToProto(g1 *math.G1) *ECP

func (*Fp256bnMiracl) G2FromProto

func (a *Fp256bnMiracl) G2FromProto(e *ECP2) (*math.G2, error)

func (*Fp256bnMiracl) G2ToProto

func (a *Fp256bnMiracl) G2ToProto(g2 *math.G2) *ECP2

type Gurvy

type Gurvy struct {
	C *math.Curve
}

func (*Gurvy) G1FromProto

func (a *Gurvy) G1FromProto(e *ECP) (*math.G1, error)

func (*Gurvy) G1FromRawBytes

func (a *Gurvy) G1FromRawBytes(raw []byte) (*math.G1, error)

func (*Gurvy) G1ToProto

func (a *Gurvy) G1ToProto(g1 *math.G1) *ECP

func (*Gurvy) G2FromProto

func (a *Gurvy) G2FromProto(e *ECP2) (*math.G2, error)

func (*Gurvy) G2ToProto

func (a *Gurvy) G2ToProto(g2 *math.G2) *ECP2

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL