keystore

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(cc grpc.ClientConnInterface) *Client

func (Client) Accounts

func (k Client) Accounts(ctx context.Context) ([]string, error)

func (Client) Sign

func (k Client) Sign(ctx context.Context, account string, data []byte) ([]byte, error)

type Server

type Server struct {
	pb.UnimplementedKeystoreServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(impl core.Keystore) *Server

func (Server) Accounts

func (s Server) Accounts(ctx context.Context, req *emptypb.Empty) (*pb.AccountsReply, error)

func (Server) Sign

func (s Server) Sign(ctx context.Context, req *pb.SignRequest) (*pb.SignReply, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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