datav1alpha2

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	MediaType_name = map[int32]string{
		0:  "MEDIA_TYPE_UNSPECIFIED",
		1:  "MEDIA_TYPE_TEXT_PLAIN",
		2:  "MEDIA_TYPE_JSON",
		3:  "MEDIA_TYPE_CSV",
		4:  "MEDIA_TYPE_XML",
		5:  "MEDIA_TYPE_PDF",
		16: "MEDIA_TYPE_TIFF",
		17: "MEDIA_TYPE_JPG",
		18: "MEDIA_TYPE_PNG",
		19: "MEDIA_TYPE_SVG",
		20: "MEDIA_TYPE_WEBP",
		21: "MEDIA_TYPE_AVIF",
		22: "MEDIA_TYPE_GIF",
		23: "MEDIA_TYPE_APNG",
		32: "MEDIA_TYPE_MPEG",
		33: "MEDIA_TYPE_MP4",
		34: "MEDIA_TYPE_WEBM",
		35: "MEDIA_TYPE_OGG",
	}
	MediaType_value = map[string]int32{
		"MEDIA_TYPE_UNSPECIFIED": 0,
		"MEDIA_TYPE_TEXT_PLAIN":  1,
		"MEDIA_TYPE_JSON":        2,
		"MEDIA_TYPE_CSV":         3,
		"MEDIA_TYPE_XML":         4,
		"MEDIA_TYPE_PDF":         5,
		"MEDIA_TYPE_TIFF":        16,
		"MEDIA_TYPE_JPG":         17,
		"MEDIA_TYPE_PNG":         18,
		"MEDIA_TYPE_SVG":         19,
		"MEDIA_TYPE_WEBP":        20,
		"MEDIA_TYPE_AVIF":        21,
		"MEDIA_TYPE_GIF":         22,
		"MEDIA_TYPE_APNG":        23,
		"MEDIA_TYPE_MPEG":        32,
		"MEDIA_TYPE_MP4":         33,
		"MEDIA_TYPE_WEBM":        34,
		"MEDIA_TYPE_OGG":         35,
	}
)

Enum value maps for MediaType.

View Source
var (
	GraphCanonicalizationAlgorithm_name = map[int32]string{
		0: "GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED",
		1: "GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015",
	}
	GraphCanonicalizationAlgorithm_value = map[string]int32{
		"GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED": 0,
		"GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015":   1,
	}
)

Enum value maps for GraphCanonicalizationAlgorithm.

View Source
var (
	GraphMerkleTree_name = map[int32]string{
		0: "GRAPH_MERKLE_TREE_NONE_UNSPECIFIED",
	}
	GraphMerkleTree_value = map[string]int32{
		"GRAPH_MERKLE_TREE_NONE_UNSPECIFIED": 0,
	}
)

Enum value maps for GraphMerkleTree.

View Source
var (
	DigestAlgorithm_name = map[int32]string{
		0: "DIGEST_ALGORITHM_UNSPECIFIED",
		1: "DIGEST_ALGORITHM_BLAKE2B_256",
	}
	DigestAlgorithm_value = map[string]int32{
		"DIGEST_ALGORITHM_UNSPECIFIED": 0,
		"DIGEST_ALGORITHM_BLAKE2B_256": 1,
	}
)

Enum value maps for DigestAlgorithm.

View Source
var File_regen_data_v1alpha2_events_proto protoreflect.FileDescriptor
View Source
var File_regen_data_v1alpha2_genesis_proto protoreflect.FileDescriptor
View Source
var File_regen_data_v1alpha2_query_proto protoreflect.FileDescriptor
View Source
var File_regen_data_v1alpha2_tx_proto protoreflect.FileDescriptor
View Source
var File_regen_data_v1alpha2_types_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "regen.data.v1alpha2.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AnchorData",
			Handler:    _Msg_AnchorData_Handler,
		},
		{
			MethodName: "SignData",
			Handler:    _Msg_SignData_Handler,
		},
		{
			MethodName: "StoreRawData",
			Handler:    _Msg_StoreRawData_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "regen/data/v1alpha2/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg 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 Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "regen.data.v1alpha2.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ByHash",
			Handler:    _Query_ByHash_Handler,
		},
		{
			MethodName: "BySigner",
			Handler:    _Query_BySigner_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "regen/data/v1alpha2/query.proto",
}

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

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type Content added in v1.0.0

type Content struct {

	// sum selects the type of data
	//
	// Types that are assignable to Sum:
	//	*Content_RawData
	Sum isContent_Sum `protobuf_oneof:"sum"`
	// contains filtered or unexported fields
}

Content is a wrapper for content stored on-chain

func (*Content) Descriptor deprecated added in v1.0.0

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

Deprecated: Use Content.ProtoReflect.Descriptor instead.

func (*Content) GetRawData added in v1.0.0

func (x *Content) GetRawData() []byte

func (*Content) GetSum added in v1.0.0

func (x *Content) GetSum() isContent_Sum

func (*Content) ProtoMessage added in v1.0.0

func (*Content) ProtoMessage()

func (*Content) ProtoReflect added in v1.0.0

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

func (*Content) Reset added in v1.0.0

func (x *Content) Reset()

func (*Content) String added in v1.0.0

func (x *Content) String() string

type ContentEntry

type ContentEntry struct {

	// hash is the content hash
	Hash *ContentHash `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// iri is the content IRI
	Iri string `protobuf:"bytes,2,opt,name=iri,proto3" json:"iri,omitempty"`
	// timestamp is the anchor Timestamp
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// signers are the signers, if any
	Signers []*SignerEntry `protobuf:"bytes,4,rep,name=signers,proto3" json:"signers,omitempty"`
	// content is the actual content if stored on-chain
	Content *Content `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

ContentEntry describes data referenced and possibly stored on chain

func (*ContentEntry) Descriptor deprecated

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

Deprecated: Use ContentEntry.ProtoReflect.Descriptor instead.

func (*ContentEntry) GetContent added in v1.0.0

func (x *ContentEntry) GetContent() *Content

func (*ContentEntry) GetHash

func (x *ContentEntry) GetHash() *ContentHash

func (*ContentEntry) GetIri

func (x *ContentEntry) GetIri() string

func (*ContentEntry) GetSigners added in v1.0.0

func (x *ContentEntry) GetSigners() []*SignerEntry

func (*ContentEntry) GetTimestamp

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

func (*ContentEntry) ProtoMessage

func (*ContentEntry) ProtoMessage()

func (*ContentEntry) ProtoReflect

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

func (*ContentEntry) Reset

func (x *ContentEntry) Reset()

func (*ContentEntry) String

func (x *ContentEntry) String() string

type ContentHash

type ContentHash struct {

	// sum selects the type of content hash
	//
	// Types that are assignable to Sum:
	//	*ContentHash_Raw_
	//	*ContentHash_Graph_
	Sum isContentHash_Sum `protobuf_oneof:"sum"`
	// contains filtered or unexported fields
}

ContentHash specifies a hash based content identifier for a piece of data

func (*ContentHash) Descriptor deprecated

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

Deprecated: Use ContentHash.ProtoReflect.Descriptor instead.

func (*ContentHash) GetGraph

func (x *ContentHash) GetGraph() *ContentHash_Graph

func (*ContentHash) GetRaw

func (x *ContentHash) GetRaw() *ContentHash_Raw

func (*ContentHash) GetSum

func (x *ContentHash) GetSum() isContentHash_Sum

func (*ContentHash) ProtoMessage

func (*ContentHash) ProtoMessage()

func (*ContentHash) ProtoReflect

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

func (*ContentHash) Reset

func (x *ContentHash) Reset()

func (*ContentHash) String

func (x *ContentHash) String() string

type ContentHash_Graph

type ContentHash_Graph struct {

	// hash represents the hash of the data based on the specified
	// digest_algorithm
	Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// digest_algorithm represents the hash digest algorithm.
	DigestAlgorithm DigestAlgorithm `` /* 148-byte string literal not displayed */
	// graph_canonicalization_algorithm represents the RDF graph
	// canonicalization algorithm.
	CanonicalizationAlgorithm GraphCanonicalizationAlgorithm `` /* 193-byte string literal not displayed */
	// merkle_tree is the merkle tree type used for the graph hash, if any
	MerkleTree GraphMerkleTree `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

Graph is the content hash type used for RDF graph data

func (*ContentHash_Graph) Descriptor deprecated

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

Deprecated: Use ContentHash_Graph.ProtoReflect.Descriptor instead.

func (*ContentHash_Graph) GetCanonicalizationAlgorithm

func (x *ContentHash_Graph) GetCanonicalizationAlgorithm() GraphCanonicalizationAlgorithm

func (*ContentHash_Graph) GetDigestAlgorithm

func (x *ContentHash_Graph) GetDigestAlgorithm() DigestAlgorithm

func (*ContentHash_Graph) GetHash

func (x *ContentHash_Graph) GetHash() []byte

func (*ContentHash_Graph) GetMerkleTree

func (x *ContentHash_Graph) GetMerkleTree() GraphMerkleTree

func (*ContentHash_Graph) ProtoMessage

func (*ContentHash_Graph) ProtoMessage()

func (*ContentHash_Graph) ProtoReflect

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

func (*ContentHash_Graph) Reset

func (x *ContentHash_Graph) Reset()

func (*ContentHash_Graph) String

func (x *ContentHash_Graph) String() string

type ContentHash_Graph_

type ContentHash_Graph_ struct {
	// Graph specifies graph data that conforms to the RDF data model.
	// The canonicalization algorithm used for an RDF graph is specified by
	// GraphCanonicalizationAlgorithm.
	Graph *ContentHash_Graph `protobuf:"bytes,2,opt,name=graph,proto3,oneof"`
}

type ContentHash_Raw

type ContentHash_Raw struct {

	// hash represents the hash of the data based on the specified
	// digest_algorithm
	Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// digest_algorithm represents the hash digest algorithm.
	DigestAlgorithm DigestAlgorithm `` /* 148-byte string literal not displayed */
	// media_type represents the MediaType for raw data.
	MediaType MediaType `protobuf:"varint,3,opt,name=media_type,json=mediaType,proto3,enum=regen.data.v1alpha2.MediaType" json:"media_type,omitempty"`
	// contains filtered or unexported fields
}

Raw is the content hash type used for raw data

func (*ContentHash_Raw) Descriptor deprecated

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

Deprecated: Use ContentHash_Raw.ProtoReflect.Descriptor instead.

func (*ContentHash_Raw) GetDigestAlgorithm

func (x *ContentHash_Raw) GetDigestAlgorithm() DigestAlgorithm

func (*ContentHash_Raw) GetHash

func (x *ContentHash_Raw) GetHash() []byte

func (*ContentHash_Raw) GetMediaType

func (x *ContentHash_Raw) GetMediaType() MediaType

func (*ContentHash_Raw) ProtoMessage

func (*ContentHash_Raw) ProtoMessage()

func (*ContentHash_Raw) ProtoReflect

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

func (*ContentHash_Raw) Reset

func (x *ContentHash_Raw) Reset()

func (*ContentHash_Raw) String

func (x *ContentHash_Raw) String() string

type ContentHash_Raw_

type ContentHash_Raw_ struct {
	// Raw specifies "raw" data which does not specify a deterministic,
	// canonical encoding. Users of these hashes MUST maintain a copy of the
	// hashed data which is preserved bit by bit. All other content encodings
	// specify a deterministic, canonical encoding allowing implementations to
	// choose from a variety of alternative formats for transport and encoding
	// while maintaining the guarantee that the canonical hash will not change.
	// The media type for "raw" data is defined by the MediaType enum.
	Raw *ContentHash_Raw `protobuf:"bytes,1,opt,name=raw,proto3,oneof"`
}

type Content_RawData added in v1.0.0

type Content_RawData struct {
	// raw_data is the oneof field for raw data
	RawData []byte `protobuf:"bytes,1,opt,name=raw_data,json=rawData,proto3,oneof"`
}

type DigestAlgorithm

type DigestAlgorithm int32

DigestAlgorithm is the hash digest algorithm

const (
	// unspecified and invalid
	DigestAlgorithm_DIGEST_ALGORITHM_UNSPECIFIED DigestAlgorithm = 0
	// BLAKE2b-256
	DigestAlgorithm_DIGEST_ALGORITHM_BLAKE2B_256 DigestAlgorithm = 1
)

func (DigestAlgorithm) Descriptor

func (DigestAlgorithm) Enum

func (x DigestAlgorithm) Enum() *DigestAlgorithm

func (DigestAlgorithm) EnumDescriptor deprecated

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

Deprecated: Use DigestAlgorithm.Descriptor instead.

func (DigestAlgorithm) Number

func (DigestAlgorithm) String

func (x DigestAlgorithm) String() string

func (DigestAlgorithm) Type

type EventAnchorData

type EventAnchorData struct {

	// iri is the data IRI
	Iri string `protobuf:"bytes,1,opt,name=iri,proto3" json:"iri,omitempty"`
	// contains filtered or unexported fields
}

EventAnchorData is an event emitted when data is anchored on-chain.

func (*EventAnchorData) Descriptor deprecated

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

Deprecated: Use EventAnchorData.ProtoReflect.Descriptor instead.

func (*EventAnchorData) GetIri

func (x *EventAnchorData) GetIri() string

func (*EventAnchorData) ProtoMessage

func (*EventAnchorData) ProtoMessage()

func (*EventAnchorData) ProtoReflect

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

func (*EventAnchorData) Reset

func (x *EventAnchorData) Reset()

func (*EventAnchorData) String

func (x *EventAnchorData) String() string

type EventSignData

type EventSignData struct {

	// iri is the data IRI
	Iri string `protobuf:"bytes,1,opt,name=iri,proto3" json:"iri,omitempty"`
	// signers are the addresses of the accounts which have signed the data.
	Signers []string `protobuf:"bytes,2,rep,name=signers,proto3" json:"signers,omitempty"`
	// contains filtered or unexported fields
}

EventSignData is an event emitted when data is signed on-chain.

func (*EventSignData) Descriptor deprecated

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

Deprecated: Use EventSignData.ProtoReflect.Descriptor instead.

func (*EventSignData) GetIri

func (x *EventSignData) GetIri() string

func (*EventSignData) GetSigners

func (x *EventSignData) GetSigners() []string

func (*EventSignData) ProtoMessage

func (*EventSignData) ProtoMessage()

func (*EventSignData) ProtoReflect

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

func (*EventSignData) Reset

func (x *EventSignData) Reset()

func (*EventSignData) String

func (x *EventSignData) String() string

type EventStoreRawData

type EventStoreRawData struct {

	// iri is the data IRI
	Iri string `protobuf:"bytes,1,opt,name=iri,proto3" json:"iri,omitempty"`
	// contains filtered or unexported fields
}

EventStoreRawData is an event emitted when data is stored on-chain.

func (*EventStoreRawData) Descriptor deprecated

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

Deprecated: Use EventStoreRawData.ProtoReflect.Descriptor instead.

func (*EventStoreRawData) GetIri

func (x *EventStoreRawData) GetIri() string

func (*EventStoreRawData) ProtoMessage

func (*EventStoreRawData) ProtoMessage()

func (*EventStoreRawData) ProtoReflect

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

func (*EventStoreRawData) Reset

func (x *EventStoreRawData) Reset()

func (*EventStoreRawData) String

func (x *EventStoreRawData) String() string

type GenesisContentEntry

type GenesisContentEntry struct {

	// hash is the ContentHash
	Hash *ContentHash `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// timestamp is the anchor Timestamp
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// signers are the signers, if any
	Signers []*SignerEntry `protobuf:"bytes,3,rep,name=signers,proto3" json:"signers,omitempty"`
	// content is the actual content if stored on-chain
	Content *Content `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

GenesisContentEntry is a genesis content entry

func (*GenesisContentEntry) Descriptor deprecated

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

Deprecated: Use GenesisContentEntry.ProtoReflect.Descriptor instead.

func (*GenesisContentEntry) GetContent added in v1.0.0

func (x *GenesisContentEntry) GetContent() *Content

func (*GenesisContentEntry) GetHash

func (x *GenesisContentEntry) GetHash() *ContentHash

func (*GenesisContentEntry) GetSigners

func (x *GenesisContentEntry) GetSigners() []*SignerEntry

func (*GenesisContentEntry) GetTimestamp

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

func (*GenesisContentEntry) ProtoMessage

func (*GenesisContentEntry) ProtoMessage()

func (*GenesisContentEntry) ProtoReflect

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

func (*GenesisContentEntry) Reset

func (x *GenesisContentEntry) Reset()

func (*GenesisContentEntry) String

func (x *GenesisContentEntry) String() string

type GenesisState

type GenesisState struct {

	// entries are the content entries
	Entries []*GenesisContentEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

GenesisState is the genesis state

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetEntries

func (x *GenesisState) GetEntries() []*GenesisContentEntry

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

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

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type GraphCanonicalizationAlgorithm

type GraphCanonicalizationAlgorithm int32

GraphCanonicalizationAlgorithm is the graph canonicalization algorithm

const (
	// unspecified and invalid
	GraphCanonicalizationAlgorithm_GRAPH_CANONICALIZATION_ALGORITHM_UNSPECIFIED GraphCanonicalizationAlgorithm = 0
	// URDNA2015 graph hashing
	GraphCanonicalizationAlgorithm_GRAPH_CANONICALIZATION_ALGORITHM_URDNA2015 GraphCanonicalizationAlgorithm = 1
)

func (GraphCanonicalizationAlgorithm) Descriptor

func (GraphCanonicalizationAlgorithm) Enum

func (GraphCanonicalizationAlgorithm) EnumDescriptor deprecated

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

Deprecated: Use GraphCanonicalizationAlgorithm.Descriptor instead.

func (GraphCanonicalizationAlgorithm) Number

func (GraphCanonicalizationAlgorithm) String

func (GraphCanonicalizationAlgorithm) Type

type GraphMerkleTree

type GraphMerkleTree int32

GraphMerkleTree is the graph merkle tree type used for hashing, if any

const (
	// no merkle tree
	GraphMerkleTree_GRAPH_MERKLE_TREE_NONE_UNSPECIFIED GraphMerkleTree = 0
)

func (GraphMerkleTree) Descriptor

func (GraphMerkleTree) Enum

func (x GraphMerkleTree) Enum() *GraphMerkleTree

func (GraphMerkleTree) EnumDescriptor deprecated

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

Deprecated: Use GraphMerkleTree.Descriptor instead.

func (GraphMerkleTree) Number

func (GraphMerkleTree) String

func (x GraphMerkleTree) String() string

func (GraphMerkleTree) Type

type MediaType

type MediaType int32

MediaType defines MIME media types to be used with a ContentHash.Raw hash.

const (
	// MEDIA_TYPE_UNSPECIFIED can be used for raw binary data
	MediaType_MEDIA_TYPE_UNSPECIFIED MediaType = 0
	// plain text
	MediaType_MEDIA_TYPE_TEXT_PLAIN MediaType = 1
	// JSON
	MediaType_MEDIA_TYPE_JSON MediaType = 2
	// CSV
	MediaType_MEDIA_TYPE_CSV MediaType = 3
	// XML
	MediaType_MEDIA_TYPE_XML MediaType = 4
	// PDF
	MediaType_MEDIA_TYPE_PDF MediaType = 5
	// TIIF
	MediaType_MEDIA_TYPE_TIFF MediaType = 16
	// JPG
	MediaType_MEDIA_TYPE_JPG MediaType = 17
	// PNG
	MediaType_MEDIA_TYPE_PNG MediaType = 18
	// SVG
	MediaType_MEDIA_TYPE_SVG MediaType = 19
	// WEBP
	MediaType_MEDIA_TYPE_WEBP MediaType = 20
	// AVIF
	MediaType_MEDIA_TYPE_AVIF MediaType = 21
	// GIF
	MediaType_MEDIA_TYPE_GIF MediaType = 22
	// APNG
	MediaType_MEDIA_TYPE_APNG MediaType = 23
	// MPEG
	MediaType_MEDIA_TYPE_MPEG MediaType = 32
	// MP4
	MediaType_MEDIA_TYPE_MP4 MediaType = 33
	// WEBM
	MediaType_MEDIA_TYPE_WEBM MediaType = 34
	// OGG
	MediaType_MEDIA_TYPE_OGG MediaType = 35
)

func (MediaType) Descriptor

func (MediaType) Descriptor() protoreflect.EnumDescriptor

func (MediaType) Enum

func (x MediaType) Enum() *MediaType

func (MediaType) EnumDescriptor deprecated

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

Deprecated: Use MediaType.Descriptor instead.

func (MediaType) Number

func (x MediaType) Number() protoreflect.EnumNumber

func (MediaType) String

func (x MediaType) String() string

func (MediaType) Type

type MsgAnchorData

type MsgAnchorData struct {

	// sender is the address of the sender of the transaction.
	// The sender in StoreData is not attesting to the veracity of the underlying
	// data. They can simply be a intermediary providing services.
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// hash is the hash-based identifier for the anchored content.
	Hash *ContentHash `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

MsgAnchorData is the Msg/AnchorData request type.

func (*MsgAnchorData) Descriptor deprecated

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

Deprecated: Use MsgAnchorData.ProtoReflect.Descriptor instead.

func (*MsgAnchorData) GetHash

func (x *MsgAnchorData) GetHash() *ContentHash

func (*MsgAnchorData) GetSender

func (x *MsgAnchorData) GetSender() string

func (*MsgAnchorData) ProtoMessage

func (*MsgAnchorData) ProtoMessage()

func (*MsgAnchorData) ProtoReflect

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

func (*MsgAnchorData) Reset

func (x *MsgAnchorData) Reset()

func (*MsgAnchorData) String

func (x *MsgAnchorData) String() string

type MsgAnchorDataResponse

type MsgAnchorDataResponse struct {

	// timestamp is the timestamp of the block at which the data was anchored.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

MsgAnchorData is the Msg/AnchorData response type.

func (*MsgAnchorDataResponse) Descriptor deprecated

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

Deprecated: Use MsgAnchorDataResponse.ProtoReflect.Descriptor instead.

func (*MsgAnchorDataResponse) GetTimestamp

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

func (*MsgAnchorDataResponse) ProtoMessage

func (*MsgAnchorDataResponse) ProtoMessage()

func (*MsgAnchorDataResponse) ProtoReflect

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

func (*MsgAnchorDataResponse) Reset

func (x *MsgAnchorDataResponse) Reset()

func (*MsgAnchorDataResponse) String

func (x *MsgAnchorDataResponse) String() string

type MsgClient

type MsgClient interface {
	// AnchorData "anchors" a piece of data to the blockchain based on its secure
	// hash, effectively providing a tamper resistant timestamp.
	//
	// The sender in AnchorData is not attesting to the veracity of the underlying
	// data. They can simply be a intermediary providing timestamp services.
	// SignData should be used to create a digital signature attesting to the
	// veracity of some piece of data.
	AnchorData(ctx context.Context, in *MsgAnchorData, opts ...grpc.CallOption) (*MsgAnchorDataResponse, error)
	// SignData allows for signing of an arbitrary piece of data on the
	// blockchain. By "signing" data the signers are making a statement about the
	// veracity of the data itself. It is like signing a legal document, meaning
	// that I agree to all conditions and to the best of my knowledge everything
	// is true. When anchoring data, the sender is not attesting to the veracity
	// of the data, they are simply communicating that it exists.
	//
	// On-chain signatures have the following benefits:
	// - on-chain identities can be managed using different cryptographic keys
	//   that change over time through key rotation practices
	// - an on-chain identity may represent an organization and through delegation
	//   individual members may sign on behalf of the group
	// - the blockchain transaction envelope provides built-in replay protection
	//   and timestamping
	//
	// SignData implicitly calls AnchorData if the data was not already anchored.
	//
	// SignData can be called multiple times for the same content hash with
	// different signers and those signers will be appended to the list of
	// signers.
	SignData(ctx context.Context, in *MsgSignData, opts ...grpc.CallOption) (*MsgSignDataResponse, error)
	// StoreRawData stores a piece of raw data corresponding to an ContentHash.Raw
	// on the blockchain.
	//
	// StoreRawData implicitly calls AnchorData if the data was not already
	// anchored.
	//
	// The sender in StoreRawData is not attesting to the veracity of the
	// underlying data. They can simply be a intermediary providing storage
	// services. SignData should be used to create a digital signature attesting
	// to the veracity of some piece of data.
	StoreRawData(ctx context.Context, in *MsgStoreRawData, opts ...grpc.CallOption) (*MsgStoreRawDataResponse, error)
}

MsgClient is the client API for Msg 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 NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgServer

type MsgServer interface {
	// AnchorData "anchors" a piece of data to the blockchain based on its secure
	// hash, effectively providing a tamper resistant timestamp.
	//
	// The sender in AnchorData is not attesting to the veracity of the underlying
	// data. They can simply be a intermediary providing timestamp services.
	// SignData should be used to create a digital signature attesting to the
	// veracity of some piece of data.
	AnchorData(context.Context, *MsgAnchorData) (*MsgAnchorDataResponse, error)
	// SignData allows for signing of an arbitrary piece of data on the
	// blockchain. By "signing" data the signers are making a statement about the
	// veracity of the data itself. It is like signing a legal document, meaning
	// that I agree to all conditions and to the best of my knowledge everything
	// is true. When anchoring data, the sender is not attesting to the veracity
	// of the data, they are simply communicating that it exists.
	//
	// On-chain signatures have the following benefits:
	// - on-chain identities can be managed using different cryptographic keys
	//   that change over time through key rotation practices
	// - an on-chain identity may represent an organization and through delegation
	//   individual members may sign on behalf of the group
	// - the blockchain transaction envelope provides built-in replay protection
	//   and timestamping
	//
	// SignData implicitly calls AnchorData if the data was not already anchored.
	//
	// SignData can be called multiple times for the same content hash with
	// different signers and those signers will be appended to the list of
	// signers.
	SignData(context.Context, *MsgSignData) (*MsgSignDataResponse, error)
	// StoreRawData stores a piece of raw data corresponding to an ContentHash.Raw
	// on the blockchain.
	//
	// StoreRawData implicitly calls AnchorData if the data was not already
	// anchored.
	//
	// The sender in StoreRawData is not attesting to the veracity of the
	// underlying data. They can simply be a intermediary providing storage
	// services. SignData should be used to create a digital signature attesting
	// to the veracity of some piece of data.
	StoreRawData(context.Context, *MsgStoreRawData) (*MsgStoreRawDataResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type MsgSignData

type MsgSignData struct {

	// signers are the addresses of the accounts signing the data.
	// By making a SignData request, the signers are attesting to the veracity
	// of the data referenced by the cid. The precise meaning of this may vary
	// depending on the underlying data.
	Signers []string `protobuf:"bytes,1,rep,name=signers,proto3" json:"signers,omitempty"`
	// hash is the hash-based identifier for the anchored content. Only RDF graph
	// data can be signed as its data model is intended to specifically convey
	// semantic meaning.
	Hash *ContentHash_Graph `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

MsgSignData is the Msg/SignData request type.

func (*MsgSignData) Descriptor deprecated

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

Deprecated: Use MsgSignData.ProtoReflect.Descriptor instead.

func (*MsgSignData) GetHash

func (x *MsgSignData) GetHash() *ContentHash_Graph

func (*MsgSignData) GetSigners

func (x *MsgSignData) GetSigners() []string

func (*MsgSignData) ProtoMessage

func (*MsgSignData) ProtoMessage()

func (*MsgSignData) ProtoReflect

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

func (*MsgSignData) Reset

func (x *MsgSignData) Reset()

func (*MsgSignData) String

func (x *MsgSignData) String() string

type MsgSignDataResponse

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

MsgSignDataResponse is the Msg/SignData response type.

func (*MsgSignDataResponse) Descriptor deprecated

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

Deprecated: Use MsgSignDataResponse.ProtoReflect.Descriptor instead.

func (*MsgSignDataResponse) ProtoMessage

func (*MsgSignDataResponse) ProtoMessage()

func (*MsgSignDataResponse) ProtoReflect

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

func (*MsgSignDataResponse) Reset

func (x *MsgSignDataResponse) Reset()

func (*MsgSignDataResponse) String

func (x *MsgSignDataResponse) String() string

type MsgStoreRawData added in v1.0.0

type MsgStoreRawData struct {

	// sender is the address of the sender of the transaction.
	// The sender in StoreData is not attesting to the veracity of the underlying
	// data. They can simply be a intermediary providing services.
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// content_hash is the hash-based identifier for the anchored content.
	ContentHash *ContentHash_Raw `protobuf:"bytes,2,opt,name=content_hash,json=contentHash,proto3" json:"content_hash,omitempty"`
	// content is the content of the raw data corresponding to the provided
	// content hash.
	Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

MsgStoreRawData is the Msg/StoreRawData request type.

func (*MsgStoreRawData) Descriptor deprecated added in v1.0.0

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

Deprecated: Use MsgStoreRawData.ProtoReflect.Descriptor instead.

func (*MsgStoreRawData) GetContent added in v1.0.0

func (x *MsgStoreRawData) GetContent() []byte

func (*MsgStoreRawData) GetContentHash added in v1.0.0

func (x *MsgStoreRawData) GetContentHash() *ContentHash_Raw

func (*MsgStoreRawData) GetSender added in v1.0.0

func (x *MsgStoreRawData) GetSender() string

func (*MsgStoreRawData) ProtoMessage added in v1.0.0

func (*MsgStoreRawData) ProtoMessage()

func (*MsgStoreRawData) ProtoReflect added in v1.0.0

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

func (*MsgStoreRawData) Reset added in v1.0.0

func (x *MsgStoreRawData) Reset()

func (*MsgStoreRawData) String added in v1.0.0

func (x *MsgStoreRawData) String() string

type MsgStoreRawDataResponse added in v1.0.0

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

MsgStoreRawData is the Msg/StoreRawData response type.

func (*MsgStoreRawDataResponse) Descriptor deprecated added in v1.0.0

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

Deprecated: Use MsgStoreRawDataResponse.ProtoReflect.Descriptor instead.

func (*MsgStoreRawDataResponse) ProtoMessage added in v1.0.0

func (*MsgStoreRawDataResponse) ProtoMessage()

func (*MsgStoreRawDataResponse) ProtoReflect added in v1.0.0

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

func (*MsgStoreRawDataResponse) Reset added in v1.0.0

func (x *MsgStoreRawDataResponse) Reset()

func (*MsgStoreRawDataResponse) String added in v1.0.0

func (x *MsgStoreRawDataResponse) String() string

type QueryByHashRequest added in v1.0.0

type QueryByHashRequest struct {

	// hash is the hash-based identifier for the anchored content.
	Hash *ContentHash `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

QueryByContentHashRequest is the Query/ByContentHash request type.

func (*QueryByHashRequest) Descriptor deprecated added in v1.0.0

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

Deprecated: Use QueryByHashRequest.ProtoReflect.Descriptor instead.

func (*QueryByHashRequest) GetHash added in v1.0.0

func (x *QueryByHashRequest) GetHash() *ContentHash

func (*QueryByHashRequest) ProtoMessage added in v1.0.0

func (*QueryByHashRequest) ProtoMessage()

func (*QueryByHashRequest) ProtoReflect added in v1.0.0

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

func (*QueryByHashRequest) Reset added in v1.0.0

func (x *QueryByHashRequest) Reset()

func (*QueryByHashRequest) String added in v1.0.0

func (x *QueryByHashRequest) String() string

type QueryByHashResponse added in v1.0.0

type QueryByHashResponse struct {

	// entry is the ContentEntry
	Entry *ContentEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"`
	// contains filtered or unexported fields
}

QueryByContentHashResponse is the Query/ByContentHash response type.

func (*QueryByHashResponse) Descriptor deprecated added in v1.0.0

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

Deprecated: Use QueryByHashResponse.ProtoReflect.Descriptor instead.

func (*QueryByHashResponse) GetEntry added in v1.0.0

func (x *QueryByHashResponse) GetEntry() *ContentEntry

func (*QueryByHashResponse) ProtoMessage added in v1.0.0

func (*QueryByHashResponse) ProtoMessage()

func (*QueryByHashResponse) ProtoReflect added in v1.0.0

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

func (*QueryByHashResponse) Reset added in v1.0.0

func (x *QueryByHashResponse) Reset()

func (*QueryByHashResponse) String added in v1.0.0

func (x *QueryByHashResponse) String() string

type QueryBySignerRequest

type QueryBySignerRequest struct {

	// signer is the address of the signer to query by.
	Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	// pagination is the PageRequest to use for pagination.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryBySignerRequest is the Query/BySigner request type.

func (*QueryBySignerRequest) Descriptor deprecated

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

Deprecated: Use QueryBySignerRequest.ProtoReflect.Descriptor instead.

func (*QueryBySignerRequest) GetPagination

func (x *QueryBySignerRequest) GetPagination() *v1beta1.PageRequest

func (*QueryBySignerRequest) GetSigner

func (x *QueryBySignerRequest) GetSigner() string

func (*QueryBySignerRequest) ProtoMessage

func (*QueryBySignerRequest) ProtoMessage()

func (*QueryBySignerRequest) ProtoReflect

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

func (*QueryBySignerRequest) Reset

func (x *QueryBySignerRequest) Reset()

func (*QueryBySignerRequest) String

func (x *QueryBySignerRequest) String() string

type QueryBySignerResponse

type QueryBySignerResponse struct {

	// entries is the ContentEntry's signed by the queried signer
	Entries []*ContentEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// pagination is the pagination PageResponse.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryBySignerResponse is the Query/BySigner response type.

func (*QueryBySignerResponse) Descriptor deprecated

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

Deprecated: Use QueryBySignerResponse.ProtoReflect.Descriptor instead.

func (*QueryBySignerResponse) GetEntries

func (x *QueryBySignerResponse) GetEntries() []*ContentEntry

func (*QueryBySignerResponse) GetPagination

func (x *QueryBySignerResponse) GetPagination() *v1beta1.PageResponse

func (*QueryBySignerResponse) ProtoMessage

func (*QueryBySignerResponse) ProtoMessage()

func (*QueryBySignerResponse) ProtoReflect

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

func (*QueryBySignerResponse) Reset

func (x *QueryBySignerResponse) Reset()

func (*QueryBySignerResponse) String

func (x *QueryBySignerResponse) String() string

type QueryClient

type QueryClient interface {
	// ByHash queries data based on its ContentHash.
	ByHash(ctx context.Context, in *QueryByHashRequest, opts ...grpc.CallOption) (*QueryByHashResponse, error)
	// BySigner queries data based on signers.
	BySigner(ctx context.Context, in *QueryBySignerRequest, opts ...grpc.CallOption) (*QueryBySignerResponse, error)
}

QueryClient is the client API for Query 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 NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryServer

type QueryServer interface {
	// ByHash queries data based on its ContentHash.
	ByHash(context.Context, *QueryByHashRequest) (*QueryByHashResponse, error)
	// BySigner queries data based on signers.
	BySigner(context.Context, *QueryBySignerRequest) (*QueryBySignerResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type SignerEntry

type SignerEntry struct {

	// signer is the address of the signer
	Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	// timestamp is the time at which the data was signed
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

SignerEntry is a signer entry wrapping a signer address and timestamp

func (*SignerEntry) Descriptor deprecated

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

Deprecated: Use SignerEntry.ProtoReflect.Descriptor instead.

func (*SignerEntry) GetSigner

func (x *SignerEntry) GetSigner() string

func (*SignerEntry) GetTimestamp

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

func (*SignerEntry) ProtoMessage

func (*SignerEntry) ProtoMessage()

func (*SignerEntry) ProtoReflect

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

func (*SignerEntry) Reset

func (x *SignerEntry) Reset()

func (*SignerEntry) String

func (x *SignerEntry) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) AnchorData

func (UnimplementedMsgServer) SignData

func (UnimplementedMsgServer) StoreRawData added in v1.0.0

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) ByHash added in v1.0.0

func (UnimplementedQueryServer) BySigner

type UnsafeMsgServer

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

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

type UnsafeQueryServer

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

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

Jump to

Keyboard shortcuts

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