assets

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 39 Imported by: 1

Documentation

Overview

Package assets is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package assets is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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     = "*"
)
View Source
const (
	PublicAssets_GetPublicEvent_FullMethodName   = "/archivist.v2.PublicAssets/GetPublicEvent"
	PublicAssets_GetPublicAsset_FullMethodName   = "/archivist.v2.PublicAssets/GetPublicAsset"
	PublicAssets_ListPublicEvents_FullMethodName = "/archivist.v2.PublicAssets/ListPublicEvents"
)
View Source
const (
	Assets_ListAssets_FullMethodName        = "/archivist.v2.Assets/ListAssets"
	Assets_CreateAsset_FullMethodName       = "/archivist.v2.Assets/CreateAsset"
	Assets_GetAsset_FullMethodName          = "/archivist.v2.Assets/GetAsset"
	Assets_GetAssetPublicURL_FullMethodName = "/archivist.v2.Assets/GetAssetPublicURL"
	Assets_GetEvent_FullMethodName          = "/archivist.v2.Assets/GetEvent"
	Assets_GetEventPublicURL_FullMethodName = "/archivist.v2.Assets/GetEventPublicURL"
	Assets_ListEvents_FullMethodName        = "/archivist.v2.Assets/ListEvents"
	Assets_GetCaps_FullMethodName           = "/archivist.v2.Assets/GetCaps"
)
View Source
const (
	Events_Create_FullMethodName = "/archivist.v2.Events/Create"
)

Variables

View Source
var (
	ConfirmationStatus_name = map[int32]string{
		0: "CONFIRMATION_STATUS_UNSPECIFIED",
		1: "PENDING",
		2: "CONFIRMED",
		3: "FAILED",
		4: "STORED",
		5: "COMMITTED",
		6: "UNEQUIVOCAL",
	}
	ConfirmationStatus_value = map[string]int32{
		"CONFIRMATION_STATUS_UNSPECIFIED": 0,
		"PENDING":                         1,
		"CONFIRMED":                       2,
		"FAILED":                          3,
		"STORED":                          4,
		"COMMITTED":                       5,
		"UNEQUIVOCAL":                     6,
	}
)

Enum value maps for ConfirmationStatus.

View Source
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.

View Source
var (
	ProofMechanism_name = map[int32]string{
		0: "PROOF_MECHANISM_UNSPECIFIED",
		1: "RESERVED1",
		2: "SIMPLE_HASH",
		3: "MERKLE_LOG",
	}
	ProofMechanism_value = map[string]int32{
		"PROOF_MECHANISM_UNSPECIFIED": 0,
		"RESERVED1":                   1,
		"SIMPLE_HASH":                 2,
		"MERKLE_LOG":                  3,
	}
)

Enum value maps for ProofMechanism.

View Source
var (
	Privacy_name = map[int32]string{
		0: "PRIVACY_UNSPECIFIED",
		1: "RESTRICTED",
		2: "PUBLIC",
	}
	Privacy_value = map[string]int32{
		"PRIVACY_UNSPECIFIED": 0,
		"RESTRICTED":          1,
		"PUBLIC":              2,
	}
)

Enum value maps for Privacy.

View Source
var (
	ListAssetsRequest_OrderBy_name = map[int32]string{
		0: "DEFAULT",
		1: "SIMPLEHASHV1",
		2: "SIMPLEHASHV2",
	}
	ListAssetsRequest_OrderBy_value = map[string]int32{
		"DEFAULT":      0,
		"SIMPLEHASHV1": 1,
		"SIMPLEHASHV2": 2,
	}
)

Enum value maps for ListAssetsRequest_OrderBy.

View Source
var (
	ListEventsRequest_OrderBy_name = map[int32]string{
		0: "DEFAULT",
		1: "SIMPLEHASHV1",
		2: "SIMPLEHASHV2",
	}
	ListEventsRequest_OrderBy_value = map[string]int32{
		"DEFAULT":      0,
		"SIMPLEHASHV1": 1,
		"SIMPLEHASHV2": 2,
	}
)

Enum value maps for ListEventsRequest_OrderBy.

View Source
var Assets_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "archivist.v2.Assets",
	HandlerType: (*AssetsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListAssets",
			Handler:    _Assets_ListAssets_Handler,
		},
		{
			MethodName: "CreateAsset",
			Handler:    _Assets_CreateAsset_Handler,
		},
		{
			MethodName: "GetAsset",
			Handler:    _Assets_GetAsset_Handler,
		},
		{
			MethodName: "GetAssetPublicURL",
			Handler:    _Assets_GetAssetPublicURL_Handler,
		},
		{
			MethodName: "GetEvent",
			Handler:    _Assets_GetEvent_Handler,
		},
		{
			MethodName: "GetEventPublicURL",
			Handler:    _Assets_GetEventPublicURL_Handler,
		},
		{
			MethodName: "ListEvents",
			Handler:    _Assets_ListEvents_Handler,
		},
		{
			MethodName: "GetCaps",
			Handler:    _Assets_GetCaps_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "datatrails-common-api/assets/v2/assets/service.proto",
}

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

View Source
var Events_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "archivist.v2.Events",
	HandlerType: (*EventsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _Events_Create_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "datatrails-common-api/assets/v2/assets/service.proto",
}

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

View Source
var File_datatrails_common_api_assets_v2_assets_assetresponse_proto protoreflect.FileDescriptor
View Source
var File_datatrails_common_api_assets_v2_assets_createasset_proto protoreflect.FileDescriptor
View Source
var File_datatrails_common_api_assets_v2_assets_createevent_proto protoreflect.FileDescriptor
View Source
var File_datatrails_common_api_assets_v2_assets_enums_proto protoreflect.FileDescriptor
View Source
var File_datatrails_common_api_assets_v2_assets_eventmessage_proto protoreflect.FileDescriptor
View Source
var File_datatrails_common_api_assets_v2_assets_eventresponse_proto protoreflect.FileDescriptor
View Source
var File_datatrails_common_api_assets_v2_assets_eventresponsejsonapi_proto protoreflect.FileDescriptor
View Source
var File_datatrails_common_api_assets_v2_assets_getasset_proto protoreflect.FileDescriptor
View Source
var File_datatrails_common_api_assets_v2_assets_getevent_proto protoreflect.FileDescriptor
View Source
var File_datatrails_common_api_assets_v2_assets_listassets_proto protoreflect.FileDescriptor
View Source
var File_datatrails_common_api_assets_v2_assets_listevents_proto protoreflect.FileDescriptor
View Source
var File_datatrails_common_api_assets_v2_assets_merklelogentry_proto protoreflect.FileDescriptor
View Source
var File_datatrails_common_api_assets_v2_assets_miscmessages_proto protoreflect.FileDescriptor
View Source
var File_datatrails_common_api_assets_v2_assets_principal_proto protoreflect.FileDescriptor
View Source
var File_datatrails_common_api_assets_v2_assets_publicassets_proto protoreflect.FileDescriptor
View Source
var File_datatrails_common_api_assets_v2_assets_service_proto protoreflect.FileDescriptor
View Source
var PublicAssets_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "archivist.v2.PublicAssets",
	HandlerType: (*PublicAssetsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetPublicEvent",
			Handler:    _PublicAssets_GetPublicEvent_Handler,
		},
		{
			MethodName: "GetPublicAsset",
			Handler:    _PublicAssets_GetPublicAsset_Handler,
		},
		{
			MethodName: "ListPublicEvents",
			Handler:    _PublicAssets_ListPublicEvents_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "datatrails-common-api/assets/v2/assets/publicassets.proto",
}

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

Functions

func AssetIdentityFromUuid

func AssetIdentityFromUuid(uuid string) string

AssetIdentityFromUuid derives RRN identity for asset from a bare uuid id

func AssetUuidFromEventIdentity

func AssetUuidFromEventIdentity(eventIdentity string) string

AssetUuidFromEventIdentity gets the asset UUID from an event identity

func AssetUuidFromIdentity

func AssetUuidFromIdentity(assetIdentity string) string

AssetUuidFromIdentity derives asset base uuid id from RRN identity When the prefix does not match this will return the original identity unchanged

func ChainIDFromString

func ChainIDFromString(chainID string) (*big.Int, error)

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

func EventIdentityFromUuid(assetUuid, eventUuid string) string

EventIdentityFromUuid derives RRN identity for asset from base uuid ids

func EventUuidFromIdentity

func EventUuidFromIdentity(eventIdentity string) string

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

func PermissionedIdentityFromPublic(publicIdentity string) string

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

func PrivacyStringToPublicBool(b string) (bool, error)

PrivacyStringToPublicBool converts a string repr of Privacy enum to bool.

func PrivacyToPublicBool

func PrivacyToPublicBool(b Privacy) bool

PrivacyToPublicBool converts Privacy to bool

func PublicIdentityFromPermissioned

func PublicIdentityFromPermissioned(permissionedIdentity string) string

PublicIdentityFromPermissioned returns the public identity from the permissioned identity

func RegisterAssetsHandler

func RegisterAssetsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAssetsHandler registers the http handlers for service Assets to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAssetsHandlerClient

func RegisterAssetsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AssetsClient) error

RegisterAssetsHandlerClient registers the http handlers for service Assets to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AssetsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AssetsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AssetsClient" to call the correct interceptors.

func RegisterAssetsHandlerFromEndpoint

func RegisterAssetsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAssetsHandlerFromEndpoint is same as RegisterAssetsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAssetsHandlerServer

func RegisterAssetsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AssetsServer) error

RegisterAssetsHandlerServer registers the http handlers for service Assets to "mux". UnaryRPC :call AssetsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAssetsHandlerFromEndpoint instead.

func RegisterAssetsServer

func RegisterAssetsServer(s grpc.ServiceRegistrar, srv AssetsServer)

func RegisterEventsHandler

func RegisterEventsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterEventsHandler registers the http handlers for service Events to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterEventsHandlerClient

func RegisterEventsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EventsClient) error

RegisterEventsHandlerClient registers the http handlers for service Events to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "EventsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "EventsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "EventsClient" to call the correct interceptors.

func RegisterEventsHandlerFromEndpoint

func RegisterEventsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterEventsHandlerFromEndpoint is same as RegisterEventsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterEventsHandlerServer

func RegisterEventsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EventsServer) error

RegisterEventsHandlerServer registers the http handlers for service Events to "mux". UnaryRPC :call EventsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterEventsHandlerFromEndpoint instead.

func RegisterEventsServer

func RegisterEventsServer(s grpc.ServiceRegistrar, srv EventsServer)

func RegisterPublicAssetsHandler

func RegisterPublicAssetsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterPublicAssetsHandler registers the http handlers for service PublicAssets to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterPublicAssetsHandlerClient

func RegisterPublicAssetsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PublicAssetsClient) error

RegisterPublicAssetsHandlerClient registers the http handlers for service PublicAssets to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PublicAssetsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PublicAssetsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PublicAssetsClient" to call the correct interceptors.

func RegisterPublicAssetsHandlerFromEndpoint

func RegisterPublicAssetsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterPublicAssetsHandlerFromEndpoint is same as RegisterPublicAssetsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterPublicAssetsHandlerServer

func RegisterPublicAssetsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PublicAssetsServer) error

RegisterPublicAssetsHandlerServer registers the http handlers for service PublicAssets to "mux". UnaryRPC :call PublicAssetsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPublicAssetsHandlerFromEndpoint instead.

func RegisterPublicAssetsServer

func RegisterPublicAssetsServer(s grpc.ServiceRegistrar, srv PublicAssetsServer)

Types

type AssetResponse

type AssetResponse struct {

	// asset identity
	Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
	// list of enabled behaviours
	Behaviours []string `protobuf:"bytes,2,rep,name=behaviours,proto3" json:"behaviours,omitempty"`
	// all the assets attributes
	Attributes map[string]*attribute.Attribute `` /* 161-byte string literal not displayed */
	// indicated if asset has been committed to the blockchain, possible values are CONFIRMED for committed, PENDING for not yet committed or FAILED for permanent failure
	ConfirmationStatus ConfirmationStatus `` /* 153-byte string literal not displayed */
	// indicates if asset is being tracked in the system TRACKED or NOT_TRACKED
	Tracked TrackedStatus `protobuf:"varint,5,opt,name=tracked,proto3,enum=archivist.v2.TrackedStatus" json:"tracked,omitempty"`
	// describes the access policy for this asset
	AccessPolicy map[string]*attribute.Attribute `` /* 185-byte string literal not displayed */
	// wallet address for the owner of this asset
	Owner          string                 `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner,omitempty"`
	AtTime         *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=at_time,json=atTime,proto3" json:"at_time,omitempty"`
	ProofMechanism ProofMechanism         `` /* 138-byte string literal not displayed */
	ChainId        string                 `protobuf:"bytes,11,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Public         bool                   `protobuf:"varint,12,opt,name=public,proto3" json:"public,omitempty"`
	TenantIdentity string                 `protobuf:"bytes,13,opt,name=tenant_identity,json=tenantIdentity,proto3" json:"tenant_identity,omitempty"`
	// contains filtered or unexported fields
}

The full set of properties common to all assets. Note that some of these properies are synthesized by the system. Individual apis will clarify which properties the accept and require. Assets may have one or more representative images. Those will be included in the attachments list. The label for those attachements is up to the UI Note that there is no PATCH or PUT for assets as they are immutable and "changes" are merely aggregated events on the identified asset, therefore mutable fields; display_name, extended_attributes, type_attributes, tracked and attachments, will each require an Event to change (see Events below).

func (*AssetResponse) AccessPolicyStringValue

func (a *AssetResponse) AccessPolicyStringValue(name, defaultValue string) (string, error)

AccessPolicyStringValue retreives the names value form an access policy attribute. if the attribute is missing the defaultValue is returned. otherwise the value is returned if it is a string. If the value exists and is not a string an error is returned.

func (*AssetResponse) Descriptor deprecated

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

Deprecated: Use AssetResponse.ProtoReflect.Descriptor instead.

func (*AssetResponse) GetAccessPolicy

func (x *AssetResponse) GetAccessPolicy() map[string]*attribute.Attribute

func (*AssetResponse) GetAtTime

func (x *AssetResponse) GetAtTime() *timestamppb.Timestamp

func (*AssetResponse) GetAttributes

func (x *AssetResponse) GetAttributes() map[string]*attribute.Attribute

func (*AssetResponse) GetBehaviours

func (x *AssetResponse) GetBehaviours() []string

func (*AssetResponse) GetChainId

func (x *AssetResponse) GetChainId() string

func (*AssetResponse) GetConfirmationStatus

func (x *AssetResponse) GetConfirmationStatus() ConfirmationStatus

func (*AssetResponse) GetIdentity

func (x *AssetResponse) GetIdentity() string

func (*AssetResponse) GetOwner

func (x *AssetResponse) GetOwner() string

func (*AssetResponse) GetProofMechanism

func (x *AssetResponse) GetProofMechanism() ProofMechanism

func (*AssetResponse) GetPublic

func (x *AssetResponse) GetPublic() bool

func (*AssetResponse) GetTenantIdentity

func (x *AssetResponse) GetTenantIdentity() string

func (*AssetResponse) GetTracked

func (x *AssetResponse) GetTracked() TrackedStatus

func (*AssetResponse) IsPubliclyAttested added in v0.3.4

func (a *AssetResponse) IsPubliclyAttested(publicWallet string) bool

IsPubliclyAttested determines if an asset is publicly attested if public wallet address is present *anywhere* in the policy we assume the asset is public as there is no other way of getting public wallet to policy other than setting public: true on an asset previous method was to specific and did not work with partial attestation

func (*AssetResponse) IsSharedForWallet

func (a *AssetResponse) IsSharedForWallet(policyKey, wallet, attribute string) (bool, error)

IsSharedForWallet determines if the value identified by `attribute` is shared with the organisation identified by `wallet`. `policyKey` determines the kind of share: asset attribute or event attribute and whether it is a read share or a write share. The same attribute may be independently read or write shared, and may be independently shared when present on event attributes or asset attributes. Please use the appropriate constants defined in this package.

func (*AssetResponse) ProtoMessage

func (*AssetResponse) ProtoMessage()

func (*AssetResponse) ProtoReflect

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

func (*AssetResponse) Reset

func (x *AssetResponse) Reset()

func (*AssetResponse) String

func (x *AssetResponse) String() string

func (*AssetResponse) Validate

func (m *AssetResponse) Validate() error

Validate checks the field values on AssetResponse 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 (*AssetResponse) ValidateAll

func (m *AssetResponse) ValidateAll() error

ValidateAll checks the field values on AssetResponse 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 AssetResponseMultiError, or nil if none found.

type AssetResponseMultiError

type AssetResponseMultiError []error

AssetResponseMultiError is an error wrapping multiple validation errors returned by AssetResponse.ValidateAll() if the designated constraints aren't met.

func (AssetResponseMultiError) AllErrors

func (m AssetResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AssetResponseMultiError) Error

func (m AssetResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AssetResponseValidationError

type AssetResponseValidationError struct {
	// contains filtered or unexported fields
}

AssetResponseValidationError is the validation error returned by AssetResponse.Validate if the designated constraints aren't met.

func (AssetResponseValidationError) Cause

Cause function returns cause value.

func (AssetResponseValidationError) Error

Error satisfies the builtin error interface

func (AssetResponseValidationError) ErrorName

func (e AssetResponseValidationError) ErrorName() string

ErrorName returns error name.

func (AssetResponseValidationError) Field

Field function returns field value.

func (AssetResponseValidationError) Key

Key function returns key value.

func (AssetResponseValidationError) Reason

Reason function returns reason value.

type AssetsClient

type AssetsClient interface {
	ListAssets(ctx context.Context, in *ListAssetsRequest, opts ...grpc.CallOption) (*ListAssetsResponse, error)
	CreateAsset(ctx context.Context, in *CreateAssetRequest, opts ...grpc.CallOption) (*AssetResponse, error)
	GetAsset(ctx context.Context, in *GetAssetRequest, opts ...grpc.CallOption) (*AssetResponse, error)
	GetAssetPublicURL(ctx context.Context, in *GetAssetPublicURLRequest, opts ...grpc.CallOption) (*PublicAssetURLResponse, error)
	GetEvent(ctx context.Context, in *GetEventRequest, opts ...grpc.CallOption) (*EventResponse, error)
	GetEventPublicURL(ctx context.Context, in *GetEventRequest, opts ...grpc.CallOption) (*PublicEventURLResponse, error)
	ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error)
	GetCaps(ctx context.Context, in *caps.GetCapsRequest, opts ...grpc.CallOption) (*caps.Caps, error)
}

AssetsClient is the client API for Assets 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 NewAssetsClient

func NewAssetsClient(cc grpc.ClientConnInterface) AssetsClient

type AssetsServer

AssetsServer is the server API for Assets service. All implementations must embed UnimplementedAssetsServer for forward compatibility

type ConfirmationStatus

type ConfirmationStatus int32
const (
	ConfirmationStatus_CONFIRMATION_STATUS_UNSPECIFIED ConfirmationStatus = 0
	ConfirmationStatus_PENDING                         ConfirmationStatus = 1 // not yet committed
	ConfirmationStatus_CONFIRMED                       ConfirmationStatus = 2 // committed. forestrie: "You can easily prove it changed"
	ConfirmationStatus_FAILED                          ConfirmationStatus = 3 // permanent failure
	// Regarding the new statuses for forestrie,  See
	// https://github.com/datatrails/epic-8120-scalable-proof-mechanisms/blob/main/event-trust-levels.md
	ConfirmationStatus_STORED    ConfirmationStatus = 4 // forestrie, "its in the db"
	ConfirmationStatus_COMMITTED ConfirmationStatus = 5 // forestrie, "you can know if its changed"
	// We re-use the constant for CONFIRMED (above)
	ConfirmationStatus_UNEQUIVOCAL ConfirmationStatus = 6 // forestrie, "You easily prove it was publicly available to all"
)

func (ConfirmationStatus) Descriptor

func (ConfirmationStatus) Enum

func (ConfirmationStatus) EnumDescriptor deprecated

func (ConfirmationStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use ConfirmationStatus.Descriptor instead.

func (ConfirmationStatus) Number

func (ConfirmationStatus) String

func (x ConfirmationStatus) String() string

func (ConfirmationStatus) Type

type CreateAssetRequest

type CreateAssetRequest struct {

	// list of enabled behaviours
	Behaviours []string `protobuf:"bytes,1,rep,name=behaviours,proto3" json:"behaviours,omitempty"`
	// event attributes for the assets creation
	Attributes map[string]*attribute.Attribute `` /* 161-byte string literal not displayed */
	// mechanism for evidential proof for Events on this Asset
	ProofMechanism ProofMechanism `` /* 137-byte string literal not displayed */
	ChainId        string         `protobuf:"bytes,5,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Public         bool           `protobuf:"varint,6,opt,name=public,proto3" json:"public,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAssetRequest) Descriptor deprecated

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

Deprecated: Use CreateAssetRequest.ProtoReflect.Descriptor instead.

func (*CreateAssetRequest) GetAttributes

func (x *CreateAssetRequest) GetAttributes() map[string]*attribute.Attribute

func (*CreateAssetRequest) GetBehaviours

func (x *CreateAssetRequest) GetBehaviours() []string

func (*CreateAssetRequest) GetChainId

func (x *CreateAssetRequest) GetChainId() string

func (*CreateAssetRequest) GetProofMechanism

func (x *CreateAssetRequest) GetProofMechanism() ProofMechanism

func (*CreateAssetRequest) GetPublic

func (x *CreateAssetRequest) GetPublic() bool

func (*CreateAssetRequest) ProtoMessage

func (*CreateAssetRequest) ProtoMessage()

func (*CreateAssetRequest) ProtoReflect

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

func (*CreateAssetRequest) Reset

func (x *CreateAssetRequest) Reset()

func (*CreateAssetRequest) String

func (x *CreateAssetRequest) String() string

func (*CreateAssetRequest) Validate

func (m *CreateAssetRequest) Validate() error

Validate checks the field values on CreateAssetRequest 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 (*CreateAssetRequest) ValidateAll

func (m *CreateAssetRequest) ValidateAll() error

ValidateAll checks the field values on CreateAssetRequest 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 CreateAssetRequestMultiError, or nil if none found.

type CreateAssetRequestMultiError

type CreateAssetRequestMultiError []error

CreateAssetRequestMultiError is an error wrapping multiple validation errors returned by CreateAssetRequest.ValidateAll() if the designated constraints aren't met.

func (CreateAssetRequestMultiError) AllErrors

func (m CreateAssetRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateAssetRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateAssetRequestValidationError

type CreateAssetRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateAssetRequestValidationError is the validation error returned by CreateAssetRequest.Validate if the designated constraints aren't met.

func (CreateAssetRequestValidationError) Cause

Cause function returns cause value.

func (CreateAssetRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateAssetRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateAssetRequestValidationError) Field

Field function returns field value.

func (CreateAssetRequestValidationError) Key

Key function returns key value.

func (CreateAssetRequestValidationError) Reason

Reason function returns reason value.

type CreateEventRequest

type CreateEventRequest struct {

	// relative resource name for associated asset ( asset the operation is performed on  - has to have specific behaviour enabled)
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// name of this behaviour
	Behaviour string `protobuf:"bytes,2,opt,name=behaviour,proto3" json:"behaviour,omitempty"`
	// name of operation on this behviour
	Operation string `protobuf:"bytes,3,opt,name=operation,proto3" json:"operation,omitempty"`
	// principal information associated with event - if not provided will be set to principal_accepted
	PrincipalDeclared *Principal `protobuf:"bytes,5,opt,name=principal_declared,json=principalDeclared,proto3" json:"principal_declared,omitempty"`
	// timestamp when operation was actually performed - if not provided will be set to timestamp_accepted
	TimestampDeclared *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp_declared,json=timestampDeclared,proto3" json:"timestamp_declared,omitempty"`
	// map of event attributes. Specific behaviours define required and optional event attributes for each supported operation.
	EventAttributes map[string]*attribute.Attribute `` /* 194-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 `` /* 194-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CreateEventRequest) Descriptor deprecated

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

Deprecated: Use CreateEventRequest.ProtoReflect.Descriptor instead.

func (*CreateEventRequest) GetAssetAttributes

func (x *CreateEventRequest) GetAssetAttributes() map[string]*attribute.Attribute

func (*CreateEventRequest) GetBehaviour

func (x *CreateEventRequest) GetBehaviour() string

func (*CreateEventRequest) GetEventAttributes

func (x *CreateEventRequest) GetEventAttributes() map[string]*attribute.Attribute

func (*CreateEventRequest) GetOperation

func (x *CreateEventRequest) GetOperation() string

func (*CreateEventRequest) GetPrincipalDeclared

func (x *CreateEventRequest) GetPrincipalDeclared() *Principal

func (*CreateEventRequest) GetTimestampDeclared

func (x *CreateEventRequest) GetTimestampDeclared() *timestamppb.Timestamp

func (*CreateEventRequest) GetUuid

func (x *CreateEventRequest) GetUuid() string

func (*CreateEventRequest) ProtoMessage

func (*CreateEventRequest) ProtoMessage()

func (*CreateEventRequest) ProtoReflect

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

func (*CreateEventRequest) Reset

func (x *CreateEventRequest) Reset()

func (*CreateEventRequest) String

func (x *CreateEventRequest) String() string

func (*CreateEventRequest) Validate

func (m *CreateEventRequest) Validate() error

Validate checks the field values on CreateEventRequest 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 (*CreateEventRequest) ValidateAll

func (m *CreateEventRequest) ValidateAll() error

ValidateAll checks the field values on CreateEventRequest 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 CreateEventRequestMultiError, or nil if none found.

type CreateEventRequestMultiError

type CreateEventRequestMultiError []error

CreateEventRequestMultiError is an error wrapping multiple validation errors returned by CreateEventRequest.ValidateAll() if the designated constraints aren't met.

func (CreateEventRequestMultiError) AllErrors

func (m CreateEventRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateEventRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateEventRequestValidationError

type CreateEventRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateEventRequestValidationError is the validation error returned by CreateEventRequest.Validate if the designated constraints aren't met.

func (CreateEventRequestValidationError) Cause

Cause function returns cause value.

func (CreateEventRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateEventRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateEventRequestValidationError) Field

Field function returns field value.

func (CreateEventRequestValidationError) Key

Key function returns key value.

func (CreateEventRequestValidationError) Reason

Reason function returns reason value.

type EventCommitMessage

type EventCommitMessage struct {
	Message *EventMessage `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // repeated bytes khipu_transaction_hashes = 2;
	// It is very cumbersome to represent the PackedInput as proto. Instead we
	// have used go gob for simplicity, but we do want internal schema
	// versioning hence khipu_packed_input_ver
	KhipuPackedInputVer       int32  `protobuf:"varint,6,opt,name=khipu_packed_input_ver,json=khipuPackedInputVer,proto3" json:"khipu_packed_input_ver,omitempty"` // recievers ignore versions != what they are built against
	KhipuPackedAssemblyInputs []byte ``                                                                                                                            /* 140-byte string literal not displayed */
	KhipuPackedCommitInput    []byte ``                                                                                                                            /* 131-byte string literal not displayed */
	// contains filtered or unexported fields
}

EventCommitMessage is used between the khipu assemble and event commit stages

func (*EventCommitMessage) Descriptor deprecated

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

Deprecated: Use EventCommitMessage.ProtoReflect.Descriptor instead.

func (*EventCommitMessage) GetKhipuPackedAssemblyInputs

func (x *EventCommitMessage) GetKhipuPackedAssemblyInputs() []byte

func (*EventCommitMessage) GetKhipuPackedCommitInput

func (x *EventCommitMessage) GetKhipuPackedCommitInput() []byte

func (*EventCommitMessage) GetKhipuPackedInputVer

func (x *EventCommitMessage) GetKhipuPackedInputVer() int32

func (*EventCommitMessage) GetMessage

func (x *EventCommitMessage) GetMessage() *EventMessage

func (*EventCommitMessage) ProtoMessage

func (*EventCommitMessage) ProtoMessage()

func (*EventCommitMessage) ProtoReflect

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

func (*EventCommitMessage) Reset

func (x *EventCommitMessage) Reset()

func (*EventCommitMessage) String

func (x *EventCommitMessage) String() string

func (*EventCommitMessage) Validate

func (m *EventCommitMessage) Validate() error

Validate checks the field values on EventCommitMessage 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 (*EventCommitMessage) ValidateAll

func (m *EventCommitMessage) ValidateAll() error

ValidateAll checks the field values on EventCommitMessage 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 EventCommitMessageMultiError, or nil if none found.

type EventCommitMessageMultiError

type EventCommitMessageMultiError []error

EventCommitMessageMultiError is an error wrapping multiple validation errors returned by EventCommitMessage.ValidateAll() if the designated constraints aren't met.

func (EventCommitMessageMultiError) AllErrors

func (m EventCommitMessageMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EventCommitMessageMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type EventCommitMessageValidationError

type EventCommitMessageValidationError struct {
	// contains filtered or unexported fields
}

EventCommitMessageValidationError is the validation error returned by EventCommitMessage.Validate if the designated constraints aren't met.

func (EventCommitMessageValidationError) Cause

Cause function returns cause value.

func (EventCommitMessageValidationError) Error

Error satisfies the builtin error interface

func (EventCommitMessageValidationError) ErrorName

ErrorName returns error name.

func (EventCommitMessageValidationError) Field

Field function returns field value.

func (EventCommitMessageValidationError) Key

Key function returns key value.

func (EventCommitMessageValidationError) Reason

Reason function returns reason value.

type EventMessage

type EventMessage struct {
	Event        *EventResponse `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
	Asset        *AssetResponse `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"`
	TenantId     string         `protobuf:"bytes,3,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	FailedReason string         `protobuf:"bytes,4,opt,name=failed_reason,json=failedReason,proto3" json:"failed_reason,omitempty"`
	// asset_create2_factory of the asset contract that exported the asset rlp
	// (from which the AssetResponse is made). identifies the asset contract
	// which enacted the change. The factory changes when the subjective value
	// chain membership changes, and if the factory itself needs upgrading
	// (which is very rare). So this value is a very clear (and easily
	// accessible) chain level record of who the SVC value chain colaborators
	// were when the change was made. All changes to an asset which share the
	// same factory can only have been enacted by a combination of the
	// privateFor's for whome the factory was deployed.
	AssetCreate2Factory string `protobuf:"bytes,5,opt,name=asset_create2_factory,json=assetCreate2Factory,proto3" json:"asset_create2_factory,omitempty"`
	// event_create2_factory of the behaviour contract that exported the event
	// rlp (from which the EventResponse is made). identifies the behaviour
	// contract which enacted the change. The factory changes when the
	// subjective value chain membership changes, and if the factory itself
	// needs upgrading (which is very rare)
	EventCreate2Factory string `protobuf:"bytes,6,opt,name=event_create2_factory,json=eventCreate2Factory,proto3" json:"event_create2_factory,omitempty"`
	// contains filtered or unexported fields
}

func (*EventMessage) Descriptor deprecated

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

Deprecated: Use EventMessage.ProtoReflect.Descriptor instead.

func (*EventMessage) GetAsset

func (x *EventMessage) GetAsset() *AssetResponse

func (*EventMessage) GetAssetCreate2Factory

func (x *EventMessage) GetAssetCreate2Factory() string

func (*EventMessage) GetEvent

func (x *EventMessage) GetEvent() *EventResponse

func (*EventMessage) GetEventCreate2Factory

func (x *EventMessage) GetEventCreate2Factory() string

func (*EventMessage) GetFailedReason

func (x *EventMessage) GetFailedReason() string

func (*EventMessage) GetTenantId

func (x *EventMessage) GetTenantId() string

func (*EventMessage) ProtoMessage

func (*EventMessage) ProtoMessage()

func (*EventMessage) ProtoReflect

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

func (*EventMessage) Reset

func (x *EventMessage) Reset()

func (*EventMessage) String

func (x *EventMessage) String() string

func (*EventMessage) Validate

func (m *EventMessage) Validate() error

Validate checks the field values on EventMessage 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 (*EventMessage) ValidateAll

func (m *EventMessage) ValidateAll() error

ValidateAll checks the field values on EventMessage 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 EventMessageMultiError, or nil if none found.

type EventMessageMultiError

type EventMessageMultiError []error

EventMessageMultiError is an error wrapping multiple validation errors returned by EventMessage.ValidateAll() if the designated constraints aren't met.

func (EventMessageMultiError) AllErrors

func (m EventMessageMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EventMessageMultiError) Error

func (m EventMessageMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EventMessageValidationError

type EventMessageValidationError struct {
	// contains filtered or unexported fields
}

EventMessageValidationError is the validation error returned by EventMessage.Validate if the designated constraints aren't met.

func (EventMessageValidationError) Cause

Cause function returns cause value.

func (EventMessageValidationError) Error

Error satisfies the builtin error interface

func (EventMessageValidationError) ErrorName

func (e EventMessageValidationError) ErrorName() string

ErrorName returns error name.

func (EventMessageValidationError) Field

Field function returns field value.

func (EventMessageValidationError) Key

Key function returns key value.

func (EventMessageValidationError) Reason

Reason function returns reason value.

type EventReceiptMessage

type EventReceiptMessage struct {
	Message               *EventMessage `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	CommitTransactionHash []byte        `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

EventReceiptMessage is used between the event commit and commit receipt stages

func (*EventReceiptMessage) Descriptor deprecated

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

Deprecated: Use EventReceiptMessage.ProtoReflect.Descriptor instead.

func (*EventReceiptMessage) GetCommitTransactionHash

func (x *EventReceiptMessage) GetCommitTransactionHash() []byte

func (*EventReceiptMessage) GetMessage

func (x *EventReceiptMessage) GetMessage() *EventMessage

func (*EventReceiptMessage) ProtoMessage

func (*EventReceiptMessage) ProtoMessage()

func (*EventReceiptMessage) ProtoReflect

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

func (*EventReceiptMessage) Reset

func (x *EventReceiptMessage) Reset()

func (*EventReceiptMessage) String

func (x *EventReceiptMessage) String() string

func (*EventReceiptMessage) Validate

func (m *EventReceiptMessage) Validate() error

Validate checks the field values on EventReceiptMessage 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 (*EventReceiptMessage) ValidateAll

func (m *EventReceiptMessage) ValidateAll() error

ValidateAll checks the field values on EventReceiptMessage 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 EventReceiptMessageMultiError, or nil if none found.

type EventReceiptMessageMultiError

type EventReceiptMessageMultiError []error

EventReceiptMessageMultiError is an error wrapping multiple validation errors returned by EventReceiptMessage.ValidateAll() if the designated constraints aren't met.

func (EventReceiptMessageMultiError) AllErrors

func (m EventReceiptMessageMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EventReceiptMessageMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type EventReceiptMessageValidationError

type EventReceiptMessageValidationError struct {
	// contains filtered or unexported fields
}

EventReceiptMessageValidationError is the validation error returned by EventReceiptMessage.Validate if the designated constraints aren't met.

func (EventReceiptMessageValidationError) Cause

Cause function returns cause value.

func (EventReceiptMessageValidationError) Error

Error satisfies the builtin error interface

func (EventReceiptMessageValidationError) ErrorName

ErrorName returns error name.

func (EventReceiptMessageValidationError) Field

Field function returns field value.

func (EventReceiptMessageValidationError) Key

Key function returns key value.

func (EventReceiptMessageValidationError) Reason

Reason function returns reason value.

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 for when the event was committed to a verifiable log
	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"`
	// proof details for proof_mechanism MERKLE_LOG
	MerklelogEntry *MerkleLogEntry `protobuf:"bytes,19,opt,name=merklelog_entry,json=merklelogEntry,proto3" json:"merklelog_entry,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) GetMerklelogEntry added in v0.3.6

func (x *EventResponse) GetMerklelogEntry() *MerkleLogEntry

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 EventResponseJSONAPI added in v0.3.8

type EventResponseJSONAPI 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]string `` /* 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]string `` /* 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 string `protobuf:"bytes,5,opt,name=timestamp_declared,json=timestampDeclared,proto3" json:"timestamp_declared,omitempty"`
	// timestamp when system received operation request
	TimestampAccepted string `protobuf:"bytes,6,opt,name=timestamp_accepted,json=timestampAccepted,proto3" json:"timestamp_accepted,omitempty"`
	// timestamp for when the event was committed to a verifiable log
	TimestampCommitted string `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 string `protobuf:"bytes,10,opt,name=confirmation_status,json=confirmationStatus,proto3" json:"confirmation_status,omitempty"`
	// 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"`
	// proof details for proof_mechanism MERKLE_LOG
	MerklelogEntry *MerkleLogEntry `protobuf:"bytes,19,opt,name=merklelog_entry,json=merklelogEntry,proto3" json:"merklelog_entry,omitempty"`
	// contains filtered or unexported fields
}

EventResponseJSONAPI represents how the consumer of the events api sees the event data.

func (*EventResponseJSONAPI) Descriptor deprecated added in v0.3.8

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

Deprecated: Use EventResponseJSONAPI.ProtoReflect.Descriptor instead.

func (*EventResponseJSONAPI) GetAssetAttributes added in v0.3.8

func (x *EventResponseJSONAPI) GetAssetAttributes() map[string]string

func (*EventResponseJSONAPI) GetAssetIdentity added in v0.3.8

func (x *EventResponseJSONAPI) GetAssetIdentity() string

func (*EventResponseJSONAPI) GetBehaviour added in v0.3.8

func (x *EventResponseJSONAPI) GetBehaviour() string

func (*EventResponseJSONAPI) GetBlockNumber added in v0.3.8

func (x *EventResponseJSONAPI) GetBlockNumber() uint64

func (*EventResponseJSONAPI) GetConfirmationStatus added in v0.3.8

func (x *EventResponseJSONAPI) GetConfirmationStatus() string

func (*EventResponseJSONAPI) GetEventAttributes added in v0.3.8

func (x *EventResponseJSONAPI) GetEventAttributes() map[string]string

func (*EventResponseJSONAPI) GetFrom added in v0.3.8

func (x *EventResponseJSONAPI) GetFrom() string

func (*EventResponseJSONAPI) GetIdentity added in v0.3.8

func (x *EventResponseJSONAPI) GetIdentity() string

func (*EventResponseJSONAPI) GetMerklelogEntry added in v0.3.8

func (x *EventResponseJSONAPI) GetMerklelogEntry() *MerkleLogEntry

func (*EventResponseJSONAPI) GetOperation added in v0.3.8

func (x *EventResponseJSONAPI) GetOperation() string

func (*EventResponseJSONAPI) GetPrincipalAccepted added in v0.3.8

func (x *EventResponseJSONAPI) GetPrincipalAccepted() *Principal

func (*EventResponseJSONAPI) GetPrincipalDeclared added in v0.3.8

func (x *EventResponseJSONAPI) GetPrincipalDeclared() *Principal

func (*EventResponseJSONAPI) GetTenantIdentity added in v0.3.8

func (x *EventResponseJSONAPI) GetTenantIdentity() string

func (*EventResponseJSONAPI) GetTimestampAccepted added in v0.3.8

func (x *EventResponseJSONAPI) GetTimestampAccepted() string

func (*EventResponseJSONAPI) GetTimestampCommitted added in v0.3.8

func (x *EventResponseJSONAPI) GetTimestampCommitted() string

func (*EventResponseJSONAPI) GetTimestampDeclared added in v0.3.8

func (x *EventResponseJSONAPI) GetTimestampDeclared() string

func (*EventResponseJSONAPI) GetTransactionId added in v0.3.8

func (x *EventResponseJSONAPI) GetTransactionId() string

func (*EventResponseJSONAPI) GetTransactionIndex added in v0.3.8

func (x *EventResponseJSONAPI) GetTransactionIndex() uint64

func (*EventResponseJSONAPI) ProtoMessage added in v0.3.8

func (*EventResponseJSONAPI) ProtoMessage()

func (*EventResponseJSONAPI) ProtoReflect added in v0.3.8

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

func (*EventResponseJSONAPI) Reset added in v0.3.8

func (x *EventResponseJSONAPI) Reset()

func (*EventResponseJSONAPI) String added in v0.3.8

func (x *EventResponseJSONAPI) String() string

func (*EventResponseJSONAPI) Validate added in v0.3.8

func (m *EventResponseJSONAPI) Validate() error

Validate checks the field values on EventResponseJSONAPI 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 (*EventResponseJSONAPI) ValidateAll added in v0.3.8

func (m *EventResponseJSONAPI) ValidateAll() error

ValidateAll checks the field values on EventResponseJSONAPI 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 EventResponseJSONAPIMultiError, or nil if none found.

type EventResponseJSONAPIMultiError added in v0.3.8

type EventResponseJSONAPIMultiError []error

EventResponseJSONAPIMultiError is an error wrapping multiple validation errors returned by EventResponseJSONAPI.ValidateAll() if the designated constraints aren't met.

func (EventResponseJSONAPIMultiError) AllErrors added in v0.3.8

func (m EventResponseJSONAPIMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EventResponseJSONAPIMultiError) Error added in v0.3.8

Error returns a concatenation of all the error messages it wraps.

type EventResponseJSONAPIValidationError added in v0.3.8

type EventResponseJSONAPIValidationError struct {
	// contains filtered or unexported fields
}

EventResponseJSONAPIValidationError is the validation error returned by EventResponseJSONAPI.Validate if the designated constraints aren't met.

func (EventResponseJSONAPIValidationError) Cause added in v0.3.8

Cause function returns cause value.

func (EventResponseJSONAPIValidationError) Error added in v0.3.8

Error satisfies the builtin error interface

func (EventResponseJSONAPIValidationError) ErrorName added in v0.3.8

ErrorName returns error name.

func (EventResponseJSONAPIValidationError) Field added in v0.3.8

Field function returns field value.

func (EventResponseJSONAPIValidationError) Key added in v0.3.8

Key function returns key value.

func (EventResponseJSONAPIValidationError) Reason added in v0.3.8

Reason function returns reason value.

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

Cause function returns cause value.

func (EventResponseValidationError) Error

Error satisfies the builtin error interface

func (EventResponseValidationError) ErrorName

func (e EventResponseValidationError) ErrorName() string

ErrorName returns error name.

func (EventResponseValidationError) Field

Field function returns field value.

func (EventResponseValidationError) Key

Key function returns key value.

func (EventResponseValidationError) Reason

Reason function returns reason value.

type EventsClient

type EventsClient interface {
	Create(ctx context.Context, in *CreateEventRequest, opts ...grpc.CallOption) (*EventResponse, error)
}

EventsClient is the client API for Events 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 NewEventsClient

func NewEventsClient(cc grpc.ClientConnInterface) EventsClient

type EventsServer

type EventsServer interface {
	Create(context.Context, *CreateEventRequest) (*EventResponse, error)
	// contains filtered or unexported methods
}

EventsServer is the server API for Events service. All implementations must embed UnimplementedEventsServer for forward compatibility

type GetAssetPublicURLRequest

type GetAssetPublicURLRequest struct {

	// asset identity
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAssetPublicURLRequest) Descriptor deprecated

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

Deprecated: Use GetAssetPublicURLRequest.ProtoReflect.Descriptor instead.

func (*GetAssetPublicURLRequest) GetUuid

func (x *GetAssetPublicURLRequest) GetUuid() string

func (*GetAssetPublicURLRequest) ProtoMessage

func (*GetAssetPublicURLRequest) ProtoMessage()

func (*GetAssetPublicURLRequest) ProtoReflect

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

func (*GetAssetPublicURLRequest) Reset

func (x *GetAssetPublicURLRequest) Reset()

func (*GetAssetPublicURLRequest) String

func (x *GetAssetPublicURLRequest) String() string

func (*GetAssetPublicURLRequest) Validate

func (m *GetAssetPublicURLRequest) Validate() error

Validate checks the field values on GetAssetPublicURLRequest 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 (*GetAssetPublicURLRequest) ValidateAll

func (m *GetAssetPublicURLRequest) ValidateAll() error

ValidateAll checks the field values on GetAssetPublicURLRequest 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 GetAssetPublicURLRequestMultiError, or nil if none found.

type GetAssetPublicURLRequestMultiError

type GetAssetPublicURLRequestMultiError []error

GetAssetPublicURLRequestMultiError is an error wrapping multiple validation errors returned by GetAssetPublicURLRequest.ValidateAll() if the designated constraints aren't met.

func (GetAssetPublicURLRequestMultiError) AllErrors

func (m GetAssetPublicURLRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetAssetPublicURLRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetAssetPublicURLRequestValidationError

type GetAssetPublicURLRequestValidationError struct {
	// contains filtered or unexported fields
}

GetAssetPublicURLRequestValidationError is the validation error returned by GetAssetPublicURLRequest.Validate if the designated constraints aren't met.

func (GetAssetPublicURLRequestValidationError) Cause

Cause function returns cause value.

func (GetAssetPublicURLRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAssetPublicURLRequestValidationError) ErrorName

ErrorName returns error name.

func (GetAssetPublicURLRequestValidationError) Field

Field function returns field value.

func (GetAssetPublicURLRequestValidationError) Key

Key function returns key value.

func (GetAssetPublicURLRequestValidationError) Reason

Reason function returns reason value.

type GetAssetRequest

type GetAssetRequest struct {

	// asset identity
	Uuid   string                 `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	AtTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=at_time,json=atTime,proto3" json:"at_time,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAssetRequest) Descriptor deprecated

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

Deprecated: Use GetAssetRequest.ProtoReflect.Descriptor instead.

func (*GetAssetRequest) GetAtTime

func (x *GetAssetRequest) GetAtTime() *timestamppb.Timestamp

func (*GetAssetRequest) GetUuid

func (x *GetAssetRequest) GetUuid() string

func (*GetAssetRequest) ProtoMessage

func (*GetAssetRequest) ProtoMessage()

func (*GetAssetRequest) ProtoReflect

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

func (*GetAssetRequest) Reset

func (x *GetAssetRequest) Reset()

func (*GetAssetRequest) String

func (x *GetAssetRequest) String() string

func (*GetAssetRequest) Validate

func (m *GetAssetRequest) Validate() error

Validate checks the field values on GetAssetRequest 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 (*GetAssetRequest) ValidateAll

func (m *GetAssetRequest) ValidateAll() error

ValidateAll checks the field values on GetAssetRequest 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 GetAssetRequestMultiError, or nil if none found.

type GetAssetRequestMultiError

type GetAssetRequestMultiError []error

GetAssetRequestMultiError is an error wrapping multiple validation errors returned by GetAssetRequest.ValidateAll() if the designated constraints aren't met.

func (GetAssetRequestMultiError) AllErrors

func (m GetAssetRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetAssetRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetAssetRequestValidationError

type GetAssetRequestValidationError struct {
	// contains filtered or unexported fields
}

GetAssetRequestValidationError is the validation error returned by GetAssetRequest.Validate if the designated constraints aren't met.

func (GetAssetRequestValidationError) Cause

Cause function returns cause value.

func (GetAssetRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAssetRequestValidationError) ErrorName

func (e GetAssetRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetAssetRequestValidationError) Field

Field function returns field value.

func (GetAssetRequestValidationError) Key

Key function returns key value.

func (GetAssetRequestValidationError) Reason

Reason function returns reason value.

type GetEventRequest

type GetEventRequest struct {
	AssetUuid string `protobuf:"bytes,1,opt,name=asset_uuid,json=assetUuid,proto3" json:"asset_uuid,omitempty"`
	Uuid      string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEventRequest) Descriptor deprecated

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

Deprecated: Use GetEventRequest.ProtoReflect.Descriptor instead.

func (*GetEventRequest) GetAssetUuid

func (x *GetEventRequest) GetAssetUuid() string

func (*GetEventRequest) GetUuid

func (x *GetEventRequest) GetUuid() string

func (*GetEventRequest) ProtoMessage

func (*GetEventRequest) ProtoMessage()

func (*GetEventRequest) ProtoReflect

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

func (*GetEventRequest) Reset

func (x *GetEventRequest) Reset()

func (*GetEventRequest) String

func (x *GetEventRequest) String() string

func (*GetEventRequest) Validate

func (m *GetEventRequest) Validate() error

Validate checks the field values on GetEventRequest 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 (*GetEventRequest) ValidateAll

func (m *GetEventRequest) ValidateAll() error

ValidateAll checks the field values on GetEventRequest 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 GetEventRequestMultiError, or nil if none found.

type GetEventRequestMultiError

type GetEventRequestMultiError []error

GetEventRequestMultiError is an error wrapping multiple validation errors returned by GetEventRequest.ValidateAll() if the designated constraints aren't met.

func (GetEventRequestMultiError) AllErrors

func (m GetEventRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetEventRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetEventRequestValidationError

type GetEventRequestValidationError struct {
	// contains filtered or unexported fields
}

GetEventRequestValidationError is the validation error returned by GetEventRequest.Validate if the designated constraints aren't met.

func (GetEventRequestValidationError) Cause

Cause function returns cause value.

func (GetEventRequestValidationError) Error

Error satisfies the builtin error interface

func (GetEventRequestValidationError) ErrorName

func (e GetEventRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetEventRequestValidationError) Field

Field function returns field value.

func (GetEventRequestValidationError) Key

Key function returns key value.

func (GetEventRequestValidationError) Reason

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 ListAssetsRequest

type ListAssetsRequest struct {

	// Maximum results per page.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token returned from a previous list request if any.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Specify the sort order for the results.
	OrderBy ListAssetsRequest_OrderBy `` /* 127-byte string literal not displayed */
	// indicates whether asset is still being tracked in the system
	Tracked TrackedStatus `protobuf:"varint,4,opt,name=tracked,proto3,enum=archivist.v2.TrackedStatus" json:"tracked,omitempty"`
	// indicates if the asset has been succesfully committed to the blockchain
	ConfirmationStatus ConfirmationStatus `` /* 153-byte string literal not displayed */
	// user defined attributes key max_length: 1024 value max_length: 4096
	Attributes map[string]string `` /* 161-byte string literal not displayed */
	// proof mechanism of the asset (and all its events)
	ProofMechanism ProofMechanism `` /* 137-byte string literal not displayed */
	ChainId        string         `protobuf:"bytes,9,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// Outer list AND, inner list INCLUSIVE OR, e.g. [[A, B], [A, B]] "(A OR B) in first position AND (A OR B) in second position (and anything after)"
	// The behaviour of these filters matches the filters available for
	// selecting assets in access policies:
	// On the Access Policy editor page in the UX wire frames, we see locations and a asset_types as two of the items to filter on. A policy that expresses “a policy for all door access readers in Basingstoke or Cambridge”
	// [
	//
	//	{ "or": ["location=basingstoke", "location=cambridge"] },
	//	{ "or": ["asset_type=door_access_reader"] }
	//
	// ]
	Filters []*filter.Filter `protobuf:"bytes,10,rep,name=filters,proto3" json:"filters,omitempty"`
	// privacy filter of the asset (and all its events)
	Privacy Privacy `protobuf:"varint,12,opt,name=privacy,proto3,enum=archivist.v2.Privacy" json:"privacy,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAssetsRequest) Descriptor deprecated

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

Deprecated: Use ListAssetsRequest.ProtoReflect.Descriptor instead.

func (*ListAssetsRequest) GetAttributes

func (x *ListAssetsRequest) GetAttributes() map[string]string

func (*ListAssetsRequest) GetChainId

func (x *ListAssetsRequest) GetChainId() string

func (*ListAssetsRequest) GetConfirmationStatus

func (x *ListAssetsRequest) GetConfirmationStatus() ConfirmationStatus

func (*ListAssetsRequest) GetFilters

func (x *ListAssetsRequest) GetFilters() []*filter.Filter

func (*ListAssetsRequest) GetOrderBy

func (*ListAssetsRequest) GetPageSize

func (x *ListAssetsRequest) GetPageSize() int32

func (*ListAssetsRequest) GetPageToken

func (x *ListAssetsRequest) GetPageToken() string

func (*ListAssetsRequest) GetPrivacy

func (x *ListAssetsRequest) GetPrivacy() Privacy

func (*ListAssetsRequest) GetProofMechanism

func (x *ListAssetsRequest) GetProofMechanism() ProofMechanism

func (*ListAssetsRequest) GetTracked

func (x *ListAssetsRequest) GetTracked() TrackedStatus

func (*ListAssetsRequest) ProtoMessage

func (*ListAssetsRequest) ProtoMessage()

func (*ListAssetsRequest) ProtoReflect

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

func (*ListAssetsRequest) Reset

func (x *ListAssetsRequest) Reset()

func (*ListAssetsRequest) String

func (x *ListAssetsRequest) String() string

func (*ListAssetsRequest) Validate

func (m *ListAssetsRequest) Validate() error

Validate checks the field values on ListAssetsRequest 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 (*ListAssetsRequest) ValidateAll

func (m *ListAssetsRequest) ValidateAll() error

ValidateAll checks the field values on ListAssetsRequest 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 ListAssetsRequestMultiError, or nil if none found.

type ListAssetsRequestMultiError

type ListAssetsRequestMultiError []error

ListAssetsRequestMultiError is an error wrapping multiple validation errors returned by ListAssetsRequest.ValidateAll() if the designated constraints aren't met.

func (ListAssetsRequestMultiError) AllErrors

func (m ListAssetsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListAssetsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListAssetsRequestValidationError

type ListAssetsRequestValidationError struct {
	// contains filtered or unexported fields
}

ListAssetsRequestValidationError is the validation error returned by ListAssetsRequest.Validate if the designated constraints aren't met.

func (ListAssetsRequestValidationError) Cause

Cause function returns cause value.

func (ListAssetsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListAssetsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListAssetsRequestValidationError) Field

Field function returns field value.

func (ListAssetsRequestValidationError) Key

Key function returns key value.

func (ListAssetsRequestValidationError) Reason

Reason function returns reason value.

type ListAssetsRequest_OrderBy

type ListAssetsRequest_OrderBy int32

Supported sort orders

const (
	ListAssetsRequest_DEFAULT      ListAssetsRequest_OrderBy = 0
	ListAssetsRequest_SIMPLEHASHV1 ListAssetsRequest_OrderBy = 1
	ListAssetsRequest_SIMPLEHASHV2 ListAssetsRequest_OrderBy = 2
)

func (ListAssetsRequest_OrderBy) Descriptor

func (ListAssetsRequest_OrderBy) Enum

func (ListAssetsRequest_OrderBy) EnumDescriptor deprecated

func (ListAssetsRequest_OrderBy) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListAssetsRequest_OrderBy.Descriptor instead.

func (ListAssetsRequest_OrderBy) Number

func (ListAssetsRequest_OrderBy) String

func (x ListAssetsRequest_OrderBy) String() string

func (ListAssetsRequest_OrderBy) Type

type ListAssetsResponse

type ListAssetsResponse struct {
	Assets []*AssetResponse `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"`
	// Token to retrieve the next page of results or empty if there are none.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAssetsResponse) Descriptor deprecated

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

Deprecated: Use ListAssetsResponse.ProtoReflect.Descriptor instead.

func (*ListAssetsResponse) GetAssets

func (x *ListAssetsResponse) GetAssets() []*AssetResponse

func (*ListAssetsResponse) GetNextPageToken

func (x *ListAssetsResponse) GetNextPageToken() string

func (*ListAssetsResponse) ProtoMessage

func (*ListAssetsResponse) ProtoMessage()

func (*ListAssetsResponse) ProtoReflect

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

func (*ListAssetsResponse) Reset

func (x *ListAssetsResponse) Reset()

func (*ListAssetsResponse) String

func (x *ListAssetsResponse) String() string

func (*ListAssetsResponse) Validate

func (m *ListAssetsResponse) Validate() error

Validate checks the field values on ListAssetsResponse 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 (*ListAssetsResponse) ValidateAll

func (m *ListAssetsResponse) ValidateAll() error

ValidateAll checks the field values on ListAssetsResponse 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 ListAssetsResponseMultiError, or nil if none found.

type ListAssetsResponseMultiError

type ListAssetsResponseMultiError []error

ListAssetsResponseMultiError is an error wrapping multiple validation errors returned by ListAssetsResponse.ValidateAll() if the designated constraints aren't met.

func (ListAssetsResponseMultiError) AllErrors

func (m ListAssetsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListAssetsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListAssetsResponseValidationError

type ListAssetsResponseValidationError struct {
	// contains filtered or unexported fields
}

ListAssetsResponseValidationError is the validation error returned by ListAssetsResponse.Validate if the designated constraints aren't met.

func (ListAssetsResponseValidationError) Cause

Cause function returns cause value.

func (ListAssetsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListAssetsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListAssetsResponseValidationError) Field

Field function returns field value.

func (ListAssetsResponseValidationError) Key

Key function returns key value.

func (ListAssetsResponseValidationError) Reason

Reason function returns reason value.

type ListEventsRequest

type ListEventsRequest struct {

	// Maximum results per page.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token returned from a previous list request if any.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Specify the sort order for the results.
	OrderBy ListEventsRequest_OrderBy `` /* 127-byte string literal not displayed */
	Uuid    string                    `protobuf:"bytes,4,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// indicates if the asset has been succesfully committed to the blockchain
	ConfirmationStatus ConfirmationStatus `` /* 153-byte string literal not displayed */
	PrincipalDeclared  *Principal         `protobuf:"bytes,6,opt,name=principal_declared,json=principalDeclared,proto3" json:"principal_declared,omitempty"`
	PrincipalAccepted  *Principal         `protobuf:"bytes,7,opt,name=principal_accepted,json=principalAccepted,proto3" json:"principal_accepted,omitempty"`
	// Filtering
	TimestampAcceptedSince   *timestamppb.Timestamp `` /* 130-byte string literal not displayed */
	TimestampAcceptedBefore  *timestamppb.Timestamp `` /* 133-byte string literal not displayed */
	TimestampCommittedSince  *timestamppb.Timestamp `` /* 133-byte string literal not displayed */
	TimestampCommittedBefore *timestamppb.Timestamp `` /* 136-byte string literal not displayed */
	TimestampDeclaredSince   *timestamppb.Timestamp `` /* 130-byte string literal not displayed */
	TimestampDeclaredBefore  *timestamppb.Timestamp `` /* 133-byte string literal not displayed */
	Operation                string                 `protobuf:"bytes,17,opt,name=operation,proto3" json:"operation,omitempty"`
	Behaviour                string                 `protobuf:"bytes,18,opt,name=behaviour,proto3" json:"behaviour,omitempty"`
	// user defined event_attributes key max_length: 1024 value max_length: 4096
	EventAttributes map[string]string `` /* 195-byte string literal not displayed */
	// user defined asset_attributes key max_length: 1024 value max_length: 4096
	AssetAttributes map[string]string             `` /* 195-byte string literal not displayed */
	Asset           *ListEventsRequest_AssetQuery `protobuf:"bytes,21,opt,name=asset,proto3" json:"asset,omitempty"`
	// mechanism for evidential proof for Events on this Asset
	ProofMechanism ProofMechanism `` /* 138-byte string literal not displayed */
	// Outer list AND, inner list INCLUSIVE OR, e.g. [[A, B], [A, B]] "(A OR B) in first position AND (A OR B) in second position (and anything after)"
	// The behaviour of these filters matches the filters available for
	// selecting assets in access policies:
	// On the Access Policy editor page in the UX wire frames, we see locations and a asset_types as two of the items to filter on. A policy that expresses “a policy for all door access readers in Basingstoke or Cambridge”
	// [
	//
	//	{ "or": ["location=basingstoke", "location=cambridge"] },
	//	{ "or": ["asset_type=door_access_reader"] }
	//
	// ]
	Filters []*filter.Filter `protobuf:"bytes,23,rep,name=filters,proto3" json:"filters,omitempty"`
	// filter events by mmr index
	MmrIndex *int64 `protobuf:"varint,24,opt,name=mmr_index,json=mmrIndex,proto3,oneof" json:"mmr_index,omitempty"`
	// filter from wallet address
	From *string `protobuf:"bytes,25,opt,name=from,proto3,oneof" json:"from,omitempty"`
	// contains filtered or unexported fields
}

func (*ListEventsRequest) Descriptor deprecated

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

Deprecated: Use ListEventsRequest.ProtoReflect.Descriptor instead.

func (*ListEventsRequest) GetAsset

func (*ListEventsRequest) GetAssetAttributes

func (x *ListEventsRequest) GetAssetAttributes() map[string]string

func (*ListEventsRequest) GetBehaviour

func (x *ListEventsRequest) GetBehaviour() string

func (*ListEventsRequest) GetConfirmationStatus

func (x *ListEventsRequest) GetConfirmationStatus() ConfirmationStatus

func (*ListEventsRequest) GetEventAttributes

func (x *ListEventsRequest) GetEventAttributes() map[string]string

func (*ListEventsRequest) GetFilters

func (x *ListEventsRequest) GetFilters() []*filter.Filter

func (*ListEventsRequest) GetFrom added in v0.4.3

func (x *ListEventsRequest) GetFrom() string

func (*ListEventsRequest) GetMmrIndex added in v0.4.2

func (x *ListEventsRequest) GetMmrIndex() int64

func (*ListEventsRequest) GetOperation

func (x *ListEventsRequest) GetOperation() string

func (*ListEventsRequest) GetOrderBy

func (*ListEventsRequest) GetPageSize

func (x *ListEventsRequest) GetPageSize() int32

func (*ListEventsRequest) GetPageToken

func (x *ListEventsRequest) GetPageToken() string

func (*ListEventsRequest) GetPrincipalAccepted

func (x *ListEventsRequest) GetPrincipalAccepted() *Principal

func (*ListEventsRequest) GetPrincipalDeclared

func (x *ListEventsRequest) GetPrincipalDeclared() *Principal

func (*ListEventsRequest) GetProofMechanism

func (x *ListEventsRequest) GetProofMechanism() ProofMechanism

func (*ListEventsRequest) GetTimestampAcceptedBefore

func (x *ListEventsRequest) GetTimestampAcceptedBefore() *timestamppb.Timestamp

func (*ListEventsRequest) GetTimestampAcceptedSince

func (x *ListEventsRequest) GetTimestampAcceptedSince() *timestamppb.Timestamp

func (*ListEventsRequest) GetTimestampCommittedBefore

func (x *ListEventsRequest) GetTimestampCommittedBefore() *timestamppb.Timestamp

func (*ListEventsRequest) GetTimestampCommittedSince

func (x *ListEventsRequest) GetTimestampCommittedSince() *timestamppb.Timestamp

func (*ListEventsRequest) GetTimestampDeclaredBefore

func (x *ListEventsRequest) GetTimestampDeclaredBefore() *timestamppb.Timestamp

func (*ListEventsRequest) GetTimestampDeclaredSince

func (x *ListEventsRequest) GetTimestampDeclaredSince() *timestamppb.Timestamp

func (*ListEventsRequest) GetUuid

func (x *ListEventsRequest) GetUuid() string

func (*ListEventsRequest) ProtoMessage

func (*ListEventsRequest) ProtoMessage()

func (*ListEventsRequest) ProtoReflect

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

func (*ListEventsRequest) Reset

func (x *ListEventsRequest) Reset()

func (*ListEventsRequest) String

func (x *ListEventsRequest) String() string

func (*ListEventsRequest) Validate

func (m *ListEventsRequest) Validate() error

Validate checks the field values on ListEventsRequest 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 (*ListEventsRequest) ValidateAll

func (m *ListEventsRequest) ValidateAll() error

ValidateAll checks the field values on ListEventsRequest 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 ListEventsRequestMultiError, or nil if none found.

type ListEventsRequestMultiError

type ListEventsRequestMultiError []error

ListEventsRequestMultiError is an error wrapping multiple validation errors returned by ListEventsRequest.ValidateAll() if the designated constraints aren't met.

func (ListEventsRequestMultiError) AllErrors

func (m ListEventsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListEventsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListEventsRequestValidationError

type ListEventsRequestValidationError struct {
	// contains filtered or unexported fields
}

ListEventsRequestValidationError is the validation error returned by ListEventsRequest.Validate if the designated constraints aren't met.

func (ListEventsRequestValidationError) Cause

Cause function returns cause value.

func (ListEventsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListEventsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListEventsRequestValidationError) Field

Field function returns field value.

func (ListEventsRequestValidationError) Key

Key function returns key value.

func (ListEventsRequestValidationError) Reason

Reason function returns reason value.

type ListEventsRequest_AssetQuery

type ListEventsRequest_AssetQuery struct {
	Attributes map[string]string `` /* 161-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListEventsRequest_AssetQuery) Descriptor deprecated

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

Deprecated: Use ListEventsRequest_AssetQuery.ProtoReflect.Descriptor instead.

func (*ListEventsRequest_AssetQuery) GetAttributes

func (x *ListEventsRequest_AssetQuery) GetAttributes() map[string]string

func (*ListEventsRequest_AssetQuery) ProtoMessage

func (*ListEventsRequest_AssetQuery) ProtoMessage()

func (*ListEventsRequest_AssetQuery) ProtoReflect

func (*ListEventsRequest_AssetQuery) Reset

func (x *ListEventsRequest_AssetQuery) Reset()

func (*ListEventsRequest_AssetQuery) String

func (*ListEventsRequest_AssetQuery) Validate

func (m *ListEventsRequest_AssetQuery) Validate() error

Validate checks the field values on ListEventsRequest_AssetQuery 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 (*ListEventsRequest_AssetQuery) ValidateAll

func (m *ListEventsRequest_AssetQuery) ValidateAll() error

ValidateAll checks the field values on ListEventsRequest_AssetQuery 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 ListEventsRequest_AssetQueryMultiError, or nil if none found.

type ListEventsRequest_AssetQueryMultiError

type ListEventsRequest_AssetQueryMultiError []error

ListEventsRequest_AssetQueryMultiError is an error wrapping multiple validation errors returned by ListEventsRequest_AssetQuery.ValidateAll() if the designated constraints aren't met.

func (ListEventsRequest_AssetQueryMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListEventsRequest_AssetQueryMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListEventsRequest_AssetQueryValidationError

type ListEventsRequest_AssetQueryValidationError struct {
	// contains filtered or unexported fields
}

ListEventsRequest_AssetQueryValidationError is the validation error returned by ListEventsRequest_AssetQuery.Validate if the designated constraints aren't met.

func (ListEventsRequest_AssetQueryValidationError) Cause

Cause function returns cause value.

func (ListEventsRequest_AssetQueryValidationError) Error

Error satisfies the builtin error interface

func (ListEventsRequest_AssetQueryValidationError) ErrorName

ErrorName returns error name.

func (ListEventsRequest_AssetQueryValidationError) Field

Field function returns field value.

func (ListEventsRequest_AssetQueryValidationError) Key

Key function returns key value.

func (ListEventsRequest_AssetQueryValidationError) Reason

Reason function returns reason value.

type ListEventsRequest_OrderBy

type ListEventsRequest_OrderBy int32

Supported sort orders

const (
	ListEventsRequest_DEFAULT      ListEventsRequest_OrderBy = 0
	ListEventsRequest_SIMPLEHASHV1 ListEventsRequest_OrderBy = 1
	ListEventsRequest_SIMPLEHASHV2 ListEventsRequest_OrderBy = 2
)

func (ListEventsRequest_OrderBy) Descriptor

func (ListEventsRequest_OrderBy) Enum

func (ListEventsRequest_OrderBy) EnumDescriptor deprecated

func (ListEventsRequest_OrderBy) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListEventsRequest_OrderBy.Descriptor instead.

func (ListEventsRequest_OrderBy) Number

func (ListEventsRequest_OrderBy) String

func (x ListEventsRequest_OrderBy) String() string

func (ListEventsRequest_OrderBy) Type

type ListEventsResponse

type ListEventsResponse struct {
	Events []*EventResponse `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	// Token to retrieve the next page of results or empty if there are none.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListEventsResponse) Descriptor deprecated

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

Deprecated: Use ListEventsResponse.ProtoReflect.Descriptor instead.

func (*ListEventsResponse) GetEvents

func (x *ListEventsResponse) GetEvents() []*EventResponse

func (*ListEventsResponse) GetNextPageToken

func (x *ListEventsResponse) GetNextPageToken() string

func (*ListEventsResponse) ProtoMessage

func (*ListEventsResponse) ProtoMessage()

func (*ListEventsResponse) ProtoReflect

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

func (*ListEventsResponse) Reset

func (x *ListEventsResponse) Reset()

func (*ListEventsResponse) String

func (x *ListEventsResponse) String() string

func (*ListEventsResponse) Validate

func (m *ListEventsResponse) Validate() error

Validate checks the field values on ListEventsResponse 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 (*ListEventsResponse) ValidateAll

func (m *ListEventsResponse) ValidateAll() error

ValidateAll checks the field values on ListEventsResponse 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 ListEventsResponseMultiError, or nil if none found.

type ListEventsResponseMultiError

type ListEventsResponseMultiError []error

ListEventsResponseMultiError is an error wrapping multiple validation errors returned by ListEventsResponse.ValidateAll() if the designated constraints aren't met.

func (ListEventsResponseMultiError) AllErrors

func (m ListEventsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListEventsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListEventsResponseValidationError

type ListEventsResponseValidationError struct {
	// contains filtered or unexported fields
}

ListEventsResponseValidationError is the validation error returned by ListEventsResponse.Validate if the designated constraints aren't met.

func (ListEventsResponseValidationError) Cause

Cause function returns cause value.

func (ListEventsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListEventsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListEventsResponseValidationError) Field

Field function returns field value.

func (ListEventsResponseValidationError) Key

Key function returns key value.

func (ListEventsResponseValidationError) Reason

Reason function returns reason value.

type MerkleLogCommit added in v0.3.6

type MerkleLogCommit struct {

	// The mmr index
	Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// time ordered and strictly unique per tenant. system wide unique with very
	// reasonable operational assumptions. prefixed with time epoch if len > 8
	// bytes (after conversion back from hex).
	Idtimestamp string `protobuf:"bytes,2,opt,name=idtimestamp,proto3" json:"idtimestamp,omitempty"`
	// contains filtered or unexported fields
}

MerkeLogCommit provides the log entry details for a single mmr leaf.

func (*MerkleLogCommit) Descriptor deprecated added in v0.3.6

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

Deprecated: Use MerkleLogCommit.ProtoReflect.Descriptor instead.

func (*MerkleLogCommit) GetIdtimestamp added in v0.3.6

func (x *MerkleLogCommit) GetIdtimestamp() string

func (*MerkleLogCommit) GetIndex added in v0.3.6

func (x *MerkleLogCommit) GetIndex() uint64

func (*MerkleLogCommit) ProtoMessage added in v0.3.6

func (*MerkleLogCommit) ProtoMessage()

func (*MerkleLogCommit) ProtoReflect added in v0.3.6

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

func (*MerkleLogCommit) Reset added in v0.3.6

func (x *MerkleLogCommit) Reset()

func (*MerkleLogCommit) String added in v0.3.6

func (x *MerkleLogCommit) String() string

func (*MerkleLogCommit) Validate added in v0.3.6

func (m *MerkleLogCommit) Validate() error

Validate checks the field values on MerkleLogCommit 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 (*MerkleLogCommit) ValidateAll added in v0.3.6

func (m *MerkleLogCommit) ValidateAll() error

ValidateAll checks the field values on MerkleLogCommit 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 MerkleLogCommitMultiError, or nil if none found.

type MerkleLogCommitMessage added in v0.3.6

type MerkleLogCommitMessage struct {

	// The tenant identity and the event identity for the committed event.
	TenantIdentity string `protobuf:"bytes,1,opt,name=tenant_identity,json=tenantIdentity,proto3" json:"tenant_identity,omitempty"`
	EventIdentity  string `protobuf:"bytes,2,opt,name=event_identity,json=eventIdentity,proto3" json:"event_identity,omitempty"`
	// The time portion of idtimestamp that contributed to the hash of the event
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Commit    *MerkleLogCommit       `protobuf:"bytes,4,opt,name=commit,proto3" json:"commit,omitempty"`
	// contains filtered or unexported fields
}

The message sent from forestrie to avid notifying that the corresponding event is commited to the tenants log.

func (*MerkleLogCommitMessage) Descriptor deprecated added in v0.3.6

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

Deprecated: Use MerkleLogCommitMessage.ProtoReflect.Descriptor instead.

func (*MerkleLogCommitMessage) GetCommit added in v0.3.6

func (x *MerkleLogCommitMessage) GetCommit() *MerkleLogCommit

func (*MerkleLogCommitMessage) GetEventIdentity added in v0.3.6

func (x *MerkleLogCommitMessage) GetEventIdentity() string

func (*MerkleLogCommitMessage) GetTenantIdentity added in v0.3.6

func (x *MerkleLogCommitMessage) GetTenantIdentity() string

func (*MerkleLogCommitMessage) GetTimestamp added in v0.3.6

func (x *MerkleLogCommitMessage) GetTimestamp() *timestamppb.Timestamp

func (*MerkleLogCommitMessage) ProtoMessage added in v0.3.6

func (*MerkleLogCommitMessage) ProtoMessage()

func (*MerkleLogCommitMessage) ProtoReflect added in v0.3.6

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

func (*MerkleLogCommitMessage) Reset added in v0.3.6

func (x *MerkleLogCommitMessage) Reset()

func (*MerkleLogCommitMessage) String added in v0.3.6

func (x *MerkleLogCommitMessage) String() string

func (*MerkleLogCommitMessage) Validate added in v0.3.6

func (m *MerkleLogCommitMessage) Validate() error

Validate checks the field values on MerkleLogCommitMessage 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 (*MerkleLogCommitMessage) ValidateAll added in v0.3.6

func (m *MerkleLogCommitMessage) ValidateAll() error

ValidateAll checks the field values on MerkleLogCommitMessage 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 MerkleLogCommitMessageMultiError, or nil if none found.

type MerkleLogCommitMessageMultiError added in v0.3.6

type MerkleLogCommitMessageMultiError []error

MerkleLogCommitMessageMultiError is an error wrapping multiple validation errors returned by MerkleLogCommitMessage.ValidateAll() if the designated constraints aren't met.

func (MerkleLogCommitMessageMultiError) AllErrors added in v0.3.6

func (m MerkleLogCommitMessageMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MerkleLogCommitMessageMultiError) Error added in v0.3.6

Error returns a concatenation of all the error messages it wraps.

type MerkleLogCommitMessageValidationError added in v0.3.6

type MerkleLogCommitMessageValidationError struct {
	// contains filtered or unexported fields
}

MerkleLogCommitMessageValidationError is the validation error returned by MerkleLogCommitMessage.Validate if the designated constraints aren't met.

func (MerkleLogCommitMessageValidationError) Cause added in v0.3.6

Cause function returns cause value.

func (MerkleLogCommitMessageValidationError) Error added in v0.3.6

Error satisfies the builtin error interface

func (MerkleLogCommitMessageValidationError) ErrorName added in v0.3.6

ErrorName returns error name.

func (MerkleLogCommitMessageValidationError) Field added in v0.3.6

Field function returns field value.

func (MerkleLogCommitMessageValidationError) Key added in v0.3.6

Key function returns key value.

func (MerkleLogCommitMessageValidationError) Reason added in v0.3.6

Reason function returns reason value.

type MerkleLogCommitMultiError added in v0.3.6

type MerkleLogCommitMultiError []error

MerkleLogCommitMultiError is an error wrapping multiple validation errors returned by MerkleLogCommit.ValidateAll() if the designated constraints aren't met.

func (MerkleLogCommitMultiError) AllErrors added in v0.3.6

func (m MerkleLogCommitMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MerkleLogCommitMultiError) Error added in v0.3.6

Error returns a concatenation of all the error messages it wraps.

type MerkleLogCommitValidationError added in v0.3.6

type MerkleLogCommitValidationError struct {
	// contains filtered or unexported fields
}

MerkleLogCommitValidationError is the validation error returned by MerkleLogCommit.Validate if the designated constraints aren't met.

func (MerkleLogCommitValidationError) Cause added in v0.3.6

Cause function returns cause value.

func (MerkleLogCommitValidationError) Error added in v0.3.6

Error satisfies the builtin error interface

func (MerkleLogCommitValidationError) ErrorName added in v0.3.6

func (e MerkleLogCommitValidationError) ErrorName() string

ErrorName returns error name.

func (MerkleLogCommitValidationError) Field added in v0.3.6

Field function returns field value.

func (MerkleLogCommitValidationError) Key added in v0.3.6

Key function returns key value.

func (MerkleLogCommitValidationError) Reason added in v0.3.6

Reason function returns reason value.

type MerkleLogConfirm added in v0.3.8

type MerkleLogConfirm struct {

	// The following correspond to mmrblobs.MMRState
	MmrSize uint64 `protobuf:"varint,1,opt,name=mmr_size,json=mmrSize,proto3" json:"mmr_size,omitempty"`
	Root    []byte `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"`
	// The regular unix time the root was signed
	Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The idtimestamp of the last leaf under mmr_size. prefixed with time epoch if len > 8 bytes (after conversion back from hex)
	Idtimestamp string `protobuf:"bytes,4,opt,name=idtimestamp,proto3" json:"idtimestamp,omitempty"`
	// The signed merkle tree head state at mmr_size. Contains COSE Sign1 formatted message.
	SignedTreeHead []byte `protobuf:"bytes,5,opt,name=signed_tree_head,json=signedTreeHead,proto3" json:"signed_tree_head,omitempty"`
	// contains filtered or unexported fields
}

func (*MerkleLogConfirm) Descriptor deprecated added in v0.3.8

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

Deprecated: Use MerkleLogConfirm.ProtoReflect.Descriptor instead.

func (*MerkleLogConfirm) GetIdtimestamp added in v0.3.8

func (x *MerkleLogConfirm) GetIdtimestamp() string

func (*MerkleLogConfirm) GetMmrSize added in v0.3.8

func (x *MerkleLogConfirm) GetMmrSize() uint64

func (*MerkleLogConfirm) GetRoot added in v0.3.8

func (x *MerkleLogConfirm) GetRoot() []byte

func (*MerkleLogConfirm) GetSignedTreeHead added in v0.3.8

func (x *MerkleLogConfirm) GetSignedTreeHead() []byte

func (*MerkleLogConfirm) GetTimestamp added in v0.3.8

func (x *MerkleLogConfirm) GetTimestamp() int64

func (*MerkleLogConfirm) ProtoMessage added in v0.3.8

func (*MerkleLogConfirm) ProtoMessage()

func (*MerkleLogConfirm) ProtoReflect added in v0.3.8

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

func (*MerkleLogConfirm) Reset added in v0.3.8

func (x *MerkleLogConfirm) Reset()

func (*MerkleLogConfirm) String added in v0.3.8

func (x *MerkleLogConfirm) String() string

func (*MerkleLogConfirm) Validate added in v0.3.8

func (m *MerkleLogConfirm) Validate() error

Validate checks the field values on MerkleLogConfirm 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 (*MerkleLogConfirm) ValidateAll added in v0.3.8

func (m *MerkleLogConfirm) ValidateAll() error

ValidateAll checks the field values on MerkleLogConfirm 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 MerkleLogConfirmMultiError, or nil if none found.

type MerkleLogConfirmMessage added in v0.3.8

type MerkleLogConfirmMessage struct {
	TenantIdentity string            `protobuf:"bytes,1,opt,name=tenant_identity,json=tenantIdentity,proto3" json:"tenant_identity,omitempty"`
	Confirm        *MerkleLogConfirm `protobuf:"bytes,2,opt,name=confirm,proto3" json:"confirm,omitempty"`
	// contains filtered or unexported fields
}

func (*MerkleLogConfirmMessage) Descriptor deprecated added in v0.3.8

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

Deprecated: Use MerkleLogConfirmMessage.ProtoReflect.Descriptor instead.

func (*MerkleLogConfirmMessage) GetConfirm added in v0.3.8

func (x *MerkleLogConfirmMessage) GetConfirm() *MerkleLogConfirm

func (*MerkleLogConfirmMessage) GetTenantIdentity added in v0.3.8

func (x *MerkleLogConfirmMessage) GetTenantIdentity() string

func (*MerkleLogConfirmMessage) ProtoMessage added in v0.3.8

func (*MerkleLogConfirmMessage) ProtoMessage()

func (*MerkleLogConfirmMessage) ProtoReflect added in v0.3.8

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

func (*MerkleLogConfirmMessage) Reset added in v0.3.8

func (x *MerkleLogConfirmMessage) Reset()

func (*MerkleLogConfirmMessage) String added in v0.3.8

func (x *MerkleLogConfirmMessage) String() string

func (*MerkleLogConfirmMessage) Validate added in v0.3.8

func (m *MerkleLogConfirmMessage) Validate() error

Validate checks the field values on MerkleLogConfirmMessage 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 (*MerkleLogConfirmMessage) ValidateAll added in v0.3.8

func (m *MerkleLogConfirmMessage) ValidateAll() error

ValidateAll checks the field values on MerkleLogConfirmMessage 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 MerkleLogConfirmMessageMultiError, or nil if none found.

type MerkleLogConfirmMessageMultiError added in v0.3.8

type MerkleLogConfirmMessageMultiError []error

MerkleLogConfirmMessageMultiError is an error wrapping multiple validation errors returned by MerkleLogConfirmMessage.ValidateAll() if the designated constraints aren't met.

func (MerkleLogConfirmMessageMultiError) AllErrors added in v0.3.8

func (m MerkleLogConfirmMessageMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MerkleLogConfirmMessageMultiError) Error added in v0.3.8

Error returns a concatenation of all the error messages it wraps.

type MerkleLogConfirmMessageValidationError added in v0.3.8

type MerkleLogConfirmMessageValidationError struct {
	// contains filtered or unexported fields
}

MerkleLogConfirmMessageValidationError is the validation error returned by MerkleLogConfirmMessage.Validate if the designated constraints aren't met.

func (MerkleLogConfirmMessageValidationError) Cause added in v0.3.8

Cause function returns cause value.

func (MerkleLogConfirmMessageValidationError) Error added in v0.3.8

Error satisfies the builtin error interface

func (MerkleLogConfirmMessageValidationError) ErrorName added in v0.3.8

ErrorName returns error name.

func (MerkleLogConfirmMessageValidationError) Field added in v0.3.8

Field function returns field value.

func (MerkleLogConfirmMessageValidationError) Key added in v0.3.8

Key function returns key value.

func (MerkleLogConfirmMessageValidationError) Reason added in v0.3.8

Reason function returns reason value.

type MerkleLogConfirmMultiError added in v0.3.8

type MerkleLogConfirmMultiError []error

MerkleLogConfirmMultiError is an error wrapping multiple validation errors returned by MerkleLogConfirm.ValidateAll() if the designated constraints aren't met.

func (MerkleLogConfirmMultiError) AllErrors added in v0.3.8

func (m MerkleLogConfirmMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MerkleLogConfirmMultiError) Error added in v0.3.8

Error returns a concatenation of all the error messages it wraps.

type MerkleLogConfirmValidationError added in v0.3.8

type MerkleLogConfirmValidationError struct {
	// contains filtered or unexported fields
}

MerkleLogConfirmValidationError is the validation error returned by MerkleLogConfirm.Validate if the designated constraints aren't met.

func (MerkleLogConfirmValidationError) Cause added in v0.3.8

Cause function returns cause value.

func (MerkleLogConfirmValidationError) Error added in v0.3.8

Error satisfies the builtin error interface

func (MerkleLogConfirmValidationError) ErrorName added in v0.3.8

ErrorName returns error name.

func (MerkleLogConfirmValidationError) Field added in v0.3.8

Field function returns field value.

func (MerkleLogConfirmValidationError) Key added in v0.3.8

Key function returns key value.

func (MerkleLogConfirmValidationError) Reason added in v0.3.8

Reason function returns reason value.

type MerkleLogEntry added in v0.3.6

type MerkleLogEntry struct {

	// Event trust level COMMITTED details
	Commit *MerkleLogCommit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"`
	// Event trust level CONFIRMED details
	Confirm *MerkleLogConfirm `protobuf:"bytes,2,opt,name=confirm,proto3" json:"confirm,omitempty"`
	// Event trust level UNEQUIVOCAL details
	Unequivocal *MerkleLogUnequivocal `protobuf:"bytes,3,opt,name=unequivocal,proto3" json:"unequivocal,omitempty"`
	// contains filtered or unexported fields
}

The details stored in the SaaS db for a proof mech MERKLE_LOG commitment

func (*MerkleLogEntry) Descriptor deprecated added in v0.3.6

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

Deprecated: Use MerkleLogEntry.ProtoReflect.Descriptor instead.

func (*MerkleLogEntry) GetCommit added in v0.3.6

func (x *MerkleLogEntry) GetCommit() *MerkleLogCommit

func (*MerkleLogEntry) GetConfirm added in v0.3.8

func (x *MerkleLogEntry) GetConfirm() *MerkleLogConfirm

func (*MerkleLogEntry) GetUnequivocal added in v0.3.8

func (x *MerkleLogEntry) GetUnequivocal() *MerkleLogUnequivocal

func (*MerkleLogEntry) ProtoMessage added in v0.3.6

func (*MerkleLogEntry) ProtoMessage()

func (*MerkleLogEntry) ProtoReflect added in v0.3.6

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

func (*MerkleLogEntry) Reset added in v0.3.6

func (x *MerkleLogEntry) Reset()

func (*MerkleLogEntry) String added in v0.3.6

func (x *MerkleLogEntry) String() string

func (*MerkleLogEntry) Validate added in v0.3.6

func (m *MerkleLogEntry) Validate() error

Validate checks the field values on MerkleLogEntry 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 (*MerkleLogEntry) ValidateAll added in v0.3.6

func (m *MerkleLogEntry) ValidateAll() error

ValidateAll checks the field values on MerkleLogEntry 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 MerkleLogEntryMultiError, or nil if none found.

type MerkleLogEntryMultiError added in v0.3.6

type MerkleLogEntryMultiError []error

MerkleLogEntryMultiError is an error wrapping multiple validation errors returned by MerkleLogEntry.ValidateAll() if the designated constraints aren't met.

func (MerkleLogEntryMultiError) AllErrors added in v0.3.6

func (m MerkleLogEntryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MerkleLogEntryMultiError) Error added in v0.3.6

func (m MerkleLogEntryMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MerkleLogEntryValidationError added in v0.3.6

type MerkleLogEntryValidationError struct {
	// contains filtered or unexported fields
}

MerkleLogEntryValidationError is the validation error returned by MerkleLogEntry.Validate if the designated constraints aren't met.

func (MerkleLogEntryValidationError) Cause added in v0.3.6

Cause function returns cause value.

func (MerkleLogEntryValidationError) Error added in v0.3.6

Error satisfies the builtin error interface

func (MerkleLogEntryValidationError) ErrorName added in v0.3.6

func (e MerkleLogEntryValidationError) ErrorName() string

ErrorName returns error name.

func (MerkleLogEntryValidationError) Field added in v0.3.6

Field function returns field value.

func (MerkleLogEntryValidationError) Key added in v0.3.6

Key function returns key value.

func (MerkleLogEntryValidationError) Reason added in v0.3.6

Reason function returns reason value.

type MerkleLogUnequivocal added in v0.3.8

type MerkleLogUnequivocal struct {
	// contains filtered or unexported fields
}

func (*MerkleLogUnequivocal) Descriptor deprecated added in v0.3.8

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

Deprecated: Use MerkleLogUnequivocal.ProtoReflect.Descriptor instead.

func (*MerkleLogUnequivocal) ProtoMessage added in v0.3.8

func (*MerkleLogUnequivocal) ProtoMessage()

func (*MerkleLogUnequivocal) ProtoReflect added in v0.3.8

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

func (*MerkleLogUnequivocal) Reset added in v0.3.8

func (x *MerkleLogUnequivocal) Reset()

func (*MerkleLogUnequivocal) String added in v0.3.8

func (x *MerkleLogUnequivocal) String() string

func (*MerkleLogUnequivocal) Validate added in v0.3.8

func (m *MerkleLogUnequivocal) Validate() error

Validate checks the field values on MerkleLogUnequivocal 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 (*MerkleLogUnequivocal) ValidateAll added in v0.3.8

func (m *MerkleLogUnequivocal) ValidateAll() error

ValidateAll checks the field values on MerkleLogUnequivocal 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 MerkleLogUnequivocalMultiError, or nil if none found.

type MerkleLogUnequivocalMessage added in v0.3.8

type MerkleLogUnequivocalMessage struct {
	TenantIdentity string                `protobuf:"bytes,1,opt,name=tenant_identity,json=tenantIdentity,proto3" json:"tenant_identity,omitempty"`
	Unequivocal    *MerkleLogUnequivocal `protobuf:"bytes,2,opt,name=unequivocal,proto3" json:"unequivocal,omitempty"`
	// contains filtered or unexported fields
}

func (*MerkleLogUnequivocalMessage) Descriptor deprecated added in v0.3.8

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

Deprecated: Use MerkleLogUnequivocalMessage.ProtoReflect.Descriptor instead.

func (*MerkleLogUnequivocalMessage) GetTenantIdentity added in v0.3.8

func (x *MerkleLogUnequivocalMessage) GetTenantIdentity() string

func (*MerkleLogUnequivocalMessage) GetUnequivocal added in v0.3.8

func (*MerkleLogUnequivocalMessage) ProtoMessage added in v0.3.8

func (*MerkleLogUnequivocalMessage) ProtoMessage()

func (*MerkleLogUnequivocalMessage) ProtoReflect added in v0.3.8

func (*MerkleLogUnequivocalMessage) Reset added in v0.3.8

func (x *MerkleLogUnequivocalMessage) Reset()

func (*MerkleLogUnequivocalMessage) String added in v0.3.8

func (x *MerkleLogUnequivocalMessage) String() string

func (*MerkleLogUnequivocalMessage) Validate added in v0.3.8

func (m *MerkleLogUnequivocalMessage) Validate() error

Validate checks the field values on MerkleLogUnequivocalMessage 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 (*MerkleLogUnequivocalMessage) ValidateAll added in v0.3.8

func (m *MerkleLogUnequivocalMessage) ValidateAll() error

ValidateAll checks the field values on MerkleLogUnequivocalMessage 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 MerkleLogUnequivocalMessageMultiError, or nil if none found.

type MerkleLogUnequivocalMessageMultiError added in v0.3.8

type MerkleLogUnequivocalMessageMultiError []error

MerkleLogUnequivocalMessageMultiError is an error wrapping multiple validation errors returned by MerkleLogUnequivocalMessage.ValidateAll() if the designated constraints aren't met.

func (MerkleLogUnequivocalMessageMultiError) AllErrors added in v0.3.8

AllErrors returns a list of validation violation errors.

func (MerkleLogUnequivocalMessageMultiError) Error added in v0.3.8

Error returns a concatenation of all the error messages it wraps.

type MerkleLogUnequivocalMessageValidationError added in v0.3.8

type MerkleLogUnequivocalMessageValidationError struct {
	// contains filtered or unexported fields
}

MerkleLogUnequivocalMessageValidationError is the validation error returned by MerkleLogUnequivocalMessage.Validate if the designated constraints aren't met.

func (MerkleLogUnequivocalMessageValidationError) Cause added in v0.3.8

Cause function returns cause value.

func (MerkleLogUnequivocalMessageValidationError) Error added in v0.3.8

Error satisfies the builtin error interface

func (MerkleLogUnequivocalMessageValidationError) ErrorName added in v0.3.8

ErrorName returns error name.

func (MerkleLogUnequivocalMessageValidationError) Field added in v0.3.8

Field function returns field value.

func (MerkleLogUnequivocalMessageValidationError) Key added in v0.3.8

Key function returns key value.

func (MerkleLogUnequivocalMessageValidationError) Reason added in v0.3.8

Reason function returns reason value.

type MerkleLogUnequivocalMultiError added in v0.3.8

type MerkleLogUnequivocalMultiError []error

MerkleLogUnequivocalMultiError is an error wrapping multiple validation errors returned by MerkleLogUnequivocal.ValidateAll() if the designated constraints aren't met.

func (MerkleLogUnequivocalMultiError) AllErrors added in v0.3.8

func (m MerkleLogUnequivocalMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MerkleLogUnequivocalMultiError) Error added in v0.3.8

Error returns a concatenation of all the error messages it wraps.

type MerkleLogUnequivocalValidationError added in v0.3.8

type MerkleLogUnequivocalValidationError struct {
	// contains filtered or unexported fields
}

MerkleLogUnequivocalValidationError is the validation error returned by MerkleLogUnequivocal.Validate if the designated constraints aren't met.

func (MerkleLogUnequivocalValidationError) Cause added in v0.3.8

Cause function returns cause value.

func (MerkleLogUnequivocalValidationError) Error added in v0.3.8

Error satisfies the builtin error interface

func (MerkleLogUnequivocalValidationError) ErrorName added in v0.3.8

ErrorName returns error name.

func (MerkleLogUnequivocalValidationError) Field added in v0.3.8

Field function returns field value.

func (MerkleLogUnequivocalValidationError) Key added in v0.3.8

Key function returns key value.

func (MerkleLogUnequivocalValidationError) Reason added in v0.3.8

Reason function returns reason value.

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) Descriptor() ([]byte, []int)

Deprecated: Use Principal.ProtoReflect.Descriptor instead.

func (*Principal) GetDisplayName

func (x *Principal) GetDisplayName() string

func (*Principal) GetEmail

func (x *Principal) GetEmail() string

func (*Principal) GetIssuer

func (x *Principal) GetIssuer() string

func (*Principal) GetSubject

func (x *Principal) GetSubject() string

func (*Principal) ProtoMessage

func (*Principal) ProtoMessage()

func (*Principal) ProtoReflect

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

func (*Principal) Reset

func (x *Principal) Reset()

func (*Principal) String

func (x *Principal) String() string

func (*Principal) Validate

func (m *Principal) Validate() error

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

func (m *Principal) ValidateAll() error

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

Key function returns key value.

func (PrincipalValidationError) Reason

func (e PrincipalValidationError) Reason() string

Reason function returns reason value.

type Privacy

type Privacy int32
const (
	Privacy_PRIVACY_UNSPECIFIED Privacy = 0
	Privacy_RESTRICTED          Privacy = 1
	Privacy_PUBLIC              Privacy = 2
)

func PublicBoolToPrivacy

func PublicBoolToPrivacy(b bool) Privacy

PublicBoolToPrivacy converts boolean to Privacy

func (Privacy) Descriptor

func (Privacy) Descriptor() protoreflect.EnumDescriptor

func (Privacy) Enum

func (x Privacy) Enum() *Privacy

func (Privacy) EnumDescriptor deprecated

func (Privacy) EnumDescriptor() ([]byte, []int)

Deprecated: Use Privacy.Descriptor instead.

func (Privacy) Number

func (x Privacy) Number() protoreflect.EnumNumber

func (Privacy) String

func (x Privacy) String() string

func (Privacy) Type

func (Privacy) Type() protoreflect.EnumType

type ProofMechanism

type ProofMechanism int32
const (
	ProofMechanism_PROOF_MECHANISM_UNSPECIFIED ProofMechanism = 0
	ProofMechanism_RESERVED1                   ProofMechanism = 1
	ProofMechanism_SIMPLE_HASH                 ProofMechanism = 2
	ProofMechanism_MERKLE_LOG                  ProofMechanism = 3
)

func (ProofMechanism) Descriptor

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 (ProofMechanism) String

func (x ProofMechanism) String() string

func (ProofMechanism) Type

type PublicAssetURLResponse

type PublicAssetURLResponse struct {
	Publicurl string `protobuf:"bytes,1,opt,name=publicurl,proto3" json:"publicurl,omitempty"`
	// contains filtered or unexported fields
}

PublicAssetURLResponse is the public url response when calling the :publicurl verb

func (*PublicAssetURLResponse) Descriptor deprecated

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

Deprecated: Use PublicAssetURLResponse.ProtoReflect.Descriptor instead.

func (*PublicAssetURLResponse) GetPublicurl

func (x *PublicAssetURLResponse) GetPublicurl() string

func (*PublicAssetURLResponse) ProtoMessage

func (*PublicAssetURLResponse) ProtoMessage()

func (*PublicAssetURLResponse) ProtoReflect

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

func (*PublicAssetURLResponse) Reset

func (x *PublicAssetURLResponse) Reset()

func (*PublicAssetURLResponse) String

func (x *PublicAssetURLResponse) String() string

func (*PublicAssetURLResponse) Validate

func (m *PublicAssetURLResponse) Validate() error

Validate checks the field values on PublicAssetURLResponse 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 (*PublicAssetURLResponse) ValidateAll

func (m *PublicAssetURLResponse) ValidateAll() error

ValidateAll checks the field values on PublicAssetURLResponse 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 PublicAssetURLResponseMultiError, or nil if none found.

type PublicAssetURLResponseMultiError

type PublicAssetURLResponseMultiError []error

PublicAssetURLResponseMultiError is an error wrapping multiple validation errors returned by PublicAssetURLResponse.ValidateAll() if the designated constraints aren't met.

func (PublicAssetURLResponseMultiError) AllErrors

func (m PublicAssetURLResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PublicAssetURLResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PublicAssetURLResponseValidationError

type PublicAssetURLResponseValidationError struct {
	// contains filtered or unexported fields
}

PublicAssetURLResponseValidationError is the validation error returned by PublicAssetURLResponse.Validate if the designated constraints aren't met.

func (PublicAssetURLResponseValidationError) Cause

Cause function returns cause value.

func (PublicAssetURLResponseValidationError) Error

Error satisfies the builtin error interface

func (PublicAssetURLResponseValidationError) ErrorName

ErrorName returns error name.

func (PublicAssetURLResponseValidationError) Field

Field function returns field value.

func (PublicAssetURLResponseValidationError) Key

Key function returns key value.

func (PublicAssetURLResponseValidationError) Reason

Reason function returns reason value.

type PublicAssetsClient

type PublicAssetsClient interface {
	GetPublicEvent(ctx context.Context, in *GetEventRequest, opts ...grpc.CallOption) (*EventResponse, error)
	GetPublicAsset(ctx context.Context, in *GetAssetRequest, opts ...grpc.CallOption) (*AssetResponse, error)
	ListPublicEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error)
}

PublicAssetsClient is the client API for PublicAssets service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type PublicAssetsServer

type PublicAssetsServer interface {
	GetPublicEvent(context.Context, *GetEventRequest) (*EventResponse, error)
	GetPublicAsset(context.Context, *GetAssetRequest) (*AssetResponse, error)
	ListPublicEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error)
	// contains filtered or unexported methods
}

PublicAssetsServer is the server API for PublicAssets service. All implementations must embed UnimplementedPublicAssetsServer for forward compatibility

type PublicEventURLResponse

type PublicEventURLResponse struct {
	Publicurl string `protobuf:"bytes,1,opt,name=publicurl,proto3" json:"publicurl,omitempty"`
	// contains filtered or unexported fields
}

PublicEventURLResponse is the public url response when calling the :publicurl verb

func (*PublicEventURLResponse) Descriptor deprecated

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

Deprecated: Use PublicEventURLResponse.ProtoReflect.Descriptor instead.

func (*PublicEventURLResponse) GetPublicurl

func (x *PublicEventURLResponse) GetPublicurl() string

func (*PublicEventURLResponse) ProtoMessage

func (*PublicEventURLResponse) ProtoMessage()

func (*PublicEventURLResponse) ProtoReflect

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

func (*PublicEventURLResponse) Reset

func (x *PublicEventURLResponse) Reset()

func (*PublicEventURLResponse) String

func (x *PublicEventURLResponse) String() string

func (*PublicEventURLResponse) Validate

func (m *PublicEventURLResponse) Validate() error

Validate checks the field values on PublicEventURLResponse 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 (*PublicEventURLResponse) ValidateAll

func (m *PublicEventURLResponse) ValidateAll() error

ValidateAll checks the field values on PublicEventURLResponse 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 PublicEventURLResponseMultiError, or nil if none found.

type PublicEventURLResponseMultiError

type PublicEventURLResponseMultiError []error

PublicEventURLResponseMultiError is an error wrapping multiple validation errors returned by PublicEventURLResponse.ValidateAll() if the designated constraints aren't met.

func (PublicEventURLResponseMultiError) AllErrors

func (m PublicEventURLResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PublicEventURLResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PublicEventURLResponseValidationError

type PublicEventURLResponseValidationError struct {
	// contains filtered or unexported fields
}

PublicEventURLResponseValidationError is the validation error returned by PublicEventURLResponse.Validate if the designated constraints aren't met.

func (PublicEventURLResponseValidationError) Cause

Cause function returns cause value.

func (PublicEventURLResponseValidationError) Error

Error satisfies the builtin error interface

func (PublicEventURLResponseValidationError) ErrorName

ErrorName returns error name.

func (PublicEventURLResponseValidationError) Field

Field function returns field value.

func (PublicEventURLResponseValidationError) Key

Key function returns key value.

func (PublicEventURLResponseValidationError) Reason

Reason function returns reason value.

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) Enum

func (x TrackedStatus) Enum() *TrackedStatus

func (TrackedStatus) EnumDescriptor deprecated

func (TrackedStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use TrackedStatus.Descriptor instead.

func (TrackedStatus) Number

func (TrackedStatus) String

func (x TrackedStatus) String() string

func (TrackedStatus) Type

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

type UnimplementedAssetsServer

type UnimplementedAssetsServer struct {
}

UnimplementedAssetsServer must be embedded to have forward compatible implementations.

func (UnimplementedAssetsServer) CreateAsset

func (UnimplementedAssetsServer) GetAsset

func (UnimplementedAssetsServer) GetAssetPublicURL

func (UnimplementedAssetsServer) GetCaps

func (UnimplementedAssetsServer) GetEvent

func (UnimplementedAssetsServer) GetEventPublicURL

func (UnimplementedAssetsServer) ListAssets

func (UnimplementedAssetsServer) ListEvents

type UnimplementedEventsServer

type UnimplementedEventsServer struct {
}

UnimplementedEventsServer must be embedded to have forward compatible implementations.

func (UnimplementedEventsServer) Create

type UnimplementedPublicAssetsServer

type UnimplementedPublicAssetsServer struct {
}

UnimplementedPublicAssetsServer must be embedded to have forward compatible implementations.

func (UnimplementedPublicAssetsServer) GetPublicAsset

func (UnimplementedPublicAssetsServer) GetPublicEvent

func (UnimplementedPublicAssetsServer) ListPublicEvents

type UnsafeAssetsServer

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

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

type UnsafeEventsServer

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

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

type UnsafePublicAssetsServer

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

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

Jump to

Keyboard shortcuts

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