Documentation ¶
Index ¶
- Constants
- Variables
- func AssetIdentityFromUuid(uuid string) string
- func AssetUuidFromEventIdentity(eventIdentity string) string
- func AssetUuidFromIdentity(assetIdentity string) string
- func ChainIDFromString(chainID string) (*big.Int, error)
- func EventIdentityFromUuid(assetUuid, eventUuid string) string
- func EventUuidFromIdentity(eventIdentity string) string
- func NewFlatMarshalerForAssets(ignoreFields []string) *simpleoneof.Marshaler
- func NewFlatMarshalerForEvents() *simpleoneof.Marshaler
- func NewFlatMarshalerForNotifications() *simpleoneof.Marshaler
- func PermissionedIdentityFromPublic(publicIdentity string) string
- func PrivacyStringToPublicBool(b string) (bool, error)
- func PrivacyToPublicBool(b Privacy) bool
- func PublicIdentityFromPermissioned(permissionedIdentity string) string
- type ConfirmationStatus
- func (ConfirmationStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ConfirmationStatus) Enum() *ConfirmationStatus
- func (ConfirmationStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConfirmationStatus) Number() protoreflect.EnumNumber
- func (x ConfirmationStatus) String() string
- func (ConfirmationStatus) Type() protoreflect.EnumType
- type EventResponse
- func (*EventResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EventResponse) GetAssetAttributes() map[string]*attribute.Attribute
- func (x *EventResponse) GetAssetIdentity() string
- func (x *EventResponse) GetBehaviour() string
- func (x *EventResponse) GetBlockNumber() uint64
- func (x *EventResponse) GetConfirmationStatus() ConfirmationStatus
- func (x *EventResponse) GetEventAttributes() map[string]*attribute.Attribute
- func (x *EventResponse) GetFrom() string
- func (x *EventResponse) GetIdentity() string
- func (x *EventResponse) GetOperation() string
- func (x *EventResponse) GetPrincipalAccepted() *Principal
- func (x *EventResponse) GetPrincipalDeclared() *Principal
- func (x *EventResponse) GetTenantIdentity() string
- func (x *EventResponse) GetTimestampAccepted() *timestamppb.Timestamp
- func (x *EventResponse) GetTimestampCommitted() *timestamppb.Timestamp
- func (x *EventResponse) GetTimestampDeclared() *timestamppb.Timestamp
- func (x *EventResponse) GetTransactionId() string
- func (x *EventResponse) GetTransactionIndex() uint64
- func (*EventResponse) ProtoMessage()
- func (x *EventResponse) ProtoReflect() protoreflect.Message
- func (x *EventResponse) Reset()
- func (x *EventResponse) String() string
- func (m *EventResponse) Validate() error
- func (m *EventResponse) ValidateAll() error
- type EventResponseMultiError
- type EventResponseValidationError
- func (e EventResponseValidationError) Cause() error
- func (e EventResponseValidationError) Error() string
- func (e EventResponseValidationError) ErrorName() string
- func (e EventResponseValidationError) Field() string
- func (e EventResponseValidationError) Key() bool
- func (e EventResponseValidationError) Reason() string
- type IdentityFactory
- type Principal
- func (*Principal) Descriptor() ([]byte, []int)deprecated
- func (x *Principal) GetDisplayName() string
- func (x *Principal) GetEmail() string
- func (x *Principal) GetIssuer() string
- func (x *Principal) GetSubject() string
- func (*Principal) ProtoMessage()
- func (x *Principal) ProtoReflect() protoreflect.Message
- func (x *Principal) Reset()
- func (x *Principal) String() string
- func (m *Principal) Validate() error
- func (m *Principal) ValidateAll() error
- type PrincipalMultiError
- type PrincipalValidationError
- type ProofMechanism
- func (ProofMechanism) Descriptor() protoreflect.EnumDescriptor
- func (x ProofMechanism) Enum() *ProofMechanism
- func (ProofMechanism) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProofMechanism) Number() protoreflect.EnumNumber
- func (x ProofMechanism) String() string
- func (ProofMechanism) Type() protoreflect.EnumType
- type StorageIntegrity
- func (StorageIntegrity) Descriptor() protoreflect.EnumDescriptor
- func (x StorageIntegrity) Enum() *StorageIntegrity
- func (StorageIntegrity) EnumDescriptor() ([]byte, []int)deprecated
- func (x StorageIntegrity) Number() protoreflect.EnumNumber
- func (x StorageIntegrity) String() string
- func (StorageIntegrity) Type() protoreflect.EnumType
- type TrackedStatus
- func (TrackedStatus) Descriptor() protoreflect.EnumDescriptor
- func (x TrackedStatus) Enum() *TrackedStatus
- func (TrackedStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x TrackedStatus) Number() protoreflect.EnumNumber
- func (x TrackedStatus) String() string
- func (TrackedStatus) Type() protoreflect.EnumType
- type UUIDIdentityFactory
Constants ¶
const ( AssetAttributesRead = "asset_attributes_read" AssetAttributesWrite = "asset_attributes_write" EventDisplayTypeRead = "event_arc_display_type_read" EventDisplayTypeWrite = "event_arc_display_type_write" WalletValueMarker = "wallet" TesseraPubValueMarker = "tessera" AttributeItem = "attribute" ValueItem = "value" AttributeWildcard = "*" )
Variables ¶
var ( ConfirmationStatus_name = map[int32]string{ 0: "CONFIRMATION_STATUS_UNSPECIFIED", 1: "PENDING", 2: "CONFIRMED", 3: "FAILED", } ConfirmationStatus_value = map[string]int32{ "CONFIRMATION_STATUS_UNSPECIFIED": 0, "PENDING": 1, "CONFIRMED": 2, "FAILED": 3, } )
Enum value maps for ConfirmationStatus.
var ( TrackedStatus_name = map[int32]string{ 0: "TRACKED_STATUS_UNSPECIFIED", 1: "TRACKED", 2: "NOT_TRACKED", 3: "ANY", } TrackedStatus_value = map[string]int32{ "TRACKED_STATUS_UNSPECIFIED": 0, "TRACKED": 1, "NOT_TRACKED": 2, "ANY": 3, } )
Enum value maps for TrackedStatus.
var ( StorageIntegrity_name = map[int32]string{ 0: "STORAGE_INTEGRITY_UNSPECIFIED", 1: "LEDGER", 2: "TENANT_STORAGE", } StorageIntegrity_value = map[string]int32{ "STORAGE_INTEGRITY_UNSPECIFIED": 0, "LEDGER": 1, "TENANT_STORAGE": 2, } )
Enum value maps for StorageIntegrity.
var ( ProofMechanism_name = map[int32]string{ 0: "PROOF_MECHANISM_UNSPECIFIED", 1: "KHIPU", 2: "SIMPLE_HASH", 3: "TRIE_HASH", 4: "TRIE_HASH_MERKLE", 5: "TRIE_HASH_VERKLE", } ProofMechanism_value = map[string]int32{ "PROOF_MECHANISM_UNSPECIFIED": 0, "KHIPU": 1, "SIMPLE_HASH": 2, "TRIE_HASH": 3, "TRIE_HASH_MERKLE": 4, "TRIE_HASH_VERKLE": 5, } )
Enum value maps for ProofMechanism.
var File_assets_v2_assets_enums_proto protoreflect.FileDescriptor
var File_assets_v2_assets_eventresponse_proto protoreflect.FileDescriptor
var File_assets_v2_assets_principal_proto protoreflect.FileDescriptor
Functions ¶
func AssetIdentityFromUuid ¶
AssetIdentityFromUuid derives RRN identity for asset from a bare uuid id
func AssetUuidFromEventIdentity ¶
AssetUuidFromEventIdentity gets the asset UUID from an event identity
func AssetUuidFromIdentity ¶
AssetUuidFromIdentity derives asset base uuid id from RRN identity When the prefix does not match this will return the original identity unchanged
func ChainIDFromString ¶
ChainIDFromString converts the string representation of a chain id to a big integer. Ensuring it is <= floor(MAX_UINT64/2) - 36
We operate private consortia style networks and so can decide the range of chain ids we support for our networks. We choose to stick inside the uint64 representable range specified in the *stale* EIP-2294. We could in future relax this.
History: EIP-155 which introduced replay protection, does not specify an upper bound for chainId. The subsequent EIP-1344 for the ChainID opcode implicitly bounds it at 256bit (because that is the maximum the the evm allows for an atomic type).
func EventIdentityFromUuid ¶
EventIdentityFromUuid derives RRN identity for asset from base uuid ids
func EventUuidFromIdentity ¶
EventUuidFromIdentity gets the event UUID from an event identity
func NewFlatMarshalerForAssets ¶
func NewFlatMarshalerForAssets(ignoreFields []string) *simpleoneof.Marshaler
NewFlatMarshalerForAssets creates marshaler configured to handle assets/events
func NewFlatMarshalerForEvents ¶
func NewFlatMarshalerForEvents() *simpleoneof.Marshaler
NewFlatMarshalerForEvents creates marshaler configured to handle assets/events
func NewFlatMarshalerForNotifications ¶
func NewFlatMarshalerForNotifications() *simpleoneof.Marshaler
NewFlatMarshalerForNotifications create marshaler configured to handle event message - we send it to UI
func PermissionedIdentityFromPublic ¶
PermissionedIdentityFromPublic returns the permissioned identity from the public identity
NOTE: if the given identity is already a permissioned identity, return the permissioned identity unchanged.
func PrivacyStringToPublicBool ¶
PrivacyStringToPublicBool converts a string repr of Privacy enum to bool.
func PrivacyToPublicBool ¶
func PrivacyToPublicBool(b Privacy) bool
PrivacyToPublicBool converts Privacy to bool
func PublicIdentityFromPermissioned ¶
PublicIdentityFromPermissioned returns the public identity from the permissioned identity
Types ¶
type ConfirmationStatus ¶
type ConfirmationStatus int32
const ( ConfirmationStatus_CONFIRMATION_STATUS_UNSPECIFIED ConfirmationStatus = 0 ConfirmationStatus_PENDING ConfirmationStatus = 1 // not yet committed ConfirmationStatus_CONFIRMED ConfirmationStatus = 2 // committed ConfirmationStatus_FAILED ConfirmationStatus = 3 // permanent failure )
func (ConfirmationStatus) Descriptor ¶
func (ConfirmationStatus) Descriptor() protoreflect.EnumDescriptor
func (ConfirmationStatus) Enum ¶
func (x ConfirmationStatus) Enum() *ConfirmationStatus
func (ConfirmationStatus) EnumDescriptor
deprecated
func (ConfirmationStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConfirmationStatus.Descriptor instead.
func (ConfirmationStatus) Number ¶
func (x ConfirmationStatus) Number() protoreflect.EnumNumber
func (ConfirmationStatus) String ¶
func (x ConfirmationStatus) String() string
func (ConfirmationStatus) Type ¶
func (ConfirmationStatus) Type() protoreflect.EnumType
type EventResponse ¶
type EventResponse struct { // Relative Resource Name for the operation event Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // relative resource name for associated asset ( asset the operation is performed on - has to have specific behaviour enabled) AssetIdentity string `protobuf:"bytes,2,opt,name=asset_identity,json=assetIdentity,proto3" json:"asset_identity,omitempty"` // map of event attributes. Specific behaviours define required and optional event attributes for each supported operation. EventAttributes map[string]*attribute.Attribute `` /* 195-byte string literal not displayed */ // map of asset attributes. Specific behaviours define required and optional asset attributes. These attributes cause the corresponding attributes on the asset to be updated. AssetAttributes map[string]*attribute.Attribute `` /* 195-byte string literal not displayed */ // name of operation on this behviour Operation string `protobuf:"bytes,4,opt,name=operation,proto3" json:"operation,omitempty"` // name of this behaviour Behaviour string `protobuf:"bytes,14,opt,name=behaviour,proto3" json:"behaviour,omitempty"` // timestamp when operation was actually performed - if not provided will be set to timestamp_accepted TimestampDeclared *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp_declared,json=timestampDeclared,proto3" json:"timestamp_declared,omitempty"` // timestamp when system received operation request TimestampAccepted *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp_accepted,json=timestampAccepted,proto3" json:"timestamp_accepted,omitempty"` // timestamp operation has been committed on the blockchain TimestampCommitted *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=timestamp_committed,json=timestampCommitted,proto3" json:"timestamp_committed,omitempty"` // principal information associated with event - if not provided will be set to principal_accepted PrincipalDeclared *Principal `protobuf:"bytes,8,opt,name=principal_declared,json=principalDeclared,proto3" json:"principal_declared,omitempty"` // principal logged into the system that performed the operation PrincipalAccepted *Principal `protobuf:"bytes,9,opt,name=principal_accepted,json=principalAccepted,proto3" json:"principal_accepted,omitempty"` // indicated if operation has been committed to the blockchain ConfirmationStatus ConfirmationStatus `` /* 154-byte string literal not displayed */ // hash of transaction committing this operation on blockchain TransactionId string `protobuf:"bytes,11,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` // block number of committing transaction BlockNumber uint64 `protobuf:"varint,12,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` // transaction index of committing transaction TransactionIndex uint64 `protobuf:"varint,13,opt,name=transaction_index,json=transactionIndex,proto3" json:"transaction_index,omitempty"` // wallet address for the creator of this event From string `protobuf:"bytes,15,opt,name=from,proto3" json:"from,omitempty"` TenantIdentity string `protobuf:"bytes,18,opt,name=tenant_identity,json=tenantIdentity,proto3" json:"tenant_identity,omitempty"` // contains filtered or unexported fields }
func (*EventResponse) Descriptor
deprecated
func (*EventResponse) Descriptor() ([]byte, []int)
Deprecated: Use EventResponse.ProtoReflect.Descriptor instead.
func (*EventResponse) GetAssetAttributes ¶
func (x *EventResponse) GetAssetAttributes() map[string]*attribute.Attribute
func (*EventResponse) GetAssetIdentity ¶
func (x *EventResponse) GetAssetIdentity() string
func (*EventResponse) GetBehaviour ¶
func (x *EventResponse) GetBehaviour() string
func (*EventResponse) GetBlockNumber ¶
func (x *EventResponse) GetBlockNumber() uint64
func (*EventResponse) GetConfirmationStatus ¶
func (x *EventResponse) GetConfirmationStatus() ConfirmationStatus
func (*EventResponse) GetEventAttributes ¶
func (x *EventResponse) GetEventAttributes() map[string]*attribute.Attribute
func (*EventResponse) GetFrom ¶
func (x *EventResponse) GetFrom() string
func (*EventResponse) GetIdentity ¶
func (x *EventResponse) GetIdentity() string
func (*EventResponse) GetOperation ¶
func (x *EventResponse) GetOperation() string
func (*EventResponse) GetPrincipalAccepted ¶
func (x *EventResponse) GetPrincipalAccepted() *Principal
func (*EventResponse) GetPrincipalDeclared ¶
func (x *EventResponse) GetPrincipalDeclared() *Principal
func (*EventResponse) GetTenantIdentity ¶
func (x *EventResponse) GetTenantIdentity() string
func (*EventResponse) GetTimestampAccepted ¶
func (x *EventResponse) GetTimestampAccepted() *timestamppb.Timestamp
func (*EventResponse) GetTimestampCommitted ¶
func (x *EventResponse) GetTimestampCommitted() *timestamppb.Timestamp
func (*EventResponse) GetTimestampDeclared ¶
func (x *EventResponse) GetTimestampDeclared() *timestamppb.Timestamp
func (*EventResponse) GetTransactionId ¶
func (x *EventResponse) GetTransactionId() string
func (*EventResponse) GetTransactionIndex ¶
func (x *EventResponse) GetTransactionIndex() uint64
func (*EventResponse) ProtoMessage ¶
func (*EventResponse) ProtoMessage()
func (*EventResponse) ProtoReflect ¶
func (x *EventResponse) ProtoReflect() protoreflect.Message
func (*EventResponse) Reset ¶
func (x *EventResponse) Reset()
func (*EventResponse) String ¶
func (x *EventResponse) String() string
func (*EventResponse) Validate ¶
func (m *EventResponse) Validate() error
Validate checks the field values on EventResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*EventResponse) ValidateAll ¶
func (m *EventResponse) ValidateAll() error
ValidateAll checks the field values on EventResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EventResponseMultiError, or nil if none found.
type EventResponseMultiError ¶
type EventResponseMultiError []error
EventResponseMultiError is an error wrapping multiple validation errors returned by EventResponse.ValidateAll() if the designated constraints aren't met.
func (EventResponseMultiError) AllErrors ¶
func (m EventResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EventResponseMultiError) Error ¶
func (m EventResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EventResponseValidationError ¶
type EventResponseValidationError struct {
// contains filtered or unexported fields
}
EventResponseValidationError is the validation error returned by EventResponse.Validate if the designated constraints aren't met.
func (EventResponseValidationError) Cause ¶
func (e EventResponseValidationError) Cause() error
Cause function returns cause value.
func (EventResponseValidationError) Error ¶
func (e EventResponseValidationError) Error() string
Error satisfies the builtin error interface
func (EventResponseValidationError) ErrorName ¶
func (e EventResponseValidationError) ErrorName() string
ErrorName returns error name.
func (EventResponseValidationError) Field ¶
func (e EventResponseValidationError) Field() string
Field function returns field value.
func (EventResponseValidationError) Key ¶
func (e EventResponseValidationError) Key() bool
Key function returns key value.
func (EventResponseValidationError) Reason ¶
func (e EventResponseValidationError) Reason() string
Reason function returns reason value.
type IdentityFactory ¶
type IdentityFactory interface { // GenerateAssetIdentity produces RRN for asset GenerateAssetIdentity() string // GenerateEventIdentity produces RRN for event GenerateEventIdentity(string) string }
IdentityFactory generates idintities for Events and Assets base on random UUIDv4
type Principal ¶
type Principal struct { Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*Principal) Descriptor
deprecated
func (*Principal) GetDisplayName ¶
func (*Principal) GetSubject ¶
func (*Principal) ProtoMessage ¶
func (*Principal) ProtoMessage()
func (*Principal) ProtoReflect ¶
func (x *Principal) ProtoReflect() protoreflect.Message
func (*Principal) Validate ¶
Validate checks the field values on Principal with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Principal) ValidateAll ¶
ValidateAll checks the field values on Principal with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PrincipalMultiError, or nil if none found.
type PrincipalMultiError ¶
type PrincipalMultiError []error
PrincipalMultiError is an error wrapping multiple validation errors returned by Principal.ValidateAll() if the designated constraints aren't met.
func (PrincipalMultiError) AllErrors ¶
func (m PrincipalMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PrincipalMultiError) Error ¶
func (m PrincipalMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PrincipalValidationError ¶
type PrincipalValidationError struct {
// contains filtered or unexported fields
}
PrincipalValidationError is the validation error returned by Principal.Validate if the designated constraints aren't met.
func (PrincipalValidationError) Cause ¶
func (e PrincipalValidationError) Cause() error
Cause function returns cause value.
func (PrincipalValidationError) Error ¶
func (e PrincipalValidationError) Error() string
Error satisfies the builtin error interface
func (PrincipalValidationError) ErrorName ¶
func (e PrincipalValidationError) ErrorName() string
ErrorName returns error name.
func (PrincipalValidationError) Field ¶
func (e PrincipalValidationError) Field() string
Field function returns field value.
func (PrincipalValidationError) Key ¶
func (e PrincipalValidationError) Key() bool
Key function returns key value.
func (PrincipalValidationError) Reason ¶
func (e PrincipalValidationError) Reason() string
Reason function returns reason value.
type ProofMechanism ¶
type ProofMechanism int32
const ( ProofMechanism_PROOF_MECHANISM_UNSPECIFIED ProofMechanism = 0 ProofMechanism_KHIPU ProofMechanism = 1 ProofMechanism_SIMPLE_HASH ProofMechanism = 2 ProofMechanism_TRIE_HASH ProofMechanism = 3 ProofMechanism_TRIE_HASH_MERKLE ProofMechanism = 4 ProofMechanism_TRIE_HASH_VERKLE ProofMechanism = 5 )
func (ProofMechanism) Descriptor ¶
func (ProofMechanism) Descriptor() protoreflect.EnumDescriptor
func (ProofMechanism) Enum ¶
func (x ProofMechanism) Enum() *ProofMechanism
func (ProofMechanism) EnumDescriptor
deprecated
func (ProofMechanism) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProofMechanism.Descriptor instead.
func (ProofMechanism) Number ¶
func (x ProofMechanism) Number() protoreflect.EnumNumber
func (ProofMechanism) String ¶
func (x ProofMechanism) String() string
func (ProofMechanism) Type ¶
func (ProofMechanism) Type() protoreflect.EnumType
type StorageIntegrity ¶
type StorageIntegrity int32
Specifies how the asset data will be stored. This is set once on creation and does not change.
const ( StorageIntegrity_STORAGE_INTEGRITY_UNSPECIFIED StorageIntegrity = 0 StorageIntegrity_LEDGER StorageIntegrity = 1 StorageIntegrity_TENANT_STORAGE StorageIntegrity = 2 )
func (StorageIntegrity) Descriptor ¶
func (StorageIntegrity) Descriptor() protoreflect.EnumDescriptor
func (StorageIntegrity) Enum ¶
func (x StorageIntegrity) Enum() *StorageIntegrity
func (StorageIntegrity) EnumDescriptor
deprecated
func (StorageIntegrity) EnumDescriptor() ([]byte, []int)
Deprecated: Use StorageIntegrity.Descriptor instead.
func (StorageIntegrity) Number ¶
func (x StorageIntegrity) Number() protoreflect.EnumNumber
func (StorageIntegrity) String ¶
func (x StorageIntegrity) String() string
func (StorageIntegrity) Type ¶
func (StorageIntegrity) Type() protoreflect.EnumType
type TrackedStatus ¶
type TrackedStatus int32
const ( TrackedStatus_TRACKED_STATUS_UNSPECIFIED TrackedStatus = 0 TrackedStatus_TRACKED TrackedStatus = 1 TrackedStatus_NOT_TRACKED TrackedStatus = 2 TrackedStatus_ANY TrackedStatus = 3 )
func (TrackedStatus) Descriptor ¶
func (TrackedStatus) Descriptor() protoreflect.EnumDescriptor
func (TrackedStatus) Enum ¶
func (x TrackedStatus) Enum() *TrackedStatus
func (TrackedStatus) EnumDescriptor
deprecated
func (TrackedStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use TrackedStatus.Descriptor instead.
func (TrackedStatus) Number ¶
func (x TrackedStatus) Number() protoreflect.EnumNumber
func (TrackedStatus) String ¶
func (x TrackedStatus) String() string
func (TrackedStatus) Type ¶
func (TrackedStatus) Type() protoreflect.EnumType
type UUIDIdentityFactory ¶
type UUIDIdentityFactory struct{}
UUIDIdentityFactory generates UUID based identities
func (*UUIDIdentityFactory) GenerateAssetIdentity ¶
func (u *UUIDIdentityFactory) GenerateAssetIdentity() string
GenerateAssetIdentity produces RRN for asset
func (*UUIDIdentityFactory) GenerateEventIdentity ¶
func (u *UUIDIdentityFactory) GenerateEventIdentity(assetIdentity string) string
GenerateEventIdentity produces RRN for event