mls_validationv1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ValidationApi_ValidateKeyPackages_FullMethodName                 = "/xmtp.mls_validation.v1.ValidationApi/ValidateKeyPackages"
	ValidationApi_ValidateGroupMessages_FullMethodName               = "/xmtp.mls_validation.v1.ValidationApi/ValidateGroupMessages"
	ValidationApi_GetAssociationState_FullMethodName                 = "/xmtp.mls_validation.v1.ValidationApi/GetAssociationState"
	ValidationApi_ValidateInboxIdKeyPackages_FullMethodName          = "/xmtp.mls_validation.v1.ValidationApi/ValidateInboxIdKeyPackages"
	ValidationApi_ValidateInboxIds_FullMethodName                    = "/xmtp.mls_validation.v1.ValidationApi/ValidateInboxIds"
	ValidationApi_VerifySmartContractWalletSignatures_FullMethodName = "/xmtp.mls_validation.v1.ValidationApi/VerifySmartContractWalletSignatures"
)

Variables

View Source
var File_mls_validation_v1_service_proto protoreflect.FileDescriptor
View Source
var ValidationApi_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "xmtp.mls_validation.v1.ValidationApi",
	HandlerType: (*ValidationApiServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ValidateKeyPackages",
			Handler:    _ValidationApi_ValidateKeyPackages_Handler,
		},
		{
			MethodName: "ValidateGroupMessages",
			Handler:    _ValidationApi_ValidateGroupMessages_Handler,
		},
		{
			MethodName: "GetAssociationState",
			Handler:    _ValidationApi_GetAssociationState_Handler,
		},
		{
			MethodName: "ValidateInboxIdKeyPackages",
			Handler:    _ValidationApi_ValidateInboxIdKeyPackages_Handler,
		},
		{
			MethodName: "ValidateInboxIds",
			Handler:    _ValidationApi_ValidateInboxIds_Handler,
		},
		{
			MethodName: "VerifySmartContractWalletSignatures",
			Handler:    _ValidationApi_VerifySmartContractWalletSignatures_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "mls_validation/v1/service.proto",
}

ValidationApi_ServiceDesc is the grpc.ServiceDesc for ValidationApi service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterValidationApiServer

func RegisterValidationApiServer(s grpc.ServiceRegistrar, srv ValidationApiServer)

Types

type GetAssociationStateRequest

type GetAssociationStateRequest struct {

	// List of identity updates
	OldUpdates []*associations.IdentityUpdate `protobuf:"bytes,1,rep,name=old_updates,json=oldUpdates,proto3" json:"old_updates,omitempty"`
	NewUpdates []*associations.IdentityUpdate `protobuf:"bytes,2,rep,name=new_updates,json=newUpdates,proto3" json:"new_updates,omitempty"`
	// contains filtered or unexported fields
}

Request to get a final association state for identity updates

func (*GetAssociationStateRequest) Descriptor deprecated

func (*GetAssociationStateRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAssociationStateRequest.ProtoReflect.Descriptor instead.

func (*GetAssociationStateRequest) GetNewUpdates

func (*GetAssociationStateRequest) GetOldUpdates

func (*GetAssociationStateRequest) ProtoMessage

func (*GetAssociationStateRequest) ProtoMessage()

func (*GetAssociationStateRequest) ProtoReflect

func (*GetAssociationStateRequest) Reset

func (x *GetAssociationStateRequest) Reset()

func (*GetAssociationStateRequest) String

func (x *GetAssociationStateRequest) String() string

type GetAssociationStateResponse

type GetAssociationStateResponse struct {
	AssociationState *associations.AssociationState     `protobuf:"bytes,1,opt,name=association_state,json=associationState,proto3" json:"association_state,omitempty"`
	StateDiff        *associations.AssociationStateDiff `protobuf:"bytes,2,opt,name=state_diff,json=stateDiff,proto3" json:"state_diff,omitempty"`
	// contains filtered or unexported fields
}

Response to GetAssociationStateRequest, containing the final association state for an InboxID

func (*GetAssociationStateResponse) Descriptor deprecated

func (*GetAssociationStateResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAssociationStateResponse.ProtoReflect.Descriptor instead.

func (*GetAssociationStateResponse) GetAssociationState

func (x *GetAssociationStateResponse) GetAssociationState() *associations.AssociationState

func (*GetAssociationStateResponse) GetStateDiff

func (*GetAssociationStateResponse) ProtoMessage

func (*GetAssociationStateResponse) ProtoMessage()

func (*GetAssociationStateResponse) ProtoReflect

func (*GetAssociationStateResponse) Reset

func (x *GetAssociationStateResponse) Reset()

func (*GetAssociationStateResponse) String

func (x *GetAssociationStateResponse) String() string

type UnimplementedValidationApiServer

type UnimplementedValidationApiServer struct {
}

UnimplementedValidationApiServer must be embedded to have forward compatible implementations.

func (UnimplementedValidationApiServer) ValidateInboxIds

type UnsafeValidationApiServer

type UnsafeValidationApiServer interface {
	// contains filtered or unexported methods
}

UnsafeValidationApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ValidationApiServer will result in compilation errors.

type ValidateGroupMessagesRequest

type ValidateGroupMessagesRequest struct {
	GroupMessages []*ValidateGroupMessagesRequest_GroupMessage `protobuf:"bytes,1,rep,name=group_messages,json=groupMessages,proto3" json:"group_messages,omitempty"`
	// contains filtered or unexported fields
}

Contains a batch of serialized Group Messages

func (*ValidateGroupMessagesRequest) Descriptor deprecated

func (*ValidateGroupMessagesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ValidateGroupMessagesRequest.ProtoReflect.Descriptor instead.

func (*ValidateGroupMessagesRequest) GetGroupMessages

func (*ValidateGroupMessagesRequest) ProtoMessage

func (*ValidateGroupMessagesRequest) ProtoMessage()

func (*ValidateGroupMessagesRequest) ProtoReflect

func (*ValidateGroupMessagesRequest) Reset

func (x *ValidateGroupMessagesRequest) Reset()

func (*ValidateGroupMessagesRequest) String

type ValidateGroupMessagesRequest_GroupMessage

type ValidateGroupMessagesRequest_GroupMessage struct {
	GroupMessageBytesTlsSerialized []byte `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

Wrapper for each message

func (*ValidateGroupMessagesRequest_GroupMessage) Descriptor deprecated

func (*ValidateGroupMessagesRequest_GroupMessage) Descriptor() ([]byte, []int)

Deprecated: Use ValidateGroupMessagesRequest_GroupMessage.ProtoReflect.Descriptor instead.

func (*ValidateGroupMessagesRequest_GroupMessage) GetGroupMessageBytesTlsSerialized

func (x *ValidateGroupMessagesRequest_GroupMessage) GetGroupMessageBytesTlsSerialized() []byte

func (*ValidateGroupMessagesRequest_GroupMessage) ProtoMessage

func (*ValidateGroupMessagesRequest_GroupMessage) ProtoReflect

func (*ValidateGroupMessagesRequest_GroupMessage) Reset

func (*ValidateGroupMessagesRequest_GroupMessage) String

type ValidateGroupMessagesResponse

type ValidateGroupMessagesResponse struct {
	Responses []*ValidateGroupMessagesResponse_ValidationResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// contains filtered or unexported fields
}

Response to ValidateGroupMessagesRequest

func (*ValidateGroupMessagesResponse) Descriptor deprecated

func (*ValidateGroupMessagesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ValidateGroupMessagesResponse.ProtoReflect.Descriptor instead.

func (*ValidateGroupMessagesResponse) GetResponses

func (*ValidateGroupMessagesResponse) ProtoMessage

func (*ValidateGroupMessagesResponse) ProtoMessage()

func (*ValidateGroupMessagesResponse) ProtoReflect

func (*ValidateGroupMessagesResponse) Reset

func (x *ValidateGroupMessagesResponse) Reset()

func (*ValidateGroupMessagesResponse) String

type ValidateGroupMessagesResponse_ValidationResponse

type ValidateGroupMessagesResponse_ValidationResponse struct {
	IsOk         bool   `protobuf:"varint,1,opt,name=is_ok,json=isOk,proto3" json:"is_ok,omitempty"`
	ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	GroupId      string `protobuf:"bytes,3,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	// contains filtered or unexported fields
}

An individual response to one message

func (*ValidateGroupMessagesResponse_ValidationResponse) Descriptor deprecated

Deprecated: Use ValidateGroupMessagesResponse_ValidationResponse.ProtoReflect.Descriptor instead.

func (*ValidateGroupMessagesResponse_ValidationResponse) GetErrorMessage

func (*ValidateGroupMessagesResponse_ValidationResponse) GetGroupId

func (*ValidateGroupMessagesResponse_ValidationResponse) GetIsOk

func (*ValidateGroupMessagesResponse_ValidationResponse) ProtoMessage

func (*ValidateGroupMessagesResponse_ValidationResponse) ProtoReflect

func (*ValidateGroupMessagesResponse_ValidationResponse) Reset

func (*ValidateGroupMessagesResponse_ValidationResponse) String

type ValidateInboxIdKeyPackagesRequest

type ValidateInboxIdKeyPackagesRequest struct {
	KeyPackages []*ValidateInboxIdKeyPackagesRequest_KeyPackage `protobuf:"bytes,1,rep,name=key_packages,json=keyPackages,proto3" json:"key_packages,omitempty"`
	// contains filtered or unexported fields
}

Contains a batch of serialized Key Packages

func (*ValidateInboxIdKeyPackagesRequest) Descriptor deprecated

func (*ValidateInboxIdKeyPackagesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ValidateInboxIdKeyPackagesRequest.ProtoReflect.Descriptor instead.

func (*ValidateInboxIdKeyPackagesRequest) GetKeyPackages

func (*ValidateInboxIdKeyPackagesRequest) ProtoMessage

func (*ValidateInboxIdKeyPackagesRequest) ProtoMessage()

func (*ValidateInboxIdKeyPackagesRequest) ProtoReflect

func (*ValidateInboxIdKeyPackagesRequest) Reset

func (*ValidateInboxIdKeyPackagesRequest) String

type ValidateInboxIdKeyPackagesRequest_KeyPackage

type ValidateInboxIdKeyPackagesRequest_KeyPackage struct {
	KeyPackageBytesTlsSerialized []byte `` /* 151-byte string literal not displayed */
	IsInboxIdCredential          bool   `protobuf:"varint,2,opt,name=is_inbox_id_credential,json=isInboxIdCredential,proto3" json:"is_inbox_id_credential,omitempty"`
	// contains filtered or unexported fields
}

Wrapper for each key package

func (*ValidateInboxIdKeyPackagesRequest_KeyPackage) Descriptor deprecated

Deprecated: Use ValidateInboxIdKeyPackagesRequest_KeyPackage.ProtoReflect.Descriptor instead.

func (*ValidateInboxIdKeyPackagesRequest_KeyPackage) GetIsInboxIdCredential

func (x *ValidateInboxIdKeyPackagesRequest_KeyPackage) GetIsInboxIdCredential() bool

func (*ValidateInboxIdKeyPackagesRequest_KeyPackage) GetKeyPackageBytesTlsSerialized

func (x *ValidateInboxIdKeyPackagesRequest_KeyPackage) GetKeyPackageBytesTlsSerialized() []byte

func (*ValidateInboxIdKeyPackagesRequest_KeyPackage) ProtoMessage

func (*ValidateInboxIdKeyPackagesRequest_KeyPackage) ProtoReflect

func (*ValidateInboxIdKeyPackagesRequest_KeyPackage) Reset

func (*ValidateInboxIdKeyPackagesRequest_KeyPackage) String

type ValidateInboxIdKeyPackagesResponse

type ValidateInboxIdKeyPackagesResponse struct {
	Responses []*ValidateInboxIdKeyPackagesResponse_Response `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// contains filtered or unexported fields
}

Validates a Inbox-ID Key Package Type

func (*ValidateInboxIdKeyPackagesResponse) Descriptor deprecated

func (*ValidateInboxIdKeyPackagesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ValidateInboxIdKeyPackagesResponse.ProtoReflect.Descriptor instead.

func (*ValidateInboxIdKeyPackagesResponse) GetResponses

func (*ValidateInboxIdKeyPackagesResponse) ProtoMessage

func (*ValidateInboxIdKeyPackagesResponse) ProtoMessage()

func (*ValidateInboxIdKeyPackagesResponse) ProtoReflect

func (*ValidateInboxIdKeyPackagesResponse) Reset

func (*ValidateInboxIdKeyPackagesResponse) String

type ValidateInboxIdKeyPackagesResponse_Response

type ValidateInboxIdKeyPackagesResponse_Response struct {
	IsOk                  bool                    `protobuf:"varint,1,opt,name=is_ok,json=isOk,proto3" json:"is_ok,omitempty"`
	ErrorMessage          string                  `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	Credential            *identity.MlsCredential `protobuf:"bytes,3,opt,name=credential,proto3" json:"credential,omitempty"`
	InstallationPublicKey []byte                  `` /* 126-byte string literal not displayed */
	Expiration            uint64                  `protobuf:"varint,5,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// contains filtered or unexported fields
}

one response corresponding to information about one key package

func (*ValidateInboxIdKeyPackagesResponse_Response) Descriptor deprecated

Deprecated: Use ValidateInboxIdKeyPackagesResponse_Response.ProtoReflect.Descriptor instead.

func (*ValidateInboxIdKeyPackagesResponse_Response) GetCredential

func (*ValidateInboxIdKeyPackagesResponse_Response) GetErrorMessage

func (*ValidateInboxIdKeyPackagesResponse_Response) GetExpiration

func (*ValidateInboxIdKeyPackagesResponse_Response) GetInstallationPublicKey

func (x *ValidateInboxIdKeyPackagesResponse_Response) GetInstallationPublicKey() []byte

func (*ValidateInboxIdKeyPackagesResponse_Response) GetIsOk

func (*ValidateInboxIdKeyPackagesResponse_Response) ProtoMessage

func (*ValidateInboxIdKeyPackagesResponse_Response) ProtoReflect

func (*ValidateInboxIdKeyPackagesResponse_Response) Reset

func (*ValidateInboxIdKeyPackagesResponse_Response) String

type ValidateInboxIdsRequest

type ValidateInboxIdsRequest struct {

	// list of validation requests
	Requests []*ValidateInboxIdsRequest_ValidationRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	// contains filtered or unexported fields
}

Request to validate an InboxID with the backend service. Ensures an Inbox Id <> Installation key are valid.

func (*ValidateInboxIdsRequest) Descriptor deprecated

func (*ValidateInboxIdsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ValidateInboxIdsRequest.ProtoReflect.Descriptor instead.

func (*ValidateInboxIdsRequest) GetRequests

func (*ValidateInboxIdsRequest) ProtoMessage

func (*ValidateInboxIdsRequest) ProtoMessage()

func (*ValidateInboxIdsRequest) ProtoReflect

func (x *ValidateInboxIdsRequest) ProtoReflect() protoreflect.Message

func (*ValidateInboxIdsRequest) Reset

func (x *ValidateInboxIdsRequest) Reset()

func (*ValidateInboxIdsRequest) String

func (x *ValidateInboxIdsRequest) String() string

type ValidateInboxIdsRequest_ValidationRequest

type ValidateInboxIdsRequest_ValidationRequest struct {
	Credential            *identity.MlsCredential        `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"`
	InstallationPublicKey []byte                         `` /* 126-byte string literal not displayed */
	IdentityUpdates       []*associations.IdentityUpdate `protobuf:"bytes,3,rep,name=identity_updates,json=identityUpdates,proto3" json:"identity_updates,omitempty"`
	// contains filtered or unexported fields
}

a single validation request

func (*ValidateInboxIdsRequest_ValidationRequest) Descriptor deprecated

func (*ValidateInboxIdsRequest_ValidationRequest) Descriptor() ([]byte, []int)

Deprecated: Use ValidateInboxIdsRequest_ValidationRequest.ProtoReflect.Descriptor instead.

func (*ValidateInboxIdsRequest_ValidationRequest) GetCredential

func (*ValidateInboxIdsRequest_ValidationRequest) GetIdentityUpdates

func (*ValidateInboxIdsRequest_ValidationRequest) GetInstallationPublicKey

func (x *ValidateInboxIdsRequest_ValidationRequest) GetInstallationPublicKey() []byte

func (*ValidateInboxIdsRequest_ValidationRequest) ProtoMessage

func (*ValidateInboxIdsRequest_ValidationRequest) ProtoReflect

func (*ValidateInboxIdsRequest_ValidationRequest) Reset

func (*ValidateInboxIdsRequest_ValidationRequest) String

type ValidateInboxIdsResponse

type ValidateInboxIdsResponse struct {

	// List of validation responses
	Responses []*ValidateInboxIdsResponse_ValidationResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// contains filtered or unexported fields
}

Response to ValidateInboxIdRequest

func (*ValidateInboxIdsResponse) Descriptor deprecated

func (*ValidateInboxIdsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ValidateInboxIdsResponse.ProtoReflect.Descriptor instead.

func (*ValidateInboxIdsResponse) GetResponses

func (*ValidateInboxIdsResponse) ProtoMessage

func (*ValidateInboxIdsResponse) ProtoMessage()

func (*ValidateInboxIdsResponse) ProtoReflect

func (x *ValidateInboxIdsResponse) ProtoReflect() protoreflect.Message

func (*ValidateInboxIdsResponse) Reset

func (x *ValidateInboxIdsResponse) Reset()

func (*ValidateInboxIdsResponse) String

func (x *ValidateInboxIdsResponse) String() string

type ValidateInboxIdsResponse_ValidationResponse

type ValidateInboxIdsResponse_ValidationResponse struct {
	IsOk         bool   `protobuf:"varint,1,opt,name=is_ok,json=isOk,proto3" json:"is_ok,omitempty"`
	ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	InboxId      string `protobuf:"bytes,3,opt,name=inbox_id,json=inboxId,proto3" json:"inbox_id,omitempty"`
	// contains filtered or unexported fields
}

a single validation response

func (*ValidateInboxIdsResponse_ValidationResponse) Descriptor deprecated

Deprecated: Use ValidateInboxIdsResponse_ValidationResponse.ProtoReflect.Descriptor instead.

func (*ValidateInboxIdsResponse_ValidationResponse) GetErrorMessage

func (*ValidateInboxIdsResponse_ValidationResponse) GetInboxId

func (*ValidateInboxIdsResponse_ValidationResponse) GetIsOk

func (*ValidateInboxIdsResponse_ValidationResponse) ProtoMessage

func (*ValidateInboxIdsResponse_ValidationResponse) ProtoReflect

func (*ValidateInboxIdsResponse_ValidationResponse) Reset

func (*ValidateInboxIdsResponse_ValidationResponse) String

type ValidateKeyPackagesRequest

type ValidateKeyPackagesRequest struct {
	KeyPackages []*ValidateKeyPackagesRequest_KeyPackage `protobuf:"bytes,1,rep,name=key_packages,json=keyPackages,proto3" json:"key_packages,omitempty"`
	// contains filtered or unexported fields
}

Contains a batch of serialized Key Packages

func (*ValidateKeyPackagesRequest) Descriptor deprecated

func (*ValidateKeyPackagesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ValidateKeyPackagesRequest.ProtoReflect.Descriptor instead.

func (*ValidateKeyPackagesRequest) GetKeyPackages

func (*ValidateKeyPackagesRequest) ProtoMessage

func (*ValidateKeyPackagesRequest) ProtoMessage()

func (*ValidateKeyPackagesRequest) ProtoReflect

func (*ValidateKeyPackagesRequest) Reset

func (x *ValidateKeyPackagesRequest) Reset()

func (*ValidateKeyPackagesRequest) String

func (x *ValidateKeyPackagesRequest) String() string

type ValidateKeyPackagesRequest_KeyPackage

type ValidateKeyPackagesRequest_KeyPackage struct {
	KeyPackageBytesTlsSerialized []byte `` /* 151-byte string literal not displayed */
	IsInboxIdCredential          bool   `protobuf:"varint,2,opt,name=is_inbox_id_credential,json=isInboxIdCredential,proto3" json:"is_inbox_id_credential,omitempty"`
	// contains filtered or unexported fields
}

Wrapper for each key package

func (*ValidateKeyPackagesRequest_KeyPackage) Descriptor deprecated

func (*ValidateKeyPackagesRequest_KeyPackage) Descriptor() ([]byte, []int)

Deprecated: Use ValidateKeyPackagesRequest_KeyPackage.ProtoReflect.Descriptor instead.

func (*ValidateKeyPackagesRequest_KeyPackage) GetIsInboxIdCredential

func (x *ValidateKeyPackagesRequest_KeyPackage) GetIsInboxIdCredential() bool

func (*ValidateKeyPackagesRequest_KeyPackage) GetKeyPackageBytesTlsSerialized

func (x *ValidateKeyPackagesRequest_KeyPackage) GetKeyPackageBytesTlsSerialized() []byte

func (*ValidateKeyPackagesRequest_KeyPackage) ProtoMessage

func (*ValidateKeyPackagesRequest_KeyPackage) ProtoMessage()

func (*ValidateKeyPackagesRequest_KeyPackage) ProtoReflect

func (*ValidateKeyPackagesRequest_KeyPackage) Reset

func (*ValidateKeyPackagesRequest_KeyPackage) String

type ValidateKeyPackagesResponse

type ValidateKeyPackagesResponse struct {
	Responses []*ValidateKeyPackagesResponse_ValidationResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// contains filtered or unexported fields
}

Response to ValidateKeyPackagesRequest

func (*ValidateKeyPackagesResponse) Descriptor deprecated

func (*ValidateKeyPackagesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ValidateKeyPackagesResponse.ProtoReflect.Descriptor instead.

func (*ValidateKeyPackagesResponse) GetResponses

func (*ValidateKeyPackagesResponse) ProtoMessage

func (*ValidateKeyPackagesResponse) ProtoMessage()

func (*ValidateKeyPackagesResponse) ProtoReflect

func (*ValidateKeyPackagesResponse) Reset

func (x *ValidateKeyPackagesResponse) Reset()

func (*ValidateKeyPackagesResponse) String

func (x *ValidateKeyPackagesResponse) String() string

type ValidateKeyPackagesResponse_ValidationResponse

type ValidateKeyPackagesResponse_ValidationResponse struct {
	IsOk                    bool   `protobuf:"varint,1,opt,name=is_ok,json=isOk,proto3" json:"is_ok,omitempty"`
	ErrorMessage            string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	InstallationId          []byte `protobuf:"bytes,3,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"`
	AccountAddress          string `protobuf:"bytes,4,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"`
	CredentialIdentityBytes []byte `` /* 132-byte string literal not displayed */
	Expiration              uint64 `protobuf:"varint,6,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// contains filtered or unexported fields
}

An individual response to one key package

func (*ValidateKeyPackagesResponse_ValidationResponse) Descriptor deprecated

Deprecated: Use ValidateKeyPackagesResponse_ValidationResponse.ProtoReflect.Descriptor instead.

func (*ValidateKeyPackagesResponse_ValidationResponse) GetAccountAddress

func (*ValidateKeyPackagesResponse_ValidationResponse) GetCredentialIdentityBytes

func (x *ValidateKeyPackagesResponse_ValidationResponse) GetCredentialIdentityBytes() []byte

func (*ValidateKeyPackagesResponse_ValidationResponse) GetErrorMessage

func (*ValidateKeyPackagesResponse_ValidationResponse) GetExpiration

func (*ValidateKeyPackagesResponse_ValidationResponse) GetInstallationId

func (x *ValidateKeyPackagesResponse_ValidationResponse) GetInstallationId() []byte

func (*ValidateKeyPackagesResponse_ValidationResponse) GetIsOk

func (*ValidateKeyPackagesResponse_ValidationResponse) ProtoMessage

func (*ValidateKeyPackagesResponse_ValidationResponse) ProtoReflect

func (*ValidateKeyPackagesResponse_ValidationResponse) Reset

func (*ValidateKeyPackagesResponse_ValidationResponse) String

type ValidationApiClient

type ValidationApiClient interface {
	// Validates and parses a batch of key packages and returns relevant details
	ValidateKeyPackages(ctx context.Context, in *ValidateKeyPackagesRequest, opts ...grpc.CallOption) (*ValidateKeyPackagesResponse, error)
	// Validates and parses a group message and returns relevant details
	ValidateGroupMessages(ctx context.Context, in *ValidateGroupMessagesRequest, opts ...grpc.CallOption) (*ValidateGroupMessagesResponse, error)
	// Gets the final association state for a batch of identity updates
	GetAssociationState(ctx context.Context, in *GetAssociationStateRequest, opts ...grpc.CallOption) (*GetAssociationStateResponse, error)
	// Validates InboxID key packages and returns credential information for them, without checking
	// whether an InboxId <> InstallationPublicKey pair is really valid.
	ValidateInboxIdKeyPackages(ctx context.Context, in *ValidateKeyPackagesRequest, opts ...grpc.CallOption) (*ValidateInboxIdKeyPackagesResponse, error)
	// Validate an InboxID Key Package
	// need public key possibly
	ValidateInboxIds(ctx context.Context, in *ValidateInboxIdsRequest, opts ...grpc.CallOption) (*ValidateInboxIdsResponse, error)
	// Verifies smart contracts
	// This request is proxied from the node, so we'll reuse those messgaes.
	VerifySmartContractWalletSignatures(ctx context.Context, in *v1.VerifySmartContractWalletSignaturesRequest, opts ...grpc.CallOption) (*v1.VerifySmartContractWalletSignaturesResponse, error)
}

ValidationApiClient is the client API for ValidationApi 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.

type ValidationApiServer

type ValidationApiServer interface {
	// Validates and parses a batch of key packages and returns relevant details
	ValidateKeyPackages(context.Context, *ValidateKeyPackagesRequest) (*ValidateKeyPackagesResponse, error)
	// Validates and parses a group message and returns relevant details
	ValidateGroupMessages(context.Context, *ValidateGroupMessagesRequest) (*ValidateGroupMessagesResponse, error)
	// Gets the final association state for a batch of identity updates
	GetAssociationState(context.Context, *GetAssociationStateRequest) (*GetAssociationStateResponse, error)
	// Validates InboxID key packages and returns credential information for them, without checking
	// whether an InboxId <> InstallationPublicKey pair is really valid.
	ValidateInboxIdKeyPackages(context.Context, *ValidateKeyPackagesRequest) (*ValidateInboxIdKeyPackagesResponse, error)
	// Validate an InboxID Key Package
	// need public key possibly
	ValidateInboxIds(context.Context, *ValidateInboxIdsRequest) (*ValidateInboxIdsResponse, error)
	// Verifies smart contracts
	// This request is proxied from the node, so we'll reuse those messgaes.
	VerifySmartContractWalletSignatures(context.Context, *v1.VerifySmartContractWalletSignaturesRequest) (*v1.VerifySmartContractWalletSignaturesResponse, error)
	// contains filtered or unexported methods
}

ValidationApiServer is the server API for ValidationApi service. All implementations must embed UnimplementedValidationApiServer for forward compatibility

Jump to

Keyboard shortcuts

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