Documentation ¶
Index ¶
- type KeyManagementServer
- func (s *KeyManagementServer) CreateKey(ctx context.Context, req *pb.CreateKeyRequest) (*pb.PublicKey, error)
- func (s *KeyManagementServer) DeleteKey(ctx context.Context, keyID *pb.KeyID) (*pb.Void, error)
- func (s *KeyManagementServer) GetKeyInfo(ctx context.Context, keyID *pb.KeyID) (*pb.GetKeyInfoResponse, error)
- type SignerServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyManagementServer ¶
type KeyManagementServer struct {
CryptoServices signer.CryptoServiceIndex
}
KeyManagementServer implements the KeyManagementServer grpc interface
func (*KeyManagementServer) CreateKey ¶
func (s *KeyManagementServer) CreateKey(ctx context.Context, req *pb.CreateKeyRequest) (*pb.PublicKey, error)
CreateKey returns a PublicKey created using KeyManagementServer's SigningService
func (*KeyManagementServer) GetKeyInfo ¶
func (s *KeyManagementServer) GetKeyInfo(ctx context.Context, keyID *pb.KeyID) (*pb.GetKeyInfoResponse, error)
GetKeyInfo returns they PublicKey associated with a KeyID
type SignerServer ¶
type SignerServer struct {
CryptoServices signer.CryptoServiceIndex
}
SignerServer implements the SignerServer grpc interface
func (*SignerServer) Sign ¶
func (s *SignerServer) Sign(ctx context.Context, sr *pb.SignatureRequest) (*pb.Signature, error)
Sign signs a message and returns the signature using a private key associate with the KeyID from the SignatureRequest
Click to show internal directories.
Click to hide internal directories.