message

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalSignatureMessage

func MarshalSignatureMessage(id string, signature []byte) ([]byte, error)

func MarshalStartMessage

func MarshalStartMessage(params []byte) ([]byte, error)

func MarshalTssMessage

func MarshalTssMessage(msgBytes []byte, isBroadcast bool) ([]byte, error)

Types

type SignatureMessage

type SignatureMessage struct {
	Signature []byte `json:"signature"`
	ID        string `json:"id"`
}

func UnmarshalSignatureMessage

func UnmarshalSignatureMessage(msgBytes []byte) (*SignatureMessage, error)

type StartMessage

type StartMessage struct {
	Params []byte `json:"params"`
}

func UnmarshalStartMessage

func UnmarshalStartMessage(msgBytes []byte) (*StartMessage, error)

type TssMessage

type TssMessage struct {
	MsgBytes    []byte `json:"msgBytes"`
	IsBroadcast bool   `json:"isBroadcast"`
}

func UnmarshalTssMessage

func UnmarshalTssMessage(msgBytes []byte) (*TssMessage, error)

Jump to

Keyboard shortcuts

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