wire

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package wire preserves the retained fields and field numbers of the legacy unversioned remote-signer Protobuf envelopes. Unknown fields are skipped so current Go and Python runner clients can send their full messages. The retained schemas come from livepeer/go-livepeer/net/lp_rpc.proto at bd645a09266833fb859053445d9ac85846330756, authored by Josh Allmann, Yondon Fu, Nico Vergauwen, and Angie Ramirez. This codec is implemented here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeAuthToken

func EncodeAuthToken(a AuthToken) []byte

func EncodeExpiration

func EncodeExpiration(e ExpirationParams) []byte

func EncodeOrchestratorInfo

func EncodeOrchestratorInfo(o OrchestratorInfo) []byte

func EncodePayment

func EncodePayment(p Payment) []byte

func EncodePrice

func EncodePrice(p PriceInfo) []byte

func EncodeSegData

func EncodeSegData(s SegData) []byte

func EncodeTicketParams

func EncodeTicketParams(p TicketParams) []byte

Types

type AuthToken

type AuthToken struct {
	Token      []byte
	SessionID  string
	Expiration int64
}

func DecodeAuthToken

func DecodeAuthToken(data []byte) (AuthToken, error)

type ExpirationParams

type ExpirationParams struct {
	CreationRound          int64
	CreationRoundBlockHash []byte
}

func DecodeExpiration

func DecodeExpiration(data []byte) (ExpirationParams, error)

type OrchestratorInfo

type OrchestratorInfo struct {
	Transcoder   string
	TicketParams TicketParams
	Price        PriceInfo
	Address      []byte
	Auth         AuthToken
}

func DecodeOrchestratorInfo

func DecodeOrchestratorInfo(data []byte) (OrchestratorInfo, error)

type Payment

type Payment struct {
	TicketParams  TicketParams
	PayerAddress  []byte
	Expiration    ExpirationParams
	PayerParams   []TicketPayerParams
	ExpectedPrice PriceInfo
}

func DecodePayment

func DecodePayment(data []byte) (Payment, error)

type PriceInfo

type PriceInfo struct {
	PricePerUnit  int64
	UnitsPerPrice int64 // Legacy field name: pixelsPerUnit; live/fixed use one billable unit.
}

func DecodePrice

func DecodePrice(data []byte) (PriceInfo, error)

type SegData

type SegData struct {
	ManifestID, Hash, Signature []byte
	Auth                        AuthToken
}

func DecodeSegData

func DecodeSegData(data []byte) (SegData, error)

type TicketParams

type TicketParams struct {
	Recipient, FaceValue, WinProb, RecipientRandHash, Seed, ExpirationBlock []byte
	Expiration                                                              ExpirationParams
}

func DecodeTicketParams

func DecodeTicketParams(data []byte) (TicketParams, error)

type TicketPayerParams

type TicketPayerParams struct {
	TicketNonce uint32
	Sig         []byte
}

Jump to

Keyboard shortcuts

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