networkclient

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitiatorClientAuth

type InitiatorClientAuth struct {
	Wpbe         *WpbeAuth     `json:"Wpbe,omitempty"`
	NetworkAdmin *NetworkAdmin `json:"NetworkAdmin,omitempty"`
}

InitiatorClientAuth holds the authentication information for the initiator client. It can be either WpbeAuth or NetworkAdmin.

type InitiatorClientRequest

type InitiatorClientRequest struct {
	ClientAuth *InitiatorClientAuth   `json:"client_auth"`
	WpReq      *wp_requests.WpRequest `json:"wp_req"`
}

InitiatorClientRequest holds the request structure for the initiator client. It includes the authentication information and the actual request payload.

func NewInitiatorClientRequest

func NewInitiatorClientRequest(wpReq *wp_requests.WpRequest, clientAuth *InitiatorClientAuth) InitiatorClientRequest

NewInitiatorClientRequest creates a new instance of InitiatorClientRequest with the provided request payload and authentication information.

- wpReq: The actual request payload.

- clientAuth: The authentication information for the initiator client.

Returns the created InitiatorClientRequest instance.

type NetworkAdmin

type NetworkAdmin struct {
	AdminSig string `json:"admin_sig"`
}

NetworkAdmin holds the signature for the network admin. It is required to verify admin actions: add/remove wallet provider.

type NetworkNode

type NetworkNode struct {
	Endpoint    url.URL               `json:"endpoint"`
	Attestation types.NodeAttestation `json:"attestation"`
}

NetworkNode represents a node in the network

func ParseNetworkNodesFromEnv

func ParseNetworkNodesFromEnv() ([]NetworkNode, error)

Utility function to parse NETWORK_NODES environment variable

func (*NetworkNode) UnmarshalJSON

func (n *NetworkNode) UnmarshalJSON(data []byte) error

type WpbeAuth

type WpbeAuth struct {
	APIKey string `json:"api_key"`
	WPSig  string `json:"wp_sig"`
}

WpbeAuth holds the API key and signature for the wallet provider. It is required to verify requests from the wallet provider.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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