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.RingCache
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.
Click to show internal directories.
Click to hide internal directories.