client

package
v0.2.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthClient

type AuthClient struct {
	Address string
	Conn    *grpc.ClientConn
	Auth    types.AuthServiceClient
}

AuthClient is an auth server gRPC service client wrapper

func NewAuthClient

func NewAuthClient(address string) (*AuthClient, error)

NewAuthClient return a AuthClient instance

func (*AuthClient) Close

func (client *AuthClient) Close() error

Close the Auth server gPRC connection

func (*AuthClient) GetAuthNonce

GetAuthNonce get the auth nonce for which the Dapp or client can generate EDDSA key pairs.

func (*AuthClient) UpdateUserPublicKey

UpdateUserPublicKey updates the user public key once the Dapp or client generates the EDDSA key pairs.

func (*AuthClient) VerifyOffChainSignature

VerifyOffChainSignature verifies the signature signed by user's EDDSA private key.

Jump to

Keyboard shortcuts

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