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