Documentation ¶
Index ¶
- Variables
- func RegisterCloudMPCServer(s grpc.ServiceRegistrar, srv CloudMPCServer)
- type CloudMPCClient
- type CloudMPCServer
- type CreateKeyRequest
- type CreateKeyResponse
- func (*CreateKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateKeyResponse) GetKeyId() string
- func (x *CreateKeyResponse) GetX() string
- func (x *CreateKeyResponse) GetY() string
- func (*CreateKeyResponse) ProtoMessage()
- func (x *CreateKeyResponse) ProtoReflect() protoreflect.Message
- func (x *CreateKeyResponse) Reset()
- func (x *CreateKeyResponse) String() string
- type DescribeKeyRequest
- func (*DescribeKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DescribeKeyRequest) GetKeyId() string
- func (*DescribeKeyRequest) ProtoMessage()
- func (x *DescribeKeyRequest) ProtoReflect() protoreflect.Message
- func (x *DescribeKeyRequest) Reset()
- func (x *DescribeKeyRequest) String() string
- type DescribeKeyResponse
- func (*DescribeKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DescribeKeyResponse) GetKeyId() string
- func (x *DescribeKeyResponse) GetX() string
- func (x *DescribeKeyResponse) GetY() string
- func (*DescribeKeyResponse) ProtoMessage()
- func (x *DescribeKeyResponse) ProtoReflect() protoreflect.Message
- func (x *DescribeKeyResponse) Reset()
- func (x *DescribeKeyResponse) String() string
- type KeyType
- type SignRequest
- func (*SignRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignRequest) GetKeyId() string
- func (x *SignRequest) GetMessage() []byte
- func (x *SignRequest) GetSigningAlgo() SigningAlgo
- func (*SignRequest) ProtoMessage()
- func (x *SignRequest) ProtoReflect() protoreflect.Message
- func (x *SignRequest) Reset()
- func (x *SignRequest) String() string
- type SignResponse
- func (*SignResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SignResponse) GetEdDSASig() string
- func (x *SignResponse) GetR() string
- func (x *SignResponse) GetS() string
- func (*SignResponse) ProtoMessage()
- func (x *SignResponse) ProtoReflect() protoreflect.Message
- func (x *SignResponse) Reset()
- func (x *SignResponse) String() string
- type SigningAlgo
- func (SigningAlgo) Descriptor() protoreflect.EnumDescriptor
- func (x SigningAlgo) Enum() *SigningAlgo
- func (SigningAlgo) EnumDescriptor() ([]byte, []int)deprecated
- func (x SigningAlgo) Number() protoreflect.EnumNumber
- func (x SigningAlgo) String() string
- func (SigningAlgo) Type() protoreflect.EnumType
- type UnimplementedCloudMPCServer
- func (UnimplementedCloudMPCServer) CreateKey(context.Context, *CreateKeyRequest) (*CreateKeyResponse, error)
- func (UnimplementedCloudMPCServer) DescribeKey(context.Context, *DescribeKeyRequest) (*DescribeKeyResponse, error)
- func (UnimplementedCloudMPCServer) Sign(context.Context, *SignRequest) (*SignResponse, error)
- type UnsafeCloudMPCServer
Constants ¶
This section is empty.
Variables ¶
var ( KeyType_name = map[int32]string{ 0: "KEYTYPE_ECC_SECP256K1", 1: "KEYTYPE_ECC_CURVE25519", } KeyType_value = map[string]int32{ "KEYTYPE_ECC_SECP256K1": 0, "KEYTYPE_ECC_CURVE25519": 1, } )
Enum value maps for KeyType.
var ( SigningAlgo_name = map[int32]string{ 0: "SIGNINGALGO_ECDSA", 1: "SIGNINGALGO_EDDSA", } SigningAlgo_value = map[string]int32{ "SIGNINGALGO_ECDSA": 0, "SIGNINGALGO_EDDSA": 1, } )
Enum value maps for SigningAlgo.
var CloudMPC_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mpcvault.cloudmpc.v1.CloudMPC", HandlerType: (*CloudMPCServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateKey", Handler: _CloudMPC_CreateKey_Handler, }, { MethodName: "DescribeKey", Handler: _CloudMPC_DescribeKey_Handler, }, { MethodName: "Sign", Handler: _CloudMPC_Sign_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "mpcvault/cloudmpc/v1/cloudmpc.proto", }
CloudMPC_ServiceDesc is the grpc.ServiceDesc for CloudMPC service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_mpcvault_cloudmpc_v1_cloudmpc_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCloudMPCServer ¶
func RegisterCloudMPCServer(s grpc.ServiceRegistrar, srv CloudMPCServer)
Types ¶
type CloudMPCClient ¶
type CloudMPCClient interface { CreateKey(ctx context.Context, in *CreateKeyRequest, opts ...grpc.CallOption) (*CreateKeyResponse, error) DescribeKey(ctx context.Context, in *DescribeKeyRequest, opts ...grpc.CallOption) (*DescribeKeyResponse, error) Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error) }
CloudMPCClient is the client API for CloudMPC 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 NewCloudMPCClient ¶
func NewCloudMPCClient(cc grpc.ClientConnInterface) CloudMPCClient
type CloudMPCServer ¶
type CloudMPCServer interface { CreateKey(context.Context, *CreateKeyRequest) (*CreateKeyResponse, error) DescribeKey(context.Context, *DescribeKeyRequest) (*DescribeKeyResponse, error) Sign(context.Context, *SignRequest) (*SignResponse, error) // contains filtered or unexported methods }
CloudMPCServer is the server API for CloudMPC service. All implementations must embed UnimplementedCloudMPCServer for forward compatibility
type CreateKeyRequest ¶
type CreateKeyRequest struct { KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,proto3,enum=mpcvault.cloudmpc.v1.KeyType" json:"key_type,omitempty"` // contains filtered or unexported fields }
func (*CreateKeyRequest) Descriptor
deprecated
func (*CreateKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateKeyRequest.ProtoReflect.Descriptor instead.
func (*CreateKeyRequest) GetKeyType ¶
func (x *CreateKeyRequest) GetKeyType() KeyType
func (*CreateKeyRequest) ProtoMessage ¶
func (*CreateKeyRequest) ProtoMessage()
func (*CreateKeyRequest) ProtoReflect ¶
func (x *CreateKeyRequest) ProtoReflect() protoreflect.Message
func (*CreateKeyRequest) Reset ¶
func (x *CreateKeyRequest) Reset()
func (*CreateKeyRequest) String ¶
func (x *CreateKeyRequest) String() string
type CreateKeyResponse ¶
type CreateKeyResponse struct { KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` X string `protobuf:"bytes,2,opt,name=x,proto3" json:"x,omitempty"` // X component of an EC public key Y string `protobuf:"bytes,3,opt,name=y,proto3" json:"y,omitempty"` // Y component of an EC public key // contains filtered or unexported fields }
func (*CreateKeyResponse) Descriptor
deprecated
func (*CreateKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateKeyResponse.ProtoReflect.Descriptor instead.
func (*CreateKeyResponse) GetKeyId ¶
func (x *CreateKeyResponse) GetKeyId() string
func (*CreateKeyResponse) GetX ¶
func (x *CreateKeyResponse) GetX() string
func (*CreateKeyResponse) GetY ¶
func (x *CreateKeyResponse) GetY() string
func (*CreateKeyResponse) ProtoMessage ¶
func (*CreateKeyResponse) ProtoMessage()
func (*CreateKeyResponse) ProtoReflect ¶
func (x *CreateKeyResponse) ProtoReflect() protoreflect.Message
func (*CreateKeyResponse) Reset ¶
func (x *CreateKeyResponse) Reset()
func (*CreateKeyResponse) String ¶
func (x *CreateKeyResponse) String() string
type DescribeKeyRequest ¶
type DescribeKeyRequest struct { KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` // contains filtered or unexported fields }
func (*DescribeKeyRequest) Descriptor
deprecated
func (*DescribeKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use DescribeKeyRequest.ProtoReflect.Descriptor instead.
func (*DescribeKeyRequest) GetKeyId ¶
func (x *DescribeKeyRequest) GetKeyId() string
func (*DescribeKeyRequest) ProtoMessage ¶
func (*DescribeKeyRequest) ProtoMessage()
func (*DescribeKeyRequest) ProtoReflect ¶
func (x *DescribeKeyRequest) ProtoReflect() protoreflect.Message
func (*DescribeKeyRequest) Reset ¶
func (x *DescribeKeyRequest) Reset()
func (*DescribeKeyRequest) String ¶
func (x *DescribeKeyRequest) String() string
type DescribeKeyResponse ¶
type DescribeKeyResponse struct { KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` X string `protobuf:"bytes,2,opt,name=x,proto3" json:"x,omitempty"` // X component of an EC public key Y string `protobuf:"bytes,3,opt,name=y,proto3" json:"y,omitempty"` // Y component of an EC public key // contains filtered or unexported fields }
func (*DescribeKeyResponse) Descriptor
deprecated
func (*DescribeKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use DescribeKeyResponse.ProtoReflect.Descriptor instead.
func (*DescribeKeyResponse) GetKeyId ¶
func (x *DescribeKeyResponse) GetKeyId() string
func (*DescribeKeyResponse) GetX ¶
func (x *DescribeKeyResponse) GetX() string
func (*DescribeKeyResponse) GetY ¶
func (x *DescribeKeyResponse) GetY() string
func (*DescribeKeyResponse) ProtoMessage ¶
func (*DescribeKeyResponse) ProtoMessage()
func (*DescribeKeyResponse) ProtoReflect ¶
func (x *DescribeKeyResponse) ProtoReflect() protoreflect.Message
func (*DescribeKeyResponse) Reset ¶
func (x *DescribeKeyResponse) Reset()
func (*DescribeKeyResponse) String ¶
func (x *DescribeKeyResponse) String() string
type KeyType ¶
type KeyType int32
func (KeyType) Descriptor ¶
func (KeyType) Descriptor() protoreflect.EnumDescriptor
func (KeyType) EnumDescriptor
deprecated
func (KeyType) Number ¶
func (x KeyType) Number() protoreflect.EnumNumber
func (KeyType) Type ¶
func (KeyType) Type() protoreflect.EnumType
type SignRequest ¶
type SignRequest struct { KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` SigningAlgo SigningAlgo `` /* 133-byte string literal not displayed */ Message []byte `protobuf:"bytes,3,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) GetKeyId ¶
func (x *SignRequest) GetKeyId() string
func (*SignRequest) GetMessage ¶
func (x *SignRequest) GetMessage() []byte
func (*SignRequest) GetSigningAlgo ¶
func (x *SignRequest) GetSigningAlgo() SigningAlgo
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 { R string `protobuf:"bytes,1,opt,name=r,proto3" json:"r,omitempty"` // r value for ECDSA S string `protobuf:"bytes,2,opt,name=s,proto3" json:"s,omitempty"` // s value for ECDSA EdDSASig string `protobuf:"bytes,3,opt,name=EdDSA_sig,json=EdDSASig,proto3" json:"EdDSA_sig,omitempty"` // EdDSA signature {R, s} // contains filtered or unexported fields }
func (*SignResponse) Descriptor
deprecated
func (*SignResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignResponse.ProtoReflect.Descriptor instead.
func (*SignResponse) GetEdDSASig ¶
func (x *SignResponse) GetEdDSASig() string
func (*SignResponse) GetR ¶
func (x *SignResponse) GetR() string
func (*SignResponse) GetS ¶
func (x *SignResponse) GetS() string
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 SigningAlgo ¶
type SigningAlgo int32
const ( SigningAlgo_SIGNINGALGO_ECDSA SigningAlgo = 0 SigningAlgo_SIGNINGALGO_EDDSA SigningAlgo = 1 )
func (SigningAlgo) Descriptor ¶
func (SigningAlgo) Descriptor() protoreflect.EnumDescriptor
func (SigningAlgo) Enum ¶
func (x SigningAlgo) Enum() *SigningAlgo
func (SigningAlgo) EnumDescriptor
deprecated
func (SigningAlgo) EnumDescriptor() ([]byte, []int)
Deprecated: Use SigningAlgo.Descriptor instead.
func (SigningAlgo) Number ¶
func (x SigningAlgo) Number() protoreflect.EnumNumber
func (SigningAlgo) String ¶
func (x SigningAlgo) String() string
func (SigningAlgo) Type ¶
func (SigningAlgo) Type() protoreflect.EnumType
type UnimplementedCloudMPCServer ¶
type UnimplementedCloudMPCServer struct { }
UnimplementedCloudMPCServer must be embedded to have forward compatible implementations.
func (UnimplementedCloudMPCServer) CreateKey ¶
func (UnimplementedCloudMPCServer) CreateKey(context.Context, *CreateKeyRequest) (*CreateKeyResponse, error)
func (UnimplementedCloudMPCServer) DescribeKey ¶
func (UnimplementedCloudMPCServer) DescribeKey(context.Context, *DescribeKeyRequest) (*DescribeKeyResponse, error)
func (UnimplementedCloudMPCServer) Sign ¶
func (UnimplementedCloudMPCServer) Sign(context.Context, *SignRequest) (*SignResponse, error)
type UnsafeCloudMPCServer ¶
type UnsafeCloudMPCServer interface {
// contains filtered or unexported methods
}
UnsafeCloudMPCServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CloudMPCServer will result in compilation errors.