Documentation ¶
Index ¶
- type AuthClient
- func (client *AuthClient) Close() error
- func (client *AuthClient) GetAuthNonce(ctx context.Context, in *authtypes.GetAuthNonceRequest, ...) (*authtypes.GetAuthNonceResponse, error)
- func (client *AuthClient) UpdateUserPublicKey(ctx context.Context, in *authtypes.UpdateUserPublicKeyRequest, ...) (*authtypes.UpdateUserPublicKeyResponse, error)
- func (client *AuthClient) VerifyOffChainSignature(ctx context.Context, in *authtypes.VerifyOffChainSignatureRequest, ...) (*authtypes.VerifyOffChainSignatureResponse, error)
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 ¶
func (client *AuthClient) GetAuthNonce(ctx context.Context, in *authtypes.GetAuthNonceRequest, opts ...grpc.CallOption) (*authtypes.GetAuthNonceResponse, error)
GetAuthNonce get the auth nonce for which the Dapp or client can generate EDDSA key pairs.
func (*AuthClient) UpdateUserPublicKey ¶
func (client *AuthClient) UpdateUserPublicKey(ctx context.Context, in *authtypes.UpdateUserPublicKeyRequest, opts ...grpc.CallOption) (*authtypes.UpdateUserPublicKeyResponse, error)
UpdateUserPublicKey updates the user public key once the Dapp or client generates the EDDSA key pairs.
func (*AuthClient) VerifyOffChainSignature ¶
func (client *AuthClient) VerifyOffChainSignature(ctx context.Context, in *authtypes.VerifyOffChainSignatureRequest, opts ...grpc.CallOption) (*authtypes.VerifyOffChainSignatureResponse, error)
VerifyOffChainSignature verifies the signature signed by user's EDDSA private key.
Click to show internal directories.
Click to hide internal directories.