wp_client

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 WalletProviderClientConn

type WalletProviderClientConn struct {
	// contains filtered or unexported fields
}

func NewWalletProviderClientConn

func NewWalletProviderClientConn(conn *websocket.Conn) *WalletProviderClientConn

func (*WalletProviderClientConn) ListenToAddEphKey

func (wc *WalletProviderClientConn) ListenToAddEphKey() (*wp_requests.AddEphKeyRequest, error)

ListenToAddEphKey reads, parses, and returns the AddEphKey payload.

func (*WalletProviderClientConn) ListenToKeygen

func (wc *WalletProviderClientConn) ListenToKeygen() ([]wp_requests.KeygenOpts, error)

ListenToKeygen reads, parses, and returns the Keygen payload.

func (*WalletProviderClientConn) ListenToRevokeEphKey

func (wc *WalletProviderClientConn) ListenToRevokeEphKey() (*wp_requests.RevokeEphKeyRequest, error)

ListenToRevokeEphKey reads, parses, and returns the RevokeEphKey payload.

func (*WalletProviderClientConn) ListenToSign

func (wc *WalletProviderClientConn) ListenToSign() (*wp_requests.SignOpts, error)

ListenToSign reads, parses, and returns the Sign payload.

func (*WalletProviderClientConn) Next

func (wc *WalletProviderClientConn) Next() (string, error)

Reads the next string message of WP client from the WebSocket connection.

func (*WalletProviderClientConn) RequestUserSignatures

func (wc *WalletProviderClientConn) RequestUserSignatures(
	finalChallenge string,
) (string, error)

func (*WalletProviderClientConn) Send

func (wc *WalletProviderClientConn) Send(msg string) error

Sends a string message (websocket.TextMessage) over the WebSocket connection back to WP client.

Jump to

Keyboard shortcuts

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