Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterSignerServer(s grpc.ServiceRegistrar, srv SignerServer)
- type PublicKeyRequest
- type PublicKeyResponse
- type SignProofOfPossessionRequest
- func (*SignProofOfPossessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignProofOfPossessionRequest) GetMessage() []byte
- func (*SignProofOfPossessionRequest) ProtoMessage()
- func (x *SignProofOfPossessionRequest) ProtoReflect() protoreflect.Message
- func (x *SignProofOfPossessionRequest) Reset()
- func (x *SignProofOfPossessionRequest) String() string
- type SignProofOfPossessionResponse
- func (*SignProofOfPossessionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SignProofOfPossessionResponse) GetSignature() []byte
- func (*SignProofOfPossessionResponse) ProtoMessage()
- func (x *SignProofOfPossessionResponse) ProtoReflect() protoreflect.Message
- func (x *SignProofOfPossessionResponse) Reset()
- func (x *SignProofOfPossessionResponse) String() string
- type SignRequest
- type SignResponse
- type SignerClient
- type SignerServer
- type UnimplementedSignerServer
- func (UnimplementedSignerServer) PublicKey(context.Context, *PublicKeyRequest) (*PublicKeyResponse, error)
- func (UnimplementedSignerServer) Sign(context.Context, *SignRequest) (*SignResponse, error)
- func (UnimplementedSignerServer) SignProofOfPossession(context.Context, *SignProofOfPossessionRequest) (*SignProofOfPossessionResponse, error)
- type UnsafeSignerServer
Constants ¶
const ( Signer_PublicKey_FullMethodName = "/signer.Signer/PublicKey" Signer_Sign_FullMethodName = "/signer.Signer/Sign" Signer_SignProofOfPossession_FullMethodName = "/signer.Signer/SignProofOfPossession" )
Variables ¶
var File_signer_signer_proto protoreflect.FileDescriptor
var Signer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "signer.Signer", HandlerType: (*SignerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PublicKey", Handler: _Signer_PublicKey_Handler, }, { MethodName: "Sign", Handler: _Signer_Sign_Handler, }, { MethodName: "SignProofOfPossession", Handler: _Signer_SignProofOfPossession_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "signer/signer.proto", }
Signer_ServiceDesc is the grpc.ServiceDesc for Signer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSignerServer ¶
func RegisterSignerServer(s grpc.ServiceRegistrar, srv SignerServer)
Types ¶
type PublicKeyRequest ¶
type PublicKeyRequest struct {
// contains filtered or unexported fields
}
func (*PublicKeyRequest) Descriptor
deprecated
func (*PublicKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use PublicKeyRequest.ProtoReflect.Descriptor instead.
func (*PublicKeyRequest) ProtoMessage ¶
func (*PublicKeyRequest) ProtoMessage()
func (*PublicKeyRequest) ProtoReflect ¶
func (x *PublicKeyRequest) ProtoReflect() protoreflect.Message
func (*PublicKeyRequest) Reset ¶
func (x *PublicKeyRequest) Reset()
func (*PublicKeyRequest) String ¶
func (x *PublicKeyRequest) String() string
type PublicKeyResponse ¶
type PublicKeyResponse struct { PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // contains filtered or unexported fields }
func (*PublicKeyResponse) Descriptor
deprecated
func (*PublicKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use PublicKeyResponse.ProtoReflect.Descriptor instead.
func (*PublicKeyResponse) GetPublicKey ¶
func (x *PublicKeyResponse) GetPublicKey() []byte
func (*PublicKeyResponse) ProtoMessage ¶
func (*PublicKeyResponse) ProtoMessage()
func (*PublicKeyResponse) ProtoReflect ¶
func (x *PublicKeyResponse) ProtoReflect() protoreflect.Message
func (*PublicKeyResponse) Reset ¶
func (x *PublicKeyResponse) Reset()
func (*PublicKeyResponse) String ¶
func (x *PublicKeyResponse) String() string
type SignProofOfPossessionRequest ¶
type SignProofOfPossessionRequest struct { Message []byte `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*SignProofOfPossessionRequest) Descriptor
deprecated
func (*SignProofOfPossessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignProofOfPossessionRequest.ProtoReflect.Descriptor instead.
func (*SignProofOfPossessionRequest) GetMessage ¶
func (x *SignProofOfPossessionRequest) GetMessage() []byte
func (*SignProofOfPossessionRequest) ProtoMessage ¶
func (*SignProofOfPossessionRequest) ProtoMessage()
func (*SignProofOfPossessionRequest) ProtoReflect ¶
func (x *SignProofOfPossessionRequest) ProtoReflect() protoreflect.Message
func (*SignProofOfPossessionRequest) Reset ¶
func (x *SignProofOfPossessionRequest) Reset()
func (*SignProofOfPossessionRequest) String ¶
func (x *SignProofOfPossessionRequest) String() string
type SignProofOfPossessionResponse ¶
type SignProofOfPossessionResponse struct { Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*SignProofOfPossessionResponse) Descriptor
deprecated
func (*SignProofOfPossessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignProofOfPossessionResponse.ProtoReflect.Descriptor instead.
func (*SignProofOfPossessionResponse) GetSignature ¶
func (x *SignProofOfPossessionResponse) GetSignature() []byte
func (*SignProofOfPossessionResponse) ProtoMessage ¶
func (*SignProofOfPossessionResponse) ProtoMessage()
func (*SignProofOfPossessionResponse) ProtoReflect ¶
func (x *SignProofOfPossessionResponse) ProtoReflect() protoreflect.Message
func (*SignProofOfPossessionResponse) Reset ¶
func (x *SignProofOfPossessionResponse) Reset()
func (*SignProofOfPossessionResponse) String ¶
func (x *SignProofOfPossessionResponse) String() string
type SignRequest ¶
type SignRequest struct { Message []byte `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*SignRequest) Descriptor
deprecated
func (*SignRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignRequest.ProtoReflect.Descriptor instead.
func (*SignRequest) GetMessage ¶
func (x *SignRequest) GetMessage() []byte
func (*SignRequest) ProtoMessage ¶
func (*SignRequest) ProtoMessage()
func (*SignRequest) ProtoReflect ¶
func (x *SignRequest) ProtoReflect() protoreflect.Message
func (*SignRequest) Reset ¶
func (x *SignRequest) Reset()
func (*SignRequest) String ¶
func (x *SignRequest) String() string
type SignResponse ¶
type SignResponse struct { Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*SignResponse) Descriptor
deprecated
func (*SignResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignResponse.ProtoReflect.Descriptor instead.
func (*SignResponse) GetSignature ¶
func (x *SignResponse) GetSignature() []byte
func (*SignResponse) ProtoMessage ¶
func (*SignResponse) ProtoMessage()
func (*SignResponse) ProtoReflect ¶
func (x *SignResponse) ProtoReflect() protoreflect.Message
func (*SignResponse) Reset ¶
func (x *SignResponse) Reset()
func (*SignResponse) String ¶
func (x *SignResponse) String() string
type SignerClient ¶
type SignerClient interface { PublicKey(ctx context.Context, in *PublicKeyRequest, opts ...grpc.CallOption) (*PublicKeyResponse, error) Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error) SignProofOfPossession(ctx context.Context, in *SignProofOfPossessionRequest, opts ...grpc.CallOption) (*SignProofOfPossessionResponse, error) }
SignerClient is the client API for Signer service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSignerClient ¶
func NewSignerClient(cc grpc.ClientConnInterface) SignerClient
type SignerServer ¶
type SignerServer interface { PublicKey(context.Context, *PublicKeyRequest) (*PublicKeyResponse, error) Sign(context.Context, *SignRequest) (*SignResponse, error) SignProofOfPossession(context.Context, *SignProofOfPossessionRequest) (*SignProofOfPossessionResponse, error) // contains filtered or unexported methods }
SignerServer is the server API for Signer service. All implementations must embed UnimplementedSignerServer for forward compatibility
type UnimplementedSignerServer ¶
type UnimplementedSignerServer struct { }
UnimplementedSignerServer must be embedded to have forward compatible implementations.
func (UnimplementedSignerServer) PublicKey ¶
func (UnimplementedSignerServer) PublicKey(context.Context, *PublicKeyRequest) (*PublicKeyResponse, error)
func (UnimplementedSignerServer) Sign ¶
func (UnimplementedSignerServer) Sign(context.Context, *SignRequest) (*SignResponse, error)
func (UnimplementedSignerServer) SignProofOfPossession ¶
func (UnimplementedSignerServer) SignProofOfPossession(context.Context, *SignProofOfPossessionRequest) (*SignProofOfPossessionResponse, error)
type UnsafeSignerServer ¶
type UnsafeSignerServer interface {
// contains filtered or unexported methods
}
UnsafeSignerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SignerServer will result in compilation errors.