event

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SigningPublisherStream     = "mpc-signing"
	SigningConsumerStream      = "mpc-signing-consumer"
	SigningRequestTopic        = "mpc.signing_request.*"
	SigningResultTopic         = "mpc.signing_result.*"
	SigningResultCompleteTopic = "mpc.signing_result.complete"
	MPCSigningEventTopic       = "mpc:sign"
	SigningRequestEventTopic   = "mpc.signing_request.event"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SigningResultErrorEvent

type SigningResultErrorEvent struct {
	NetworkInternalCode string `json:"network_internal_code"`
	WalletID            string `json:"wallet_id"`
	TxID                string `json:"tx_id"`
	ErrorReason         string `json:"error_reason"`
	IsTimeout           bool   `json:"is_timeout"`
}

type SigningResultEvent

type SigningResultEvent struct {
	ResultType          SigningResultType `json:"result_type"`
	ErrorReason         string            `json:"error_reason"`
	IsTimeout           bool              `json:"is_timeout"`
	NetworkInternalCode string            `json:"network_internal_code"`
	WalletID            string            `json:"wallet_id"`
	TxID                string            `json:"tx_id"`
	R                   []byte            `json:"r"`
	S                   []byte            `json:"s"`
	SignatureRecovery   []byte            `json:"signature_recovery"`

	// TODO: define two separate events for eddsa and ecdsa
	Signature []byte `json:"signature"`
}

type SigningResultSuccessEvent

type SigningResultSuccessEvent struct {
	NetworkInternalCode string `json:"network_internal_code"`
	WalletID            string `json:"wallet_id"`
	TxID                string `json:"tx_id"`
	R                   []byte `json:"r"`
	S                   []byte `json:"s"`
	SignatureRecovery   []byte `json:"signature_recovery"`

	// TODO: define two separate events for eddsa and ecdsa
	Signature []byte `json:"signature"`
}

type SigningResultType

type SigningResultType int
const (
	SigningResultTypeUnknown SigningResultType = iota
	SigningResultTypeSuccess
	SigningResultTypeError
)

Jump to

Keyboard shortcuts

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