relay_authenticator

package
v0.1.14-dev3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRelayAuthenticatorInvalidSession                 = sdkerrors.Register(codespace, 1, "invalid session in relayer request")
	ErrRelayAuthenticatorInvalidSessionSupplier         = sdkerrors.Register(codespace, 2, "supplier does not belong to session")
	ErrRelayAuthenticatorUndefinedSigningKeyNames       = sdkerrors.Register(codespace, 3, "supplier signing key names are undefined")
	ErrRelayAuthenticatorInvalidRelayRequest            = sdkerrors.Register(codespace, 4, "invalid relay request")
	ErrRelayAuthenticatorInvalidRelayResponse           = sdkerrors.Register(codespace, 5, "invalid relay response")
	ErrRelayAuthenticatorMissingSupplierOperatorAddress = sdkerrors.Register(codespace, 6, "supplier operator address is missing")
)

Functions

func NewRelayAuthenticator

func NewRelayAuthenticator(
	deps depinject.Config,
	opts ...relayer.RelayAuthenticatorOption,
) (relayer.RelayAuthenticator, error)

NewRelayAuthenticator creates a new relay authenticator with the given dependencies and options.

Required dependencies:

  • polylog.Logger
  • keyring.Keyring
  • client.SessionQueryClient
  • client.SharedQueryClient
  • client.BlockClient
  • crypto.RingClient

func WithSigningKeyNames

func WithSigningKeyNames(keyNames []string) relayer.RelayAuthenticatorOption

WithSigningKeyNames sets the signing key names used by the relay authenticator to sign relay responses.

Types

This section is empty.

Jump to

Keyboard shortcuts

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