Documentation ¶
Index ¶
- Variables
- type IntegerFactorizationProofMessage
- func (*IntegerFactorizationProofMessage) Descriptor() ([]byte, []int)
- func (m *IntegerFactorizationProofMessage) GetChallenge() []byte
- func (m *IntegerFactorizationProofMessage) GetProof() []byte
- func (m *IntegerFactorizationProofMessage) GetPublicKey() []byte
- func (*IntegerFactorizationProofMessage) ProtoMessage()
- func (m *IntegerFactorizationProofMessage) Reset()
- func (m *IntegerFactorizationProofMessage) String() string
- func (msg *IntegerFactorizationProofMessage) Verify() error
- 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
- type SchnorrProofMessage
- func (*SchnorrProofMessage) Descriptor() ([]byte, []int)
- 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 (*SchnorrProofMessage) ProtoMessage()
- func (m *SchnorrProofMessage) Reset()
- func (m *SchnorrProofMessage) String() string
- func (s *SchnorrProofMessage) Verify(R *pt.ECPoint) error
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDifferentCurves is returned if the two points are in different curves ErrDifferentCurves = errors.New("different curves") )
View Source
var ( //ErrVerifyFailure is returned if the verification is failure. ErrVerifyFailure = errors.New("the verification is failure") )
Functions ¶
This section is empty.
Types ¶
type IntegerFactorizationProofMessage ¶
type IntegerFactorizationProofMessage struct { PublicKey []byte `protobuf:"bytes,1,opt,name=publicKey,proto3" json:"publicKey,omitempty"` Challenge []byte `protobuf:"bytes,2,opt,name=challenge,proto3" json:"challenge,omitempty"` Proof []byte `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*IntegerFactorizationProofMessage) Descriptor ¶
func (*IntegerFactorizationProofMessage) Descriptor() ([]byte, []int)
func (*IntegerFactorizationProofMessage) GetChallenge ¶
func (m *IntegerFactorizationProofMessage) GetChallenge() []byte
func (*IntegerFactorizationProofMessage) GetProof ¶
func (m *IntegerFactorizationProofMessage) GetProof() []byte
func (*IntegerFactorizationProofMessage) GetPublicKey ¶
func (m *IntegerFactorizationProofMessage) GetPublicKey() []byte
func (*IntegerFactorizationProofMessage) ProtoMessage ¶
func (*IntegerFactorizationProofMessage) ProtoMessage()
func (*IntegerFactorizationProofMessage) Reset ¶
func (m *IntegerFactorizationProofMessage) Reset()
func (*IntegerFactorizationProofMessage) String ¶
func (m *IntegerFactorizationProofMessage) String() string
func (*IntegerFactorizationProofMessage) Verify ¶
func (msg *IntegerFactorizationProofMessage) Verify() error
func (*IntegerFactorizationProofMessage) XXX_DiscardUnknown ¶
func (m *IntegerFactorizationProofMessage) XXX_DiscardUnknown()
func (*IntegerFactorizationProofMessage) XXX_Marshal ¶
func (m *IntegerFactorizationProofMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IntegerFactorizationProofMessage) XXX_Merge ¶
func (m *IntegerFactorizationProofMessage) XXX_Merge(src proto.Message)
func (*IntegerFactorizationProofMessage) XXX_Size ¶
func (m *IntegerFactorizationProofMessage) XXX_Size() int
func (*IntegerFactorizationProofMessage) XXX_Unmarshal ¶
func (m *IntegerFactorizationProofMessage) XXX_Unmarshal(b []byte) error
type SchnorrProofMessage ¶
type SchnorrProofMessage struct { Blake2BKey []byte `protobuf:"bytes,1,opt,name=blake2bKey,proto3" json:"blake2bKey,omitempty"` V *ecpointgrouplaw.EcPointMessage `protobuf:"bytes,2,opt,name=V,proto3" json:"V,omitempty"` Alpha *ecpointgrouplaw.EcPointMessage `protobuf:"bytes,3,opt,name=alpha,proto3" json:"alpha,omitempty"` U []byte `protobuf:"bytes,4,opt,name=u,proto3" json:"u,omitempty"` T []byte `protobuf:"bytes,5,opt,name=t,proto3" json:"t,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewBaseSchorrMessage ¶
func NewSchorrMessage ¶
func (*SchnorrProofMessage) Descriptor ¶
func (*SchnorrProofMessage) Descriptor() ([]byte, []int)
func (*SchnorrProofMessage) GetAlpha ¶
func (m *SchnorrProofMessage) GetAlpha() *ecpointgrouplaw.EcPointMessage
func (*SchnorrProofMessage) GetBlake2BKey ¶
func (m *SchnorrProofMessage) GetBlake2BKey() []byte
func (*SchnorrProofMessage) GetT ¶
func (m *SchnorrProofMessage) GetT() []byte
func (*SchnorrProofMessage) GetU ¶
func (m *SchnorrProofMessage) GetU() []byte
func (*SchnorrProofMessage) GetV ¶
func (m *SchnorrProofMessage) GetV() *ecpointgrouplaw.EcPointMessage
func (*SchnorrProofMessage) ProtoMessage ¶
func (*SchnorrProofMessage) ProtoMessage()
func (*SchnorrProofMessage) Reset ¶
func (m *SchnorrProofMessage) Reset()
func (*SchnorrProofMessage) String ¶
func (m *SchnorrProofMessage) String() string
func (*SchnorrProofMessage) XXX_DiscardUnknown ¶
func (m *SchnorrProofMessage) XXX_DiscardUnknown()
func (*SchnorrProofMessage) XXX_Marshal ¶
func (m *SchnorrProofMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SchnorrProofMessage) XXX_Merge ¶
func (m *SchnorrProofMessage) XXX_Merge(src proto.Message)
func (*SchnorrProofMessage) XXX_Size ¶
func (m *SchnorrProofMessage) XXX_Size() int
func (*SchnorrProofMessage) XXX_Unmarshal ¶
func (m *SchnorrProofMessage) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.