Documentation ¶
Index ¶
- Constants
- Variables
- type AuthInfo
- func (*AuthInfo) Descriptor() ([]byte, []int)
- func (m *AuthInfo) GetAddress() string
- func (m *AuthInfo) GetAesDscKey() []byte
- func (m *AuthInfo) GetAesPskKey() []byte
- func (m *AuthInfo) GetDid() string
- func (m *AuthInfo) GetPassword() string
- func (m *AuthInfo) GetTimestamp() int64
- func (m *AuthInfo) Marshal() (dAtA []byte, err error)
- func (m *AuthInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *AuthInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AuthInfo) ProtoMessage()
- func (m *AuthInfo) Reset()
- func (m *AuthInfo) Size() (n int)
- func (m *AuthInfo) String() string
- func (m *AuthInfo) Unmarshal(dAtA []byte) error
- func (m *AuthInfo) XXX_DiscardUnknown()
- func (m *AuthInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthInfo) XXX_Merge(src proto.Message)
- func (m *AuthInfo) XXX_Size() int
- func (m *AuthInfo) XXX_Unmarshal(b []byte) error
- type BlockchainModule
- type BucketCodec
- type BucketItem
- func (*BucketItem) Descriptor() ([]byte, []int)
- func (m *BucketItem) GetCodec() BucketCodec
- func (m *BucketItem) GetDefinitionUri() string
- func (m *BucketItem) GetName() string
- func (m *BucketItem) GetValue() []byte
- func (m *BucketItem) Marshal() (dAtA []byte, err error)
- func (m *BucketItem) MarshalTo(dAtA []byte) (int, error)
- func (m *BucketItem) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BucketItem) ProtoMessage()
- func (m *BucketItem) Reset()
- func (m *BucketItem) Size() (n int)
- func (m *BucketItem) String() string
- func (m *BucketItem) Unmarshal(dAtA []byte) error
- func (m *BucketItem) XXX_DiscardUnknown()
- func (m *BucketItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BucketItem) XXX_Merge(src proto.Message)
- func (m *BucketItem) XXX_Size() int
- func (m *BucketItem) XXX_Unmarshal(b []byte) error
- type EntityKind
- type IpnsEntry
- func (*IpnsEntry) Descriptor() ([]byte, []int)
- func (m *IpnsEntry) GetPubKey() []byte
- func (m *IpnsEntry) GetSequence() uint64
- func (m *IpnsEntry) GetSignature() []byte
- func (m *IpnsEntry) GetTtl() uint64
- func (m *IpnsEntry) GetValidity() []byte
- func (m *IpnsEntry) GetValidityType() IpnsEntry_ValidityType
- func (m *IpnsEntry) GetValue() []byte
- func (m *IpnsEntry) Marshal() (dAtA []byte, err error)
- func (m *IpnsEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *IpnsEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IpnsEntry) ProtoMessage()
- func (m *IpnsEntry) Reset()
- func (m *IpnsEntry) Size() (n int)
- func (m *IpnsEntry) String() string
- func (m *IpnsEntry) Unmarshal(dAtA []byte) error
- func (m *IpnsEntry) XXX_DiscardUnknown()
- func (m *IpnsEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IpnsEntry) XXX_Merge(src proto.Message)
- func (m *IpnsEntry) XXX_Size() int
- func (m *IpnsEntry) XXX_Unmarshal(b []byte) error
- type IpnsEntry_ValidityType
- type MotorCallback
- type MotorCallbackMessage
- type Peer
- func (*Peer) Descriptor() ([]byte, []int)
- func (m *Peer) GetDid() string
- func (m *Peer) GetPeerId() string
- func (m *Peer) GetStatus() Peer_Status
- func (m *Peer) Marshal() (dAtA []byte, err error)
- func (m *Peer) MarshalTo(dAtA []byte) (int, error)
- func (m *Peer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Peer) ProtoMessage()
- func (m *Peer) Reset()
- func (m *Peer) Size() (n int)
- func (m *Peer) String() string
- func (m *Peer) Unmarshal(dAtA []byte) error
- func (m *Peer) XXX_DiscardUnknown()
- func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Peer) XXX_Merge(src proto.Message)
- func (m *Peer) XXX_Size() int
- func (m *Peer) XXX_Unmarshal(b []byte) error
- type Peer_Status
- type WALLET_EVENT_TYPE
- type WalletEvent
- func (*WalletEvent) Descriptor() ([]byte, []int)
- func (m *WalletEvent) GetAddress() string
- func (m *WalletEvent) GetErrorMessage() string
- func (m *WalletEvent) GetMessage() string
- func (m *WalletEvent) GetType() WALLET_EVENT_TYPE
- func (m *WalletEvent) Marshal() (dAtA []byte, err error)
- func (m *WalletEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *WalletEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WalletEvent) ProtoMessage()
- func (m *WalletEvent) Reset()
- func (m *WalletEvent) Size() (n int)
- func (m *WalletEvent) String() string
- func (m *WalletEvent) Unmarshal(dAtA []byte) error
- func (m *WalletEvent) XXX_DiscardUnknown()
- func (m *WalletEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WalletEvent) XXX_Merge(src proto.Message)
- func (m *WalletEvent) XXX_Size() int
- func (m *WalletEvent) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const ( // ON_REFRESH is an event type for when the LobbyProtocol is refreshed ON_REFRESH = events.EventName("on_refresh") // ON_MAILBOX is an event type for when the MailboxProtocol receives a MailboxEvent ON_MAILBOX = events.EventName("on_mailbox") // ON_INVITE is an event type for when the TransferProtocol receives InviteEvent ON_INVITE = events.EventName("on_invite") // ON_DECISION is an event type for when the TransferProtocol receives a DecisionEvent ON_DECISION = events.EventName("on_decision") // ON_PROGRESS is an event type for when the TransferProtocol sends or receives a ProgressEvent ON_PROGRESS = events.EventName("on_progress") // ON_COMPLETE is an event type for when the TransferProtocol completes a transfer and pushes a CompleteEvent ON_COMPLETE = events.EventName("on_complete") )
Variables ¶
View Source
var ( ErrInvalidLengthContent = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowContent = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupContent = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( ErrRequestBody = errors.New("provided HTTP request body is empty or invalid") // Path Manipulation Errors ErrDuplicateFilePathOption = errors.New("duplicate file path option") ErrPrefixSuffixSetWithReplace = errors.New("prefix or Suffix set with Replace") ErrSeparatorLength = errors.New("separator length must be 1") ErrNoFileNameSet = errors.New("file name was not set by options") // Device ID Errors ErrEmptyDeviceID = errors.New("device ID cannot be empty") ErrMissingEnvVar = errors.New("cannot set EnvVariable with empty value") // Directory errors ErrDirectoryInvalid = errors.New("directory Type is invalid") ErrDirectoryUnset = errors.New("directory path has not been set") ErrDirectoryJoin = errors.New("failed to join directory path") // Node Errors ErrEmptyQueue = errors.New("no items in Transfer Queue") ErrInvalidQuery = errors.New("no SName or PeerID provided") ErrMissingParam = errors.New("paramater is missing") ErrProtocolsNotSet = errors.New("node Protocol has not been initialized") ErrRoutingNotSet = errors.New("DHT and Host have not been set by Routing Function") ErrListenerRequired = errors.New("listener was not Provided") ErrMDNSInvalidConn = errors.New("invalid Connection, cannot begin MDNS Service") ErrMotorWalletNotInitialized = errors.New("motor Wallet is not initialized") ErrDefaultStillImplemented = errors.New("callback not implemented") )
View Source
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( ErrInvalidLengthInfo = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowInfo = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupInfo = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( ErrInvalidLengthIpns = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowIpns = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupIpns = fmt.Errorf("proto: unexpected end of group") )
View Source
var BlockchainModule_name = map[int32]string{
0: "REGISTRY",
1: "SCHEMA",
2: "BUCKET",
}
View Source
var BlockchainModule_value = map[string]int32{
"REGISTRY": 0,
"SCHEMA": 1,
"BUCKET": 2,
}
View Source
var BucketCodec_name = map[int32]string{
0: "BucketCodec_NONE",
1: "BucketCodec_SCHEMA",
}
View Source
var BucketCodec_value = map[string]int32{
"BucketCodec_NONE": 0,
"BucketCodec_SCHEMA": 1,
}
View Source
var EntityKind_name = map[int32]string{
0: "ADDRESS",
1: "DID",
2: "CID",
}
View Source
var EntityKind_value = map[string]int32{
"ADDRESS": 0,
"DID": 1,
"CID": 2,
}
View Source
var IpnsEntry_ValidityType_name = map[int32]string{
0: "EOL",
}
View Source
var IpnsEntry_ValidityType_value = map[string]int32{
"EOL": 0,
}
View Source
var MotorCallbackMessage_name = map[int32]string{
0: "MTR_INIT",
1: "MTR_FAUCET_RECEIVED",
2: "MTR_SHARDS_CREATED",
3: "MTR_VAULT_CREATED",
4: "MTR_ACCOUNT_CREATED",
5: "MTR_LOGGED_IN",
}
View Source
var MotorCallbackMessage_value = map[string]int32{
"MTR_INIT": 0,
"MTR_FAUCET_RECEIVED": 1,
"MTR_SHARDS_CREATED": 2,
"MTR_VAULT_CREATED": 3,
"MTR_ACCOUNT_CREATED": 4,
"MTR_LOGGED_IN": 5,
}
View Source
var Peer_Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "STATUS_ONLINE",
2: "STATUS_AWAY",
3: "STATUS_BUSY",
}
View Source
var Peer_Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"STATUS_ONLINE": 1,
"STATUS_AWAY": 2,
"STATUS_BUSY": 3,
}
View Source
var WALLET_EVENT_TYPE_name = map[int32]string{
0: "UNKNOWN",
1: "DID_DOCUMENT_CREATE_START",
2: "DID_DOCUMENT_CREATE_END",
3: "DID_DOCUMENT_CREATE_ERROR",
4: "KEY_CREATE_START",
5: "KEY_CREATE_END",
6: "KEY_CREATE_ERROR",
7: "KEY_ENCRYPT_START",
8: "KEY_ENCRYPT_END",
9: "KEY_ENCRYPT_ERROR",
10: "FAUCET_REQUEST_START",
11: "FAUCET_REQUEST_END",
12: "FAUCET_REQUEST_ERROR",
13: "SHARD_GENERATE_START",
14: "SHARD_GENERATE_END",
15: "SHARD_GENERATE_ERROR",
16: "WHO_IS_CREATE_START",
17: "WHO_IS_CREATE_END",
18: "WHO_IS_CREATE_ERROR",
19: "VAULT_CREATE_START",
20: "VAULT_CREATE_END",
21: "VAULT_CREATE_ERROR",
}
View Source
var WALLET_EVENT_TYPE_value = map[string]int32{
"UNKNOWN": 0,
"DID_DOCUMENT_CREATE_START": 1,
"DID_DOCUMENT_CREATE_END": 2,
"DID_DOCUMENT_CREATE_ERROR": 3,
"KEY_CREATE_START": 4,
"KEY_CREATE_END": 5,
"KEY_CREATE_ERROR": 6,
"KEY_ENCRYPT_START": 7,
"KEY_ENCRYPT_END": 8,
"KEY_ENCRYPT_ERROR": 9,
"FAUCET_REQUEST_START": 10,
"FAUCET_REQUEST_END": 11,
"FAUCET_REQUEST_ERROR": 12,
"SHARD_GENERATE_START": 13,
"SHARD_GENERATE_END": 14,
"SHARD_GENERATE_ERROR": 15,
"WHO_IS_CREATE_START": 16,
"WHO_IS_CREATE_END": 17,
"WHO_IS_CREATE_ERROR": 18,
"VAULT_CREATE_START": 19,
"VAULT_CREATE_END": 20,
"VAULT_CREATE_ERROR": 21,
}
Functions ¶
This section is empty.
Types ¶
type AuthInfo ¶ added in v0.3.12
type AuthInfo struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"` AesDscKey []byte `protobuf:"bytes,3,opt,name=aes_dsc_key,json=aesDscKey,proto3" json:"aes_dsc_key,omitempty"` AesPskKey []byte `protobuf:"bytes,4,opt,name=aes_psk_key,json=aesPskKey,proto3" json:"aes_psk_key,omitempty"` Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` Timestamp int64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` }
AuthInfo is a object used by Motor clients to store authentication information in Biometric storage
func (*AuthInfo) Descriptor ¶ added in v0.3.12
func (*AuthInfo) GetAddress ¶ added in v0.3.12
func (*AuthInfo) GetAesDscKey ¶ added in v0.3.12
func (*AuthInfo) GetAesPskKey ¶ added in v0.3.12
func (*AuthInfo) GetPassword ¶ added in v0.3.12
func (*AuthInfo) GetTimestamp ¶ added in v0.3.12
func (*AuthInfo) MarshalToSizedBuffer ¶ added in v0.3.12
func (*AuthInfo) ProtoMessage ¶ added in v0.3.12
func (*AuthInfo) ProtoMessage()
func (*AuthInfo) XXX_DiscardUnknown ¶ added in v0.3.12
func (m *AuthInfo) XXX_DiscardUnknown()
func (*AuthInfo) XXX_Marshal ¶ added in v0.3.12
func (*AuthInfo) XXX_Unmarshal ¶ added in v0.3.12
type BlockchainModule ¶
type BlockchainModule int32
const ( // Query x/registry module BlockchainModule_REGISTRY BlockchainModule = 0 // Query x/schema module BlockchainModule_SCHEMA BlockchainModule = 1 // Query x/bucket module BlockchainModule_BUCKET BlockchainModule = 2 )
func (BlockchainModule) EnumDescriptor ¶
func (BlockchainModule) EnumDescriptor() ([]byte, []int)
func (BlockchainModule) String ¶
func (x BlockchainModule) String() string
type BucketCodec ¶ added in v0.7.0
type BucketCodec int32
const ( BucketCodec_BucketCodec_NONE BucketCodec = 0 BucketCodec_BucketCodec_SCHEMA BucketCodec = 1 )
func (BucketCodec) EnumDescriptor ¶ added in v0.7.0
func (BucketCodec) EnumDescriptor() ([]byte, []int)
func (BucketCodec) String ¶ added in v0.7.0
func (x BucketCodec) String() string
type BucketItem ¶ added in v0.7.0
type BucketItem struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Codec BucketCodec `protobuf:"varint,3,opt,name=codec,proto3,enum=sonrio.common.v1.BucketCodec" json:"codec,omitempty"` DefinitionUri string `protobuf:"bytes,4,opt,name=definition_uri,json=definitionUri,proto3" json:"definition_uri,omitempty"` }
func (*BucketItem) Descriptor ¶ added in v0.7.0
func (*BucketItem) Descriptor() ([]byte, []int)
func (*BucketItem) GetCodec ¶ added in v0.7.0
func (m *BucketItem) GetCodec() BucketCodec
func (*BucketItem) GetDefinitionUri ¶ added in v0.7.0
func (m *BucketItem) GetDefinitionUri() string
func (*BucketItem) GetName ¶ added in v0.7.0
func (m *BucketItem) GetName() string
func (*BucketItem) GetValue ¶ added in v0.7.0
func (m *BucketItem) GetValue() []byte
func (*BucketItem) Marshal ¶ added in v0.7.0
func (m *BucketItem) Marshal() (dAtA []byte, err error)
func (*BucketItem) MarshalTo ¶ added in v0.7.0
func (m *BucketItem) MarshalTo(dAtA []byte) (int, error)
func (*BucketItem) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *BucketItem) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BucketItem) ProtoMessage ¶ added in v0.7.0
func (*BucketItem) ProtoMessage()
func (*BucketItem) Reset ¶ added in v0.7.0
func (m *BucketItem) Reset()
func (*BucketItem) Size ¶ added in v0.7.0
func (m *BucketItem) Size() (n int)
func (*BucketItem) String ¶ added in v0.7.0
func (m *BucketItem) String() string
func (*BucketItem) Unmarshal ¶ added in v0.7.0
func (m *BucketItem) Unmarshal(dAtA []byte) error
func (*BucketItem) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *BucketItem) XXX_DiscardUnknown()
func (*BucketItem) XXX_Marshal ¶ added in v0.7.0
func (m *BucketItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BucketItem) XXX_Merge ¶ added in v0.7.0
func (m *BucketItem) XXX_Merge(src proto.Message)
func (*BucketItem) XXX_Size ¶ added in v0.7.0
func (m *BucketItem) XXX_Size() int
func (*BucketItem) XXX_Unmarshal ¶ added in v0.7.0
func (m *BucketItem) XXX_Unmarshal(b []byte) error
type EntityKind ¶
type EntityKind int32
const ( EntityKind_ADDRESS EntityKind = 0 EntityKind_DID EntityKind = 1 EntityKind_CID EntityKind = 2 )
func (EntityKind) EnumDescriptor ¶
func (EntityKind) EnumDescriptor() ([]byte, []int)
func (EntityKind) String ¶
func (x EntityKind) String() string
type IpnsEntry ¶
type IpnsEntry struct { Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` ValidityType IpnsEntry_ValidityType `protobuf:"varint,3,opt,name=validityType,proto3,enum=sonrio.common.v1.IpnsEntry_ValidityType" json:"validityType,omitempty"` Validity []byte `protobuf:"bytes,4,opt,name=validity,proto3" json:"validity,omitempty"` Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` Ttl uint64 `protobuf:"varint,6,opt,name=ttl,proto3" json:"ttl,omitempty"` PubKey []byte `protobuf:"bytes,7,opt,name=pubKey,proto3" json:"pubKey,omitempty"` }
func (*IpnsEntry) Descriptor ¶
func (*IpnsEntry) GetSequence ¶
func (*IpnsEntry) GetSignature ¶
func (*IpnsEntry) GetValidity ¶
func (*IpnsEntry) GetValidityType ¶
func (m *IpnsEntry) GetValidityType() IpnsEntry_ValidityType
func (*IpnsEntry) MarshalToSizedBuffer ¶
func (*IpnsEntry) ProtoMessage ¶
func (*IpnsEntry) ProtoMessage()
func (*IpnsEntry) XXX_DiscardUnknown ¶
func (m *IpnsEntry) XXX_DiscardUnknown()
func (*IpnsEntry) XXX_Marshal ¶
func (*IpnsEntry) XXX_Unmarshal ¶
type IpnsEntry_ValidityType ¶
type IpnsEntry_ValidityType int32
const ( // setting an EOL says "this record is valid until..." IpnsEntry_EOL IpnsEntry_ValidityType = 0 )
func (IpnsEntry_ValidityType) EnumDescriptor ¶
func (IpnsEntry_ValidityType) EnumDescriptor() ([]byte, []int)
func (IpnsEntry_ValidityType) String ¶
func (x IpnsEntry_ValidityType) String() string
type MotorCallback ¶
type MotorCallback interface { OnDiscover(data []byte) OnWalletEvent(data []byte) OnLinking(data []byte) }
func DefaultCallback ¶
func DefaultCallback() MotorCallback
type MotorCallbackMessage ¶ added in v0.3.12
type MotorCallbackMessage int32
const ( MotorCallbackMessage_MTR_INIT MotorCallbackMessage = 0 MotorCallbackMessage_MTR_FAUCET_RECEIVED MotorCallbackMessage = 1 MotorCallbackMessage_MTR_SHARDS_CREATED MotorCallbackMessage = 2 MotorCallbackMessage_MTR_VAULT_CREATED MotorCallbackMessage = 3 MotorCallbackMessage_MTR_ACCOUNT_CREATED MotorCallbackMessage = 4 MotorCallbackMessage_MTR_LOGGED_IN MotorCallbackMessage = 5 )
func (MotorCallbackMessage) EnumDescriptor ¶ added in v0.3.12
func (MotorCallbackMessage) EnumDescriptor() ([]byte, []int)
func (MotorCallbackMessage) String ¶ added in v0.3.12
func (x MotorCallbackMessage) String() string
type Peer ¶
type Peer struct { PeerId string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` Did string `protobuf:"bytes,2,opt,name=did,proto3" json:"did,omitempty"` Status Peer_Status `protobuf:"varint,3,opt,name=status,proto3,enum=sonrio.common.v1.Peer_Status" json:"status,omitempty"` }
Basic Info Sent to Peers to Establish Connections
func (*Peer) Descriptor ¶
func (*Peer) GetStatus ¶
func (m *Peer) GetStatus() Peer_Status
func (*Peer) ProtoMessage ¶
func (*Peer) ProtoMessage()
func (*Peer) XXX_DiscardUnknown ¶
func (m *Peer) XXX_DiscardUnknown()
func (*Peer) XXX_Unmarshal ¶
type Peer_Status ¶
type Peer_Status int32
Peers Active Status
const ( Peer_STATUS_UNSPECIFIED Peer_Status = 0 Peer_STATUS_ONLINE Peer_Status = 1 Peer_STATUS_AWAY Peer_Status = 2 Peer_STATUS_BUSY Peer_Status = 3 )
func (Peer_Status) EnumDescriptor ¶
func (Peer_Status) EnumDescriptor() ([]byte, []int)
func (Peer_Status) String ¶
func (x Peer_Status) String() string
type WALLET_EVENT_TYPE ¶ added in v0.7.0
type WALLET_EVENT_TYPE int32
defines actions performed during wallet creation
const ( WALLET_EVENT_TYPE_UNKNOWN WALLET_EVENT_TYPE = 0 // triggered when did document is created for the new address. WALLET_EVENT_TYPE_DID_DOCUMENT_CREATE_START WALLET_EVENT_TYPE = 1 // triggered when assertion method is created and the pk is associated with the document. WALLET_EVENT_TYPE_DID_DOCUMENT_CREATE_END WALLET_EVENT_TYPE = 2 // triggered if did document creation has an error errorMessage will be populated WALLET_EVENT_TYPE_DID_DOCUMENT_CREATE_ERROR WALLET_EVENT_TYPE = 3 // triggered when PSK and DSC keys are being created. Only fires for CreateAccount // fires on the the start of DSC creation WALLET_EVENT_TYPE_KEY_CREATE_START WALLET_EVENT_TYPE = 4 // triggered when both the PSK and DSC keys are done generating. Only fires for CreateAccount WALLET_EVENT_TYPE_KEY_CREATE_END WALLET_EVENT_TYPE = 5 // triggered when key create has an error errorMessage will be populated WALLET_EVENT_TYPE_KEY_CREATE_ERROR WALLET_EVENT_TYPE = 6 // triggered on start of PSK and DSC singing WALLET_EVENT_TYPE_KEY_ENCRYPT_START WALLET_EVENT_TYPE = 7 // triggered on end of PSK and DSC singning WALLET_EVENT_TYPE_KEY_ENCRYPT_END WALLET_EVENT_TYPE = 8 // triggered if key encrypt has an error. WALLET_EVENT_TYPE_KEY_ENCRYPT_ERROR WALLET_EVENT_TYPE = 9 // triggered before intial token faucet occurs to the new address. WALLET_EVENT_TYPE_FAUCET_REQUEST_START WALLET_EVENT_TYPE = 10 // triggered after a response from faucet request is recieved. WALLET_EVENT_TYPE_FAUCET_REQUEST_END WALLET_EVENT_TYPE = 11 // triggered if fauceting has an error errorMessage will be populated WALLET_EVENT_TYPE_FAUCET_REQUEST_ERROR WALLET_EVENT_TYPE = 12 // triggered on inital shard creation start WALLET_EVENT_TYPE_SHARD_GENERATE_START WALLET_EVENT_TYPE = 13 // triggered on inital shard generation end. WALLET_EVENT_TYPE_SHARD_GENERATE_END WALLET_EVENT_TYPE = 14 // triggered if shard generation has an error errorMessage will be populated WALLET_EVENT_TYPE_SHARD_GENERATE_ERROR WALLET_EVENT_TYPE = 15 // triggered on start of WhoIs creation WALLET_EVENT_TYPE_WHO_IS_CREATE_START WALLET_EVENT_TYPE = 16 // triggered when WhoIs creation ends WALLET_EVENT_TYPE_WHO_IS_CREATE_END WALLET_EVENT_TYPE = 17 // triggered when WhoIs creation errors WALLET_EVENT_TYPE_WHO_IS_CREATE_ERROR WALLET_EVENT_TYPE = 18 // triggered when the vault is being created. WALLET_EVENT_TYPE_VAULT_CREATE_START WALLET_EVENT_TYPE = 19 // triggered after vault creation has returned. // if an error occurs it will be within the event WALLET_EVENT_TYPE_VAULT_CREATE_END WALLET_EVENT_TYPE = 20 // triggered if vault create has an error populates errorMessage WALLET_EVENT_TYPE_VAULT_CREATE_ERROR WALLET_EVENT_TYPE = 21 )
func (WALLET_EVENT_TYPE) EnumDescriptor ¶ added in v0.7.0
func (WALLET_EVENT_TYPE) EnumDescriptor() ([]byte, []int)
func (WALLET_EVENT_TYPE) String ¶ added in v0.7.0
func (x WALLET_EVENT_TYPE) String() string
type WalletEvent ¶ added in v0.7.0
type WalletEvent struct { // context on what part of the wallet creation process is occuring Type WALLET_EVENT_TYPE `protobuf:"varint,1,opt,name=type,proto3,enum=sonrio.common.v1.WALLET_EVENT_TYPE" json:"type,omitempty"` // populated if an error has occured, type will denote an error ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"` // status message. does not have to be populated Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // Address of the wallet that is being created Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` }
func (*WalletEvent) Descriptor ¶ added in v0.7.0
func (*WalletEvent) Descriptor() ([]byte, []int)
func (*WalletEvent) GetAddress ¶ added in v0.7.1
func (m *WalletEvent) GetAddress() string
func (*WalletEvent) GetErrorMessage ¶ added in v0.7.0
func (m *WalletEvent) GetErrorMessage() string
func (*WalletEvent) GetMessage ¶ added in v0.7.0
func (m *WalletEvent) GetMessage() string
func (*WalletEvent) GetType ¶ added in v0.7.0
func (m *WalletEvent) GetType() WALLET_EVENT_TYPE
func (*WalletEvent) Marshal ¶ added in v0.7.0
func (m *WalletEvent) Marshal() (dAtA []byte, err error)
func (*WalletEvent) MarshalTo ¶ added in v0.7.0
func (m *WalletEvent) MarshalTo(dAtA []byte) (int, error)
func (*WalletEvent) MarshalToSizedBuffer ¶ added in v0.7.0
func (m *WalletEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WalletEvent) ProtoMessage ¶ added in v0.7.0
func (*WalletEvent) ProtoMessage()
func (*WalletEvent) Reset ¶ added in v0.7.0
func (m *WalletEvent) Reset()
func (*WalletEvent) Size ¶ added in v0.7.0
func (m *WalletEvent) Size() (n int)
func (*WalletEvent) String ¶ added in v0.7.0
func (m *WalletEvent) String() string
func (*WalletEvent) Unmarshal ¶ added in v0.7.0
func (m *WalletEvent) Unmarshal(dAtA []byte) error
func (*WalletEvent) XXX_DiscardUnknown ¶ added in v0.7.0
func (m *WalletEvent) XXX_DiscardUnknown()
func (*WalletEvent) XXX_Marshal ¶ added in v0.7.0
func (m *WalletEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WalletEvent) XXX_Merge ¶ added in v0.7.0
func (m *WalletEvent) XXX_Merge(src proto.Message)
func (*WalletEvent) XXX_Size ¶ added in v0.7.0
func (m *WalletEvent) XXX_Size() int
func (*WalletEvent) XXX_Unmarshal ¶ added in v0.7.0
func (m *WalletEvent) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.