modproof

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// SAFESECURITYLEVEL define the minimal security level
	SAFESECURITYLEVEL = 2047
)

Variables

View Source
var (
	//ErrVerifyFailure is returned if the verification is failure.
	ErrVerifyFailure = errors.New("the verification is failure")
	//ErrTooFewChallenge is returned if the times of challenge is too few.
	ErrTooFewChallenge = errors.New("the times of challenge are too few")
	//ErrExceedMaxRetry is returned if we retried over times
	ErrExceedMaxRetry = errors.New("exceed max retries")
	//ErrInvalidInput is returned if the input is invalid
	ErrInvalidInput = errors.New("invalid input")
)
View Source
var File_mod_msg_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type PaillierBlumMessage

type PaillierBlumMessage struct {
	A    [][]byte `protobuf:"bytes,1,rep,name=a,proto3" json:"a,omitempty"`
	B    [][]byte `protobuf:"bytes,2,rep,name=b,proto3" json:"b,omitempty"`
	W    []byte   `protobuf:"bytes,3,opt,name=w,proto3" json:"w,omitempty"`
	X    [][]byte `protobuf:"bytes,4,rep,name=x,proto3" json:"x,omitempty"`
	Z    [][]byte `protobuf:"bytes,5,rep,name=z,proto3" json:"z,omitempty"`
	Salt [][]byte `protobuf:"bytes,6,rep,name=salt,proto3" json:"salt,omitempty"`
	// contains filtered or unexported fields
}

func NewPaillierBlumMessage

func NewPaillierBlumMessage(ssidInfo []byte, p *big.Int, q *big.Int, n *big.Int, numberzkProof int) (*PaillierBlumMessage, error)

func (*PaillierBlumMessage) Descriptor deprecated

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

Deprecated: Use PaillierBlumMessage.ProtoReflect.Descriptor instead.

func (*PaillierBlumMessage) GetA

func (x *PaillierBlumMessage) GetA() [][]byte

func (*PaillierBlumMessage) GetB

func (x *PaillierBlumMessage) GetB() [][]byte

func (*PaillierBlumMessage) GetSalt

func (x *PaillierBlumMessage) GetSalt() [][]byte

func (*PaillierBlumMessage) GetW

func (x *PaillierBlumMessage) GetW() []byte

func (*PaillierBlumMessage) GetX

func (x *PaillierBlumMessage) GetX() [][]byte

func (*PaillierBlumMessage) GetZ

func (x *PaillierBlumMessage) GetZ() [][]byte

func (*PaillierBlumMessage) ProtoMessage

func (*PaillierBlumMessage) ProtoMessage()

func (*PaillierBlumMessage) ProtoReflect

func (x *PaillierBlumMessage) ProtoReflect() protoreflect.Message

func (*PaillierBlumMessage) Reset

func (x *PaillierBlumMessage) Reset()

func (*PaillierBlumMessage) String

func (x *PaillierBlumMessage) String() string

func (*PaillierBlumMessage) Verify

func (msg *PaillierBlumMessage) Verify(ssidInfo []byte, n *big.Int) error

Jump to

Keyboard shortcuts

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