dealer

package
v0.0.0-...-f726f7b Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Method    string       `json:"method"`
	KeyIndex  big.Int      `json:"keyindex"`
	PubKey    common.Point `json:"pubkey"`
	Data      []byte       `json:"data"`
	Signature []byte       `json:"signature"`
}

func (Message) Validate

func (dealerMessage Message) Validate(existingPubKey common.Point) bool

type MsgUpdateCommitment

type MsgUpdateCommitment struct {
	KeyIndex   big.Int          `json:"keyindex"`
	TMessage   TMessage         `json:"tmessage"`
	Commitment [][]common.Point `json:"commitment"`
}

func (MsgUpdateCommitment) Validate

func (d MsgUpdateCommitment) Validate() bool

type MsgUpdatePublicKey

type MsgUpdatePublicKey struct {
	KeyIndex     big.Int      `json:"keyindex"`
	TMessage     TMessage     `json:"tmessage"`
	OldPubKey    common.Point `json:"oldpubkey"`
	OldPubKeySig []byte       `json:"oldpubkeysig"`
	NewPubKey    common.Point `json:"newpubkey"`
	NewPubKeySig []byte       `json:"newpubkeysig"`
}

func (MsgUpdatePublicKey) Validate

func (d MsgUpdatePublicKey) Validate(existingPubKey common.Point) bool

type MsgUpdateShare

type MsgUpdateShare struct {
	KeyIndex big.Int  `json:"keyindex"`
	TMessage TMessage `json:"tmessage"`
	Si       big.Int  `json:"si"`
	Siprime  big.Int  `json:"siprime"`
}

func (MsgUpdateShare) Validate

func (d MsgUpdateShare) Validate() bool

type TMessage

type TMessage struct {
	Timestamp string `json:"timestamp"`
	Message   string `json:"message"`
}

func (TMessage) Byte

func (t TMessage) Byte() []byte

Jump to

Keyboard shortcuts

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