mocks

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mta

type Mta struct {
	mock.Mock
}

Mta is an autogenerated mock type for the Mta type

func (*Mta) Compute

func (_m *Mta) Compute(publicKey homo.Pubkey, encMessage []byte) (*big.Int, *big.Int, error)

Compute provides a mock function with given fields: publicKey, encMessage

func (*Mta) Decrypt

func (_m *Mta) Decrypt(c *big.Int) (*big.Int, error)

Decrypt provides a mock function with given fields: c

func (*Mta) GetAG

func (_m *Mta) GetAG(curve elliptic.Curve) *ecpointgrouplaw.ECPoint

GetAG provides a mock function with given fields: curve

func (*Mta) GetAK

func (_m *Mta) GetAK() *big.Int

GetAK provides a mock function with given fields:

func (*Mta) GetAProof

func (_m *Mta) GetAProof(curve elliptic.Curve) (*zkproof.SchnorrProofMessage, error)

GetAProof provides a mock function with given fields: curve

func (*Mta) GetEncK

func (_m *Mta) GetEncK() []byte

GetEncK provides a mock function with given fields:

func (*Mta) GetProductWithK

func (_m *Mta) GetProductWithK(v *big.Int) *big.Int

GetProductWithK provides a mock function with given fields: v

func (*Mta) GetProofWithCheck

func (_m *Mta) GetProofWithCheck(curve elliptic.Curve, beta *big.Int) ([]byte, error)

GetProofWithCheck provides a mock function with given fields: curve, beta

func (*Mta) GetResult

func (_m *Mta) GetResult(alphas []*big.Int, betas []*big.Int) (*big.Int, error)

GetResult provides a mock function with given fields: alphas, betas

func (*Mta) OverrideA

func (_m *Mta) OverrideA(newA *big.Int) (mta.Mta, error)

OverrideA provides a mock function with given fields: newA

func (*Mta) VerifyProofWithCheck

func (_m *Mta) VerifyProofWithCheck(proof []byte, curve elliptic.Curve, alpha *big.Int) (*ecpointgrouplaw.ECPoint, error)

VerifyProofWithCheck provides a mock function with given fields: proof, curve, alpha

Jump to

Keyboard shortcuts

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