broadcaster

package
v0.0.0-...-886a677 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMessage

func GetMessage(pubBytes []byte, reqID uint64, txSig []byte) []byte

GetMessage returns data which is signed upon sending response by RPC.

Types

type OracleBroadcaster

type OracleBroadcaster struct {
	rpcbroadcaster.RPCBroadcaster
}

OracleBroadcaster is an oracle broadcaster implementation.

func New

New returns a new struct capable of broadcasting oracle responses.

func (*OracleBroadcaster) SendResponse

func (r *OracleBroadcaster) SendResponse(priv *keys.PrivateKey, resp *transaction.OracleResponse, txSig []byte)

SendResponse implements interfaces.Broadcaster.

Jump to

Keyboard shortcuts

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