Documentation ¶
Index ¶
- Variables
- func RegisterAgentServiceServer(s grpc.ServiceRegistrar, srv AgentServiceServer)
- func RegisterProtocolServiceServer(s grpc.ServiceRegistrar, srv ProtocolServiceServer)
- type AgentServiceClient
- type AgentServiceServer
- type AgentService_ListenClient
- type AgentService_ListenServer
- type AgentService_WaitClient
- type AgentService_WaitServer
- type AgentStatus
- func (*AgentStatus) Descriptor() ([]byte, []int)deprecated
- func (x *AgentStatus) GetClientID() *ClientID
- func (x *AgentStatus) GetNotification() *Notification
- func (*AgentStatus) ProtoMessage()
- func (x *AgentStatus) ProtoReflect() protoreflect.Message
- func (x *AgentStatus) Reset()
- func (x *AgentStatus) String() string
- type Answer
- func (*Answer) Descriptor() ([]byte, []int)deprecated
- func (x *Answer) GetAck() bool
- func (x *Answer) GetClientID() *ClientID
- func (x *Answer) GetID() string
- func (x *Answer) GetInfo() string
- func (*Answer) ProtoMessage()
- func (x *Answer) ProtoReflect() protoreflect.Message
- func (x *Answer) Reset()
- func (x *Answer) String() string
- type ClientID
- type CredDef
- type CredDefCreate
- func (*CredDefCreate) Descriptor() ([]byte, []int)deprecated
- func (x *CredDefCreate) GetSchemaID() string
- func (x *CredDefCreate) GetTag() string
- func (*CredDefCreate) ProtoMessage()
- func (x *CredDefCreate) ProtoReflect() protoreflect.Message
- func (x *CredDefCreate) Reset()
- func (x *CredDefCreate) String() string
- type CredDefData
- type Invitation
- type InvitationBase
- func (*InvitationBase) Descriptor() ([]byte, []int)deprecated
- func (x *InvitationBase) GetExpiration() int64
- func (x *InvitationBase) GetID() string
- func (x *InvitationBase) GetLabel() string
- func (*InvitationBase) ProtoMessage()
- func (x *InvitationBase) ProtoReflect() protoreflect.Message
- func (x *InvitationBase) Reset()
- func (x *InvitationBase) String() string
- type ModeCmd
- func (*ModeCmd) Descriptor() ([]byte, []int)deprecated
- func (x *ModeCmd) GetAcceptMode() *ModeCmd_AcceptModeCmd
- func (m *ModeCmd) GetControlCmd() isModeCmd_ControlCmd
- func (x *ModeCmd) GetInfo() string
- func (x *ModeCmd) GetIsInput() bool
- func (x *ModeCmd) GetTypeID() ModeCmd_CmdType
- func (*ModeCmd) ProtoMessage()
- func (x *ModeCmd) ProtoReflect() protoreflect.Message
- func (x *ModeCmd) Reset()
- func (x *ModeCmd) String() string
- type ModeCmd_AcceptMode
- type ModeCmd_AcceptModeCmd
- func (*ModeCmd_AcceptModeCmd) Descriptor() ([]byte, []int)deprecated
- func (x *ModeCmd_AcceptModeCmd) GetMode() ModeCmd_AcceptModeCmd_Mode
- func (*ModeCmd_AcceptModeCmd) ProtoMessage()
- func (x *ModeCmd_AcceptModeCmd) ProtoReflect() protoreflect.Message
- func (x *ModeCmd_AcceptModeCmd) Reset()
- func (x *ModeCmd_AcceptModeCmd) String() string
- type ModeCmd_AcceptModeCmd_Mode
- func (ModeCmd_AcceptModeCmd_Mode) Descriptor() protoreflect.EnumDescriptor
- func (x ModeCmd_AcceptModeCmd_Mode) Enum() *ModeCmd_AcceptModeCmd_Mode
- func (ModeCmd_AcceptModeCmd_Mode) EnumDescriptor() ([]byte, []int)deprecated
- func (x ModeCmd_AcceptModeCmd_Mode) Number() protoreflect.EnumNumber
- func (x ModeCmd_AcceptModeCmd_Mode) String() string
- func (ModeCmd_AcceptModeCmd_Mode) Type() protoreflect.EnumType
- type ModeCmd_CmdType
- func (ModeCmd_CmdType) Descriptor() protoreflect.EnumDescriptor
- func (x ModeCmd_CmdType) Enum() *ModeCmd_CmdType
- func (ModeCmd_CmdType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ModeCmd_CmdType) Number() protoreflect.EnumNumber
- func (x ModeCmd_CmdType) String() string
- func (ModeCmd_CmdType) Type() protoreflect.EnumType
- type Notification
- func (*Notification) Descriptor() ([]byte, []int)deprecated
- func (x *Notification) GetConnectionID() string
- func (x *Notification) GetID() string
- func (x *Notification) GetPID() string
- func (x *Notification) GetProtocolFamily() string
- func (x *Notification) GetProtocolID() string
- func (x *Notification) GetProtocolType() Protocol_Type
- func (x *Notification) GetRole() Protocol_Role
- func (x *Notification) GetTimestamp() int64
- func (x *Notification) GetTypeID() Notification_Type
- func (*Notification) ProtoMessage()
- func (x *Notification) ProtoReflect() protoreflect.Message
- func (x *Notification) Reset()
- func (x *Notification) String() string
- type Notification_Type
- func (Notification_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Notification_Type) Enum() *Notification_Type
- func (Notification_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Notification_Type) Number() protoreflect.EnumNumber
- func (x Notification_Type) String() string
- func (Notification_Type) Type() protoreflect.EnumType
- type PingMsg
- type Protocol
- func (*Protocol) Descriptor() ([]byte, []int)deprecated
- func (x *Protocol) GetBasicMessage() *Protocol_BasicMessageMsg
- func (x *Protocol) GetConnectionID() string
- func (x *Protocol) GetDIDExchange() *Protocol_DIDExchangeMsg
- func (x *Protocol) GetIssueCredential() *Protocol_IssueCredentialMsg
- func (x *Protocol) GetPresentProof() *Protocol_PresentProofMsg
- func (x *Protocol) GetPrevThreadID() string
- func (x *Protocol) GetRole() Protocol_Role
- func (m *Protocol) GetStartMsg() isProtocol_StartMsg
- func (x *Protocol) GetTypeID() Protocol_Type
- func (*Protocol) ProtoMessage()
- func (x *Protocol) ProtoReflect() protoreflect.Message
- func (x *Protocol) Reset()
- func (x *Protocol) String() string
- type ProtocolID
- func (*ProtocolID) Descriptor() ([]byte, []int)deprecated
- func (x *ProtocolID) GetID() string
- func (x *ProtocolID) GetNotificationTime() int64
- func (x *ProtocolID) GetRole() Protocol_Role
- func (x *ProtocolID) GetTypeID() Protocol_Type
- func (*ProtocolID) ProtoMessage()
- func (x *ProtocolID) ProtoReflect() protoreflect.Message
- func (x *ProtocolID) Reset()
- func (x *ProtocolID) String() string
- type ProtocolServiceClient
- type ProtocolServiceServer
- type ProtocolService_RunClient
- type ProtocolService_RunServer
- type ProtocolState
- func (*ProtocolState) Descriptor() ([]byte, []int)deprecated
- func (x *ProtocolState) GetInfo() string
- func (x *ProtocolState) GetProtocolID() *ProtocolID
- func (x *ProtocolState) GetState() ProtocolState_State
- func (*ProtocolState) ProtoMessage()
- func (x *ProtocolState) ProtoReflect() protoreflect.Message
- func (x *ProtocolState) Reset()
- func (x *ProtocolState) String() string
- type ProtocolState_State
- func (ProtocolState_State) Descriptor() protoreflect.EnumDescriptor
- func (x ProtocolState_State) Enum() *ProtocolState_State
- func (ProtocolState_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtocolState_State) Number() protoreflect.EnumNumber
- func (x ProtocolState_State) String() string
- func (ProtocolState_State) Type() protoreflect.EnumType
- type ProtocolStatus
- func (*ProtocolStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ProtocolStatus) GetBasicMessage() *ProtocolStatus_BasicMessageStatus
- func (x *ProtocolStatus) GetDIDExchange() *ProtocolStatus_DIDExchangeStatus
- func (x *ProtocolStatus) GetIssueCredential() *ProtocolStatus_IssueCredentialStatus
- func (x *ProtocolStatus) GetPresentProof() *ProtocolStatus_PresentProofStatus
- func (x *ProtocolStatus) GetState() *ProtocolState
- func (m *ProtocolStatus) GetStatus() isProtocolStatus_Status
- func (x *ProtocolStatus) GetTimestamp() int64
- func (x *ProtocolStatus) GetTrustPing() *ProtocolStatus_TrustPingStatus
- func (*ProtocolStatus) ProtoMessage()
- func (x *ProtocolStatus) ProtoReflect() protoreflect.Message
- func (x *ProtocolStatus) Reset()
- func (x *ProtocolStatus) String() string
- type ProtocolStatus_BasicMessage
- type ProtocolStatus_BasicMessageStatus
- func (*ProtocolStatus_BasicMessageStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ProtocolStatus_BasicMessageStatus) GetContent() string
- func (x *ProtocolStatus_BasicMessageStatus) GetDelivered() bool
- func (x *ProtocolStatus_BasicMessageStatus) GetSentByMe() bool
- func (x *ProtocolStatus_BasicMessageStatus) GetSentTimestamp() int64
- func (*ProtocolStatus_BasicMessageStatus) ProtoMessage()
- func (x *ProtocolStatus_BasicMessageStatus) ProtoReflect() protoreflect.Message
- func (x *ProtocolStatus_BasicMessageStatus) Reset()
- func (x *ProtocolStatus_BasicMessageStatus) String() string
- type ProtocolStatus_DIDExchange
- type ProtocolStatus_DIDExchangeStatus
- func (*ProtocolStatus_DIDExchangeStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ProtocolStatus_DIDExchangeStatus) GetID() string
- func (x *ProtocolStatus_DIDExchangeStatus) GetMyDID() string
- func (x *ProtocolStatus_DIDExchangeStatus) GetTheirDID() string
- func (x *ProtocolStatus_DIDExchangeStatus) GetTheirEndpoint() string
- func (x *ProtocolStatus_DIDExchangeStatus) GetTheirLabel() string
- func (*ProtocolStatus_DIDExchangeStatus) ProtoMessage()
- func (x *ProtocolStatus_DIDExchangeStatus) ProtoReflect() protoreflect.Message
- func (x *ProtocolStatus_DIDExchangeStatus) Reset()
- func (x *ProtocolStatus_DIDExchangeStatus) String() string
- type ProtocolStatus_IssueCredential
- type ProtocolStatus_IssueCredentialStatus
- func (*ProtocolStatus_IssueCredentialStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ProtocolStatus_IssueCredentialStatus) GetAttributes() *Protocol_IssuingAttributes
- func (x *ProtocolStatus_IssueCredentialStatus) GetCredDefID() string
- func (x *ProtocolStatus_IssueCredentialStatus) GetSchemaID() string
- func (*ProtocolStatus_IssueCredentialStatus) ProtoMessage()
- func (x *ProtocolStatus_IssueCredentialStatus) ProtoReflect() protoreflect.Message
- func (x *ProtocolStatus_IssueCredentialStatus) Reset()
- func (x *ProtocolStatus_IssueCredentialStatus) String() string
- type ProtocolStatus_PresentProof
- type ProtocolStatus_PresentProofStatus
- func (*ProtocolStatus_PresentProofStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ProtocolStatus_PresentProofStatus) GetProof() *Protocol_Proof
- func (*ProtocolStatus_PresentProofStatus) ProtoMessage()
- func (x *ProtocolStatus_PresentProofStatus) ProtoReflect() protoreflect.Message
- func (x *ProtocolStatus_PresentProofStatus) Reset()
- func (x *ProtocolStatus_PresentProofStatus) String() string
- type ProtocolStatus_TrustPing
- type ProtocolStatus_TrustPingStatus
- func (*ProtocolStatus_TrustPingStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ProtocolStatus_TrustPingStatus) GetReplied() bool
- func (*ProtocolStatus_TrustPingStatus) ProtoMessage()
- func (x *ProtocolStatus_TrustPingStatus) ProtoReflect() protoreflect.Message
- func (x *ProtocolStatus_TrustPingStatus) Reset()
- func (x *ProtocolStatus_TrustPingStatus) String() string
- type Protocol_BasicMessage
- type Protocol_BasicMessageMsg
- func (*Protocol_BasicMessageMsg) Descriptor() ([]byte, []int)deprecated
- func (x *Protocol_BasicMessageMsg) GetContent() string
- func (*Protocol_BasicMessageMsg) ProtoMessage()
- func (x *Protocol_BasicMessageMsg) ProtoReflect() protoreflect.Message
- func (x *Protocol_BasicMessageMsg) Reset()
- func (x *Protocol_BasicMessageMsg) String() string
- type Protocol_DIDExchange
- type Protocol_DIDExchangeMsg
- func (*Protocol_DIDExchangeMsg) Descriptor() ([]byte, []int)deprecated
- func (x *Protocol_DIDExchangeMsg) GetInvitationJSON() string
- func (x *Protocol_DIDExchangeMsg) GetLabel() string
- func (*Protocol_DIDExchangeMsg) ProtoMessage()
- func (x *Protocol_DIDExchangeMsg) ProtoReflect() protoreflect.Message
- func (x *Protocol_DIDExchangeMsg) Reset()
- func (x *Protocol_DIDExchangeMsg) String() string
- type Protocol_IssueCredential
- type Protocol_IssueCredentialMsg
- func (*Protocol_IssueCredentialMsg) Descriptor() ([]byte, []int)deprecated
- func (m *Protocol_IssueCredentialMsg) GetAttrFmt() isProtocol_IssueCredentialMsg_AttrFmt
- func (x *Protocol_IssueCredentialMsg) GetAttributes() *Protocol_IssuingAttributes
- func (x *Protocol_IssueCredentialMsg) GetAttributesJSON() string
- func (x *Protocol_IssueCredentialMsg) GetCredDefID() string
- func (*Protocol_IssueCredentialMsg) ProtoMessage()
- func (x *Protocol_IssueCredentialMsg) ProtoReflect() protoreflect.Message
- func (x *Protocol_IssueCredentialMsg) Reset()
- func (x *Protocol_IssueCredentialMsg) String() string
- type Protocol_IssueCredentialMsg_Attributes
- type Protocol_IssueCredentialMsg_AttributesJSON
- type Protocol_IssuingAttributes
- func (*Protocol_IssuingAttributes) Descriptor() ([]byte, []int)deprecated
- func (x *Protocol_IssuingAttributes) GetAttributes() []*Protocol_IssuingAttributes_Attribute
- func (*Protocol_IssuingAttributes) ProtoMessage()
- func (x *Protocol_IssuingAttributes) ProtoReflect() protoreflect.Message
- func (x *Protocol_IssuingAttributes) Reset()
- func (x *Protocol_IssuingAttributes) String() string
- type Protocol_IssuingAttributes_Attribute
- func (*Protocol_IssuingAttributes_Attribute) Descriptor() ([]byte, []int)deprecated
- func (x *Protocol_IssuingAttributes_Attribute) GetName() string
- func (x *Protocol_IssuingAttributes_Attribute) GetValue() string
- func (*Protocol_IssuingAttributes_Attribute) ProtoMessage()
- func (x *Protocol_IssuingAttributes_Attribute) ProtoReflect() protoreflect.Message
- func (x *Protocol_IssuingAttributes_Attribute) Reset()
- func (x *Protocol_IssuingAttributes_Attribute) String() string
- type Protocol_Predicates
- func (*Protocol_Predicates) Descriptor() ([]byte, []int)deprecated
- func (x *Protocol_Predicates) GetPredicates() []*Protocol_Predicates_Predicate
- func (*Protocol_Predicates) ProtoMessage()
- func (x *Protocol_Predicates) ProtoReflect() protoreflect.Message
- func (x *Protocol_Predicates) Reset()
- func (x *Protocol_Predicates) String() string
- type Protocol_Predicates_Predicate
- func (*Protocol_Predicates_Predicate) Descriptor() ([]byte, []int)deprecated
- func (x *Protocol_Predicates_Predicate) GetID() string
- func (x *Protocol_Predicates_Predicate) GetName() string
- func (x *Protocol_Predicates_Predicate) GetPType() string
- func (x *Protocol_Predicates_Predicate) GetPValue() int64
- func (*Protocol_Predicates_Predicate) ProtoMessage()
- func (x *Protocol_Predicates_Predicate) ProtoReflect() protoreflect.Message
- func (x *Protocol_Predicates_Predicate) Reset()
- func (x *Protocol_Predicates_Predicate) String() string
- type Protocol_PresentProof
- type Protocol_PresentProofMsg
- func (*Protocol_PresentProofMsg) Descriptor() ([]byte, []int)deprecated
- func (m *Protocol_PresentProofMsg) GetAttrFmt() isProtocol_PresentProofMsg_AttrFmt
- func (x *Protocol_PresentProofMsg) GetAttributes() *Protocol_Proof
- func (x *Protocol_PresentProofMsg) GetAttributesJSON() string
- func (m *Protocol_PresentProofMsg) GetPredFmt() isProtocol_PresentProofMsg_PredFmt
- func (x *Protocol_PresentProofMsg) GetPredicates() *Protocol_Predicates
- func (x *Protocol_PresentProofMsg) GetPredicatesJSON() string
- func (*Protocol_PresentProofMsg) ProtoMessage()
- func (x *Protocol_PresentProofMsg) ProtoReflect() protoreflect.Message
- func (x *Protocol_PresentProofMsg) Reset()
- func (x *Protocol_PresentProofMsg) String() string
- type Protocol_PresentProofMsg_Attributes
- type Protocol_PresentProofMsg_AttributesJSON
- type Protocol_PresentProofMsg_Predicates
- type Protocol_PresentProofMsg_PredicatesJSON
- type Protocol_Proof
- func (*Protocol_Proof) Descriptor() ([]byte, []int)deprecated
- func (x *Protocol_Proof) GetAttributes() []*Protocol_Proof_Attribute
- func (*Protocol_Proof) ProtoMessage()
- func (x *Protocol_Proof) ProtoReflect() protoreflect.Message
- func (x *Protocol_Proof) Reset()
- func (x *Protocol_Proof) String() string
- type Protocol_Proof_Attribute
- func (*Protocol_Proof_Attribute) Descriptor() ([]byte, []int)deprecated
- func (x *Protocol_Proof_Attribute) GetCredDefID() string
- func (x *Protocol_Proof_Attribute) GetID() string
- func (x *Protocol_Proof_Attribute) GetName() string
- func (x *Protocol_Proof_Attribute) GetValue() string
- func (*Protocol_Proof_Attribute) ProtoMessage()
- func (x *Protocol_Proof_Attribute) ProtoReflect() protoreflect.Message
- func (x *Protocol_Proof_Attribute) Reset()
- func (x *Protocol_Proof_Attribute) String() string
- type Protocol_Role
- func (Protocol_Role) Descriptor() protoreflect.EnumDescriptor
- func (x Protocol_Role) Enum() *Protocol_Role
- func (Protocol_Role) EnumDescriptor() ([]byte, []int)deprecated
- func (x Protocol_Role) Number() protoreflect.EnumNumber
- func (x Protocol_Role) String() string
- func (Protocol_Role) Type() protoreflect.EnumType
- type Protocol_Type
- func (Protocol_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Protocol_Type) Enum() *Protocol_Type
- func (Protocol_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Protocol_Type) Number() protoreflect.EnumNumber
- func (x Protocol_Type) String() string
- func (Protocol_Type) Type() protoreflect.EnumType
- type Question
- func (*Question) Descriptor() ([]byte, []int)deprecated
- func (x *Question) GetIssuePropose() *Question_IssueProposeMsg
- func (x *Question) GetProofVerify() *Question_ProofVerifyMsg
- func (m *Question) GetQuestion() isQuestion_Question
- func (x *Question) GetStatus() *AgentStatus
- func (x *Question) GetTypeID() Question_Type
- func (*Question) ProtoMessage()
- func (x *Question) ProtoReflect() protoreflect.Message
- func (x *Question) Reset()
- func (x *Question) String() string
- type Question_IssuePropose
- type Question_IssueProposeMsg
- func (*Question_IssueProposeMsg) Descriptor() ([]byte, []int)deprecated
- func (x *Question_IssueProposeMsg) GetCredDefID() string
- func (x *Question_IssueProposeMsg) GetValuesJSON() string
- func (*Question_IssueProposeMsg) ProtoMessage()
- func (x *Question_IssueProposeMsg) ProtoReflect() protoreflect.Message
- func (x *Question_IssueProposeMsg) Reset()
- func (x *Question_IssueProposeMsg) String() string
- type Question_ProofVerify
- type Question_ProofVerifyMsg
- func (*Question_ProofVerifyMsg) Descriptor() ([]byte, []int)deprecated
- func (x *Question_ProofVerifyMsg) GetAttributes() []*Question_ProofVerifyMsg_Attribute
- func (*Question_ProofVerifyMsg) ProtoMessage()
- func (x *Question_ProofVerifyMsg) ProtoReflect() protoreflect.Message
- func (x *Question_ProofVerifyMsg) Reset()
- func (x *Question_ProofVerifyMsg) String() string
- type Question_ProofVerifyMsg_Attribute
- func (*Question_ProofVerifyMsg_Attribute) Descriptor() ([]byte, []int)deprecated
- func (x *Question_ProofVerifyMsg_Attribute) GetCredDefID() string
- func (x *Question_ProofVerifyMsg_Attribute) GetName() string
- func (x *Question_ProofVerifyMsg_Attribute) GetValue() string
- func (*Question_ProofVerifyMsg_Attribute) ProtoMessage()
- func (x *Question_ProofVerifyMsg_Attribute) ProtoReflect() protoreflect.Message
- func (x *Question_ProofVerifyMsg_Attribute) Reset()
- func (x *Question_ProofVerifyMsg_Attribute) String() string
- type Question_Type
- func (Question_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Question_Type) Enum() *Question_Type
- func (Question_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Question_Type) Number() protoreflect.EnumNumber
- func (x Question_Type) String() string
- func (Question_Type) Type() protoreflect.EnumType
- type SAImplementation
- func (*SAImplementation) Descriptor() ([]byte, []int)deprecated
- func (x *SAImplementation) GetEndpoint() string
- func (x *SAImplementation) GetID() string
- func (x *SAImplementation) GetKey() string
- func (x *SAImplementation) GetPersistent() bool
- func (*SAImplementation) ProtoMessage()
- func (x *SAImplementation) ProtoReflect() protoreflect.Message
- func (x *SAImplementation) Reset()
- func (x *SAImplementation) String() string
- type Schema
- type SchemaCreate
- func (*SchemaCreate) Descriptor() ([]byte, []int)deprecated
- func (x *SchemaCreate) GetAttributes() []string
- func (x *SchemaCreate) GetName() string
- func (x *SchemaCreate) GetVersion() string
- func (*SchemaCreate) ProtoMessage()
- func (x *SchemaCreate) ProtoReflect() protoreflect.Message
- func (x *SchemaCreate) Reset()
- func (x *SchemaCreate) String() string
- type SchemaData
- type UnimplementedAgentServiceServer
- func (UnimplementedAgentServiceServer) CreateCredDef(context.Context, *CredDefCreate) (*CredDef, error)
- func (UnimplementedAgentServiceServer) CreateInvitation(context.Context, *InvitationBase) (*Invitation, error)
- func (UnimplementedAgentServiceServer) CreateSchema(context.Context, *SchemaCreate) (*Schema, error)
- func (UnimplementedAgentServiceServer) Enter(context.Context, *ModeCmd) (*ModeCmd, error)
- func (UnimplementedAgentServiceServer) GetCredDef(context.Context, *CredDef) (*CredDefData, error)
- func (UnimplementedAgentServiceServer) GetSchema(context.Context, *Schema) (*SchemaData, error)
- func (UnimplementedAgentServiceServer) Give(context.Context, *Answer) (*ClientID, error)
- func (UnimplementedAgentServiceServer) Listen(*ClientID, AgentService_ListenServer) error
- func (UnimplementedAgentServiceServer) Ping(context.Context, *PingMsg) (*PingMsg, error)
- func (UnimplementedAgentServiceServer) Wait(*ClientID, AgentService_WaitServer) error
- type UnimplementedProtocolServiceServer
- func (UnimplementedProtocolServiceServer) Release(context.Context, *ProtocolID) (*ProtocolID, error)
- func (UnimplementedProtocolServiceServer) Resume(context.Context, *ProtocolState) (*ProtocolID, error)
- func (UnimplementedProtocolServiceServer) Run(*Protocol, ProtocolService_RunServer) error
- func (UnimplementedProtocolServiceServer) Start(context.Context, *Protocol) (*ProtocolID, error)
- func (UnimplementedProtocolServiceServer) Status(context.Context, *ProtocolID) (*ProtocolStatus, error)
- type UnsafeAgentServiceServer
- type UnsafeProtocolServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( ModeCmd_CmdType_name = map[int32]string{ 0: "NONE", 1: "ACCEPT_MODE", } ModeCmd_CmdType_value = map[string]int32{ "NONE": 0, "ACCEPT_MODE": 1, } )
Enum value maps for ModeCmd_CmdType.
var ( ModeCmd_AcceptModeCmd_Mode_name = map[int32]string{ 0: "DEFAULT", 1: "AUTO_ACCEPT", 2: "GRPC_CONTROL", } ModeCmd_AcceptModeCmd_Mode_value = map[string]int32{ "DEFAULT": 0, "AUTO_ACCEPT": 1, "GRPC_CONTROL": 2, } )
Enum value maps for ModeCmd_AcceptModeCmd_Mode.
var ( Notification_Type_name = map[int32]string{ 0: "NONE", 1: "KEEPALIVE", 2: "STATUS_UPDATE", 3: "PROTOCOL_PAUSED", } Notification_Type_value = map[string]int32{ "NONE": 0, "KEEPALIVE": 1, "STATUS_UPDATE": 2, "PROTOCOL_PAUSED": 3, } )
Enum value maps for Notification_Type.
var ( Question_Type_name = map[int32]string{ 0: "NONE", 1: "KEEPALIVE", 2: "PING_WAITS", 3: "ISSUE_PROPOSE_WAITS", 4: "PROOF_PROPOSE_WAITS", 5: "PROOF_VERIFY_WAITS", } Question_Type_value = map[string]int32{ "NONE": 0, "KEEPALIVE": 1, "PING_WAITS": 2, "ISSUE_PROPOSE_WAITS": 3, "PROOF_PROPOSE_WAITS": 4, "PROOF_VERIFY_WAITS": 5, } )
Enum value maps for Question_Type.
var ( Protocol_Type_name = map[int32]string{ 0: "NONE", 1: "DIDEXCHANGE", 2: "ISSUE_CREDENTIAL", 3: "PRESENT_PROOF", 4: "TRUST_PING", 5: "BASIC_MESSAGE", } Protocol_Type_value = map[string]int32{ "NONE": 0, "DIDEXCHANGE": 1, "ISSUE_CREDENTIAL": 2, "PRESENT_PROOF": 3, "TRUST_PING": 4, "BASIC_MESSAGE": 5, } )
Enum value maps for Protocol_Type.
var ( Protocol_Role_name = map[int32]string{ 0: "UNKNOWN", 1: "INITIATOR", 2: "ADDRESSEE", 3: "RESUMER", } Protocol_Role_value = map[string]int32{ "UNKNOWN": 0, "INITIATOR": 1, "ADDRESSEE": 2, "RESUMER": 3, } )
Enum value maps for Protocol_Role.
var ( ProtocolState_State_name = map[int32]string{ 0: "RUNNING", 1: "OK", 2: "ERR", 3: "WAIT_ACTION", 4: "ACK", 5: "NACK", } ProtocolState_State_value = map[string]int32{ "RUNNING": 0, "OK": 1, "ERR": 2, "WAIT_ACTION": 3, "ACK": 4, "NACK": 5, } )
Enum value maps for ProtocolState_State.
var AgentService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "agency.v1.AgentService", HandlerType: (*AgentServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Give", Handler: _AgentService_Give_Handler, }, { MethodName: "CreateInvitation", Handler: _AgentService_CreateInvitation_Handler, }, { MethodName: "Ping", Handler: _AgentService_Ping_Handler, }, { MethodName: "CreateSchema", Handler: _AgentService_CreateSchema_Handler, }, { MethodName: "CreateCredDef", Handler: _AgentService_CreateCredDef_Handler, }, { MethodName: "GetSchema", Handler: _AgentService_GetSchema_Handler, }, { MethodName: "GetCredDef", Handler: _AgentService_GetCredDef_Handler, }, { MethodName: "Enter", Handler: _AgentService_Enter_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Listen", Handler: _AgentService_Listen_Handler, ServerStreams: true, }, { StreamName: "Wait", Handler: _AgentService_Wait_Handler, ServerStreams: true, }, }, Metadata: "agent.proto", }
AgentService_ServiceDesc is the grpc.ServiceDesc for AgentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_agent_proto protoreflect.FileDescriptor
var File_protocol_proto protoreflect.FileDescriptor
var ProtocolService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "agency.v1.ProtocolService", HandlerType: (*ProtocolServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Start", Handler: _ProtocolService_Start_Handler, }, { MethodName: "Status", Handler: _ProtocolService_Status_Handler, }, { MethodName: "Resume", Handler: _ProtocolService_Resume_Handler, }, { MethodName: "Release", Handler: _ProtocolService_Release_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Run", Handler: _ProtocolService_Run_Handler, ServerStreams: true, }, }, Metadata: "protocol.proto", }
ProtocolService_ServiceDesc is the grpc.ServiceDesc for ProtocolService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAgentServiceServer ¶
func RegisterAgentServiceServer(s grpc.ServiceRegistrar, srv AgentServiceServer)
func RegisterProtocolServiceServer ¶
func RegisterProtocolServiceServer(s grpc.ServiceRegistrar, srv ProtocolServiceServer)
Types ¶
type AgentServiceClient ¶
type AgentServiceClient interface { // Listen is bidirectional function to stream AgentStatus. ClientID must be // unique. AgentStatus includes only enough information to access the actual // PSM and DIDComm connection with the ProtocolService.Status function. // Summary: you listen your agent but work with our protocols. Listen(ctx context.Context, in *ClientID, opts ...grpc.CallOption) (AgentService_ListenClient, error) // Wait is bidirectional function to stream service agent Questions. With // Wait you listen your agent and if it's Issuing or Verifying VC it needs // more information and immetiate answers from you. For instance, if a proof // can be validated. Note! if your agent is only casual Holder it doesn't // need to answer any of these questions. Holder communicate goes with // ProtocolService.Resume(). Please see Give for more information. Wait(ctx context.Context, in *ClientID, opts ...grpc.CallOption) (AgentService_WaitClient, error) // Give is function to answer to Questions sent from CA and arived from Wait // function. Questions have ID and clientID which should be used when // answering the questions. Give(ctx context.Context, in *Answer, opts ...grpc.CallOption) (*ClientID, error) // CreateInvitation returns an invitation according to InvitationBase. CreateInvitation(ctx context.Context, in *InvitationBase, opts ...grpc.CallOption) (*Invitation, error) // Ping pings the cloud agent. Ping(ctx context.Context, in *PingMsg, opts ...grpc.CallOption) (*PingMsg, error) // CreateSchema creates a new schema and writes it to ledger. CreateSchema(ctx context.Context, in *SchemaCreate, opts ...grpc.CallOption) (*Schema, error) // CreateCredDef creates a new credential definition to wallet and writes it // to the ledger. Note! With current indysdk VC structure the running time is // long, like 10-20 seconds. CreateCredDef(ctx context.Context, in *CredDefCreate, opts ...grpc.CallOption) (*CredDef, error) // GetSchema returns a schema structure. GetSchema(ctx context.Context, in *Schema, opts ...grpc.CallOption) (*SchemaData, error) // GetCredDef returns a credential definition. GetCredDef(ctx context.Context, in *CredDef, opts ...grpc.CallOption) (*CredDefData, error) // Enter enters the running mode command to the CA. CA executes the cmd and // returns the result. Command pattern is selected to allow easy extensions. Enter(ctx context.Context, in *ModeCmd, opts ...grpc.CallOption) (*ModeCmd, error) }
AgentServiceClient is the client API for AgentService 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 NewAgentServiceClient ¶
func NewAgentServiceClient(cc grpc.ClientConnInterface) AgentServiceClient
type AgentServiceServer ¶
type AgentServiceServer interface { // Listen is bidirectional function to stream AgentStatus. ClientID must be // unique. AgentStatus includes only enough information to access the actual // PSM and DIDComm connection with the ProtocolService.Status function. // Summary: you listen your agent but work with our protocols. Listen(*ClientID, AgentService_ListenServer) error // Wait is bidirectional function to stream service agent Questions. With // Wait you listen your agent and if it's Issuing or Verifying VC it needs // more information and immetiate answers from you. For instance, if a proof // can be validated. Note! if your agent is only casual Holder it doesn't // need to answer any of these questions. Holder communicate goes with // ProtocolService.Resume(). Please see Give for more information. Wait(*ClientID, AgentService_WaitServer) error // Give is function to answer to Questions sent from CA and arived from Wait // function. Questions have ID and clientID which should be used when // answering the questions. Give(context.Context, *Answer) (*ClientID, error) // CreateInvitation returns an invitation according to InvitationBase. CreateInvitation(context.Context, *InvitationBase) (*Invitation, error) // Ping pings the cloud agent. Ping(context.Context, *PingMsg) (*PingMsg, error) // CreateSchema creates a new schema and writes it to ledger. CreateSchema(context.Context, *SchemaCreate) (*Schema, error) // CreateCredDef creates a new credential definition to wallet and writes it // to the ledger. Note! With current indysdk VC structure the running time is // long, like 10-20 seconds. CreateCredDef(context.Context, *CredDefCreate) (*CredDef, error) // GetSchema returns a schema structure. GetSchema(context.Context, *Schema) (*SchemaData, error) // GetCredDef returns a credential definition. GetCredDef(context.Context, *CredDef) (*CredDefData, error) // Enter enters the running mode command to the CA. CA executes the cmd and // returns the result. Command pattern is selected to allow easy extensions. Enter(context.Context, *ModeCmd) (*ModeCmd, error) // contains filtered or unexported methods }
AgentServiceServer is the server API for AgentService service. All implementations must embed UnimplementedAgentServiceServer for forward compatibility
type AgentService_ListenClient ¶
type AgentService_ListenClient interface { Recv() (*AgentStatus, error) grpc.ClientStream }
type AgentService_ListenServer ¶
type AgentService_ListenServer interface { Send(*AgentStatus) error grpc.ServerStream }
type AgentService_WaitClient ¶
type AgentService_WaitClient interface { Recv() (*Question, error) grpc.ClientStream }
type AgentService_WaitServer ¶
type AgentService_WaitServer interface { Send(*Question) error grpc.ServerStream }
type AgentStatus ¶
type AgentStatus struct { ClientID *ClientID `protobuf:"bytes,1,opt,name=clientID,proto3" json:"clientID,omitempty"` // UUID of the client listening Notification *Notification `protobuf:"bytes,3,opt,name=notification,proto3" json:"notification,omitempty"` // The actual Notification message // contains filtered or unexported fields }
AgentStatus is a message identifying current agent events returned as notifications. It's also a base message for Question.
func (*AgentStatus) Descriptor
deprecated
func (*AgentStatus) Descriptor() ([]byte, []int)
Deprecated: Use AgentStatus.ProtoReflect.Descriptor instead.
func (*AgentStatus) GetClientID ¶
func (x *AgentStatus) GetClientID() *ClientID
func (*AgentStatus) GetNotification ¶
func (x *AgentStatus) GetNotification() *Notification
func (*AgentStatus) ProtoMessage ¶
func (*AgentStatus) ProtoMessage()
func (*AgentStatus) ProtoReflect ¶
func (x *AgentStatus) ProtoReflect() protoreflect.Message
func (*AgentStatus) Reset ¶
func (x *AgentStatus) Reset()
func (*AgentStatus) String ¶
func (x *AgentStatus) String() string
type Answer ¶
type Answer struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // Same as Question ID (UUID) ClientID *ClientID `protobuf:"bytes,2,opt,name=clientID,proto3" json:"clientID,omitempty"` // Same as your ClientID when Wait was started Ack bool `protobuf:"varint,3,opt,name=ack,proto3" json:"ack,omitempty"` // Response to the protocol question: true = ACK, false = NACK Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` // General info, mostly used for debugging // contains filtered or unexported fields }
Answer is a message send by Give function of Agent service.
func (*Answer) Descriptor
deprecated
func (*Answer) GetClientID ¶
func (*Answer) ProtoMessage ¶
func (*Answer) ProtoMessage()
func (*Answer) ProtoReflect ¶
func (x *Answer) ProtoReflect() protoreflect.Message
type ClientID ¶
type ClientID struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // UUID of the client // contains filtered or unexported fields }
ClientID is UUID. If user has many different client device connected to cloud agent it must identify who is talking to.
func (*ClientID) Descriptor
deprecated
func (*ClientID) ProtoMessage ¶
func (*ClientID) ProtoMessage()
func (*ClientID) ProtoReflect ¶
func (x *ClientID) ProtoReflect() protoreflect.Message
type CredDef ¶
type CredDef struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
CredDef is structure to transport credential definition ID.
func (*CredDef) Descriptor
deprecated
func (*CredDef) ProtoMessage ¶
func (*CredDef) ProtoMessage()
func (*CredDef) ProtoReflect ¶
func (x *CredDef) ProtoReflect() protoreflect.Message
type CredDefCreate ¶
type CredDefCreate struct { SchemaID string `protobuf:"bytes,1,opt,name=schemaID,proto3" json:"schemaID,omitempty"` // schemaID is ID of the schema. Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` // tag is schema tag. // contains filtered or unexported fields }
CredDefCreate is structure to transport credential definition identity.
func (*CredDefCreate) Descriptor
deprecated
func (*CredDefCreate) Descriptor() ([]byte, []int)
Deprecated: Use CredDefCreate.ProtoReflect.Descriptor instead.
func (*CredDefCreate) GetSchemaID ¶
func (x *CredDefCreate) GetSchemaID() string
func (*CredDefCreate) GetTag ¶
func (x *CredDefCreate) GetTag() string
func (*CredDefCreate) ProtoMessage ¶
func (*CredDefCreate) ProtoMessage()
func (*CredDefCreate) ProtoReflect ¶
func (x *CredDefCreate) ProtoReflect() protoreflect.Message
func (*CredDefCreate) Reset ¶
func (x *CredDefCreate) Reset()
func (*CredDefCreate) String ¶
func (x *CredDefCreate) String() string
type CredDefData ¶
type CredDefData struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // ID is CredDef ID. Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // data is a cred def JSON string from the ledger. // contains filtered or unexported fields }
CredDefData is structure to fetch credential definition from the ledger.
func (*CredDefData) Descriptor
deprecated
func (*CredDefData) Descriptor() ([]byte, []int)
Deprecated: Use CredDefData.ProtoReflect.Descriptor instead.
func (*CredDefData) GetData ¶
func (x *CredDefData) GetData() string
func (*CredDefData) GetID ¶
func (x *CredDefData) GetID() string
func (*CredDefData) ProtoMessage ¶
func (*CredDefData) ProtoMessage()
func (*CredDefData) ProtoReflect ¶
func (x *CredDefData) ProtoReflect() protoreflect.Message
func (*CredDefData) Reset ¶
func (x *CredDefData) Reset()
func (*CredDefData) String ¶
func (x *CredDefData) String() string
type Invitation ¶
type Invitation struct { JSON string `protobuf:"bytes,1,opt,name=JSON,proto3" json:"JSON,omitempty"` // Actual invitation to be shown to other end. URL string `protobuf:"bytes,2,opt,name=URL,proto3" json:"URL,omitempty"` // Short URL, not implemented yet // contains filtered or unexported fields }
Invitation is structure for ready invitation.
func (*Invitation) Descriptor
deprecated
func (*Invitation) Descriptor() ([]byte, []int)
Deprecated: Use Invitation.ProtoReflect.Descriptor instead.
func (*Invitation) GetJSON ¶
func (x *Invitation) GetJSON() string
func (*Invitation) GetURL ¶
func (x *Invitation) GetURL() string
func (*Invitation) ProtoMessage ¶
func (*Invitation) ProtoMessage()
func (*Invitation) ProtoReflect ¶
func (x *Invitation) ProtoReflect() protoreflect.Message
func (*Invitation) Reset ¶
func (x *Invitation) Reset()
func (*Invitation) String ¶
func (x *Invitation) String() string
type InvitationBase ¶
type InvitationBase struct { Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` // Gives a human readable name for this end of the pairwise. ID string `protobuf:"bytes,2,opt,name=ID,proto3" json:"ID,omitempty"` // Pairwise ID, must be unique, and no collition w/ previous. Expiration int64 `protobuf:"varint,3,opt,name=expiration,proto3" json:"expiration,omitempty"` // not implemented yet // contains filtered or unexported fields }
InvitationBase is structure to create actual Aries invitations. See more info from Aries documentation about the fields.
func (*InvitationBase) Descriptor
deprecated
func (*InvitationBase) Descriptor() ([]byte, []int)
Deprecated: Use InvitationBase.ProtoReflect.Descriptor instead.
func (*InvitationBase) GetExpiration ¶
func (x *InvitationBase) GetExpiration() int64
func (*InvitationBase) GetID ¶
func (x *InvitationBase) GetID() string
func (*InvitationBase) GetLabel ¶
func (x *InvitationBase) GetLabel() string
func (*InvitationBase) ProtoMessage ¶
func (*InvitationBase) ProtoMessage()
func (*InvitationBase) ProtoReflect ¶
func (x *InvitationBase) ProtoReflect() protoreflect.Message
func (*InvitationBase) Reset ¶
func (x *InvitationBase) Reset()
func (*InvitationBase) String ¶
func (x *InvitationBase) String() string
type ModeCmd ¶ added in v0.1.6
type ModeCmd struct { TypeID ModeCmd_CmdType `protobuf:"varint,1,opt,name=typeID,proto3,enum=agency.v1.ModeCmd_CmdType" json:"typeID,omitempty"` // type of the actual type IsInput bool `protobuf:"varint,2,opt,name=is_input,json=isInput,proto3" json:"is_input,omitempty"` // this is input cmd, if not this is output aka query cmd Info string `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` // additional information for the command. // Specific control cmd is one of these // // Types that are assignable to ControlCmd: // *ModeCmd_AcceptMode ControlCmd isModeCmd_ControlCmd `protobuf_oneof:"ControlCmd"` // contains filtered or unexported fields }
ModeCmd is cmd to control CA's execution modes. The commands allow easy way to extend current behaviour with the existing interface. In the future we might have new ways to communicate from CA to its conroller.
func (*ModeCmd) Descriptor
deprecated
added in
v0.1.6
func (*ModeCmd) GetAcceptMode ¶ added in v0.1.6
func (x *ModeCmd) GetAcceptMode() *ModeCmd_AcceptModeCmd
func (*ModeCmd) GetControlCmd ¶ added in v0.1.6
func (m *ModeCmd) GetControlCmd() isModeCmd_ControlCmd
func (*ModeCmd) GetIsInput ¶ added in v0.1.6
func (*ModeCmd) GetTypeID ¶ added in v0.1.6
func (x *ModeCmd) GetTypeID() ModeCmd_CmdType
func (*ModeCmd) ProtoMessage ¶ added in v0.1.6
func (*ModeCmd) ProtoMessage()
func (*ModeCmd) ProtoReflect ¶ added in v0.1.6
func (x *ModeCmd) ProtoReflect() protoreflect.Message
type ModeCmd_AcceptMode ¶ added in v0.1.6
type ModeCmd_AcceptMode struct {
AcceptMode *ModeCmd_AcceptModeCmd `protobuf:"bytes,4,opt,name=accept_mode,json=acceptMode,proto3,oneof"`
}
type ModeCmd_AcceptModeCmd ¶ added in v0.1.6
type ModeCmd_AcceptModeCmd struct { Mode ModeCmd_AcceptModeCmd_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=agency.v1.ModeCmd_AcceptModeCmd_Mode" json:"mode,omitempty"` // Mode is the mode actual be set or pervious mode // contains filtered or unexported fields }
AcceptModeCmd is the sub type for the actual cmd. With it we can setup how the CA handles situations where decision is needed. For testing and dev there is an auto accept mode where CA just sends ACKs to to other end without asking controller's help for it.
func (*ModeCmd_AcceptModeCmd) Descriptor
deprecated
added in
v0.1.6
func (*ModeCmd_AcceptModeCmd) Descriptor() ([]byte, []int)
Deprecated: Use ModeCmd_AcceptModeCmd.ProtoReflect.Descriptor instead.
func (*ModeCmd_AcceptModeCmd) GetMode ¶ added in v0.1.6
func (x *ModeCmd_AcceptModeCmd) GetMode() ModeCmd_AcceptModeCmd_Mode
func (*ModeCmd_AcceptModeCmd) ProtoMessage ¶ added in v0.1.6
func (*ModeCmd_AcceptModeCmd) ProtoMessage()
func (*ModeCmd_AcceptModeCmd) ProtoReflect ¶ added in v0.1.6
func (x *ModeCmd_AcceptModeCmd) ProtoReflect() protoreflect.Message
func (*ModeCmd_AcceptModeCmd) Reset ¶ added in v0.1.6
func (x *ModeCmd_AcceptModeCmd) Reset()
func (*ModeCmd_AcceptModeCmd) String ¶ added in v0.1.6
func (x *ModeCmd_AcceptModeCmd) String() string
type ModeCmd_AcceptModeCmd_Mode ¶ added in v0.1.6
type ModeCmd_AcceptModeCmd_Mode int32
const ( // Default mode is same as grpc mode for now. ModeCmd_AcceptModeCmd_DEFAULT ModeCmd_AcceptModeCmd_Mode = 0 // AutoAccept automatically acceps and verifies all request without // checking them. Mostly use full for dev and testing. ModeCmd_AcceptModeCmd_AUTO_ACCEPT ModeCmd_AcceptModeCmd_Mode = 1 // CA send issuing and verifying related questions to controller with // AgentService.Wait function. ModeCmd_AcceptModeCmd_GRPC_CONTROL ModeCmd_AcceptModeCmd_Mode = 2 )
func (ModeCmd_AcceptModeCmd_Mode) Descriptor ¶ added in v0.1.6
func (ModeCmd_AcceptModeCmd_Mode) Descriptor() protoreflect.EnumDescriptor
func (ModeCmd_AcceptModeCmd_Mode) Enum ¶ added in v0.1.6
func (x ModeCmd_AcceptModeCmd_Mode) Enum() *ModeCmd_AcceptModeCmd_Mode
func (ModeCmd_AcceptModeCmd_Mode) EnumDescriptor
deprecated
added in
v0.1.6
func (ModeCmd_AcceptModeCmd_Mode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ModeCmd_AcceptModeCmd_Mode.Descriptor instead.
func (ModeCmd_AcceptModeCmd_Mode) Number ¶ added in v0.1.6
func (x ModeCmd_AcceptModeCmd_Mode) Number() protoreflect.EnumNumber
func (ModeCmd_AcceptModeCmd_Mode) String ¶ added in v0.1.6
func (x ModeCmd_AcceptModeCmd_Mode) String() string
func (ModeCmd_AcceptModeCmd_Mode) Type ¶ added in v0.1.6
func (ModeCmd_AcceptModeCmd_Mode) Type() protoreflect.EnumType
type ModeCmd_CmdType ¶ added in v0.1.6
type ModeCmd_CmdType int32
CmdType defines the current type ot the control mode is operated.
const ( ModeCmd_NONE ModeCmd_CmdType = 0 // Reserved for internal use ModeCmd_ACCEPT_MODE ModeCmd_CmdType = 1 // Defines the mode how CA conroller interface is working. )
func (ModeCmd_CmdType) Descriptor ¶ added in v0.1.6
func (ModeCmd_CmdType) Descriptor() protoreflect.EnumDescriptor
func (ModeCmd_CmdType) Enum ¶ added in v0.1.6
func (x ModeCmd_CmdType) Enum() *ModeCmd_CmdType
func (ModeCmd_CmdType) EnumDescriptor
deprecated
added in
v0.1.6
func (ModeCmd_CmdType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ModeCmd_CmdType.Descriptor instead.
func (ModeCmd_CmdType) Number ¶ added in v0.1.6
func (x ModeCmd_CmdType) Number() protoreflect.EnumNumber
func (ModeCmd_CmdType) String ¶ added in v0.1.6
func (x ModeCmd_CmdType) String() string
func (ModeCmd_CmdType) Type ¶ added in v0.1.6
func (ModeCmd_CmdType) Type() protoreflect.EnumType
type Notification ¶
type Notification struct { TypeID Notification_Type `protobuf:"varint,1,opt,name=typeID,proto3,enum=agency.v1.Notification_Type" json:"typeID,omitempty"` // Notification type, see Type ID string `protobuf:"bytes,2,opt,name=ID,proto3" json:"ID,omitempty"` // Notification's unique ID ConnectionID string `protobuf:"bytes,3,opt,name=connectionID,proto3" json:"connectionID,omitempty"` // Current pairwise ID between agents ProtocolID string `protobuf:"bytes,4,opt,name=protocolID,proto3" json:"protocolID,omitempty"` // Current protocol ID, see Aries Thread ID ProtocolFamily string `protobuf:"bytes,5,opt,name=protocol_family,json=protocolFamily,proto3" json:"protocol_family,omitempty"` // Text version of the protocol family/namespace Timestamp int64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // timestamp in nano because this is part of the key ProtocolType Protocol_Type `` /* 127-byte string literal not displayed */ Role Protocol_Role `protobuf:"varint,8,opt,name=role,proto3,enum=agency.v1.Protocol_Role" json:"role,omitempty"` PID string `protobuf:"bytes,9,opt,name=PID,proto3" json:"PID,omitempty"` // contains filtered or unexported fields }
Notification is a message used to tell meaningful events outside from cloud agent. It includes only header information. If more detailed information about the Protocol is needed ProtocolService.Status should be called. Notification is a base message for AgentStatus.
func (*Notification) Descriptor
deprecated
func (*Notification) Descriptor() ([]byte, []int)
Deprecated: Use Notification.ProtoReflect.Descriptor instead.
func (*Notification) GetConnectionID ¶
func (x *Notification) GetConnectionID() string
func (*Notification) GetID ¶
func (x *Notification) GetID() string
func (*Notification) GetPID ¶
func (x *Notification) GetPID() string
func (*Notification) GetProtocolFamily ¶
func (x *Notification) GetProtocolFamily() string
func (*Notification) GetProtocolID ¶
func (x *Notification) GetProtocolID() string
func (*Notification) GetProtocolType ¶
func (x *Notification) GetProtocolType() Protocol_Type
func (*Notification) GetRole ¶
func (x *Notification) GetRole() Protocol_Role
func (*Notification) GetTimestamp ¶
func (x *Notification) GetTimestamp() int64
func (*Notification) GetTypeID ¶
func (x *Notification) GetTypeID() Notification_Type
func (*Notification) ProtoMessage ¶
func (*Notification) ProtoMessage()
func (*Notification) ProtoReflect ¶
func (x *Notification) ProtoReflect() protoreflect.Message
func (*Notification) Reset ¶
func (x *Notification) Reset()
func (*Notification) String ¶
func (x *Notification) String() string
type Notification_Type ¶
type Notification_Type int32
Type is enum type to tell what happening
const ( Notification_NONE Notification_Type = 0 // This is set when Question is the actual message Notification_KEEPALIVE Notification_Type = 1 // To prevent network idle to shut us down Notification_STATUS_UPDATE Notification_Type = 2 // General status update where no action is needed Notification_PROTOCOL_PAUSED Notification_Type = 3 // Protocol is waiting action with Resume function )
func (Notification_Type) Descriptor ¶
func (Notification_Type) Descriptor() protoreflect.EnumDescriptor
func (Notification_Type) Enum ¶
func (x Notification_Type) Enum() *Notification_Type
func (Notification_Type) EnumDescriptor
deprecated
func (Notification_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Notification_Type.Descriptor instead.
func (Notification_Type) Number ¶
func (x Notification_Type) Number() protoreflect.EnumNumber
func (Notification_Type) String ¶
func (x Notification_Type) String() string
func (Notification_Type) Type ¶
func (Notification_Type) Type() protoreflect.EnumType
type PingMsg ¶
type PingMsg struct { ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` // ID is ping message ID. PingController bool `protobuf:"varint,2,opt,name=ping_controller,json=pingController,proto3" json:"ping_controller,omitempty"` // Tells if CA's controller should pinged once. // contains filtered or unexported fields }
PingMsg is structure to indentify ping messages.
func (*PingMsg) Descriptor
deprecated
func (*PingMsg) GetPingController ¶
func (*PingMsg) ProtoMessage ¶
func (*PingMsg) ProtoMessage()
func (*PingMsg) ProtoReflect ¶
func (x *PingMsg) ProtoReflect() protoreflect.Message
type Protocol ¶
type Protocol struct { TypeID Protocol_Type `protobuf:"varint,1,opt,name=typeID,proto3,enum=agency.v1.Protocol_Type" json:"typeID,omitempty"` // Protocol type Role Protocol_Role `protobuf:"varint,2,opt,name=role,proto3,enum=agency.v1.Protocol_Role" json:"role,omitempty"` PrevThreadID string `protobuf:"bytes,3,opt,name=prev_threadID,json=prevThreadID,proto3" json:"prev_threadID,omitempty"` // Previous protocol ID if there was any ConnectionID string `protobuf:"bytes,4,opt,name=connectionID,proto3" json:"connectionID,omitempty"` // pairwise ID, this only empty when Type is CONNECT // Protocol typeID specific data. // // Types that are assignable to StartMsg: // *Protocol_DIDExchange // *Protocol_IssueCredential // *Protocol_PresentProof // *Protocol_BasicMessage StartMsg isProtocol_StartMsg `protobuf_oneof:"StartMsg"` // contains filtered or unexported fields }
Protocol is a interface message for ProtocolService.Start/Run. The protocol message complements e.g. Start function to the following pseudo code: ProtocolService.Start(Protocol{TypeId: DIDEXCHANGE, Role: INITIATOR}) which can be read as: Start DIDEXCHANGE Protocol as INITIATOR The DIDComm/Aries protocol is always defined with the protocol's typeID and together with the role they define how the protocol will be started. The table below lists few examples. Protocol.TypeID (as) Role Meaning ------------------------------------------------------------------------ DIDEXCHANGE INITIATOR connect to other agent ISSUE_CREDENTIAL ADDRESSEE request credential PRESENT_PROOF RESUMER accept proof request BASIC_MESSAGE INITIATOR send basic message
The rest of the fields in Protocol include prev_threadID and connectionID. The StartMsg fields include typeID specific data.
func (*Protocol) Descriptor
deprecated
func (*Protocol) GetBasicMessage ¶
func (x *Protocol) GetBasicMessage() *Protocol_BasicMessageMsg
func (*Protocol) GetConnectionID ¶
func (*Protocol) GetDIDExchange ¶
func (x *Protocol) GetDIDExchange() *Protocol_DIDExchangeMsg
func (*Protocol) GetIssueCredential ¶
func (x *Protocol) GetIssueCredential() *Protocol_IssueCredentialMsg
func (*Protocol) GetPresentProof ¶
func (x *Protocol) GetPresentProof() *Protocol_PresentProofMsg
func (*Protocol) GetPrevThreadID ¶
func (*Protocol) GetRole ¶
func (x *Protocol) GetRole() Protocol_Role
func (*Protocol) GetStartMsg ¶
func (m *Protocol) GetStartMsg() isProtocol_StartMsg
func (*Protocol) GetTypeID ¶
func (x *Protocol) GetTypeID() Protocol_Type
func (*Protocol) ProtoMessage ¶
func (*Protocol) ProtoMessage()
func (*Protocol) ProtoReflect ¶
func (x *Protocol) ProtoReflect() protoreflect.Message
type ProtocolID ¶
type ProtocolID struct { TypeID Protocol_Type `protobuf:"varint,1,opt,name=typeID,proto3,enum=agency.v1.Protocol_Type" json:"typeID,omitempty"` // i.e. what is going on Role Protocol_Role `protobuf:"varint,2,opt,name=role,proto3,enum=agency.v1.Protocol_Role" json:"role,omitempty"` // i.e. did we start this or the other end etc. ID string `protobuf:"bytes,3,opt,name=ID,proto3" json:"ID,omitempty"` // UUID of the current protocol, note! not the same as conn-id NotificationTime int64 `protobuf:"varint,4,opt,name=notification_time,json=notificationTime,proto3" json:"notification_time,omitempty"` // part of the key (see notification) // contains filtered or unexported fields }
ProtocolID is a primary minimal identification of the _current_ protocol conversation. Protocol is an elementary concept in SSI. With the protocols we build the trust over the state of the connection (aka pairwise). That's why the connection ID is always the most important thing and we should drive towards reuse of the previous connection when ever it's possible. Still, we operate with protocols.
func (*ProtocolID) Descriptor
deprecated
func (*ProtocolID) Descriptor() ([]byte, []int)
Deprecated: Use ProtocolID.ProtoReflect.Descriptor instead.
func (*ProtocolID) GetID ¶
func (x *ProtocolID) GetID() string
func (*ProtocolID) GetNotificationTime ¶
func (x *ProtocolID) GetNotificationTime() int64
func (*ProtocolID) GetRole ¶
func (x *ProtocolID) GetRole() Protocol_Role
func (*ProtocolID) GetTypeID ¶
func (x *ProtocolID) GetTypeID() Protocol_Type
func (*ProtocolID) ProtoMessage ¶
func (*ProtocolID) ProtoMessage()
func (*ProtocolID) ProtoReflect ¶
func (x *ProtocolID) ProtoReflect() protoreflect.Message
func (*ProtocolID) Reset ¶
func (x *ProtocolID) Reset()
func (*ProtocolID) String ¶
func (x *ProtocolID) String() string
type ProtocolServiceClient ¶
type ProtocolServiceClient interface { // Run is function to start a protocol and return a stream to listen to // its progress. Run(ctx context.Context, in *Protocol, opts ...grpc.CallOption) (ProtocolService_RunClient, error) // Start asks the agency to start a protocol. It immediately returns a // protocol ID that allows to monitor the protocol with Status function. // When Agent service's Listen is in use, we get notifications how protocol // proceeds and when it's ready. Start(ctx context.Context, in *Protocol, opts ...grpc.CallOption) (*ProtocolID, error) // Status returns a current ProtocolStatus which offers both typed data fields // and combined JSON string. Status(ctx context.Context, in *ProtocolID, opts ...grpc.CallOption) (*ProtocolStatus, error) // Resume tells the protocol state machine how to proceed when it's waiting // user action e.g. permission to send response to proof request. Resume(ctx context.Context, in *ProtocolState, opts ...grpc.CallOption) (*ProtocolID, error) // Release releases the protocol state machine from agency. It can be called // only when protocol is in Ready state. After release you can access the // status information of your DIDComm with the others services of your system. Release(ctx context.Context, in *ProtocolID, opts ...grpc.CallOption) (*ProtocolID, error) }
ProtocolServiceClient is the client API for ProtocolService 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 NewProtocolServiceClient ¶
func NewProtocolServiceClient(cc grpc.ClientConnInterface) ProtocolServiceClient
type ProtocolServiceServer ¶
type ProtocolServiceServer interface { // Run is function to start a protocol and return a stream to listen to // its progress. Run(*Protocol, ProtocolService_RunServer) error // Start asks the agency to start a protocol. It immediately returns a // protocol ID that allows to monitor the protocol with Status function. // When Agent service's Listen is in use, we get notifications how protocol // proceeds and when it's ready. Start(context.Context, *Protocol) (*ProtocolID, error) // Status returns a current ProtocolStatus which offers both typed data fields // and combined JSON string. Status(context.Context, *ProtocolID) (*ProtocolStatus, error) // Resume tells the protocol state machine how to proceed when it's waiting // user action e.g. permission to send response to proof request. Resume(context.Context, *ProtocolState) (*ProtocolID, error) // Release releases the protocol state machine from agency. It can be called // only when protocol is in Ready state. After release you can access the // status information of your DIDComm with the others services of your system. Release(context.Context, *ProtocolID) (*ProtocolID, error) // contains filtered or unexported methods }
ProtocolServiceServer is the server API for ProtocolService service. All implementations must embed UnimplementedProtocolServiceServer for forward compatibility
type ProtocolService_RunClient ¶
type ProtocolService_RunClient interface { Recv() (*ProtocolState, error) grpc.ClientStream }
type ProtocolService_RunServer ¶
type ProtocolService_RunServer interface { Send(*ProtocolState) error grpc.ServerStream }
type ProtocolState ¶
type ProtocolState struct { ProtocolID *ProtocolID `protobuf:"bytes,1,opt,name=protocolID,proto3" json:"protocolID,omitempty"` State ProtocolState_State `protobuf:"varint,2,opt,name=state,proto3,enum=agency.v1.ProtocolState_State" json:"state,omitempty"` // See the State enum, tells whats going on Info string `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` // Extra information, mostly used for debugging // contains filtered or unexported fields }
ProtocolState is lightest and simplest way to tell outside what is going on during a protocol run.
func (*ProtocolState) Descriptor
deprecated
func (*ProtocolState) Descriptor() ([]byte, []int)
Deprecated: Use ProtocolState.ProtoReflect.Descriptor instead.
func (*ProtocolState) GetInfo ¶
func (x *ProtocolState) GetInfo() string
func (*ProtocolState) GetProtocolID ¶
func (x *ProtocolState) GetProtocolID() *ProtocolID
func (*ProtocolState) GetState ¶
func (x *ProtocolState) GetState() ProtocolState_State
func (*ProtocolState) ProtoMessage ¶
func (*ProtocolState) ProtoMessage()
func (*ProtocolState) ProtoReflect ¶
func (x *ProtocolState) ProtoReflect() protoreflect.Message
func (*ProtocolState) Reset ¶
func (x *ProtocolState) Reset()
func (*ProtocolState) String ¶
func (x *ProtocolState) String() string
type ProtocolState_State ¶
type ProtocolState_State int32
State tells protocol machine's state at the API level
const ( ProtocolState_RUNNING ProtocolState_State = 0 // Protocol is just started or it's still running ProtocolState_OK ProtocolState_State = 1 // Protocol is finalized successfully ProtocolState_ERR ProtocolState_State = 2 // Protocol is stopped with an error, Not other end's NACK! ProtocolState_WAIT_ACTION ProtocolState_State = 3 // Protocol is waiting user's action to continue ProtocolState_ACK ProtocolState_State = 4 // Input only: currently API caller can tell to proceed ProtocolState_NACK ProtocolState_State = 5 // In&out: we or other agent can decline the protocol execution )
func (ProtocolState_State) Descriptor ¶
func (ProtocolState_State) Descriptor() protoreflect.EnumDescriptor
func (ProtocolState_State) Enum ¶
func (x ProtocolState_State) Enum() *ProtocolState_State
func (ProtocolState_State) EnumDescriptor
deprecated
func (ProtocolState_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtocolState_State.Descriptor instead.
func (ProtocolState_State) Number ¶
func (x ProtocolState_State) Number() protoreflect.EnumNumber
func (ProtocolState_State) String ¶
func (x ProtocolState_State) String() string
func (ProtocolState_State) Type ¶
func (ProtocolState_State) Type() protoreflect.EnumType
type ProtocolStatus ¶
type ProtocolStatus struct { State *ProtocolState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` // Protocol state header. Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Status'es timestamp (UNIX). // Status is one of these. Protocol.State.TypeID tells which. // // Types that are assignable to Status: // *ProtocolStatus_DIDExchange // *ProtocolStatus_IssueCredential // *ProtocolStatus_PresentProof // *ProtocolStatus_TrustPing // *ProtocolStatus_BasicMessage Status isProtocolStatus_Status `protobuf_oneof:"Status"` // contains filtered or unexported fields }
ProtocolStatus is message to include whole status of the protocol. It's used to present protocol state at API level when protocol is already started. Aries offers thread and decorator structures as well. We bring API for them when we have use case for that.
func (*ProtocolStatus) Descriptor
deprecated
func (*ProtocolStatus) Descriptor() ([]byte, []int)
Deprecated: Use ProtocolStatus.ProtoReflect.Descriptor instead.
func (*ProtocolStatus) GetBasicMessage ¶
func (x *ProtocolStatus) GetBasicMessage() *ProtocolStatus_BasicMessageStatus
func (*ProtocolStatus) GetDIDExchange ¶
func (x *ProtocolStatus) GetDIDExchange() *ProtocolStatus_DIDExchangeStatus
func (*ProtocolStatus) GetIssueCredential ¶
func (x *ProtocolStatus) GetIssueCredential() *ProtocolStatus_IssueCredentialStatus
func (*ProtocolStatus) GetPresentProof ¶
func (x *ProtocolStatus) GetPresentProof() *ProtocolStatus_PresentProofStatus
func (*ProtocolStatus) GetState ¶
func (x *ProtocolStatus) GetState() *ProtocolState
func (*ProtocolStatus) GetStatus ¶
func (m *ProtocolStatus) GetStatus() isProtocolStatus_Status
func (*ProtocolStatus) GetTimestamp ¶
func (x *ProtocolStatus) GetTimestamp() int64
func (*ProtocolStatus) GetTrustPing ¶
func (x *ProtocolStatus) GetTrustPing() *ProtocolStatus_TrustPingStatus
func (*ProtocolStatus) ProtoMessage ¶
func (*ProtocolStatus) ProtoMessage()
func (*ProtocolStatus) ProtoReflect ¶
func (x *ProtocolStatus) ProtoReflect() protoreflect.Message
func (*ProtocolStatus) Reset ¶
func (x *ProtocolStatus) Reset()
func (*ProtocolStatus) String ¶
func (x *ProtocolStatus) String() string
type ProtocolStatus_BasicMessage ¶
type ProtocolStatus_BasicMessage struct {
BasicMessage *ProtocolStatus_BasicMessageStatus `protobuf:"bytes,14,opt,name=basic_message,json=basicMessage,proto3,oneof"`
}
type ProtocolStatus_BasicMessageStatus ¶
type ProtocolStatus_BasicMessageStatus struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` SentByMe bool `protobuf:"varint,2,opt,name=sent_by_me,json=sentByMe,proto3" json:"sent_by_me,omitempty"` Delivered bool `protobuf:"varint,3,opt,name=delivered,proto3" json:"delivered,omitempty"` SentTimestamp int64 `protobuf:"varint,4,opt,name=sent_timestamp,json=sentTimestamp,proto3" json:"sent_timestamp,omitempty"` // contains filtered or unexported fields }
BasicMessageStatus telling its protocol status.
func (*ProtocolStatus_BasicMessageStatus) Descriptor
deprecated
func (*ProtocolStatus_BasicMessageStatus) Descriptor() ([]byte, []int)
Deprecated: Use ProtocolStatus_BasicMessageStatus.ProtoReflect.Descriptor instead.
func (*ProtocolStatus_BasicMessageStatus) GetContent ¶
func (x *ProtocolStatus_BasicMessageStatus) GetContent() string
func (*ProtocolStatus_BasicMessageStatus) GetDelivered ¶
func (x *ProtocolStatus_BasicMessageStatus) GetDelivered() bool
func (*ProtocolStatus_BasicMessageStatus) GetSentByMe ¶
func (x *ProtocolStatus_BasicMessageStatus) GetSentByMe() bool
func (*ProtocolStatus_BasicMessageStatus) GetSentTimestamp ¶
func (x *ProtocolStatus_BasicMessageStatus) GetSentTimestamp() int64
func (*ProtocolStatus_BasicMessageStatus) ProtoMessage ¶
func (*ProtocolStatus_BasicMessageStatus) ProtoMessage()
func (*ProtocolStatus_BasicMessageStatus) ProtoReflect ¶
func (x *ProtocolStatus_BasicMessageStatus) ProtoReflect() protoreflect.Message
func (*ProtocolStatus_BasicMessageStatus) Reset ¶
func (x *ProtocolStatus_BasicMessageStatus) Reset()
func (*ProtocolStatus_BasicMessageStatus) String ¶
func (x *ProtocolStatus_BasicMessageStatus) String() string
type ProtocolStatus_DIDExchange ¶
type ProtocolStatus_DIDExchange struct {
DIDExchange *ProtocolStatus_DIDExchangeStatus `protobuf:"bytes,10,opt,name=DID_exchange,json=DIDExchange,proto3,oneof"`
}
type ProtocolStatus_DIDExchangeStatus ¶
type ProtocolStatus_DIDExchangeStatus struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` MyDID string `protobuf:"bytes,2,opt,name=myDID,proto3" json:"myDID,omitempty"` TheirDID string `protobuf:"bytes,3,opt,name=theirDID,proto3" json:"theirDID,omitempty"` TheirEndpoint string `protobuf:"bytes,4,opt,name=their_endpoint,json=theirEndpoint,proto3" json:"their_endpoint,omitempty"` TheirLabel string `protobuf:"bytes,5,opt,name=their_label,json=theirLabel,proto3" json:"their_label,omitempty"` // contains filtered or unexported fields }
DIDExchangeStatus is structure telling what's going on with DID exchange protocol.
func (*ProtocolStatus_DIDExchangeStatus) Descriptor
deprecated
func (*ProtocolStatus_DIDExchangeStatus) Descriptor() ([]byte, []int)
Deprecated: Use ProtocolStatus_DIDExchangeStatus.ProtoReflect.Descriptor instead.
func (*ProtocolStatus_DIDExchangeStatus) GetID ¶
func (x *ProtocolStatus_DIDExchangeStatus) GetID() string
func (*ProtocolStatus_DIDExchangeStatus) GetMyDID ¶
func (x *ProtocolStatus_DIDExchangeStatus) GetMyDID() string
func (*ProtocolStatus_DIDExchangeStatus) GetTheirDID ¶
func (x *ProtocolStatus_DIDExchangeStatus) GetTheirDID() string
func (*ProtocolStatus_DIDExchangeStatus) GetTheirEndpoint ¶
func (x *ProtocolStatus_DIDExchangeStatus) GetTheirEndpoint() string
func (*ProtocolStatus_DIDExchangeStatus) GetTheirLabel ¶
func (x *ProtocolStatus_DIDExchangeStatus) GetTheirLabel() string
func (*ProtocolStatus_DIDExchangeStatus) ProtoMessage ¶
func (*ProtocolStatus_DIDExchangeStatus) ProtoMessage()
func (*ProtocolStatus_DIDExchangeStatus) ProtoReflect ¶
func (x *ProtocolStatus_DIDExchangeStatus) ProtoReflect() protoreflect.Message
func (*ProtocolStatus_DIDExchangeStatus) Reset ¶
func (x *ProtocolStatus_DIDExchangeStatus) Reset()
func (*ProtocolStatus_DIDExchangeStatus) String ¶
func (x *ProtocolStatus_DIDExchangeStatus) String() string
type ProtocolStatus_IssueCredential ¶
type ProtocolStatus_IssueCredential struct {
IssueCredential *ProtocolStatus_IssueCredentialStatus `protobuf:"bytes,11,opt,name=issue_credential,json=issueCredential,proto3,oneof"`
}
type ProtocolStatus_IssueCredentialStatus ¶
type ProtocolStatus_IssueCredentialStatus struct { CredDefID string `protobuf:"bytes,1,opt,name=cred_defID,json=credDefID,proto3" json:"cred_defID,omitempty"` SchemaID string `protobuf:"bytes,2,opt,name=schemaID,proto3" json:"schemaID,omitempty"` Attributes *Protocol_IssuingAttributes `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"` // contains filtered or unexported fields }
IssueCredentialStatus is structure telling what's going on with issue credential protocol.
func (*ProtocolStatus_IssueCredentialStatus) Descriptor
deprecated
func (*ProtocolStatus_IssueCredentialStatus) Descriptor() ([]byte, []int)
Deprecated: Use ProtocolStatus_IssueCredentialStatus.ProtoReflect.Descriptor instead.
func (*ProtocolStatus_IssueCredentialStatus) GetAttributes ¶
func (x *ProtocolStatus_IssueCredentialStatus) GetAttributes() *Protocol_IssuingAttributes
func (*ProtocolStatus_IssueCredentialStatus) GetCredDefID ¶
func (x *ProtocolStatus_IssueCredentialStatus) GetCredDefID() string
func (*ProtocolStatus_IssueCredentialStatus) GetSchemaID ¶
func (x *ProtocolStatus_IssueCredentialStatus) GetSchemaID() string
func (*ProtocolStatus_IssueCredentialStatus) ProtoMessage ¶
func (*ProtocolStatus_IssueCredentialStatus) ProtoMessage()
func (*ProtocolStatus_IssueCredentialStatus) ProtoReflect ¶
func (x *ProtocolStatus_IssueCredentialStatus) ProtoReflect() protoreflect.Message
func (*ProtocolStatus_IssueCredentialStatus) Reset ¶
func (x *ProtocolStatus_IssueCredentialStatus) Reset()
func (*ProtocolStatus_IssueCredentialStatus) String ¶
func (x *ProtocolStatus_IssueCredentialStatus) String() string
type ProtocolStatus_PresentProof ¶
type ProtocolStatus_PresentProof struct {
PresentProof *ProtocolStatus_PresentProofStatus `protobuf:"bytes,12,opt,name=present_proof,json=presentProof,proto3,oneof"`
}
type ProtocolStatus_PresentProofStatus ¶
type ProtocolStatus_PresentProofStatus struct { Proof *Protocol_Proof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` // Protocol.Proof more information // contains filtered or unexported fields }
PresentProofStatus is structure telling present_proof status.
func (*ProtocolStatus_PresentProofStatus) Descriptor
deprecated
func (*ProtocolStatus_PresentProofStatus) Descriptor() ([]byte, []int)
Deprecated: Use ProtocolStatus_PresentProofStatus.ProtoReflect.Descriptor instead.
func (*ProtocolStatus_PresentProofStatus) GetProof ¶
func (x *ProtocolStatus_PresentProofStatus) GetProof() *Protocol_Proof
func (*ProtocolStatus_PresentProofStatus) ProtoMessage ¶
func (*ProtocolStatus_PresentProofStatus) ProtoMessage()
func (*ProtocolStatus_PresentProofStatus) ProtoReflect ¶
func (x *ProtocolStatus_PresentProofStatus) ProtoReflect() protoreflect.Message
func (*ProtocolStatus_PresentProofStatus) Reset ¶
func (x *ProtocolStatus_PresentProofStatus) Reset()
func (*ProtocolStatus_PresentProofStatus) String ¶
func (x *ProtocolStatus_PresentProofStatus) String() string
type ProtocolStatus_TrustPing ¶
type ProtocolStatus_TrustPing struct {
TrustPing *ProtocolStatus_TrustPingStatus `protobuf:"bytes,13,opt,name=trust_ping,json=trustPing,proto3,oneof"`
}
type ProtocolStatus_TrustPingStatus ¶
type ProtocolStatus_TrustPingStatus struct { Replied bool `protobuf:"varint,1,opt,name=replied,proto3" json:"replied,omitempty"` // contains filtered or unexported fields }
TrustPingStatus is structure telling its status.
func (*ProtocolStatus_TrustPingStatus) Descriptor
deprecated
func (*ProtocolStatus_TrustPingStatus) Descriptor() ([]byte, []int)
Deprecated: Use ProtocolStatus_TrustPingStatus.ProtoReflect.Descriptor instead.
func (*ProtocolStatus_TrustPingStatus) GetReplied ¶
func (x *ProtocolStatus_TrustPingStatus) GetReplied() bool
func (*ProtocolStatus_TrustPingStatus) ProtoMessage ¶
func (*ProtocolStatus_TrustPingStatus) ProtoMessage()
func (*ProtocolStatus_TrustPingStatus) ProtoReflect ¶
func (x *ProtocolStatus_TrustPingStatus) ProtoReflect() protoreflect.Message
func (*ProtocolStatus_TrustPingStatus) Reset ¶
func (x *ProtocolStatus_TrustPingStatus) Reset()
func (*ProtocolStatus_TrustPingStatus) String ¶
func (x *ProtocolStatus_TrustPingStatus) String() string
type Protocol_BasicMessage ¶
type Protocol_BasicMessage struct {
BasicMessage *Protocol_BasicMessageMsg `protobuf:"bytes,13,opt,name=basic_message,json=basicMessage,proto3,oneof"`
}
type Protocol_BasicMessageMsg ¶
type Protocol_BasicMessageMsg struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` // Content text. // contains filtered or unexported fields }
Protocol specific message type.
func (*Protocol_BasicMessageMsg) Descriptor
deprecated
func (*Protocol_BasicMessageMsg) Descriptor() ([]byte, []int)
Deprecated: Use Protocol_BasicMessageMsg.ProtoReflect.Descriptor instead.
func (*Protocol_BasicMessageMsg) GetContent ¶
func (x *Protocol_BasicMessageMsg) GetContent() string
func (*Protocol_BasicMessageMsg) ProtoMessage ¶
func (*Protocol_BasicMessageMsg) ProtoMessage()
func (*Protocol_BasicMessageMsg) ProtoReflect ¶
func (x *Protocol_BasicMessageMsg) ProtoReflect() protoreflect.Message
func (*Protocol_BasicMessageMsg) Reset ¶
func (x *Protocol_BasicMessageMsg) Reset()
func (*Protocol_BasicMessageMsg) String ¶
func (x *Protocol_BasicMessageMsg) String() string
type Protocol_DIDExchange ¶
type Protocol_DIDExchange struct {
DIDExchange *Protocol_DIDExchangeMsg `protobuf:"bytes,10,opt,name=DID_exchange,json=DIDExchange,proto3,oneof"`
}
type Protocol_DIDExchangeMsg ¶
type Protocol_DIDExchangeMsg struct { Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` // The pairwise can be labeled. InvitationJSON string `protobuf:"bytes,2,opt,name=invitationJSON,proto3" json:"invitationJSON,omitempty"` // Invitation JSON string // contains filtered or unexported fields }
Protocol specific message type.
func (*Protocol_DIDExchangeMsg) Descriptor
deprecated
func (*Protocol_DIDExchangeMsg) Descriptor() ([]byte, []int)
Deprecated: Use Protocol_DIDExchangeMsg.ProtoReflect.Descriptor instead.
func (*Protocol_DIDExchangeMsg) GetInvitationJSON ¶
func (x *Protocol_DIDExchangeMsg) GetInvitationJSON() string
func (*Protocol_DIDExchangeMsg) GetLabel ¶
func (x *Protocol_DIDExchangeMsg) GetLabel() string
func (*Protocol_DIDExchangeMsg) ProtoMessage ¶
func (*Protocol_DIDExchangeMsg) ProtoMessage()
func (*Protocol_DIDExchangeMsg) ProtoReflect ¶
func (x *Protocol_DIDExchangeMsg) ProtoReflect() protoreflect.Message
func (*Protocol_DIDExchangeMsg) Reset ¶
func (x *Protocol_DIDExchangeMsg) Reset()
func (*Protocol_DIDExchangeMsg) String ¶
func (x *Protocol_DIDExchangeMsg) String() string
type Protocol_IssueCredential ¶
type Protocol_IssueCredential struct {
IssueCredential *Protocol_IssueCredentialMsg `protobuf:"bytes,11,opt,name=issue_credential,json=issueCredential,proto3,oneof"`
}
type Protocol_IssueCredentialMsg ¶
type Protocol_IssueCredentialMsg struct { CredDefID string `protobuf:"bytes,1,opt,name=cred_defID,json=credDefID,proto3" json:"cred_defID,omitempty"` // AttrFmt includes attributes either in JSON (previous API format, and // used by Aries) or in normal array of attributes. // // Types that are assignable to AttrFmt: // *Protocol_IssueCredentialMsg_AttributesJSON // *Protocol_IssueCredentialMsg_Attributes AttrFmt isProtocol_IssueCredentialMsg_AttrFmt `protobuf_oneof:"AttrFmt"` // contains filtered or unexported fields }
Protocol specific message type.
func (*Protocol_IssueCredentialMsg) Descriptor
deprecated
func (*Protocol_IssueCredentialMsg) Descriptor() ([]byte, []int)
Deprecated: Use Protocol_IssueCredentialMsg.ProtoReflect.Descriptor instead.
func (*Protocol_IssueCredentialMsg) GetAttrFmt ¶
func (m *Protocol_IssueCredentialMsg) GetAttrFmt() isProtocol_IssueCredentialMsg_AttrFmt
func (*Protocol_IssueCredentialMsg) GetAttributes ¶
func (x *Protocol_IssueCredentialMsg) GetAttributes() *Protocol_IssuingAttributes
func (*Protocol_IssueCredentialMsg) GetAttributesJSON ¶
func (x *Protocol_IssueCredentialMsg) GetAttributesJSON() string
func (*Protocol_IssueCredentialMsg) GetCredDefID ¶
func (x *Protocol_IssueCredentialMsg) GetCredDefID() string
func (*Protocol_IssueCredentialMsg) ProtoMessage ¶
func (*Protocol_IssueCredentialMsg) ProtoMessage()
func (*Protocol_IssueCredentialMsg) ProtoReflect ¶
func (x *Protocol_IssueCredentialMsg) ProtoReflect() protoreflect.Message
func (*Protocol_IssueCredentialMsg) Reset ¶
func (x *Protocol_IssueCredentialMsg) Reset()
func (*Protocol_IssueCredentialMsg) String ¶
func (x *Protocol_IssueCredentialMsg) String() string
type Protocol_IssueCredentialMsg_Attributes ¶
type Protocol_IssueCredentialMsg_Attributes struct {
Attributes *Protocol_IssuingAttributes `protobuf:"bytes,3,opt,name=attributes,proto3,oneof"`
}
type Protocol_IssueCredentialMsg_AttributesJSON ¶
type Protocol_IssueCredentialMsg_AttributesJSON struct {
AttributesJSON string `protobuf:"bytes,2,opt,name=attributesJSON,proto3,oneof"`
}
type Protocol_IssuingAttributes ¶
type Protocol_IssuingAttributes struct { Attributes []*Protocol_IssuingAttributes_Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` // Attributes is the list itself. // contains filtered or unexported fields }
IssuingAttributes is a helper type for IssueCredential protocols.
func (*Protocol_IssuingAttributes) Descriptor
deprecated
func (*Protocol_IssuingAttributes) Descriptor() ([]byte, []int)
Deprecated: Use Protocol_IssuingAttributes.ProtoReflect.Descriptor instead.
func (*Protocol_IssuingAttributes) GetAttributes ¶
func (x *Protocol_IssuingAttributes) GetAttributes() []*Protocol_IssuingAttributes_Attribute
func (*Protocol_IssuingAttributes) ProtoMessage ¶
func (*Protocol_IssuingAttributes) ProtoMessage()
func (*Protocol_IssuingAttributes) ProtoReflect ¶
func (x *Protocol_IssuingAttributes) ProtoReflect() protoreflect.Message
func (*Protocol_IssuingAttributes) Reset ¶
func (x *Protocol_IssuingAttributes) Reset()
func (*Protocol_IssuingAttributes) String ¶
func (x *Protocol_IssuingAttributes) String() string
type Protocol_IssuingAttributes_Attribute ¶
type Protocol_IssuingAttributes_Attribute struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Attribute is struct to present VC attributes by its name and value.
func (*Protocol_IssuingAttributes_Attribute) Descriptor
deprecated
func (*Protocol_IssuingAttributes_Attribute) Descriptor() ([]byte, []int)
Deprecated: Use Protocol_IssuingAttributes_Attribute.ProtoReflect.Descriptor instead.
func (*Protocol_IssuingAttributes_Attribute) GetName ¶
func (x *Protocol_IssuingAttributes_Attribute) GetName() string
func (*Protocol_IssuingAttributes_Attribute) GetValue ¶
func (x *Protocol_IssuingAttributes_Attribute) GetValue() string
func (*Protocol_IssuingAttributes_Attribute) ProtoMessage ¶
func (*Protocol_IssuingAttributes_Attribute) ProtoMessage()
func (*Protocol_IssuingAttributes_Attribute) ProtoReflect ¶
func (x *Protocol_IssuingAttributes_Attribute) ProtoReflect() protoreflect.Message
func (*Protocol_IssuingAttributes_Attribute) Reset ¶
func (x *Protocol_IssuingAttributes_Attribute) Reset()
func (*Protocol_IssuingAttributes_Attribute) String ¶
func (x *Protocol_IssuingAttributes_Attribute) String() string
type Protocol_Predicates ¶ added in v0.1.18
type Protocol_Predicates struct { Predicates []*Protocol_Predicates_Predicate `protobuf:"bytes,1,rep,name=predicates,proto3" json:"predicates,omitempty"` // contains filtered or unexported fields }
Predicates is helper type for proof request predicate lists
func (*Protocol_Predicates) Descriptor
deprecated
added in
v0.1.18
func (*Protocol_Predicates) Descriptor() ([]byte, []int)
Deprecated: Use Protocol_Predicates.ProtoReflect.Descriptor instead.
func (*Protocol_Predicates) GetPredicates ¶ added in v0.1.18
func (x *Protocol_Predicates) GetPredicates() []*Protocol_Predicates_Predicate
func (*Protocol_Predicates) ProtoMessage ¶ added in v0.1.18
func (*Protocol_Predicates) ProtoMessage()
func (*Protocol_Predicates) ProtoReflect ¶ added in v0.1.18
func (x *Protocol_Predicates) ProtoReflect() protoreflect.Message
func (*Protocol_Predicates) Reset ¶ added in v0.1.18
func (x *Protocol_Predicates) Reset()
func (*Protocol_Predicates) String ¶ added in v0.1.18
func (x *Protocol_Predicates) String() string
type Protocol_Predicates_Predicate ¶ added in v0.1.18
type Protocol_Predicates_Predicate struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` PType string `protobuf:"bytes,2,opt,name=p_type,json=pType,proto3" json:"p_type,omitempty"` PValue int64 `protobuf:"varint,3,opt,name=p_value,json=pValue,proto3" json:"p_value,omitempty"` // optional predicate ID ID string `protobuf:"bytes,4,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*Protocol_Predicates_Predicate) Descriptor
deprecated
added in
v0.1.18
func (*Protocol_Predicates_Predicate) Descriptor() ([]byte, []int)
Deprecated: Use Protocol_Predicates_Predicate.ProtoReflect.Descriptor instead.
func (*Protocol_Predicates_Predicate) GetID ¶ added in v0.1.18
func (x *Protocol_Predicates_Predicate) GetID() string
func (*Protocol_Predicates_Predicate) GetName ¶ added in v0.1.18
func (x *Protocol_Predicates_Predicate) GetName() string
func (*Protocol_Predicates_Predicate) GetPType ¶ added in v0.1.18
func (x *Protocol_Predicates_Predicate) GetPType() string
func (*Protocol_Predicates_Predicate) GetPValue ¶ added in v0.1.18
func (x *Protocol_Predicates_Predicate) GetPValue() int64
func (*Protocol_Predicates_Predicate) ProtoMessage ¶ added in v0.1.18
func (*Protocol_Predicates_Predicate) ProtoMessage()
func (*Protocol_Predicates_Predicate) ProtoReflect ¶ added in v0.1.18
func (x *Protocol_Predicates_Predicate) ProtoReflect() protoreflect.Message
func (*Protocol_Predicates_Predicate) Reset ¶ added in v0.1.18
func (x *Protocol_Predicates_Predicate) Reset()
func (*Protocol_Predicates_Predicate) String ¶ added in v0.1.18
func (x *Protocol_Predicates_Predicate) String() string
type Protocol_PresentProof ¶
type Protocol_PresentProof struct {
PresentProof *Protocol_PresentProofMsg `protobuf:"bytes,12,opt,name=present_proof,json=presentProof,proto3,oneof"`
}
type Protocol_PresentProofMsg ¶
type Protocol_PresentProofMsg struct { // AttrFmt includes attributes either in JSON (previous API format, and // used by Aries) or in normal array of attributes. // // Types that are assignable to AttrFmt: // *Protocol_PresentProofMsg_AttributesJSON // *Protocol_PresentProofMsg_Attributes AttrFmt isProtocol_PresentProofMsg_AttrFmt `protobuf_oneof:"AttrFmt"` // requested predicates (indy) (optional) // // Types that are assignable to PredFmt: // *Protocol_PresentProofMsg_PredicatesJSON // *Protocol_PresentProofMsg_Predicates PredFmt isProtocol_PresentProofMsg_PredFmt `protobuf_oneof:"PredFmt"` // contains filtered or unexported fields }
Protocol specific message type.
func (*Protocol_PresentProofMsg) Descriptor
deprecated
func (*Protocol_PresentProofMsg) Descriptor() ([]byte, []int)
Deprecated: Use Protocol_PresentProofMsg.ProtoReflect.Descriptor instead.
func (*Protocol_PresentProofMsg) GetAttrFmt ¶
func (m *Protocol_PresentProofMsg) GetAttrFmt() isProtocol_PresentProofMsg_AttrFmt
func (*Protocol_PresentProofMsg) GetAttributes ¶
func (x *Protocol_PresentProofMsg) GetAttributes() *Protocol_Proof
func (*Protocol_PresentProofMsg) GetAttributesJSON ¶
func (x *Protocol_PresentProofMsg) GetAttributesJSON() string
func (*Protocol_PresentProofMsg) GetPredFmt ¶ added in v0.1.18
func (m *Protocol_PresentProofMsg) GetPredFmt() isProtocol_PresentProofMsg_PredFmt
func (*Protocol_PresentProofMsg) GetPredicates ¶ added in v0.1.18
func (x *Protocol_PresentProofMsg) GetPredicates() *Protocol_Predicates
func (*Protocol_PresentProofMsg) GetPredicatesJSON ¶ added in v0.1.18
func (x *Protocol_PresentProofMsg) GetPredicatesJSON() string
func (*Protocol_PresentProofMsg) ProtoMessage ¶
func (*Protocol_PresentProofMsg) ProtoMessage()
func (*Protocol_PresentProofMsg) ProtoReflect ¶
func (x *Protocol_PresentProofMsg) ProtoReflect() protoreflect.Message
func (*Protocol_PresentProofMsg) Reset ¶
func (x *Protocol_PresentProofMsg) Reset()
func (*Protocol_PresentProofMsg) String ¶
func (x *Protocol_PresentProofMsg) String() string
type Protocol_PresentProofMsg_Attributes ¶
type Protocol_PresentProofMsg_Attributes struct {
Attributes *Protocol_Proof `protobuf:"bytes,2,opt,name=attributes,proto3,oneof"`
}
type Protocol_PresentProofMsg_AttributesJSON ¶
type Protocol_PresentProofMsg_AttributesJSON struct {
AttributesJSON string `protobuf:"bytes,1,opt,name=attributesJSON,proto3,oneof"`
}
type Protocol_PresentProofMsg_Predicates ¶ added in v0.1.18
type Protocol_PresentProofMsg_Predicates struct {
Predicates *Protocol_Predicates `protobuf:"bytes,4,opt,name=predicates,proto3,oneof"`
}
type Protocol_PresentProofMsg_PredicatesJSON ¶ added in v0.1.18
type Protocol_PresentProofMsg_PredicatesJSON struct {
PredicatesJSON string `protobuf:"bytes,3,opt,name=predicatesJSON,proto3,oneof"`
}
type Protocol_Proof ¶
type Protocol_Proof struct { Attributes []*Protocol_Proof_Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` // contains filtered or unexported fields }
Proof is helper type for proof request attribute lists are presented: with the attribute name and attribute source VC (=cred_defID).
func (*Protocol_Proof) Descriptor
deprecated
func (*Protocol_Proof) Descriptor() ([]byte, []int)
Deprecated: Use Protocol_Proof.ProtoReflect.Descriptor instead.
func (*Protocol_Proof) GetAttributes ¶
func (x *Protocol_Proof) GetAttributes() []*Protocol_Proof_Attribute
func (*Protocol_Proof) ProtoMessage ¶
func (*Protocol_Proof) ProtoMessage()
func (*Protocol_Proof) ProtoReflect ¶
func (x *Protocol_Proof) ProtoReflect() protoreflect.Message
func (*Protocol_Proof) Reset ¶
func (x *Protocol_Proof) Reset()
func (*Protocol_Proof) String ¶
func (x *Protocol_Proof) String() string
type Protocol_Proof_Attribute ¶
type Protocol_Proof_Attribute struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` CredDefID string `protobuf:"bytes,2,opt,name=cred_defID,json=credDefID,proto3" json:"cred_defID,omitempty"` // optional attribute ID ID string `protobuf:"bytes,3,opt,name=ID,proto3" json:"ID,omitempty"` // this field holds the attribute value in cases where the proof values // should be verified by the party requesting the proof Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Protocol_Proof_Attribute) Descriptor
deprecated
func (*Protocol_Proof_Attribute) Descriptor() ([]byte, []int)
Deprecated: Use Protocol_Proof_Attribute.ProtoReflect.Descriptor instead.
func (*Protocol_Proof_Attribute) GetCredDefID ¶
func (x *Protocol_Proof_Attribute) GetCredDefID() string
func (*Protocol_Proof_Attribute) GetID ¶ added in v0.1.18
func (x *Protocol_Proof_Attribute) GetID() string
func (*Protocol_Proof_Attribute) GetName ¶
func (x *Protocol_Proof_Attribute) GetName() string
func (*Protocol_Proof_Attribute) GetValue ¶ added in v0.1.20
func (x *Protocol_Proof_Attribute) GetValue() string
func (*Protocol_Proof_Attribute) ProtoMessage ¶
func (*Protocol_Proof_Attribute) ProtoMessage()
func (*Protocol_Proof_Attribute) ProtoReflect ¶
func (x *Protocol_Proof_Attribute) ProtoReflect() protoreflect.Message
func (*Protocol_Proof_Attribute) Reset ¶
func (x *Protocol_Proof_Attribute) Reset()
func (*Protocol_Proof_Attribute) String ¶
func (x *Protocol_Proof_Attribute) String() string
type Protocol_Role ¶
type Protocol_Role int32
Role tells in what role we are starting a protocol. See more info from Protocol message.
const ( Protocol_UNKNOWN Protocol_Role = 0 Protocol_INITIATOR Protocol_Role = 1 Protocol_ADDRESSEE Protocol_Role = 2 Protocol_RESUMER Protocol_Role = 3 // Tells what to do with a paused protocol, waiting user action )
func (Protocol_Role) Descriptor ¶
func (Protocol_Role) Descriptor() protoreflect.EnumDescriptor
func (Protocol_Role) Enum ¶
func (x Protocol_Role) Enum() *Protocol_Role
func (Protocol_Role) EnumDescriptor
deprecated
func (Protocol_Role) EnumDescriptor() ([]byte, []int)
Deprecated: Use Protocol_Role.Descriptor instead.
func (Protocol_Role) Number ¶
func (x Protocol_Role) Number() protoreflect.EnumNumber
func (Protocol_Role) String ¶
func (x Protocol_Role) String() string
func (Protocol_Role) Type ¶
func (Protocol_Role) Type() protoreflect.EnumType
type Protocol_Type ¶
type Protocol_Type int32
Type is enum type to identify the protocol, we aren't tight to Aries strings, but protocols are Aries compatible and specific. See more info from Aries docs.
const ( Protocol_NONE Protocol_Type = 0 Protocol_DIDEXCHANGE Protocol_Type = 1 Protocol_ISSUE_CREDENTIAL Protocol_Type = 2 Protocol_PRESENT_PROOF Protocol_Type = 3 Protocol_TRUST_PING Protocol_Type = 4 Protocol_BASIC_MESSAGE Protocol_Type = 5 )
func (Protocol_Type) Descriptor ¶
func (Protocol_Type) Descriptor() protoreflect.EnumDescriptor
func (Protocol_Type) Enum ¶
func (x Protocol_Type) Enum() *Protocol_Type
func (Protocol_Type) EnumDescriptor
deprecated
func (Protocol_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Protocol_Type.Descriptor instead.
func (Protocol_Type) Number ¶
func (x Protocol_Type) Number() protoreflect.EnumNumber
func (Protocol_Type) String ¶
func (x Protocol_Type) String() string
func (Protocol_Type) Type ¶
func (Protocol_Type) Type() protoreflect.EnumType
type Question ¶
type Question struct { Status *AgentStatus `protobuf:"bytes,1,opt,name=Status,proto3" json:"Status,omitempty"` TypeID Question_Type `protobuf:"varint,2,opt,name=typeID,proto3,enum=agency.v1.Question_Type" json:"typeID,omitempty"` // Question type, see Type // Types that are assignable to Question: // *Question_IssuePropose // *Question_ProofVerify Question isQuestion_Question `protobuf_oneof:"Question"` // contains filtered or unexported fields }
Question is a message for questions sent by cloud agent to its controller aka service agent. Current API uses bidirectional streams for immetiate questions araised during the protocol execution.
func (*Question) Descriptor
deprecated
func (*Question) GetIssuePropose ¶
func (x *Question) GetIssuePropose() *Question_IssueProposeMsg
func (*Question) GetProofVerify ¶
func (x *Question) GetProofVerify() *Question_ProofVerifyMsg
func (*Question) GetQuestion ¶
func (m *Question) GetQuestion() isQuestion_Question
func (*Question) GetStatus ¶
func (x *Question) GetStatus() *AgentStatus
func (*Question) GetTypeID ¶
func (x *Question) GetTypeID() Question_Type
func (*Question) ProtoMessage ¶
func (*Question) ProtoMessage()
func (*Question) ProtoReflect ¶
func (x *Question) ProtoReflect() protoreflect.Message
type Question_IssuePropose ¶
type Question_IssuePropose struct {
IssuePropose *Question_IssueProposeMsg `protobuf:"bytes,3,opt,name=issue_propose,json=issuePropose,proto3,oneof"`
}
type Question_IssueProposeMsg ¶
type Question_IssueProposeMsg struct { CredDefID string `protobuf:"bytes,1,opt,name=cred_defID,json=credDefID,proto3" json:"cred_defID,omitempty"` // The ID of the credential to issue. // valuesJSON is currently used for PreviewCredentialToCodedVales (see // findy-agent) and for that reason the excat format or layot is not clear. // TODO: we refactor this later. ValuesJSON string `protobuf:"bytes,2,opt,name=valuesJSON,proto3" json:"valuesJSON,omitempty"` // contains filtered or unexported fields }
IssueProposeMsg is sent when a Holder wants to alert Issuer to issue a new credential. The Holder defines the cred_defID and values to VC attributes.
func (*Question_IssueProposeMsg) Descriptor
deprecated
func (*Question_IssueProposeMsg) Descriptor() ([]byte, []int)
Deprecated: Use Question_IssueProposeMsg.ProtoReflect.Descriptor instead.
func (*Question_IssueProposeMsg) GetCredDefID ¶
func (x *Question_IssueProposeMsg) GetCredDefID() string
func (*Question_IssueProposeMsg) GetValuesJSON ¶
func (x *Question_IssueProposeMsg) GetValuesJSON() string
func (*Question_IssueProposeMsg) ProtoMessage ¶
func (*Question_IssueProposeMsg) ProtoMessage()
func (*Question_IssueProposeMsg) ProtoReflect ¶
func (x *Question_IssueProposeMsg) ProtoReflect() protoreflect.Message
func (*Question_IssueProposeMsg) Reset ¶
func (x *Question_IssueProposeMsg) Reset()
func (*Question_IssueProposeMsg) String ¶
func (x *Question_IssueProposeMsg) String() string
type Question_ProofVerify ¶
type Question_ProofVerify struct {
ProofVerify *Question_ProofVerifyMsg `protobuf:"bytes,4,opt,name=proof_verify,json=proofVerify,proto3,oneof"`
}
type Question_ProofVerifyMsg ¶
type Question_ProofVerifyMsg struct { Attributes []*Question_ProofVerifyMsg_Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` // contains filtered or unexported fields }
ProofVerifyMsg is sent 1) when a Holder wants to present a proof before Verifier is sent a proof request OR 2) when proof values need to be verified.
func (*Question_ProofVerifyMsg) Descriptor
deprecated
func (*Question_ProofVerifyMsg) Descriptor() ([]byte, []int)
Deprecated: Use Question_ProofVerifyMsg.ProtoReflect.Descriptor instead.
func (*Question_ProofVerifyMsg) GetAttributes ¶
func (x *Question_ProofVerifyMsg) GetAttributes() []*Question_ProofVerifyMsg_Attribute
func (*Question_ProofVerifyMsg) ProtoMessage ¶
func (*Question_ProofVerifyMsg) ProtoMessage()
func (*Question_ProofVerifyMsg) ProtoReflect ¶
func (x *Question_ProofVerifyMsg) ProtoReflect() protoreflect.Message
func (*Question_ProofVerifyMsg) Reset ¶
func (x *Question_ProofVerifyMsg) Reset()
func (*Question_ProofVerifyMsg) String ¶
func (x *Question_ProofVerifyMsg) String() string
type Question_ProofVerifyMsg_Attribute ¶
type Question_ProofVerifyMsg_Attribute struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` CredDefID string `protobuf:"bytes,3,opt,name=cred_defID,json=credDefID,proto3" json:"cred_defID,omitempty"` // contains filtered or unexported fields }
func (*Question_ProofVerifyMsg_Attribute) Descriptor
deprecated
func (*Question_ProofVerifyMsg_Attribute) Descriptor() ([]byte, []int)
Deprecated: Use Question_ProofVerifyMsg_Attribute.ProtoReflect.Descriptor instead.
func (*Question_ProofVerifyMsg_Attribute) GetCredDefID ¶
func (x *Question_ProofVerifyMsg_Attribute) GetCredDefID() string
func (*Question_ProofVerifyMsg_Attribute) GetName ¶
func (x *Question_ProofVerifyMsg_Attribute) GetName() string
func (*Question_ProofVerifyMsg_Attribute) GetValue ¶
func (x *Question_ProofVerifyMsg_Attribute) GetValue() string
func (*Question_ProofVerifyMsg_Attribute) ProtoMessage ¶
func (*Question_ProofVerifyMsg_Attribute) ProtoMessage()
func (*Question_ProofVerifyMsg_Attribute) ProtoReflect ¶
func (x *Question_ProofVerifyMsg_Attribute) ProtoReflect() protoreflect.Message
func (*Question_ProofVerifyMsg_Attribute) Reset ¶
func (x *Question_ProofVerifyMsg_Attribute) Reset()
func (*Question_ProofVerifyMsg_Attribute) String ¶
func (x *Question_ProofVerifyMsg_Attribute) String() string
type Question_Type ¶
type Question_Type int32
Type is enum type to tell what happening. xx_WAITS means that the question is waiting for an answer and it should be answered ASAP.
const ( Question_NONE Question_Type = 0 // This is set when AgentStatus.Notification is set. Question_KEEPALIVE Question_Type = 1 // To prevent network idle to shut us down, no answer needed Question_PING_WAITS Question_Type = 2 // You have been pinged and you need to answer it Question_ISSUE_PROPOSE_WAITS Question_Type = 3 // Issuing is proposed and you need to ACK/NACK Question_PROOF_PROPOSE_WAITS Question_Type = 4 // Proof is proposed and you need to ACK/NACK Question_PROOF_VERIFY_WAITS Question_Type = 5 // Proof values need to be verified by you )
func (Question_Type) Descriptor ¶
func (Question_Type) Descriptor() protoreflect.EnumDescriptor
func (Question_Type) Enum ¶
func (x Question_Type) Enum() *Question_Type
func (Question_Type) EnumDescriptor
deprecated
func (Question_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Question_Type.Descriptor instead.
func (Question_Type) Number ¶
func (x Question_Type) Number() protoreflect.EnumNumber
func (Question_Type) String ¶
func (x Question_Type) String() string
func (Question_Type) Type ¶
func (Question_Type) Type() protoreflect.EnumType
type SAImplementation ¶
type SAImplementation struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // Implementation ID. Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // For old API, was a web hook address. Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` // For old API, was VerKey, see indy sdk. Persistent bool `protobuf:"varint,4,opt,name=persistent,proto3" json:"persistent,omitempty"` // Tells if information should be saved to wallet. // contains filtered or unexported fields }
SAImplementation is structure to specify SA implementation. TODO: refactor.
func (*SAImplementation) Descriptor
deprecated
func (*SAImplementation) Descriptor() ([]byte, []int)
Deprecated: Use SAImplementation.ProtoReflect.Descriptor instead.
func (*SAImplementation) GetEndpoint ¶
func (x *SAImplementation) GetEndpoint() string
func (*SAImplementation) GetID ¶
func (x *SAImplementation) GetID() string
func (*SAImplementation) GetKey ¶
func (x *SAImplementation) GetKey() string
func (*SAImplementation) GetPersistent ¶
func (x *SAImplementation) GetPersistent() bool
func (*SAImplementation) ProtoMessage ¶
func (*SAImplementation) ProtoMessage()
func (*SAImplementation) ProtoReflect ¶
func (x *SAImplementation) ProtoReflect() protoreflect.Message
func (*SAImplementation) Reset ¶
func (x *SAImplementation) Reset()
func (*SAImplementation) String ¶
func (x *SAImplementation) String() string
type Schema ¶
type Schema struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // ID is a schema ID. // contains filtered or unexported fields }
Schema is structure to transport schema ID.
func (*Schema) Descriptor
deprecated
func (*Schema) ProtoMessage ¶
func (*Schema) ProtoMessage()
func (*Schema) ProtoReflect ¶
func (x *Schema) ProtoReflect() protoreflect.Message
type SchemaCreate ¶
type SchemaCreate struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // name is the name of the schema. Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // version is the schema version. Attributes []string `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty"` // attributes is JSON array string. // contains filtered or unexported fields }
SchemaCreate is structure for schema creation.
func (*SchemaCreate) Descriptor
deprecated
func (*SchemaCreate) Descriptor() ([]byte, []int)
Deprecated: Use SchemaCreate.ProtoReflect.Descriptor instead.
func (*SchemaCreate) GetAttributes ¶
func (x *SchemaCreate) GetAttributes() []string
func (*SchemaCreate) GetName ¶
func (x *SchemaCreate) GetName() string
func (*SchemaCreate) GetVersion ¶
func (x *SchemaCreate) GetVersion() string
func (*SchemaCreate) ProtoMessage ¶
func (*SchemaCreate) ProtoMessage()
func (*SchemaCreate) ProtoReflect ¶
func (x *SchemaCreate) ProtoReflect() protoreflect.Message
func (*SchemaCreate) Reset ¶
func (x *SchemaCreate) Reset()
func (*SchemaCreate) String ¶
func (x *SchemaCreate) String() string
type SchemaData ¶
type SchemaData struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // ID is schema ID Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // data is a schema JSON string from the ledger. // contains filtered or unexported fields }
SchemaData is structure to fetch schema information from the ledger.
func (*SchemaData) Descriptor
deprecated
func (*SchemaData) Descriptor() ([]byte, []int)
Deprecated: Use SchemaData.ProtoReflect.Descriptor instead.
func (*SchemaData) GetData ¶
func (x *SchemaData) GetData() string
func (*SchemaData) GetID ¶
func (x *SchemaData) GetID() string
func (*SchemaData) ProtoMessage ¶
func (*SchemaData) ProtoMessage()
func (*SchemaData) ProtoReflect ¶
func (x *SchemaData) ProtoReflect() protoreflect.Message
func (*SchemaData) Reset ¶
func (x *SchemaData) Reset()
func (*SchemaData) String ¶
func (x *SchemaData) String() string
type UnimplementedAgentServiceServer ¶
type UnimplementedAgentServiceServer struct { }
UnimplementedAgentServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAgentServiceServer) CreateCredDef ¶
func (UnimplementedAgentServiceServer) CreateCredDef(context.Context, *CredDefCreate) (*CredDef, error)
func (UnimplementedAgentServiceServer) CreateInvitation ¶
func (UnimplementedAgentServiceServer) CreateInvitation(context.Context, *InvitationBase) (*Invitation, error)
func (UnimplementedAgentServiceServer) CreateSchema ¶
func (UnimplementedAgentServiceServer) CreateSchema(context.Context, *SchemaCreate) (*Schema, error)
func (UnimplementedAgentServiceServer) GetCredDef ¶
func (UnimplementedAgentServiceServer) GetCredDef(context.Context, *CredDef) (*CredDefData, error)
func (UnimplementedAgentServiceServer) GetSchema ¶
func (UnimplementedAgentServiceServer) GetSchema(context.Context, *Schema) (*SchemaData, error)
func (UnimplementedAgentServiceServer) Listen ¶
func (UnimplementedAgentServiceServer) Listen(*ClientID, AgentService_ListenServer) error
func (UnimplementedAgentServiceServer) Wait ¶
func (UnimplementedAgentServiceServer) Wait(*ClientID, AgentService_WaitServer) error
type UnimplementedProtocolServiceServer ¶
type UnimplementedProtocolServiceServer struct { }
UnimplementedProtocolServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedProtocolServiceServer) Release ¶
func (UnimplementedProtocolServiceServer) Release(context.Context, *ProtocolID) (*ProtocolID, error)
func (UnimplementedProtocolServiceServer) Resume ¶
func (UnimplementedProtocolServiceServer) Resume(context.Context, *ProtocolState) (*ProtocolID, error)
func (UnimplementedProtocolServiceServer) Start ¶
func (UnimplementedProtocolServiceServer) Start(context.Context, *Protocol) (*ProtocolID, error)
func (UnimplementedProtocolServiceServer) Status ¶
func (UnimplementedProtocolServiceServer) Status(context.Context, *ProtocolID) (*ProtocolStatus, error)
type UnsafeAgentServiceServer ¶
type UnsafeAgentServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAgentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentServiceServer will result in compilation errors.
type UnsafeProtocolServiceServer ¶
type UnsafeProtocolServiceServer interface {
// contains filtered or unexported methods
}
UnsafeProtocolServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProtocolServiceServer will result in compilation errors.