coinproof

package
v0.0.0-...-ff61ee7 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoinProof

type CoinProof struct {
	// contains filtered or unexported fields
}

func CreateCoinProof

func CreateCoinProof(suite dleq.Suite,
	sharedKey kyber.Point, msg []byte,
	priv kyber.Scalar) (ret *CoinProof, err error)

func EmptyCoinProof

func EmptyCoinProof(suite dleq.Suite) *CoinProof

func (*CoinProof) Decode

func (cp *CoinProof) Decode(reader io.Reader) (n int, err error)

func (*CoinProof) Deserialize

func (cp *CoinProof) Deserialize(m *messages.Message, unmarFunc types.ConsensusIndexFuncs) (int, error)

Deserialize deserialzes a header into the object, returning the number of bytes read

func (*CoinProof) Encode

func (cp *CoinProof) Encode(writer io.Writer) (n int, err error)

func (*CoinProof) GetBytes

func (cp *CoinProof) GetBytes(m *messages.Message) ([]byte, error)

GetBytes returns the bytes of the coin proof from the message.

func (*CoinProof) GetID

func (cp *CoinProof) GetID() messages.HeaderID

GetID returns the header id for EDDSA pub objects

func (*CoinProof) GetMsgID

func (cp *CoinProof) GetMsgID() messages.MsgID

GetMsgID returns the message id for a coin proof.

func (*CoinProof) GetShare

func (cp *CoinProof) GetShare() kyber.Point

func (*CoinProof) New

func (cp *CoinProof) New() sig.Sig

func (CoinProof) PeekHeaders

PeekHeader returns nil.

func (*CoinProof) Serialize

func (cp *CoinProof) Serialize(m *messages.Message) (int, error)

Serialize appends a serialized header to the message m, and returns the size of bytes written

func (*CoinProof) Validate

func (cp *CoinProof) Validate(localKey, sharedKey kyber.Point, msg []byte) error

Jump to

Keyboard shortcuts

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