package networkclient
import "github.com/silence-laboratories/wallet-provider-go-sdk/networkclient"
Index
- type InitiatorClientAuth
- type InitiatorClientRequest
- type NetworkAdmin
- type NetworkNode
- type WpbeAuth
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
| auth | |
| types | |
| wp_requests | |
| wp_responses |