nockchain-grpc/nockchain/primitives.pb.go
2025-10-06 13:38:53 +07:00

1152 lines
33 KiB
Go

// nockchain/common/v1/primitives.proto
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.9
// protoc v3.20.3
// source: primitives.proto
package nockchain
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type ErrorCode int32
const (
ErrorCode_ERROR_CODE_UNSPECIFIED ErrorCode = 0
ErrorCode_ERROR_CODE_INVALID_REQUEST ErrorCode = 1
ErrorCode_ERROR_CODE_PEEK_FAILED ErrorCode = 2
ErrorCode_ERROR_CODE_PEEK_RETURNED_NO_DATA ErrorCode = 3
ErrorCode_ERROR_CODE_POKE_FAILED ErrorCode = 4
ErrorCode_ERROR_CODE_NACKAPP_ERROR ErrorCode = 5
ErrorCode_ERROR_CODE_TIMEOUT ErrorCode = 6
ErrorCode_ERROR_CODE_INTERNAL_ERROR ErrorCode = 7
ErrorCode_ERROR_CODE_NOT_FOUND ErrorCode = 8
ErrorCode_ERROR_CODE_PERMISSION_DENIED ErrorCode = 9
ErrorCode_ERROR_CODE_INVALID_WIRE ErrorCode = 10
ErrorCode_ERROR_CODE_KERNEL_ERROR ErrorCode = 11
)
// Enum value maps for ErrorCode.
var (
ErrorCode_name = map[int32]string{
0: "ERROR_CODE_UNSPECIFIED",
1: "ERROR_CODE_INVALID_REQUEST",
2: "ERROR_CODE_PEEK_FAILED",
3: "ERROR_CODE_PEEK_RETURNED_NO_DATA",
4: "ERROR_CODE_POKE_FAILED",
5: "ERROR_CODE_NACKAPP_ERROR",
6: "ERROR_CODE_TIMEOUT",
7: "ERROR_CODE_INTERNAL_ERROR",
8: "ERROR_CODE_NOT_FOUND",
9: "ERROR_CODE_PERMISSION_DENIED",
10: "ERROR_CODE_INVALID_WIRE",
11: "ERROR_CODE_KERNEL_ERROR",
}
ErrorCode_value = map[string]int32{
"ERROR_CODE_UNSPECIFIED": 0,
"ERROR_CODE_INVALID_REQUEST": 1,
"ERROR_CODE_PEEK_FAILED": 2,
"ERROR_CODE_PEEK_RETURNED_NO_DATA": 3,
"ERROR_CODE_POKE_FAILED": 4,
"ERROR_CODE_NACKAPP_ERROR": 5,
"ERROR_CODE_TIMEOUT": 6,
"ERROR_CODE_INTERNAL_ERROR": 7,
"ERROR_CODE_NOT_FOUND": 8,
"ERROR_CODE_PERMISSION_DENIED": 9,
"ERROR_CODE_INVALID_WIRE": 10,
"ERROR_CODE_KERNEL_ERROR": 11,
}
)
func (x ErrorCode) Enum() *ErrorCode {
p := new(ErrorCode)
*p = x
return p
}
func (x ErrorCode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ErrorCode) Descriptor() protoreflect.EnumDescriptor {
return file_primitives_proto_enumTypes[0].Descriptor()
}
func (ErrorCode) Type() protoreflect.EnumType {
return &file_primitives_proto_enumTypes[0]
}
func (x ErrorCode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ErrorCode.Descriptor instead.
func (ErrorCode) EnumDescriptor() ([]byte, []int) {
return file_primitives_proto_rawDescGZIP(), []int{0}
}
type ErrorStatus struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=nockchain.public.v1.ErrorCode" json:"code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
Details *string `protobuf:"bytes,3,opt,name=details,proto3,oneof" json:"details,omitempty"` // additional error context
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ErrorStatus) Reset() {
*x = ErrorStatus{}
mi := &file_primitives_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ErrorStatus) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ErrorStatus) ProtoMessage() {}
func (x *ErrorStatus) ProtoReflect() protoreflect.Message {
mi := &file_primitives_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ErrorStatus.ProtoReflect.Descriptor instead.
func (*ErrorStatus) Descriptor() ([]byte, []int) {
return file_primitives_proto_rawDescGZIP(), []int{0}
}
func (x *ErrorStatus) GetCode() ErrorCode {
if x != nil {
return x.Code
}
return ErrorCode_ERROR_CODE_UNSPECIFIED
}
func (x *ErrorStatus) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *ErrorStatus) GetDetails() string {
if x != nil && x.Details != nil {
return *x.Details
}
return ""
}
type Acknowledged struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Acknowledged) Reset() {
*x = Acknowledged{}
mi := &file_primitives_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Acknowledged) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Acknowledged) ProtoMessage() {}
func (x *Acknowledged) ProtoReflect() protoreflect.Message {
mi := &file_primitives_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Acknowledged.ProtoReflect.Descriptor instead.
func (*Acknowledged) Descriptor() ([]byte, []int) {
return file_primitives_proto_rawDescGZIP(), []int{1}
}
type Wire struct {
state protoimpl.MessageState `protogen:"open.v1"`
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` // e.g., "http", "file", "wallet", "grpc"
Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` // wire format version
Tags []*WireTag `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"` // operation-specific tags
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Wire) Reset() {
*x = Wire{}
mi := &file_primitives_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Wire) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Wire) ProtoMessage() {}
func (x *Wire) ProtoReflect() protoreflect.Message {
mi := &file_primitives_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Wire.ProtoReflect.Descriptor instead.
func (*Wire) Descriptor() ([]byte, []int) {
return file_primitives_proto_rawDescGZIP(), []int{2}
}
func (x *Wire) GetSource() string {
if x != nil {
return x.Source
}
return ""
}
func (x *Wire) GetVersion() uint64 {
if x != nil {
return x.Version
}
return 0
}
func (x *Wire) GetTags() []*WireTag {
if x != nil {
return x.Tags
}
return nil
}
type WireTag struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Value:
//
// *WireTag_Text
// *WireTag_Number
Value isWireTag_Value `protobuf_oneof:"value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *WireTag) Reset() {
*x = WireTag{}
mi := &file_primitives_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WireTag) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WireTag) ProtoMessage() {}
func (x *WireTag) ProtoReflect() protoreflect.Message {
mi := &file_primitives_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use WireTag.ProtoReflect.Descriptor instead.
func (*WireTag) Descriptor() ([]byte, []int) {
return file_primitives_proto_rawDescGZIP(), []int{3}
}
func (x *WireTag) GetValue() isWireTag_Value {
if x != nil {
return x.Value
}
return nil
}
func (x *WireTag) GetText() string {
if x != nil {
if x, ok := x.Value.(*WireTag_Text); ok {
return x.Text
}
}
return ""
}
func (x *WireTag) GetNumber() uint64 {
if x != nil {
if x, ok := x.Value.(*WireTag_Number); ok {
return x.Number
}
}
return 0
}
type isWireTag_Value interface {
isWireTag_Value()
}
type WireTag_Text struct {
Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof"`
}
type WireTag_Number struct {
Number uint64 `protobuf:"varint,2,opt,name=number,proto3,oneof"`
}
func (*WireTag_Text) isWireTag_Value() {}
func (*WireTag_Number) isWireTag_Value() {}
// Note: prefer using raw numeric fields in messages
// instead of these wrappers to simplify conversions.
// These remain defined for potential future use.
type NoteVersion struct {
state protoimpl.MessageState `protogen:"open.v1"`
Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NoteVersion) Reset() {
*x = NoteVersion{}
mi := &file_primitives_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NoteVersion) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NoteVersion) ProtoMessage() {}
func (x *NoteVersion) ProtoReflect() protoreflect.Message {
mi := &file_primitives_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NoteVersion.ProtoReflect.Descriptor instead.
func (*NoteVersion) Descriptor() ([]byte, []int) {
return file_primitives_proto_rawDescGZIP(), []int{4}
}
func (x *NoteVersion) GetValue() uint32 {
if x != nil {
return x.Value
}
return 0
}
type BlockHeight struct {
state protoimpl.MessageState `protogen:"open.v1"`
Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BlockHeight) Reset() {
*x = BlockHeight{}
mi := &file_primitives_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BlockHeight) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BlockHeight) ProtoMessage() {}
func (x *BlockHeight) ProtoReflect() protoreflect.Message {
mi := &file_primitives_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BlockHeight.ProtoReflect.Descriptor instead.
func (*BlockHeight) Descriptor() ([]byte, []int) {
return file_primitives_proto_rawDescGZIP(), []int{5}
}
func (x *BlockHeight) GetValue() uint64 {
if x != nil {
return x.Value
}
return 0
}
type BlockHeightDelta struct {
state protoimpl.MessageState `protogen:"open.v1"`
Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BlockHeightDelta) Reset() {
*x = BlockHeightDelta{}
mi := &file_primitives_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BlockHeightDelta) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BlockHeightDelta) ProtoMessage() {}
func (x *BlockHeightDelta) ProtoReflect() protoreflect.Message {
mi := &file_primitives_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BlockHeightDelta.ProtoReflect.Descriptor instead.
func (*BlockHeightDelta) Descriptor() ([]byte, []int) {
return file_primitives_proto_rawDescGZIP(), []int{6}
}
func (x *BlockHeightDelta) GetValue() uint64 {
if x != nil {
return x.Value
}
return 0
}
type Nicks struct {
state protoimpl.MessageState `protogen:"open.v1"`
Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Nicks) Reset() {
*x = Nicks{}
mi := &file_primitives_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Nicks) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Nicks) ProtoMessage() {}
func (x *Nicks) ProtoReflect() protoreflect.Message {
mi := &file_primitives_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Nicks.ProtoReflect.Descriptor instead.
func (*Nicks) Descriptor() ([]byte, []int) {
return file_primitives_proto_rawDescGZIP(), []int{7}
}
func (x *Nicks) GetValue() uint64 {
if x != nil {
return x.Value
}
return 0
}
// pub chal: [Belt; 8],
// pub sig: [Belt; 8],
type EightBelt struct {
state protoimpl.MessageState `protogen:"open.v1"`
Belt_1 *Belt `protobuf:"bytes,1,opt,name=belt_1,json=belt1,proto3" json:"belt_1,omitempty"`
Belt_2 *Belt `protobuf:"bytes,2,opt,name=belt_2,json=belt2,proto3" json:"belt_2,omitempty"`
Belt_3 *Belt `protobuf:"bytes,3,opt,name=belt_3,json=belt3,proto3" json:"belt_3,omitempty"`
Belt_4 *Belt `protobuf:"bytes,4,opt,name=belt_4,json=belt4,proto3" json:"belt_4,omitempty"`
Belt_5 *Belt `protobuf:"bytes,5,opt,name=belt_5,json=belt5,proto3" json:"belt_5,omitempty"`
Belt_6 *Belt `protobuf:"bytes,6,opt,name=belt_6,json=belt6,proto3" json:"belt_6,omitempty"`
Belt_7 *Belt `protobuf:"bytes,7,opt,name=belt_7,json=belt7,proto3" json:"belt_7,omitempty"`
Belt_8 *Belt `protobuf:"bytes,8,opt,name=belt_8,json=belt8,proto3" json:"belt_8,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EightBelt) Reset() {
*x = EightBelt{}
mi := &file_primitives_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EightBelt) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EightBelt) ProtoMessage() {}
func (x *EightBelt) ProtoReflect() protoreflect.Message {
mi := &file_primitives_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EightBelt.ProtoReflect.Descriptor instead.
func (*EightBelt) Descriptor() ([]byte, []int) {
return file_primitives_proto_rawDescGZIP(), []int{8}
}
func (x *EightBelt) GetBelt_1() *Belt {
if x != nil {
return x.Belt_1
}
return nil
}
func (x *EightBelt) GetBelt_2() *Belt {
if x != nil {
return x.Belt_2
}
return nil
}
func (x *EightBelt) GetBelt_3() *Belt {
if x != nil {
return x.Belt_3
}
return nil
}
func (x *EightBelt) GetBelt_4() *Belt {
if x != nil {
return x.Belt_4
}
return nil
}
func (x *EightBelt) GetBelt_5() *Belt {
if x != nil {
return x.Belt_5
}
return nil
}
func (x *EightBelt) GetBelt_6() *Belt {
if x != nil {
return x.Belt_6
}
return nil
}
func (x *EightBelt) GetBelt_7() *Belt {
if x != nil {
return x.Belt_7
}
return nil
}
func (x *EightBelt) GetBelt_8() *Belt {
if x != nil {
return x.Belt_8
}
return nil
}
// pub struct Hash(pub [Belt; 5]);
// Use fixed fields to avoid variable-length vectors.
type Hash struct {
state protoimpl.MessageState `protogen:"open.v1"`
Belt_1 *Belt `protobuf:"bytes,1,opt,name=belt_1,json=belt1,proto3" json:"belt_1,omitempty"`
Belt_2 *Belt `protobuf:"bytes,2,opt,name=belt_2,json=belt2,proto3" json:"belt_2,omitempty"`
Belt_3 *Belt `protobuf:"bytes,3,opt,name=belt_3,json=belt3,proto3" json:"belt_3,omitempty"`
Belt_4 *Belt `protobuf:"bytes,4,opt,name=belt_4,json=belt4,proto3" json:"belt_4,omitempty"`
Belt_5 *Belt `protobuf:"bytes,5,opt,name=belt_5,json=belt5,proto3" json:"belt_5,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Hash) Reset() {
*x = Hash{}
mi := &file_primitives_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Hash) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Hash) ProtoMessage() {}
func (x *Hash) ProtoReflect() protoreflect.Message {
mi := &file_primitives_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Hash.ProtoReflect.Descriptor instead.
func (*Hash) Descriptor() ([]byte, []int) {
return file_primitives_proto_rawDescGZIP(), []int{9}
}
func (x *Hash) GetBelt_1() *Belt {
if x != nil {
return x.Belt_1
}
return nil
}
func (x *Hash) GetBelt_2() *Belt {
if x != nil {
return x.Belt_2
}
return nil
}
func (x *Hash) GetBelt_3() *Belt {
if x != nil {
return x.Belt_3
}
return nil
}
func (x *Hash) GetBelt_4() *Belt {
if x != nil {
return x.Belt_4
}
return nil
}
func (x *Hash) GetBelt_5() *Belt {
if x != nil {
return x.Belt_5
}
return nil
}
type Base58Hash struct {
state protoimpl.MessageState `protogen:"open.v1"`
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Base58Hash) Reset() {
*x = Base58Hash{}
mi := &file_primitives_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Base58Hash) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Base58Hash) ProtoMessage() {}
func (x *Base58Hash) ProtoReflect() protoreflect.Message {
mi := &file_primitives_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Base58Hash.ProtoReflect.Descriptor instead.
func (*Base58Hash) Descriptor() ([]byte, []int) {
return file_primitives_proto_rawDescGZIP(), []int{10}
}
func (x *Base58Hash) GetHash() string {
if x != nil {
return x.Hash
}
return ""
}
// pub struct SchnorrPubkey(pub CheetahPoint);
type SchnorrPubkey struct {
state protoimpl.MessageState `protogen:"open.v1"`
Value *CheetahPoint `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SchnorrPubkey) Reset() {
*x = SchnorrPubkey{}
mi := &file_primitives_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SchnorrPubkey) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SchnorrPubkey) ProtoMessage() {}
func (x *SchnorrPubkey) ProtoReflect() protoreflect.Message {
mi := &file_primitives_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SchnorrPubkey.ProtoReflect.Descriptor instead.
func (*SchnorrPubkey) Descriptor() ([]byte, []int) {
return file_primitives_proto_rawDescGZIP(), []int{11}
}
func (x *SchnorrPubkey) GetValue() *CheetahPoint {
if x != nil {
return x.Value
}
return nil
}
// pub struct CheetahPoint {
// pub x: F6lt,
// pub y: F6lt,
// pub inf: bool,
// }
type CheetahPoint struct {
state protoimpl.MessageState `protogen:"open.v1"`
X *SixBelt `protobuf:"bytes,1,opt,name=x,proto3" json:"x,omitempty"`
Y *SixBelt `protobuf:"bytes,2,opt,name=y,proto3" json:"y,omitempty"`
Inf bool `protobuf:"varint,3,opt,name=inf,proto3" json:"inf,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CheetahPoint) Reset() {
*x = CheetahPoint{}
mi := &file_primitives_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CheetahPoint) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CheetahPoint) ProtoMessage() {}
func (x *CheetahPoint) ProtoReflect() protoreflect.Message {
mi := &file_primitives_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CheetahPoint.ProtoReflect.Descriptor instead.
func (*CheetahPoint) Descriptor() ([]byte, []int) {
return file_primitives_proto_rawDescGZIP(), []int{12}
}
func (x *CheetahPoint) GetX() *SixBelt {
if x != nil {
return x.X
}
return nil
}
func (x *CheetahPoint) GetY() *SixBelt {
if x != nil {
return x.Y
}
return nil
}
func (x *CheetahPoint) GetInf() bool {
if x != nil {
return x.Inf
}
return false
}
// pub struct F6lt(pub [Belt; 6]);
type SixBelt struct {
state protoimpl.MessageState `protogen:"open.v1"`
Belt_1 *Belt `protobuf:"bytes,1,opt,name=belt_1,json=belt1,proto3" json:"belt_1,omitempty"`
Belt_2 *Belt `protobuf:"bytes,2,opt,name=belt_2,json=belt2,proto3" json:"belt_2,omitempty"`
Belt_3 *Belt `protobuf:"bytes,3,opt,name=belt_3,json=belt3,proto3" json:"belt_3,omitempty"`
Belt_4 *Belt `protobuf:"bytes,4,opt,name=belt_4,json=belt4,proto3" json:"belt_4,omitempty"`
Belt_5 *Belt `protobuf:"bytes,5,opt,name=belt_5,json=belt5,proto3" json:"belt_5,omitempty"`
Belt_6 *Belt `protobuf:"bytes,6,opt,name=belt_6,json=belt6,proto3" json:"belt_6,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SixBelt) Reset() {
*x = SixBelt{}
mi := &file_primitives_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SixBelt) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SixBelt) ProtoMessage() {}
func (x *SixBelt) ProtoReflect() protoreflect.Message {
mi := &file_primitives_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SixBelt.ProtoReflect.Descriptor instead.
func (*SixBelt) Descriptor() ([]byte, []int) {
return file_primitives_proto_rawDescGZIP(), []int{13}
}
func (x *SixBelt) GetBelt_1() *Belt {
if x != nil {
return x.Belt_1
}
return nil
}
func (x *SixBelt) GetBelt_2() *Belt {
if x != nil {
return x.Belt_2
}
return nil
}
func (x *SixBelt) GetBelt_3() *Belt {
if x != nil {
return x.Belt_3
}
return nil
}
func (x *SixBelt) GetBelt_4() *Belt {
if x != nil {
return x.Belt_4
}
return nil
}
func (x *SixBelt) GetBelt_5() *Belt {
if x != nil {
return x.Belt_5
}
return nil
}
func (x *SixBelt) GetBelt_6() *Belt {
if x != nil {
return x.Belt_6
}
return nil
}
// pub struct Belt(pub u64);
type Belt struct {
state protoimpl.MessageState `protogen:"open.v1"`
Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Belt) Reset() {
*x = Belt{}
mi := &file_primitives_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Belt) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Belt) ProtoMessage() {}
func (x *Belt) ProtoReflect() protoreflect.Message {
mi := &file_primitives_proto_msgTypes[14]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Belt.ProtoReflect.Descriptor instead.
func (*Belt) Descriptor() ([]byte, []int) {
return file_primitives_proto_rawDescGZIP(), []int{14}
}
func (x *Belt) GetValue() uint64 {
if x != nil {
return x.Value
}
return 0
}
var File_primitives_proto protoreflect.FileDescriptor
const file_primitives_proto_rawDesc = "" +
"\n" +
"\x10primitives.proto\x12\x13nockchain.public.v1\"\x86\x01\n" +
"\vErrorStatus\x122\n" +
"\x04code\x18\x01 \x01(\x0e2\x1e.nockchain.public.v1.ErrorCodeR\x04code\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\x12\x1d\n" +
"\adetails\x18\x03 \x01(\tH\x00R\adetails\x88\x01\x01B\n" +
"\n" +
"\b_details\"\x0e\n" +
"\fAcknowledged\"j\n" +
"\x04Wire\x12\x16\n" +
"\x06source\x18\x01 \x01(\tR\x06source\x12\x18\n" +
"\aversion\x18\x02 \x01(\x04R\aversion\x120\n" +
"\x04tags\x18\x03 \x03(\v2\x1c.nockchain.public.v1.WireTagR\x04tags\"B\n" +
"\aWireTag\x12\x14\n" +
"\x04text\x18\x01 \x01(\tH\x00R\x04text\x12\x18\n" +
"\x06number\x18\x02 \x01(\x04H\x00R\x06numberB\a\n" +
"\x05value\"#\n" +
"\vNoteVersion\x12\x14\n" +
"\x05value\x18\x01 \x01(\rR\x05value\"#\n" +
"\vBlockHeight\x12\x14\n" +
"\x05value\x18\x01 \x01(\x04R\x05value\"(\n" +
"\x10BlockHeightDelta\x12\x14\n" +
"\x05value\x18\x01 \x01(\x04R\x05value\"\x1d\n" +
"\x05Nicks\x12\x14\n" +
"\x05value\x18\x01 \x01(\x04R\x05value\"\x9b\x03\n" +
"\tEightBelt\x120\n" +
"\x06belt_1\x18\x01 \x01(\v2\x19.nockchain.public.v1.BeltR\x05belt1\x120\n" +
"\x06belt_2\x18\x02 \x01(\v2\x19.nockchain.public.v1.BeltR\x05belt2\x120\n" +
"\x06belt_3\x18\x03 \x01(\v2\x19.nockchain.public.v1.BeltR\x05belt3\x120\n" +
"\x06belt_4\x18\x04 \x01(\v2\x19.nockchain.public.v1.BeltR\x05belt4\x120\n" +
"\x06belt_5\x18\x05 \x01(\v2\x19.nockchain.public.v1.BeltR\x05belt5\x120\n" +
"\x06belt_6\x18\x06 \x01(\v2\x19.nockchain.public.v1.BeltR\x05belt6\x120\n" +
"\x06belt_7\x18\a \x01(\v2\x19.nockchain.public.v1.BeltR\x05belt7\x120\n" +
"\x06belt_8\x18\b \x01(\v2\x19.nockchain.public.v1.BeltR\x05belt8\"\x80\x02\n" +
"\x04Hash\x120\n" +
"\x06belt_1\x18\x01 \x01(\v2\x19.nockchain.public.v1.BeltR\x05belt1\x120\n" +
"\x06belt_2\x18\x02 \x01(\v2\x19.nockchain.public.v1.BeltR\x05belt2\x120\n" +
"\x06belt_3\x18\x03 \x01(\v2\x19.nockchain.public.v1.BeltR\x05belt3\x120\n" +
"\x06belt_4\x18\x04 \x01(\v2\x19.nockchain.public.v1.BeltR\x05belt4\x120\n" +
"\x06belt_5\x18\x05 \x01(\v2\x19.nockchain.public.v1.BeltR\x05belt5\" \n" +
"\n" +
"Base58Hash\x12\x12\n" +
"\x04hash\x18\x01 \x01(\tR\x04hash\"H\n" +
"\rSchnorrPubkey\x127\n" +
"\x05value\x18\x01 \x01(\v2!.nockchain.public.v1.CheetahPointR\x05value\"x\n" +
"\fCheetahPoint\x12*\n" +
"\x01x\x18\x01 \x01(\v2\x1c.nockchain.public.v1.SixBeltR\x01x\x12*\n" +
"\x01y\x18\x02 \x01(\v2\x1c.nockchain.public.v1.SixBeltR\x01y\x12\x10\n" +
"\x03inf\x18\x03 \x01(\bR\x03inf\"\xb5\x02\n" +
"\aSixBelt\x120\n" +
"\x06belt_1\x18\x01 \x01(\v2\x19.nockchain.public.v1.BeltR\x05belt1\x120\n" +
"\x06belt_2\x18\x02 \x01(\v2\x19.nockchain.public.v1.BeltR\x05belt2\x120\n" +
"\x06belt_3\x18\x03 \x01(\v2\x19.nockchain.public.v1.BeltR\x05belt3\x120\n" +
"\x06belt_4\x18\x04 \x01(\v2\x19.nockchain.public.v1.BeltR\x05belt4\x120\n" +
"\x06belt_5\x18\x05 \x01(\v2\x19.nockchain.public.v1.BeltR\x05belt5\x120\n" +
"\x06belt_6\x18\x06 \x01(\v2\x19.nockchain.public.v1.BeltR\x05belt6\"\x1c\n" +
"\x04Belt\x12\x14\n" +
"\x05value\x18\x01 \x01(\x04R\x05value*\xf0\x02\n" +
"\tErrorCode\x12\x1a\n" +
"\x16ERROR_CODE_UNSPECIFIED\x10\x00\x12\x1e\n" +
"\x1aERROR_CODE_INVALID_REQUEST\x10\x01\x12\x1a\n" +
"\x16ERROR_CODE_PEEK_FAILED\x10\x02\x12$\n" +
" ERROR_CODE_PEEK_RETURNED_NO_DATA\x10\x03\x12\x1a\n" +
"\x16ERROR_CODE_POKE_FAILED\x10\x04\x12\x1c\n" +
"\x18ERROR_CODE_NACKAPP_ERROR\x10\x05\x12\x16\n" +
"\x12ERROR_CODE_TIMEOUT\x10\x06\x12\x1d\n" +
"\x19ERROR_CODE_INTERNAL_ERROR\x10\a\x12\x18\n" +
"\x14ERROR_CODE_NOT_FOUND\x10\b\x12 \n" +
"\x1cERROR_CODE_PERMISSION_DENIED\x10\t\x12\x1b\n" +
"\x17ERROR_CODE_INVALID_WIRE\x10\n" +
"\x12\x1b\n" +
"\x17ERROR_CODE_KERNEL_ERROR\x10\vB\x0eZ\f./;nockchainb\x06proto3"
var (
file_primitives_proto_rawDescOnce sync.Once
file_primitives_proto_rawDescData []byte
)
func file_primitives_proto_rawDescGZIP() []byte {
file_primitives_proto_rawDescOnce.Do(func() {
file_primitives_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_primitives_proto_rawDesc), len(file_primitives_proto_rawDesc)))
})
return file_primitives_proto_rawDescData
}
var file_primitives_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_primitives_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
var file_primitives_proto_goTypes = []any{
(ErrorCode)(0), // 0: nockchain.public.v1.ErrorCode
(*ErrorStatus)(nil), // 1: nockchain.public.v1.ErrorStatus
(*Acknowledged)(nil), // 2: nockchain.public.v1.Acknowledged
(*Wire)(nil), // 3: nockchain.public.v1.Wire
(*WireTag)(nil), // 4: nockchain.public.v1.WireTag
(*NoteVersion)(nil), // 5: nockchain.public.v1.NoteVersion
(*BlockHeight)(nil), // 6: nockchain.public.v1.BlockHeight
(*BlockHeightDelta)(nil), // 7: nockchain.public.v1.BlockHeightDelta
(*Nicks)(nil), // 8: nockchain.public.v1.Nicks
(*EightBelt)(nil), // 9: nockchain.public.v1.EightBelt
(*Hash)(nil), // 10: nockchain.public.v1.Hash
(*Base58Hash)(nil), // 11: nockchain.public.v1.Base58Hash
(*SchnorrPubkey)(nil), // 12: nockchain.public.v1.SchnorrPubkey
(*CheetahPoint)(nil), // 13: nockchain.public.v1.CheetahPoint
(*SixBelt)(nil), // 14: nockchain.public.v1.SixBelt
(*Belt)(nil), // 15: nockchain.public.v1.Belt
}
var file_primitives_proto_depIdxs = []int32{
0, // 0: nockchain.public.v1.ErrorStatus.code:type_name -> nockchain.public.v1.ErrorCode
4, // 1: nockchain.public.v1.Wire.tags:type_name -> nockchain.public.v1.WireTag
15, // 2: nockchain.public.v1.EightBelt.belt_1:type_name -> nockchain.public.v1.Belt
15, // 3: nockchain.public.v1.EightBelt.belt_2:type_name -> nockchain.public.v1.Belt
15, // 4: nockchain.public.v1.EightBelt.belt_3:type_name -> nockchain.public.v1.Belt
15, // 5: nockchain.public.v1.EightBelt.belt_4:type_name -> nockchain.public.v1.Belt
15, // 6: nockchain.public.v1.EightBelt.belt_5:type_name -> nockchain.public.v1.Belt
15, // 7: nockchain.public.v1.EightBelt.belt_6:type_name -> nockchain.public.v1.Belt
15, // 8: nockchain.public.v1.EightBelt.belt_7:type_name -> nockchain.public.v1.Belt
15, // 9: nockchain.public.v1.EightBelt.belt_8:type_name -> nockchain.public.v1.Belt
15, // 10: nockchain.public.v1.Hash.belt_1:type_name -> nockchain.public.v1.Belt
15, // 11: nockchain.public.v1.Hash.belt_2:type_name -> nockchain.public.v1.Belt
15, // 12: nockchain.public.v1.Hash.belt_3:type_name -> nockchain.public.v1.Belt
15, // 13: nockchain.public.v1.Hash.belt_4:type_name -> nockchain.public.v1.Belt
15, // 14: nockchain.public.v1.Hash.belt_5:type_name -> nockchain.public.v1.Belt
13, // 15: nockchain.public.v1.SchnorrPubkey.value:type_name -> nockchain.public.v1.CheetahPoint
14, // 16: nockchain.public.v1.CheetahPoint.x:type_name -> nockchain.public.v1.SixBelt
14, // 17: nockchain.public.v1.CheetahPoint.y:type_name -> nockchain.public.v1.SixBelt
15, // 18: nockchain.public.v1.SixBelt.belt_1:type_name -> nockchain.public.v1.Belt
15, // 19: nockchain.public.v1.SixBelt.belt_2:type_name -> nockchain.public.v1.Belt
15, // 20: nockchain.public.v1.SixBelt.belt_3:type_name -> nockchain.public.v1.Belt
15, // 21: nockchain.public.v1.SixBelt.belt_4:type_name -> nockchain.public.v1.Belt
15, // 22: nockchain.public.v1.SixBelt.belt_5:type_name -> nockchain.public.v1.Belt
15, // 23: nockchain.public.v1.SixBelt.belt_6:type_name -> nockchain.public.v1.Belt
24, // [24:24] is the sub-list for method output_type
24, // [24:24] is the sub-list for method input_type
24, // [24:24] is the sub-list for extension type_name
24, // [24:24] is the sub-list for extension extendee
0, // [0:24] is the sub-list for field type_name
}
func init() { file_primitives_proto_init() }
func file_primitives_proto_init() {
if File_primitives_proto != nil {
return
}
file_primitives_proto_msgTypes[0].OneofWrappers = []any{}
file_primitives_proto_msgTypes[3].OneofWrappers = []any{
(*WireTag_Text)(nil),
(*WireTag_Number)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_primitives_proto_rawDesc), len(file_primitives_proto_rawDesc)),
NumEnums: 1,
NumMessages: 15,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_primitives_proto_goTypes,
DependencyIndexes: file_primitives_proto_depIdxs,
EnumInfos: file_primitives_proto_enumTypes,
MessageInfos: file_primitives_proto_msgTypes,
}.Build()
File_primitives_proto = out.File
file_primitives_proto_goTypes = nil
file_primitives_proto_depIdxs = nil
}