Documentation ¶
Overview ¶
Package apiv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterIdentityApiHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterIdentityApiHandlerClient(ctx context.Context, mux *runtime.ServeMux, client IdentityApiClient) error
- func RegisterIdentityApiHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterIdentityApiHandlerServer(ctx context.Context, mux *runtime.ServeMux, server IdentityApiServer) error
- func RegisterIdentityApiServer(s grpc.ServiceRegistrar, srv IdentityApiServer)
- type GetIdentityUpdatesRequest
- func (*GetIdentityUpdatesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetIdentityUpdatesRequest) GetRequests() []*GetIdentityUpdatesRequest_Request
- func (*GetIdentityUpdatesRequest) ProtoMessage()
- func (x *GetIdentityUpdatesRequest) ProtoReflect() protoreflect.Message
- func (x *GetIdentityUpdatesRequest) Reset()
- func (x *GetIdentityUpdatesRequest) String() string
- type GetIdentityUpdatesRequest_Request
- func (*GetIdentityUpdatesRequest_Request) Descriptor() ([]byte, []int)deprecated
- func (x *GetIdentityUpdatesRequest_Request) GetInboxId() string
- func (x *GetIdentityUpdatesRequest_Request) GetSequenceId() uint64
- func (*GetIdentityUpdatesRequest_Request) ProtoMessage()
- func (x *GetIdentityUpdatesRequest_Request) ProtoReflect() protoreflect.Message
- func (x *GetIdentityUpdatesRequest_Request) Reset()
- func (x *GetIdentityUpdatesRequest_Request) String() string
- type GetIdentityUpdatesResponse
- func (*GetIdentityUpdatesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetIdentityUpdatesResponse) GetResponses() []*GetIdentityUpdatesResponse_Response
- func (*GetIdentityUpdatesResponse) ProtoMessage()
- func (x *GetIdentityUpdatesResponse) ProtoReflect() protoreflect.Message
- func (x *GetIdentityUpdatesResponse) Reset()
- func (x *GetIdentityUpdatesResponse) String() string
- type GetIdentityUpdatesResponse_IdentityUpdateLog
- func (*GetIdentityUpdatesResponse_IdentityUpdateLog) Descriptor() ([]byte, []int)deprecated
- func (x *GetIdentityUpdatesResponse_IdentityUpdateLog) GetSequenceId() uint64
- func (x *GetIdentityUpdatesResponse_IdentityUpdateLog) GetServerTimestampNs() uint64
- func (x *GetIdentityUpdatesResponse_IdentityUpdateLog) GetUpdate() *associations.IdentityUpdate
- func (*GetIdentityUpdatesResponse_IdentityUpdateLog) ProtoMessage()
- func (x *GetIdentityUpdatesResponse_IdentityUpdateLog) ProtoReflect() protoreflect.Message
- func (x *GetIdentityUpdatesResponse_IdentityUpdateLog) Reset()
- func (x *GetIdentityUpdatesResponse_IdentityUpdateLog) String() string
- type GetIdentityUpdatesResponse_Response
- func (*GetIdentityUpdatesResponse_Response) Descriptor() ([]byte, []int)deprecated
- func (x *GetIdentityUpdatesResponse_Response) GetInboxId() string
- func (x *GetIdentityUpdatesResponse_Response) GetUpdates() []*GetIdentityUpdatesResponse_IdentityUpdateLog
- func (*GetIdentityUpdatesResponse_Response) ProtoMessage()
- func (x *GetIdentityUpdatesResponse_Response) ProtoReflect() protoreflect.Message
- func (x *GetIdentityUpdatesResponse_Response) Reset()
- func (x *GetIdentityUpdatesResponse_Response) String() string
- type GetInboxIdsRequest
- func (*GetInboxIdsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetInboxIdsRequest) GetRequests() []*GetInboxIdsRequest_Request
- func (*GetInboxIdsRequest) ProtoMessage()
- func (x *GetInboxIdsRequest) ProtoReflect() protoreflect.Message
- func (x *GetInboxIdsRequest) Reset()
- func (x *GetInboxIdsRequest) String() string
- type GetInboxIdsRequest_Request
- func (*GetInboxIdsRequest_Request) Descriptor() ([]byte, []int)deprecated
- func (x *GetInboxIdsRequest_Request) GetAddress() string
- func (*GetInboxIdsRequest_Request) ProtoMessage()
- func (x *GetInboxIdsRequest_Request) ProtoReflect() protoreflect.Message
- func (x *GetInboxIdsRequest_Request) Reset()
- func (x *GetInboxIdsRequest_Request) String() string
- type GetInboxIdsResponse
- func (*GetInboxIdsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetInboxIdsResponse) GetResponses() []*GetInboxIdsResponse_Response
- func (*GetInboxIdsResponse) ProtoMessage()
- func (x *GetInboxIdsResponse) ProtoReflect() protoreflect.Message
- func (x *GetInboxIdsResponse) Reset()
- func (x *GetInboxIdsResponse) String() string
- type GetInboxIdsResponse_Response
- func (*GetInboxIdsResponse_Response) Descriptor() ([]byte, []int)deprecated
- func (x *GetInboxIdsResponse_Response) GetAddress() string
- func (x *GetInboxIdsResponse_Response) GetInboxId() string
- func (*GetInboxIdsResponse_Response) ProtoMessage()
- func (x *GetInboxIdsResponse_Response) ProtoReflect() protoreflect.Message
- func (x *GetInboxIdsResponse_Response) Reset()
- func (x *GetInboxIdsResponse_Response) String() string
- type IdentityApiClient
- type IdentityApiServer
- type PublishIdentityUpdateRequest
- func (*PublishIdentityUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PublishIdentityUpdateRequest) GetIdentityUpdate() *associations.IdentityUpdate
- func (*PublishIdentityUpdateRequest) ProtoMessage()
- func (x *PublishIdentityUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *PublishIdentityUpdateRequest) Reset()
- func (x *PublishIdentityUpdateRequest) String() string
- type PublishIdentityUpdateResponse
- func (*PublishIdentityUpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (*PublishIdentityUpdateResponse) ProtoMessage()
- func (x *PublishIdentityUpdateResponse) ProtoReflect() protoreflect.Message
- func (x *PublishIdentityUpdateResponse) Reset()
- func (x *PublishIdentityUpdateResponse) String() string
- type UnimplementedIdentityApiServer
- func (UnimplementedIdentityApiServer) GetIdentityUpdates(context.Context, *GetIdentityUpdatesRequest) (*GetIdentityUpdatesResponse, error)
- func (UnimplementedIdentityApiServer) GetInboxIds(context.Context, *GetInboxIdsRequest) (*GetInboxIdsResponse, error)
- func (UnimplementedIdentityApiServer) PublishIdentityUpdate(context.Context, *PublishIdentityUpdateRequest) (*PublishIdentityUpdateResponse, error)
- func (UnimplementedIdentityApiServer) VerifySmartContractWalletSignatures(context.Context, *VerifySmartContractWalletSignaturesRequest) (*VerifySmartContractWalletSignaturesResponse, error)
- type UnsafeIdentityApiServer
- type VerifySmartContractWalletSignatureRequestSignature
- func (*VerifySmartContractWalletSignatureRequestSignature) Descriptor() ([]byte, []int)deprecated
- func (x *VerifySmartContractWalletSignatureRequestSignature) GetAccountId() string
- func (x *VerifySmartContractWalletSignatureRequestSignature) GetBlockNumber() uint64
- func (x *VerifySmartContractWalletSignatureRequestSignature) GetHash() []byte
- func (x *VerifySmartContractWalletSignatureRequestSignature) GetSignature() []byte
- func (*VerifySmartContractWalletSignatureRequestSignature) ProtoMessage()
- func (x *VerifySmartContractWalletSignatureRequestSignature) ProtoReflect() protoreflect.Message
- func (x *VerifySmartContractWalletSignatureRequestSignature) Reset()
- func (x *VerifySmartContractWalletSignatureRequestSignature) String() string
- type VerifySmartContractWalletSignaturesRequest
- func (*VerifySmartContractWalletSignaturesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifySmartContractWalletSignaturesRequest) GetSignatures() []*VerifySmartContractWalletSignatureRequestSignature
- func (*VerifySmartContractWalletSignaturesRequest) ProtoMessage()
- func (x *VerifySmartContractWalletSignaturesRequest) ProtoReflect() protoreflect.Message
- func (x *VerifySmartContractWalletSignaturesRequest) Reset()
- func (x *VerifySmartContractWalletSignaturesRequest) String() string
- type VerifySmartContractWalletSignaturesResponse
- func (*VerifySmartContractWalletSignaturesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VerifySmartContractWalletSignaturesResponse) GetResponses() []*VerifySmartContractWalletSignaturesResponse_ValidationResponse
- func (*VerifySmartContractWalletSignaturesResponse) ProtoMessage()
- func (x *VerifySmartContractWalletSignaturesResponse) ProtoReflect() protoreflect.Message
- func (x *VerifySmartContractWalletSignaturesResponse) Reset()
- func (x *VerifySmartContractWalletSignaturesResponse) String() string
- type VerifySmartContractWalletSignaturesResponse_ValidationResponse
- func (*VerifySmartContractWalletSignaturesResponse_ValidationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VerifySmartContractWalletSignaturesResponse_ValidationResponse) GetBlockNumber() uint64
- func (x *VerifySmartContractWalletSignaturesResponse_ValidationResponse) GetError() string
- func (x *VerifySmartContractWalletSignaturesResponse_ValidationResponse) GetIsValid() bool
- func (*VerifySmartContractWalletSignaturesResponse_ValidationResponse) ProtoMessage()
- func (x *VerifySmartContractWalletSignaturesResponse_ValidationResponse) ProtoReflect() protoreflect.Message
- func (x *VerifySmartContractWalletSignaturesResponse_ValidationResponse) Reset()
- func (x *VerifySmartContractWalletSignaturesResponse_ValidationResponse) String() string
Constants ¶
const ( IdentityApi_PublishIdentityUpdate_FullMethodName = "/xmtp.identity.api.v1.IdentityApi/PublishIdentityUpdate" IdentityApi_GetIdentityUpdates_FullMethodName = "/xmtp.identity.api.v1.IdentityApi/GetIdentityUpdates" IdentityApi_GetInboxIds_FullMethodName = "/xmtp.identity.api.v1.IdentityApi/GetInboxIds" IdentityApi_VerifySmartContractWalletSignatures_FullMethodName = "/xmtp.identity.api.v1.IdentityApi/VerifySmartContractWalletSignatures" )
Variables ¶
var File_identity_api_v1_identity_proto protoreflect.FileDescriptor
var IdentityApi_ServiceDesc = grpc.ServiceDesc{ ServiceName: "xmtp.identity.api.v1.IdentityApi", HandlerType: (*IdentityApiServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PublishIdentityUpdate", Handler: _IdentityApi_PublishIdentityUpdate_Handler, }, { MethodName: "GetIdentityUpdates", Handler: _IdentityApi_GetIdentityUpdates_Handler, }, { MethodName: "GetInboxIds", Handler: _IdentityApi_GetInboxIds_Handler, }, { MethodName: "VerifySmartContractWalletSignatures", Handler: _IdentityApi_VerifySmartContractWalletSignatures_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "identity/api/v1/identity.proto", }
IdentityApi_ServiceDesc is the grpc.ServiceDesc for IdentityApi service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterIdentityApiHandler ¶
func RegisterIdentityApiHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterIdentityApiHandler registers the http handlers for service IdentityApi to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterIdentityApiHandlerClient ¶
func RegisterIdentityApiHandlerClient(ctx context.Context, mux *runtime.ServeMux, client IdentityApiClient) error
RegisterIdentityApiHandlerClient registers the http handlers for service IdentityApi to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "IdentityApiClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "IdentityApiClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "IdentityApiClient" to call the correct interceptors.
func RegisterIdentityApiHandlerFromEndpoint ¶
func RegisterIdentityApiHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterIdentityApiHandlerFromEndpoint is same as RegisterIdentityApiHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterIdentityApiHandlerServer ¶
func RegisterIdentityApiHandlerServer(ctx context.Context, mux *runtime.ServeMux, server IdentityApiServer) error
RegisterIdentityApiHandlerServer registers the http handlers for service IdentityApi to "mux". UnaryRPC :call IdentityApiServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterIdentityApiHandlerFromEndpoint instead.
func RegisterIdentityApiServer ¶
func RegisterIdentityApiServer(s grpc.ServiceRegistrar, srv IdentityApiServer)
Types ¶
type GetIdentityUpdatesRequest ¶
type GetIdentityUpdatesRequest struct { Requests []*GetIdentityUpdatesRequest_Request `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` // contains filtered or unexported fields }
Get all updates for an identity since the specified time
func (*GetIdentityUpdatesRequest) Descriptor
deprecated
func (*GetIdentityUpdatesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetIdentityUpdatesRequest.ProtoReflect.Descriptor instead.
func (*GetIdentityUpdatesRequest) GetRequests ¶
func (x *GetIdentityUpdatesRequest) GetRequests() []*GetIdentityUpdatesRequest_Request
func (*GetIdentityUpdatesRequest) ProtoMessage ¶
func (*GetIdentityUpdatesRequest) ProtoMessage()
func (*GetIdentityUpdatesRequest) ProtoReflect ¶
func (x *GetIdentityUpdatesRequest) ProtoReflect() protoreflect.Message
func (*GetIdentityUpdatesRequest) Reset ¶
func (x *GetIdentityUpdatesRequest) Reset()
func (*GetIdentityUpdatesRequest) String ¶
func (x *GetIdentityUpdatesRequest) String() string
type GetIdentityUpdatesRequest_Request ¶
type GetIdentityUpdatesRequest_Request struct { InboxId string `protobuf:"bytes,1,opt,name=inbox_id,json=inboxId,proto3" json:"inbox_id,omitempty"` SequenceId uint64 `protobuf:"varint,2,opt,name=sequence_id,json=sequenceId,proto3" json:"sequence_id,omitempty"` // contains filtered or unexported fields }
Points to the last entry the client has received. The sequence_id should be set to 0 if the client has not received anything.
func (*GetIdentityUpdatesRequest_Request) Descriptor
deprecated
func (*GetIdentityUpdatesRequest_Request) Descriptor() ([]byte, []int)
Deprecated: Use GetIdentityUpdatesRequest_Request.ProtoReflect.Descriptor instead.
func (*GetIdentityUpdatesRequest_Request) GetInboxId ¶
func (x *GetIdentityUpdatesRequest_Request) GetInboxId() string
func (*GetIdentityUpdatesRequest_Request) GetSequenceId ¶
func (x *GetIdentityUpdatesRequest_Request) GetSequenceId() uint64
func (*GetIdentityUpdatesRequest_Request) ProtoMessage ¶
func (*GetIdentityUpdatesRequest_Request) ProtoMessage()
func (*GetIdentityUpdatesRequest_Request) ProtoReflect ¶
func (x *GetIdentityUpdatesRequest_Request) ProtoReflect() protoreflect.Message
func (*GetIdentityUpdatesRequest_Request) Reset ¶
func (x *GetIdentityUpdatesRequest_Request) Reset()
func (*GetIdentityUpdatesRequest_Request) String ¶
func (x *GetIdentityUpdatesRequest_Request) String() string
type GetIdentityUpdatesResponse ¶
type GetIdentityUpdatesResponse struct { Responses []*GetIdentityUpdatesResponse_Response `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` // contains filtered or unexported fields }
Returns all log entries for the requested identities
func (*GetIdentityUpdatesResponse) Descriptor
deprecated
func (*GetIdentityUpdatesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetIdentityUpdatesResponse.ProtoReflect.Descriptor instead.
func (*GetIdentityUpdatesResponse) GetResponses ¶
func (x *GetIdentityUpdatesResponse) GetResponses() []*GetIdentityUpdatesResponse_Response
func (*GetIdentityUpdatesResponse) ProtoMessage ¶
func (*GetIdentityUpdatesResponse) ProtoMessage()
func (*GetIdentityUpdatesResponse) ProtoReflect ¶
func (x *GetIdentityUpdatesResponse) ProtoReflect() protoreflect.Message
func (*GetIdentityUpdatesResponse) Reset ¶
func (x *GetIdentityUpdatesResponse) Reset()
func (*GetIdentityUpdatesResponse) String ¶
func (x *GetIdentityUpdatesResponse) String() string
type GetIdentityUpdatesResponse_IdentityUpdateLog ¶
type GetIdentityUpdatesResponse_IdentityUpdateLog struct { SequenceId uint64 `protobuf:"varint,1,opt,name=sequence_id,json=sequenceId,proto3" json:"sequence_id,omitempty"` ServerTimestampNs uint64 `protobuf:"varint,2,opt,name=server_timestamp_ns,json=serverTimestampNs,proto3" json:"server_timestamp_ns,omitempty"` Update *associations.IdentityUpdate `protobuf:"bytes,3,opt,name=update,proto3" json:"update,omitempty"` // contains filtered or unexported fields }
A single entry in the XID log on the server.
func (*GetIdentityUpdatesResponse_IdentityUpdateLog) Descriptor
deprecated
func (*GetIdentityUpdatesResponse_IdentityUpdateLog) Descriptor() ([]byte, []int)
Deprecated: Use GetIdentityUpdatesResponse_IdentityUpdateLog.ProtoReflect.Descriptor instead.
func (*GetIdentityUpdatesResponse_IdentityUpdateLog) GetSequenceId ¶
func (x *GetIdentityUpdatesResponse_IdentityUpdateLog) GetSequenceId() uint64
func (*GetIdentityUpdatesResponse_IdentityUpdateLog) GetServerTimestampNs ¶
func (x *GetIdentityUpdatesResponse_IdentityUpdateLog) GetServerTimestampNs() uint64
func (*GetIdentityUpdatesResponse_IdentityUpdateLog) GetUpdate ¶
func (x *GetIdentityUpdatesResponse_IdentityUpdateLog) GetUpdate() *associations.IdentityUpdate
func (*GetIdentityUpdatesResponse_IdentityUpdateLog) ProtoMessage ¶
func (*GetIdentityUpdatesResponse_IdentityUpdateLog) ProtoMessage()
func (*GetIdentityUpdatesResponse_IdentityUpdateLog) ProtoReflect ¶
func (x *GetIdentityUpdatesResponse_IdentityUpdateLog) ProtoReflect() protoreflect.Message
func (*GetIdentityUpdatesResponse_IdentityUpdateLog) Reset ¶
func (x *GetIdentityUpdatesResponse_IdentityUpdateLog) Reset()
func (*GetIdentityUpdatesResponse_IdentityUpdateLog) String ¶
func (x *GetIdentityUpdatesResponse_IdentityUpdateLog) String() string
type GetIdentityUpdatesResponse_Response ¶
type GetIdentityUpdatesResponse_Response struct { InboxId string `protobuf:"bytes,1,opt,name=inbox_id,json=inboxId,proto3" json:"inbox_id,omitempty"` Updates []*GetIdentityUpdatesResponse_IdentityUpdateLog `protobuf:"bytes,2,rep,name=updates,proto3" json:"updates,omitempty"` // contains filtered or unexported fields }
The update log for a single identity, starting after the last cursor
func (*GetIdentityUpdatesResponse_Response) Descriptor
deprecated
func (*GetIdentityUpdatesResponse_Response) Descriptor() ([]byte, []int)
Deprecated: Use GetIdentityUpdatesResponse_Response.ProtoReflect.Descriptor instead.
func (*GetIdentityUpdatesResponse_Response) GetInboxId ¶
func (x *GetIdentityUpdatesResponse_Response) GetInboxId() string
func (*GetIdentityUpdatesResponse_Response) GetUpdates ¶
func (x *GetIdentityUpdatesResponse_Response) GetUpdates() []*GetIdentityUpdatesResponse_IdentityUpdateLog
func (*GetIdentityUpdatesResponse_Response) ProtoMessage ¶
func (*GetIdentityUpdatesResponse_Response) ProtoMessage()
func (*GetIdentityUpdatesResponse_Response) ProtoReflect ¶
func (x *GetIdentityUpdatesResponse_Response) ProtoReflect() protoreflect.Message
func (*GetIdentityUpdatesResponse_Response) Reset ¶
func (x *GetIdentityUpdatesResponse_Response) Reset()
func (*GetIdentityUpdatesResponse_Response) String ¶
func (x *GetIdentityUpdatesResponse_Response) String() string
type GetInboxIdsRequest ¶
type GetInboxIdsRequest struct { Requests []*GetInboxIdsRequest_Request `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` // contains filtered or unexported fields }
Request to retrieve the XIDs for the given addresses
func (*GetInboxIdsRequest) Descriptor
deprecated
func (*GetInboxIdsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetInboxIdsRequest.ProtoReflect.Descriptor instead.
func (*GetInboxIdsRequest) GetRequests ¶
func (x *GetInboxIdsRequest) GetRequests() []*GetInboxIdsRequest_Request
func (*GetInboxIdsRequest) ProtoMessage ¶
func (*GetInboxIdsRequest) ProtoMessage()
func (*GetInboxIdsRequest) ProtoReflect ¶
func (x *GetInboxIdsRequest) ProtoReflect() protoreflect.Message
func (*GetInboxIdsRequest) Reset ¶
func (x *GetInboxIdsRequest) Reset()
func (*GetInboxIdsRequest) String ¶
func (x *GetInboxIdsRequest) String() string
type GetInboxIdsRequest_Request ¶
type GetInboxIdsRequest_Request struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
A single request for a given address
func (*GetInboxIdsRequest_Request) Descriptor
deprecated
func (*GetInboxIdsRequest_Request) Descriptor() ([]byte, []int)
Deprecated: Use GetInboxIdsRequest_Request.ProtoReflect.Descriptor instead.
func (*GetInboxIdsRequest_Request) GetAddress ¶
func (x *GetInboxIdsRequest_Request) GetAddress() string
func (*GetInboxIdsRequest_Request) ProtoMessage ¶
func (*GetInboxIdsRequest_Request) ProtoMessage()
func (*GetInboxIdsRequest_Request) ProtoReflect ¶
func (x *GetInboxIdsRequest_Request) ProtoReflect() protoreflect.Message
func (*GetInboxIdsRequest_Request) Reset ¶
func (x *GetInboxIdsRequest_Request) Reset()
func (*GetInboxIdsRequest_Request) String ¶
func (x *GetInboxIdsRequest_Request) String() string
type GetInboxIdsResponse ¶
type GetInboxIdsResponse struct { Responses []*GetInboxIdsResponse_Response `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` // contains filtered or unexported fields }
Response with the XIDs for the requested addresses
func (*GetInboxIdsResponse) Descriptor
deprecated
func (*GetInboxIdsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetInboxIdsResponse.ProtoReflect.Descriptor instead.
func (*GetInboxIdsResponse) GetResponses ¶
func (x *GetInboxIdsResponse) GetResponses() []*GetInboxIdsResponse_Response
func (*GetInboxIdsResponse) ProtoMessage ¶
func (*GetInboxIdsResponse) ProtoMessage()
func (*GetInboxIdsResponse) ProtoReflect ¶
func (x *GetInboxIdsResponse) ProtoReflect() protoreflect.Message
func (*GetInboxIdsResponse) Reset ¶
func (x *GetInboxIdsResponse) Reset()
func (*GetInboxIdsResponse) String ¶
func (x *GetInboxIdsResponse) String() string
type GetInboxIdsResponse_Response ¶
type GetInboxIdsResponse_Response struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` InboxId *string `protobuf:"bytes,2,opt,name=inbox_id,json=inboxId,proto3,oneof" json:"inbox_id,omitempty"` // contains filtered or unexported fields }
A single response for a given address
func (*GetInboxIdsResponse_Response) Descriptor
deprecated
func (*GetInboxIdsResponse_Response) Descriptor() ([]byte, []int)
Deprecated: Use GetInboxIdsResponse_Response.ProtoReflect.Descriptor instead.
func (*GetInboxIdsResponse_Response) GetAddress ¶
func (x *GetInboxIdsResponse_Response) GetAddress() string
func (*GetInboxIdsResponse_Response) GetInboxId ¶
func (x *GetInboxIdsResponse_Response) GetInboxId() string
func (*GetInboxIdsResponse_Response) ProtoMessage ¶
func (*GetInboxIdsResponse_Response) ProtoMessage()
func (*GetInboxIdsResponse_Response) ProtoReflect ¶
func (x *GetInboxIdsResponse_Response) ProtoReflect() protoreflect.Message
func (*GetInboxIdsResponse_Response) Reset ¶
func (x *GetInboxIdsResponse_Response) Reset()
func (*GetInboxIdsResponse_Response) String ¶
func (x *GetInboxIdsResponse_Response) String() string
type IdentityApiClient ¶
type IdentityApiClient interface { // Publishes an identity update for an XID or wallet. An identity update may // consist of multiple identity actions that have been batch signed. PublishIdentityUpdate(ctx context.Context, in *PublishIdentityUpdateRequest, opts ...grpc.CallOption) (*PublishIdentityUpdateResponse, error) // Used to check for changes related to members of a group. // Would return an array of any new installations associated with the wallet // address, and any revocations that have happened. GetIdentityUpdates(ctx context.Context, in *GetIdentityUpdatesRequest, opts ...grpc.CallOption) (*GetIdentityUpdatesResponse, error) // Retrieve the XIDs for the given addresses GetInboxIds(ctx context.Context, in *GetInboxIdsRequest, opts ...grpc.CallOption) (*GetInboxIdsResponse, error) // Verify an unverified smart contract wallet signature VerifySmartContractWalletSignatures(ctx context.Context, in *VerifySmartContractWalletSignaturesRequest, opts ...grpc.CallOption) (*VerifySmartContractWalletSignaturesResponse, error) }
IdentityApiClient is the client API for IdentityApi 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 NewIdentityApiClient ¶
func NewIdentityApiClient(cc grpc.ClientConnInterface) IdentityApiClient
type IdentityApiServer ¶
type IdentityApiServer interface { // Publishes an identity update for an XID or wallet. An identity update may // consist of multiple identity actions that have been batch signed. PublishIdentityUpdate(context.Context, *PublishIdentityUpdateRequest) (*PublishIdentityUpdateResponse, error) // Used to check for changes related to members of a group. // Would return an array of any new installations associated with the wallet // address, and any revocations that have happened. GetIdentityUpdates(context.Context, *GetIdentityUpdatesRequest) (*GetIdentityUpdatesResponse, error) // Retrieve the XIDs for the given addresses GetInboxIds(context.Context, *GetInboxIdsRequest) (*GetInboxIdsResponse, error) // Verify an unverified smart contract wallet signature VerifySmartContractWalletSignatures(context.Context, *VerifySmartContractWalletSignaturesRequest) (*VerifySmartContractWalletSignaturesResponse, error) // contains filtered or unexported methods }
IdentityApiServer is the server API for IdentityApi service. All implementations must embed UnimplementedIdentityApiServer for forward compatibility
type PublishIdentityUpdateRequest ¶
type PublishIdentityUpdateRequest struct { IdentityUpdate *associations.IdentityUpdate `protobuf:"bytes,1,opt,name=identity_update,json=identityUpdate,proto3" json:"identity_update,omitempty"` // contains filtered or unexported fields }
Publishes an identity update to the network
func (*PublishIdentityUpdateRequest) Descriptor
deprecated
func (*PublishIdentityUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use PublishIdentityUpdateRequest.ProtoReflect.Descriptor instead.
func (*PublishIdentityUpdateRequest) GetIdentityUpdate ¶
func (x *PublishIdentityUpdateRequest) GetIdentityUpdate() *associations.IdentityUpdate
func (*PublishIdentityUpdateRequest) ProtoMessage ¶
func (*PublishIdentityUpdateRequest) ProtoMessage()
func (*PublishIdentityUpdateRequest) ProtoReflect ¶
func (x *PublishIdentityUpdateRequest) ProtoReflect() protoreflect.Message
func (*PublishIdentityUpdateRequest) Reset ¶
func (x *PublishIdentityUpdateRequest) Reset()
func (*PublishIdentityUpdateRequest) String ¶
func (x *PublishIdentityUpdateRequest) String() string
type PublishIdentityUpdateResponse ¶
type PublishIdentityUpdateResponse struct {
// contains filtered or unexported fields
}
The response when an identity update is published
func (*PublishIdentityUpdateResponse) Descriptor
deprecated
func (*PublishIdentityUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use PublishIdentityUpdateResponse.ProtoReflect.Descriptor instead.
func (*PublishIdentityUpdateResponse) ProtoMessage ¶
func (*PublishIdentityUpdateResponse) ProtoMessage()
func (*PublishIdentityUpdateResponse) ProtoReflect ¶
func (x *PublishIdentityUpdateResponse) ProtoReflect() protoreflect.Message
func (*PublishIdentityUpdateResponse) Reset ¶
func (x *PublishIdentityUpdateResponse) Reset()
func (*PublishIdentityUpdateResponse) String ¶
func (x *PublishIdentityUpdateResponse) String() string
type UnimplementedIdentityApiServer ¶
type UnimplementedIdentityApiServer struct { }
UnimplementedIdentityApiServer must be embedded to have forward compatible implementations.
func (UnimplementedIdentityApiServer) GetIdentityUpdates ¶
func (UnimplementedIdentityApiServer) GetIdentityUpdates(context.Context, *GetIdentityUpdatesRequest) (*GetIdentityUpdatesResponse, error)
func (UnimplementedIdentityApiServer) GetInboxIds ¶
func (UnimplementedIdentityApiServer) GetInboxIds(context.Context, *GetInboxIdsRequest) (*GetInboxIdsResponse, error)
func (UnimplementedIdentityApiServer) PublishIdentityUpdate ¶
func (UnimplementedIdentityApiServer) PublishIdentityUpdate(context.Context, *PublishIdentityUpdateRequest) (*PublishIdentityUpdateResponse, error)
func (UnimplementedIdentityApiServer) VerifySmartContractWalletSignatures ¶
func (UnimplementedIdentityApiServer) VerifySmartContractWalletSignatures(context.Context, *VerifySmartContractWalletSignaturesRequest) (*VerifySmartContractWalletSignaturesResponse, error)
type UnsafeIdentityApiServer ¶
type UnsafeIdentityApiServer interface {
// contains filtered or unexported methods
}
UnsafeIdentityApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IdentityApiServer will result in compilation errors.
type VerifySmartContractWalletSignatureRequestSignature ¶
type VerifySmartContractWalletSignatureRequestSignature struct { // CAIP-10 string // https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-10.md AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // Specify the block number to verify the signature against BlockNumber *uint64 `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3,oneof" json:"block_number,omitempty"` // The signature bytes Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` Hash []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"` // contains filtered or unexported fields }
func (*VerifySmartContractWalletSignatureRequestSignature) Descriptor
deprecated
func (*VerifySmartContractWalletSignatureRequestSignature) Descriptor() ([]byte, []int)
Deprecated: Use VerifySmartContractWalletSignatureRequestSignature.ProtoReflect.Descriptor instead.
func (*VerifySmartContractWalletSignatureRequestSignature) GetAccountId ¶
func (x *VerifySmartContractWalletSignatureRequestSignature) GetAccountId() string
func (*VerifySmartContractWalletSignatureRequestSignature) GetBlockNumber ¶
func (x *VerifySmartContractWalletSignatureRequestSignature) GetBlockNumber() uint64
func (*VerifySmartContractWalletSignatureRequestSignature) GetHash ¶
func (x *VerifySmartContractWalletSignatureRequestSignature) GetHash() []byte
func (*VerifySmartContractWalletSignatureRequestSignature) GetSignature ¶
func (x *VerifySmartContractWalletSignatureRequestSignature) GetSignature() []byte
func (*VerifySmartContractWalletSignatureRequestSignature) ProtoMessage ¶
func (*VerifySmartContractWalletSignatureRequestSignature) ProtoMessage()
func (*VerifySmartContractWalletSignatureRequestSignature) ProtoReflect ¶
func (x *VerifySmartContractWalletSignatureRequestSignature) ProtoReflect() protoreflect.Message
func (*VerifySmartContractWalletSignatureRequestSignature) Reset ¶
func (x *VerifySmartContractWalletSignatureRequestSignature) Reset()
func (*VerifySmartContractWalletSignatureRequestSignature) String ¶
func (x *VerifySmartContractWalletSignatureRequestSignature) String() string
type VerifySmartContractWalletSignaturesRequest ¶
type VerifySmartContractWalletSignaturesRequest struct { Signatures []*VerifySmartContractWalletSignatureRequestSignature `protobuf:"bytes,1,rep,name=signatures,proto3" json:"signatures,omitempty"` // contains filtered or unexported fields }
func (*VerifySmartContractWalletSignaturesRequest) Descriptor
deprecated
func (*VerifySmartContractWalletSignaturesRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifySmartContractWalletSignaturesRequest.ProtoReflect.Descriptor instead.
func (*VerifySmartContractWalletSignaturesRequest) GetSignatures ¶
func (x *VerifySmartContractWalletSignaturesRequest) GetSignatures() []*VerifySmartContractWalletSignatureRequestSignature
func (*VerifySmartContractWalletSignaturesRequest) ProtoMessage ¶
func (*VerifySmartContractWalletSignaturesRequest) ProtoMessage()
func (*VerifySmartContractWalletSignaturesRequest) ProtoReflect ¶
func (x *VerifySmartContractWalletSignaturesRequest) ProtoReflect() protoreflect.Message
func (*VerifySmartContractWalletSignaturesRequest) Reset ¶
func (x *VerifySmartContractWalletSignaturesRequest) Reset()
func (*VerifySmartContractWalletSignaturesRequest) String ¶
func (x *VerifySmartContractWalletSignaturesRequest) String() string
type VerifySmartContractWalletSignaturesResponse ¶
type VerifySmartContractWalletSignaturesResponse struct { Responses []*VerifySmartContractWalletSignaturesResponse_ValidationResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` // contains filtered or unexported fields }
func (*VerifySmartContractWalletSignaturesResponse) Descriptor
deprecated
func (*VerifySmartContractWalletSignaturesResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerifySmartContractWalletSignaturesResponse.ProtoReflect.Descriptor instead.
func (*VerifySmartContractWalletSignaturesResponse) GetResponses ¶
func (x *VerifySmartContractWalletSignaturesResponse) GetResponses() []*VerifySmartContractWalletSignaturesResponse_ValidationResponse
func (*VerifySmartContractWalletSignaturesResponse) ProtoMessage ¶
func (*VerifySmartContractWalletSignaturesResponse) ProtoMessage()
func (*VerifySmartContractWalletSignaturesResponse) ProtoReflect ¶
func (x *VerifySmartContractWalletSignaturesResponse) ProtoReflect() protoreflect.Message
func (*VerifySmartContractWalletSignaturesResponse) Reset ¶
func (x *VerifySmartContractWalletSignaturesResponse) Reset()
func (*VerifySmartContractWalletSignaturesResponse) String ¶
func (x *VerifySmartContractWalletSignaturesResponse) String() string
type VerifySmartContractWalletSignaturesResponse_ValidationResponse ¶
type VerifySmartContractWalletSignaturesResponse_ValidationResponse struct { IsValid bool `protobuf:"varint,1,opt,name=is_valid,json=isValid,proto3" json:"is_valid,omitempty"` BlockNumber *uint64 `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3,oneof" json:"block_number,omitempty"` Error *string `protobuf:"bytes,3,opt,name=error,proto3,oneof" json:"error,omitempty"` // contains filtered or unexported fields }
func (*VerifySmartContractWalletSignaturesResponse_ValidationResponse) Descriptor
deprecated
func (*VerifySmartContractWalletSignaturesResponse_ValidationResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerifySmartContractWalletSignaturesResponse_ValidationResponse.ProtoReflect.Descriptor instead.
func (*VerifySmartContractWalletSignaturesResponse_ValidationResponse) GetBlockNumber ¶
func (x *VerifySmartContractWalletSignaturesResponse_ValidationResponse) GetBlockNumber() uint64
func (*VerifySmartContractWalletSignaturesResponse_ValidationResponse) GetError ¶
func (x *VerifySmartContractWalletSignaturesResponse_ValidationResponse) GetError() string
func (*VerifySmartContractWalletSignaturesResponse_ValidationResponse) GetIsValid ¶
func (x *VerifySmartContractWalletSignaturesResponse_ValidationResponse) GetIsValid() bool
func (*VerifySmartContractWalletSignaturesResponse_ValidationResponse) ProtoMessage ¶
func (*VerifySmartContractWalletSignaturesResponse_ValidationResponse) ProtoMessage()
func (*VerifySmartContractWalletSignaturesResponse_ValidationResponse) ProtoReflect ¶
func (x *VerifySmartContractWalletSignaturesResponse_ValidationResponse) ProtoReflect() protoreflect.Message
func (*VerifySmartContractWalletSignaturesResponse_ValidationResponse) Reset ¶
func (x *VerifySmartContractWalletSignaturesResponse_ValidationResponse) Reset()
func (*VerifySmartContractWalletSignaturesResponse_ValidationResponse) String ¶
func (x *VerifySmartContractWalletSignaturesResponse_ValidationResponse) String() string