1456 lines
42 KiB
Go
Raw Normal View History

2025-10-06 13:38:53 +07:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.9
// protoc v3.20.3
// source: types.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 ImportType int32
const (
ImportType_UNDEFINED ImportType = 0
ImportType_EXTENDED_KEY ImportType = 1
ImportType_SEEDPHRASE ImportType = 2
ImportType_MASTER_PRIVKEY ImportType = 3
ImportType_WATCH_ONLY ImportType = 4
)
// Enum value maps for ImportType.
var (
ImportType_name = map[int32]string{
0: "UNDEFINED",
1: "EXTENDED_KEY",
2: "SEEDPHRASE",
3: "MASTER_PRIVKEY",
4: "WATCH_ONLY",
}
ImportType_value = map[string]int32{
"UNDEFINED": 0,
"EXTENDED_KEY": 1,
"SEEDPHRASE": 2,
"MASTER_PRIVKEY": 3,
"WATCH_ONLY": 4,
}
)
func (x ImportType) Enum() *ImportType {
p := new(ImportType)
*p = x
return p
}
func (x ImportType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ImportType) Descriptor() protoreflect.EnumDescriptor {
return file_types_proto_enumTypes[0].Descriptor()
}
func (ImportType) Type() protoreflect.EnumType {
return &file_types_proto_enumTypes[0]
}
func (x ImportType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ImportType.Descriptor instead.
func (ImportType) EnumDescriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{0}
}
type Version int32
const (
Version_V0 Version = 0
Version_V1 Version = 1
Version_V2 Version = 2
)
// Enum value maps for Version.
var (
Version_name = map[int32]string{
0: "V0",
1: "V1",
2: "V2",
}
Version_value = map[string]int32{
"V0": 0,
"V1": 1,
"V2": 2,
}
)
func (x Version) Enum() *Version {
p := new(Version)
*p = x
return p
}
func (x Version) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Version) Descriptor() protoreflect.EnumDescriptor {
return file_types_proto_enumTypes[1].Descriptor()
}
func (Version) Type() protoreflect.EnumType {
return &file_types_proto_enumTypes[1]
}
func (x Version) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Version.Descriptor instead.
func (Version) EnumDescriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{1}
}
type ScanData struct {
state protoimpl.MessageState `protogen:"open.v1"`
Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
2025-11-04 10:38:31 +07:00
Data *Balance `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
2025-10-06 13:38:53 +07:00
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ScanData) Reset() {
*x = ScanData{}
mi := &file_types_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ScanData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ScanData) ProtoMessage() {}
func (x *ScanData) ProtoReflect() protoreflect.Message {
mi := &file_types_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 ScanData.ProtoReflect.Descriptor instead.
func (*ScanData) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{0}
}
func (x *ScanData) GetPubkey() string {
if x != nil {
return x.Pubkey
}
return ""
}
2025-11-04 10:38:31 +07:00
func (x *ScanData) GetData() *Balance {
2025-10-06 13:38:53 +07:00
if x != nil {
return x.Data
}
return nil
}
type TimelockIntent struct {
state protoimpl.MessageState `protogen:"open.v1"`
Absolute *TimelockRange `protobuf:"bytes,1,opt,name=absolute,proto3,oneof" json:"absolute,omitempty"`
Relative *TimelockRange `protobuf:"bytes,2,opt,name=relative,proto3,oneof" json:"relative,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TimelockIntent) Reset() {
*x = TimelockIntent{}
mi := &file_types_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TimelockIntent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TimelockIntent) ProtoMessage() {}
func (x *TimelockIntent) ProtoReflect() protoreflect.Message {
mi := &file_types_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 TimelockIntent.ProtoReflect.Descriptor instead.
func (*TimelockIntent) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{1}
}
func (x *TimelockIntent) GetAbsolute() *TimelockRange {
if x != nil {
return x.Absolute
}
return nil
}
func (x *TimelockIntent) GetRelative() *TimelockRange {
if x != nil {
return x.Relative
}
return nil
}
type TimelockRange struct {
state protoimpl.MessageState `protogen:"open.v1"`
Min *Timelock `protobuf:"bytes,1,opt,name=min,proto3,oneof" json:"min,omitempty"`
Max *Timelock `protobuf:"bytes,2,opt,name=max,proto3,oneof" json:"max,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TimelockRange) Reset() {
*x = TimelockRange{}
mi := &file_types_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TimelockRange) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TimelockRange) ProtoMessage() {}
func (x *TimelockRange) ProtoReflect() protoreflect.Message {
mi := &file_types_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 TimelockRange.ProtoReflect.Descriptor instead.
func (*TimelockRange) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{2}
}
func (x *TimelockRange) GetMin() *Timelock {
if x != nil {
return x.Min
}
return nil
}
func (x *TimelockRange) GetMax() *Timelock {
if x != nil {
return x.Max
}
return nil
}
type Timelock 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 *Timelock) Reset() {
*x = Timelock{}
mi := &file_types_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Timelock) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Timelock) ProtoMessage() {}
func (x *Timelock) ProtoReflect() protoreflect.Message {
mi := &file_types_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 Timelock.ProtoReflect.Descriptor instead.
func (*Timelock) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{3}
}
func (x *Timelock) GetValue() uint64 {
if x != nil {
return x.Value
}
return 0
}
type RawTx struct {
state protoimpl.MessageState `protogen:"open.v1"`
TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
2025-11-04 10:38:31 +07:00
Version Version `protobuf:"varint,2,opt,name=version,proto3,enum=nockchain.public.v2.Version" json:"version,omitempty"`
NamedSpends []*NockchainNamedSpend `protobuf:"bytes,3,rep,name=named_spends,json=namedSpends,proto3" json:"named_spends,omitempty"`
2025-10-06 13:38:53 +07:00
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RawTx) Reset() {
*x = RawTx{}
mi := &file_types_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RawTx) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RawTx) ProtoMessage() {}
func (x *RawTx) ProtoReflect() protoreflect.Message {
mi := &file_types_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 RawTx.ProtoReflect.Descriptor instead.
func (*RawTx) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{4}
}
func (x *RawTx) GetTxId() string {
if x != nil {
return x.TxId
}
return ""
}
2025-11-04 10:38:31 +07:00
func (x *RawTx) GetVersion() Version {
2025-10-06 13:38:53 +07:00
if x != nil {
2025-11-04 10:38:31 +07:00
return x.Version
}
return Version_V0
}
func (x *RawTx) GetNamedSpends() []*NockchainNamedSpend {
if x != nil {
return x.NamedSpends
2025-10-06 13:38:53 +07:00
}
return nil
}
2025-11-04 10:38:31 +07:00
type NockchainNamedSpend struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name *NockchainName `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Types that are valid to be assigned to SpendKind:
//
// *NockchainNamedSpend_Legacy
// *NockchainNamedSpend_Witness
SpendKind isNockchainNamedSpend_SpendKind `protobuf_oneof:"spend_kind"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NockchainNamedSpend) Reset() {
*x = NockchainNamedSpend{}
mi := &file_types_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NockchainNamedSpend) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NockchainNamedSpend) ProtoMessage() {}
func (x *NockchainNamedSpend) ProtoReflect() protoreflect.Message {
mi := &file_types_proto_msgTypes[5]
2025-10-06 13:38:53 +07:00
if x != nil {
2025-11-04 10:38:31 +07:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NockchainNamedSpend.ProtoReflect.Descriptor instead.
func (*NockchainNamedSpend) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{5}
}
func (x *NockchainNamedSpend) GetName() *NockchainName {
if x != nil {
return x.Name
2025-10-06 13:38:53 +07:00
}
return nil
}
2025-11-04 10:38:31 +07:00
func (x *NockchainNamedSpend) GetSpendKind() isNockchainNamedSpend_SpendKind {
2025-10-06 13:38:53 +07:00
if x != nil {
2025-11-04 10:38:31 +07:00
return x.SpendKind
2025-10-06 13:38:53 +07:00
}
2025-11-04 10:38:31 +07:00
return nil
}
func (x *NockchainNamedSpend) GetLegacy() *NockchainSpendV0 {
if x != nil {
if x, ok := x.SpendKind.(*NockchainNamedSpend_Legacy); ok {
return x.Legacy
}
}
return nil
}
func (x *NockchainNamedSpend) GetWitness() *NockchainSpendV1 {
if x != nil {
if x, ok := x.SpendKind.(*NockchainNamedSpend_Witness); ok {
return x.Witness
}
}
return nil
}
type isNockchainNamedSpend_SpendKind interface {
isNockchainNamedSpend_SpendKind()
}
type NockchainNamedSpend_Legacy struct {
Legacy *NockchainSpendV0 `protobuf:"bytes,2,opt,name=legacy,proto3,oneof"`
}
type NockchainNamedSpend_Witness struct {
Witness *NockchainSpendV1 `protobuf:"bytes,3,opt,name=witness,proto3,oneof"`
2025-10-06 13:38:53 +07:00
}
2025-11-04 10:38:31 +07:00
func (*NockchainNamedSpend_Legacy) isNockchainNamedSpend_SpendKind() {}
func (*NockchainNamedSpend_Witness) isNockchainNamedSpend_SpendKind() {}
type NockchainSpendV0 struct {
2025-10-06 13:38:53 +07:00
state protoimpl.MessageState `protogen:"open.v1"`
Signatures []*NockchainSignature `protobuf:"bytes,1,rep,name=signatures,proto3" json:"signatures,omitempty"`
2025-11-07 11:16:19 +07:00
Seeds []*NockchainSeed `protobuf:"bytes,2,rep,name=seeds,proto3" json:"seeds,omitempty"`
2025-10-06 13:38:53 +07:00
Fee uint64 `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
2025-11-04 10:38:31 +07:00
func (x *NockchainSpendV0) Reset() {
*x = NockchainSpendV0{}
mi := &file_types_proto_msgTypes[6]
2025-10-06 13:38:53 +07:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
2025-11-04 10:38:31 +07:00
func (x *NockchainSpendV0) String() string {
2025-10-06 13:38:53 +07:00
return protoimpl.X.MessageStringOf(x)
}
2025-11-04 10:38:31 +07:00
func (*NockchainSpendV0) ProtoMessage() {}
2025-10-06 13:38:53 +07:00
2025-11-04 10:38:31 +07:00
func (x *NockchainSpendV0) ProtoReflect() protoreflect.Message {
mi := &file_types_proto_msgTypes[6]
2025-10-06 13:38:53 +07:00
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
2025-11-04 10:38:31 +07:00
// Deprecated: Use NockchainSpendV0.ProtoReflect.Descriptor instead.
func (*NockchainSpendV0) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{6}
2025-10-06 13:38:53 +07:00
}
2025-11-04 10:38:31 +07:00
func (x *NockchainSpendV0) GetSignatures() []*NockchainSignature {
2025-10-06 13:38:53 +07:00
if x != nil {
return x.Signatures
}
return nil
}
2025-11-07 11:16:19 +07:00
func (x *NockchainSpendV0) GetSeeds() []*NockchainSeed {
2025-10-06 13:38:53 +07:00
if x != nil {
return x.Seeds
}
return nil
}
2025-11-04 10:38:31 +07:00
func (x *NockchainSpendV0) GetFee() uint64 {
2025-10-06 13:38:53 +07:00
if x != nil {
return x.Fee
}
return 0
}
2025-11-04 10:38:31 +07:00
type NockchainSpendV1 struct {
2025-10-06 13:38:53 +07:00
state protoimpl.MessageState `protogen:"open.v1"`
2025-11-07 11:16:19 +07:00
Witness []*NockchainWitness `protobuf:"bytes,1,rep,name=witness,proto3" json:"witness,omitempty"`
Seeds []*NockchainSeed `protobuf:"bytes,2,rep,name=seeds,proto3" json:"seeds,omitempty"`
Fee uint64 `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"`
2025-11-04 10:38:31 +07:00
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NockchainSpendV1) Reset() {
*x = NockchainSpendV1{}
mi := &file_types_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NockchainSpendV1) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NockchainSpendV1) ProtoMessage() {}
func (x *NockchainSpendV1) ProtoReflect() protoreflect.Message {
mi := &file_types_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 NockchainSpendV1.ProtoReflect.Descriptor instead.
func (*NockchainSpendV1) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{7}
}
2025-11-07 11:16:19 +07:00
func (x *NockchainSpendV1) GetWitness() []*NockchainWitness {
if x != nil {
return x.Witness
}
return nil
}
func (x *NockchainSpendV1) GetSeeds() []*NockchainSeed {
if x != nil {
return x.Seeds
}
return nil
}
func (x *NockchainSpendV1) GetFee() uint64 {
if x != nil {
return x.Fee
}
return 0
}
2025-11-04 10:38:31 +07:00
type NockchainNote struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Note:
//
// *NockchainNote_V0
// *NockchainNote_V1
Note isNockchainNote_Note `protobuf_oneof:"note"`
2025-10-06 13:38:53 +07:00
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NockchainNote) Reset() {
*x = NockchainNote{}
2025-11-04 10:38:31 +07:00
mi := &file_types_proto_msgTypes[8]
2025-10-06 13:38:53 +07:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NockchainNote) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NockchainNote) ProtoMessage() {}
func (x *NockchainNote) ProtoReflect() protoreflect.Message {
2025-11-04 10:38:31 +07:00
mi := &file_types_proto_msgTypes[8]
2025-10-06 13:38:53 +07:00
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 NockchainNote.ProtoReflect.Descriptor instead.
func (*NockchainNote) Descriptor() ([]byte, []int) {
2025-11-04 10:38:31 +07:00
return file_types_proto_rawDescGZIP(), []int{8}
2025-10-06 13:38:53 +07:00
}
2025-11-04 10:38:31 +07:00
func (x *NockchainNote) GetNote() isNockchainNote_Note {
2025-10-06 13:38:53 +07:00
if x != nil {
2025-11-04 10:38:31 +07:00
return x.Note
2025-10-06 13:38:53 +07:00
}
2025-11-04 10:38:31 +07:00
return nil
2025-10-06 13:38:53 +07:00
}
2025-11-04 10:38:31 +07:00
func (x *NockchainNote) GetV0() *NockchainNoteV0 {
2025-10-06 13:38:53 +07:00
if x != nil {
2025-11-04 10:38:31 +07:00
if x, ok := x.Note.(*NockchainNote_V0); ok {
return x.V0
}
2025-10-06 13:38:53 +07:00
}
2025-11-04 10:38:31 +07:00
return nil
2025-10-06 13:38:53 +07:00
}
2025-11-04 10:38:31 +07:00
func (x *NockchainNote) GetV1() *NockchainNoteV1 {
2025-10-06 13:38:53 +07:00
if x != nil {
2025-11-04 10:38:31 +07:00
if x, ok := x.Note.(*NockchainNote_V1); ok {
return x.V1
}
2025-10-06 13:38:53 +07:00
}
return nil
}
2025-11-04 10:38:31 +07:00
type isNockchainNote_Note interface {
isNockchainNote_Note()
}
type NockchainNote_V0 struct {
V0 *NockchainNoteV0 `protobuf:"bytes,1,opt,name=v0,proto3,oneof"`
}
type NockchainNote_V1 struct {
V1 *NockchainNoteV1 `protobuf:"bytes,2,opt,name=v1,proto3,oneof"`
}
func (*NockchainNote_V0) isNockchainNote_Note() {}
func (*NockchainNote_V1) isNockchainNote_Note() {}
type NockchainNoteV0 struct {
state protoimpl.MessageState `protogen:"open.v1"`
Version Version `protobuf:"varint,1,opt,name=version,proto3,enum=nockchain.public.v2.Version" json:"version,omitempty"`
OriginPage uint64 `protobuf:"varint,2,opt,name=origin_page,json=originPage,proto3" json:"origin_page,omitempty"`
Name *NockchainName `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
2025-11-07 11:16:19 +07:00
Lock *NockchainLock `protobuf:"bytes,4,opt,name=lock,proto3" json:"lock,omitempty"`
Source *NockchainSource `protobuf:"bytes,5,opt,name=source,proto3" json:"source,omitempty"`
Asset uint64 `protobuf:"varint,6,opt,name=asset,proto3" json:"asset,omitempty"`
2025-11-04 10:38:31 +07:00
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NockchainNoteV0) Reset() {
*x = NockchainNoteV0{}
mi := &file_types_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NockchainNoteV0) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NockchainNoteV0) ProtoMessage() {}
func (x *NockchainNoteV0) ProtoReflect() protoreflect.Message {
mi := &file_types_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 NockchainNoteV0.ProtoReflect.Descriptor instead.
func (*NockchainNoteV0) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{9}
}
func (x *NockchainNoteV0) GetVersion() Version {
if x != nil {
return x.Version
}
return Version_V0
}
func (x *NockchainNoteV0) GetOriginPage() uint64 {
if x != nil {
return x.OriginPage
}
return 0
}
func (x *NockchainNoteV0) GetName() *NockchainName {
2025-10-06 13:38:53 +07:00
if x != nil {
return x.Name
}
return nil
}
2025-11-04 10:38:31 +07:00
func (x *NockchainNoteV0) GetLock() *NockchainLock {
2025-10-06 13:38:53 +07:00
if x != nil {
return x.Lock
}
return nil
}
2025-11-04 10:38:31 +07:00
func (x *NockchainNoteV0) GetSource() *NockchainSource {
2025-10-06 13:38:53 +07:00
if x != nil {
return x.Source
}
return nil
}
2025-11-04 10:38:31 +07:00
func (x *NockchainNoteV0) GetAsset() uint64 {
2025-10-06 13:38:53 +07:00
if x != nil {
return x.Asset
}
return 0
}
2025-11-04 10:38:31 +07:00
type NockchainNoteV1 struct {
2025-10-06 13:38:53 +07:00
state protoimpl.MessageState `protogen:"open.v1"`
2025-11-07 11:16:19 +07:00
Version Version `protobuf:"varint,1,opt,name=version,proto3,enum=nockchain.public.v2.Version" json:"version,omitempty"`
OriginPage uint64 `protobuf:"varint,2,opt,name=origin_page,json=originPage,proto3" json:"origin_page,omitempty"`
Name *NockchainName `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
NoteData *NockchainLock `protobuf:"bytes,4,opt,name=note_data,json=noteData,proto3" json:"note_data,omitempty"`
Assets uint64 `protobuf:"varint,5,opt,name=assets,proto3" json:"assets,omitempty"`
2025-10-06 13:38:53 +07:00
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
2025-11-04 10:38:31 +07:00
func (x *NockchainNoteV1) Reset() {
*x = NockchainNoteV1{}
mi := &file_types_proto_msgTypes[10]
2025-10-06 13:38:53 +07:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
2025-11-04 10:38:31 +07:00
func (x *NockchainNoteV1) String() string {
2025-10-06 13:38:53 +07:00
return protoimpl.X.MessageStringOf(x)
}
2025-11-04 10:38:31 +07:00
func (*NockchainNoteV1) ProtoMessage() {}
2025-10-06 13:38:53 +07:00
2025-11-04 10:38:31 +07:00
func (x *NockchainNoteV1) ProtoReflect() protoreflect.Message {
mi := &file_types_proto_msgTypes[10]
2025-10-06 13:38:53 +07:00
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
2025-11-04 10:38:31 +07:00
// Deprecated: Use NockchainNoteV1.ProtoReflect.Descriptor instead.
func (*NockchainNoteV1) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{10}
2025-10-06 13:38:53 +07:00
}
2025-11-07 11:16:19 +07:00
func (x *NockchainNoteV1) GetVersion() Version {
if x != nil {
return x.Version
}
return Version_V0
}
func (x *NockchainNoteV1) GetOriginPage() uint64 {
if x != nil {
return x.OriginPage
}
return 0
}
func (x *NockchainNoteV1) GetName() *NockchainName {
if x != nil {
return x.Name
}
return nil
}
func (x *NockchainNoteV1) GetNoteData() *NockchainLock {
if x != nil {
return x.NoteData
}
return nil
}
func (x *NockchainNoteV1) GetAssets() uint64 {
if x != nil {
return x.Assets
}
return 0
}
2025-11-04 10:38:31 +07:00
type NockchainName struct {
2025-10-06 13:38:53 +07:00
state protoimpl.MessageState `protogen:"open.v1"`
2025-11-04 10:38:31 +07:00
First string `protobuf:"bytes,1,opt,name=first,proto3" json:"first,omitempty"`
Last string `protobuf:"bytes,2,opt,name=last,proto3" json:"last,omitempty"`
2025-10-06 13:38:53 +07:00
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
2025-11-04 10:38:31 +07:00
func (x *NockchainName) Reset() {
*x = NockchainName{}
mi := &file_types_proto_msgTypes[11]
2025-10-06 13:38:53 +07:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
2025-11-04 10:38:31 +07:00
func (x *NockchainName) String() string {
2025-10-06 13:38:53 +07:00
return protoimpl.X.MessageStringOf(x)
}
2025-11-04 10:38:31 +07:00
func (*NockchainName) ProtoMessage() {}
2025-10-06 13:38:53 +07:00
2025-11-04 10:38:31 +07:00
func (x *NockchainName) ProtoReflect() protoreflect.Message {
mi := &file_types_proto_msgTypes[11]
2025-10-06 13:38:53 +07:00
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
2025-11-04 10:38:31 +07:00
// Deprecated: Use NockchainName.ProtoReflect.Descriptor instead.
func (*NockchainName) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{11}
2025-10-06 13:38:53 +07:00
}
2025-11-04 10:38:31 +07:00
func (x *NockchainName) GetFirst() string {
2025-10-06 13:38:53 +07:00
if x != nil {
2025-11-04 10:38:31 +07:00
return x.First
2025-10-06 13:38:53 +07:00
}
2025-11-04 10:38:31 +07:00
return ""
2025-10-06 13:38:53 +07:00
}
2025-11-04 10:38:31 +07:00
func (x *NockchainName) GetLast() string {
2025-10-06 13:38:53 +07:00
if x != nil {
2025-11-04 10:38:31 +07:00
return x.Last
2025-10-06 13:38:53 +07:00
}
2025-11-04 10:38:31 +07:00
return ""
2025-10-06 13:38:53 +07:00
}
type NockchainSignature struct {
state protoimpl.MessageState `protogen:"open.v1"`
Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
Chal []uint64 `protobuf:"varint,2,rep,packed,name=chal,proto3" json:"chal,omitempty"`
Sig []uint64 `protobuf:"varint,3,rep,packed,name=sig,proto3" json:"sig,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NockchainSignature) Reset() {
*x = NockchainSignature{}
2025-11-04 10:38:31 +07:00
mi := &file_types_proto_msgTypes[12]
2025-10-06 13:38:53 +07:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NockchainSignature) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NockchainSignature) ProtoMessage() {}
func (x *NockchainSignature) ProtoReflect() protoreflect.Message {
2025-11-04 10:38:31 +07:00
mi := &file_types_proto_msgTypes[12]
2025-10-06 13:38:53 +07:00
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 NockchainSignature.ProtoReflect.Descriptor instead.
func (*NockchainSignature) Descriptor() ([]byte, []int) {
2025-11-04 10:38:31 +07:00
return file_types_proto_rawDescGZIP(), []int{12}
2025-10-06 13:38:53 +07:00
}
func (x *NockchainSignature) GetPubkey() string {
if x != nil {
return x.Pubkey
}
return ""
}
func (x *NockchainSignature) GetChal() []uint64 {
if x != nil {
return x.Chal
}
return nil
}
func (x *NockchainSignature) GetSig() []uint64 {
if x != nil {
return x.Sig
}
return nil
}
2025-11-07 11:16:19 +07:00
type NockchainWitness struct {
state protoimpl.MessageState `protogen:"open.v1"`
Lmp *NockchainLockMerkleProof `protobuf:"bytes,1,opt,name=lmp,proto3" json:"lmp,omitempty"`
Pkh []*NockchainSignature `protobuf:"bytes,2,rep,name=pkh,proto3" json:"pkh,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NockchainWitness) Reset() {
*x = NockchainWitness{}
mi := &file_types_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NockchainWitness) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NockchainWitness) ProtoMessage() {}
func (x *NockchainWitness) ProtoReflect() protoreflect.Message {
mi := &file_types_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 NockchainWitness.ProtoReflect.Descriptor instead.
func (*NockchainWitness) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{13}
}
func (x *NockchainWitness) GetLmp() *NockchainLockMerkleProof {
if x != nil {
return x.Lmp
}
return nil
}
func (x *NockchainWitness) GetPkh() []*NockchainSignature {
if x != nil {
return x.Pkh
}
return nil
}
type NockchainLockMerkleProof struct {
state protoimpl.MessageState `protogen:"open.v1"`
SpendCondition *NockchainLock `protobuf:"bytes,1,opt,name=spend_condition,json=spendCondition,proto3" json:"spend_condition,omitempty"`
Axis uint64 `protobuf:"varint,2,opt,name=axis,proto3" json:"axis,omitempty"`
MerkleRoot string `protobuf:"bytes,3,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NockchainLockMerkleProof) Reset() {
*x = NockchainLockMerkleProof{}
mi := &file_types_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NockchainLockMerkleProof) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NockchainLockMerkleProof) ProtoMessage() {}
func (x *NockchainLockMerkleProof) ProtoReflect() protoreflect.Message {
mi := &file_types_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 NockchainLockMerkleProof.ProtoReflect.Descriptor instead.
func (*NockchainLockMerkleProof) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{14}
}
func (x *NockchainLockMerkleProof) GetSpendCondition() *NockchainLock {
if x != nil {
return x.SpendCondition
}
return nil
}
func (x *NockchainLockMerkleProof) GetAxis() uint64 {
if x != nil {
return x.Axis
}
return 0
}
func (x *NockchainLockMerkleProof) GetMerkleRoot() string {
if x != nil {
return x.MerkleRoot
}
return ""
}
type NockchainSeed struct {
2025-11-04 10:38:31 +07:00
state protoimpl.MessageState `protogen:"open.v1"`
OutputSource *NockchainSource `protobuf:"bytes,1,opt,name=output_source,json=outputSource,proto3,oneof" json:"output_source,omitempty"`
LockRoot string `protobuf:"bytes,2,opt,name=lock_root,json=lockRoot,proto3" json:"lock_root,omitempty"`
NoteData *NockchainLock `protobuf:"bytes,3,opt,name=note_data,json=noteData,proto3" json:"note_data,omitempty"`
Gift uint64 `protobuf:"varint,4,opt,name=gift,proto3" json:"gift,omitempty"`
ParentHash string `protobuf:"bytes,5,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
2025-10-06 13:38:53 +07:00
}
2025-11-07 11:16:19 +07:00
func (x *NockchainSeed) Reset() {
*x = NockchainSeed{}
mi := &file_types_proto_msgTypes[15]
2025-10-06 13:38:53 +07:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
2025-11-07 11:16:19 +07:00
func (x *NockchainSeed) String() string {
2025-10-06 13:38:53 +07:00
return protoimpl.X.MessageStringOf(x)
}
2025-11-07 11:16:19 +07:00
func (*NockchainSeed) ProtoMessage() {}
2025-10-06 13:38:53 +07:00
2025-11-07 11:16:19 +07:00
func (x *NockchainSeed) ProtoReflect() protoreflect.Message {
mi := &file_types_proto_msgTypes[15]
2025-10-06 13:38:53 +07:00
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
2025-11-07 11:16:19 +07:00
// Deprecated: Use NockchainSeed.ProtoReflect.Descriptor instead.
func (*NockchainSeed) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{15}
2025-10-06 13:38:53 +07:00
}
2025-11-07 11:16:19 +07:00
func (x *NockchainSeed) GetOutputSource() *NockchainSource {
2025-10-06 13:38:53 +07:00
if x != nil {
return x.OutputSource
}
return nil
}
2025-11-07 11:16:19 +07:00
func (x *NockchainSeed) GetLockRoot() string {
2025-10-06 13:38:53 +07:00
if x != nil {
2025-11-04 10:38:31 +07:00
return x.LockRoot
2025-10-06 13:38:53 +07:00
}
2025-11-04 10:38:31 +07:00
return ""
2025-10-06 13:38:53 +07:00
}
2025-11-07 11:16:19 +07:00
func (x *NockchainSeed) GetNoteData() *NockchainLock {
2025-10-06 13:38:53 +07:00
if x != nil {
2025-11-04 10:38:31 +07:00
return x.NoteData
2025-10-06 13:38:53 +07:00
}
return nil
}
2025-11-07 11:16:19 +07:00
func (x *NockchainSeed) GetGift() uint64 {
2025-10-06 13:38:53 +07:00
if x != nil {
return x.Gift
}
return 0
}
2025-11-07 11:16:19 +07:00
func (x *NockchainSeed) GetParentHash() string {
2025-10-06 13:38:53 +07:00
if x != nil {
return x.ParentHash
}
return ""
}
type NockchainLock struct {
state protoimpl.MessageState `protogen:"open.v1"`
KeysRequired uint64 `protobuf:"varint,1,opt,name=keys_required,json=keysRequired,proto3" json:"keys_required,omitempty"`
Pubkeys []string `protobuf:"bytes,2,rep,name=pubkeys,proto3" json:"pubkeys,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NockchainLock) Reset() {
*x = NockchainLock{}
2025-11-07 11:16:19 +07:00
mi := &file_types_proto_msgTypes[16]
2025-10-06 13:38:53 +07:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NockchainLock) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NockchainLock) ProtoMessage() {}
func (x *NockchainLock) ProtoReflect() protoreflect.Message {
2025-11-07 11:16:19 +07:00
mi := &file_types_proto_msgTypes[16]
2025-10-06 13:38:53 +07:00
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 NockchainLock.ProtoReflect.Descriptor instead.
func (*NockchainLock) Descriptor() ([]byte, []int) {
2025-11-07 11:16:19 +07:00
return file_types_proto_rawDescGZIP(), []int{16}
2025-10-06 13:38:53 +07:00
}
func (x *NockchainLock) GetKeysRequired() uint64 {
if x != nil {
return x.KeysRequired
}
return 0
}
func (x *NockchainLock) GetPubkeys() []string {
if x != nil {
return x.Pubkeys
}
return nil
}
type NockchainSource struct {
state protoimpl.MessageState `protogen:"open.v1"`
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
IsCoinbase bool `protobuf:"varint,2,opt,name=is_coinbase,json=isCoinbase,proto3" json:"is_coinbase,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NockchainSource) Reset() {
*x = NockchainSource{}
2025-11-07 11:16:19 +07:00
mi := &file_types_proto_msgTypes[17]
2025-10-06 13:38:53 +07:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NockchainSource) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NockchainSource) ProtoMessage() {}
func (x *NockchainSource) ProtoReflect() protoreflect.Message {
2025-11-07 11:16:19 +07:00
mi := &file_types_proto_msgTypes[17]
2025-10-06 13:38:53 +07:00
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 NockchainSource.ProtoReflect.Descriptor instead.
func (*NockchainSource) Descriptor() ([]byte, []int) {
2025-11-07 11:16:19 +07:00
return file_types_proto_rawDescGZIP(), []int{17}
2025-10-06 13:38:53 +07:00
}
func (x *NockchainSource) GetSource() string {
if x != nil {
return x.Source
}
return ""
}
func (x *NockchainSource) GetIsCoinbase() bool {
if x != nil {
return x.IsCoinbase
}
return false
}
var File_types_proto protoreflect.FileDescriptor
const file_types_proto_rawDesc = "" +
"\n" +
2025-11-04 10:38:31 +07:00
"\vtypes.proto\x12\x13nockchain.public.v2\x1a\x10blockchain.proto\"T\n" +
2025-10-06 13:38:53 +07:00
"\bScanData\x12\x16\n" +
2025-11-04 10:38:31 +07:00
"\x06pubkey\x18\x01 \x01(\tR\x06pubkey\x120\n" +
"\x04data\x18\x02 \x01(\v2\x1c.nockchain.public.v2.BalanceR\x04data\"\xb4\x01\n" +
2025-10-06 13:38:53 +07:00
"\x0eTimelockIntent\x12C\n" +
2025-11-04 10:38:31 +07:00
"\babsolute\x18\x01 \x01(\v2\".nockchain.public.v2.TimelockRangeH\x00R\babsolute\x88\x01\x01\x12C\n" +
"\brelative\x18\x02 \x01(\v2\".nockchain.public.v2.TimelockRangeH\x01R\brelative\x88\x01\x01B\v\n" +
2025-10-06 13:38:53 +07:00
"\t_absoluteB\v\n" +
"\t_relative\"\x8b\x01\n" +
"\rTimelockRange\x124\n" +
2025-11-04 10:38:31 +07:00
"\x03min\x18\x01 \x01(\v2\x1d.nockchain.public.v2.TimelockH\x00R\x03min\x88\x01\x01\x124\n" +
"\x03max\x18\x02 \x01(\v2\x1d.nockchain.public.v2.TimelockH\x01R\x03max\x88\x01\x01B\x06\n" +
2025-10-06 13:38:53 +07:00
"\x04_minB\x06\n" +
"\x04_max\" \n" +
"\bTimelock\x12\x14\n" +
2025-11-04 10:38:31 +07:00
"\x05value\x18\x01 \x01(\x04R\x05value\"\xa1\x01\n" +
2025-10-06 13:38:53 +07:00
"\x05RawTx\x12\x13\n" +
2025-11-04 10:38:31 +07:00
"\x05tx_id\x18\x01 \x01(\tR\x04txId\x126\n" +
"\aversion\x18\x02 \x01(\x0e2\x1c.nockchain.public.v2.VersionR\aversion\x12K\n" +
"\fnamed_spends\x18\x03 \x03(\v2(.nockchain.public.v2.NockchainNamedSpendR\vnamedSpends\"\xdf\x01\n" +
"\x13NockchainNamedSpend\x126\n" +
"\x04name\x18\x01 \x01(\v2\".nockchain.public.v2.NockchainNameR\x04name\x12?\n" +
"\x06legacy\x18\x02 \x01(\v2%.nockchain.public.v2.NockchainSpendV0H\x00R\x06legacy\x12A\n" +
"\awitness\x18\x03 \x01(\v2%.nockchain.public.v2.NockchainSpendV1H\x00R\awitnessB\f\n" +
2025-10-06 13:38:53 +07:00
"\n" +
2025-11-07 11:16:19 +07:00
"spend_kind\"\xa7\x01\n" +
2025-11-04 10:38:31 +07:00
"\x10NockchainSpendV0\x12G\n" +
2025-10-06 13:38:53 +07:00
"\n" +
2025-11-04 10:38:31 +07:00
"signatures\x18\x01 \x03(\v2'.nockchain.public.v2.NockchainSignatureR\n" +
2025-11-07 11:16:19 +07:00
"signatures\x128\n" +
"\x05seeds\x18\x02 \x03(\v2\".nockchain.public.v2.NockchainSeedR\x05seeds\x12\x10\n" +
"\x03fee\x18\x03 \x01(\x04R\x03fee\"\x9f\x01\n" +
"\x10NockchainSpendV1\x12?\n" +
"\awitness\x18\x01 \x03(\v2%.nockchain.public.v2.NockchainWitnessR\awitness\x128\n" +
"\x05seeds\x18\x02 \x03(\v2\".nockchain.public.v2.NockchainSeedR\x05seeds\x12\x10\n" +
"\x03fee\x18\x03 \x01(\x04R\x03fee\"\x87\x01\n" +
2025-10-06 13:38:53 +07:00
"\rNockchainNote\x126\n" +
2025-11-04 10:38:31 +07:00
"\x02v0\x18\x01 \x01(\v2$.nockchain.public.v2.NockchainNoteV0H\x00R\x02v0\x126\n" +
"\x02v1\x18\x02 \x01(\v2$.nockchain.public.v2.NockchainNoteV1H\x00R\x02v1B\x06\n" +
"\x04note\"\xae\x02\n" +
"\x0fNockchainNoteV0\x126\n" +
"\aversion\x18\x01 \x01(\x0e2\x1c.nockchain.public.v2.VersionR\aversion\x12\x1f\n" +
"\vorigin_page\x18\x02 \x01(\x04R\n" +
"originPage\x126\n" +
"\x04name\x18\x03 \x01(\v2\".nockchain.public.v2.NockchainNameR\x04name\x126\n" +
2025-11-07 11:16:19 +07:00
"\x04lock\x18\x04 \x01(\v2\".nockchain.public.v2.NockchainLockR\x04lock\x12<\n" +
"\x06source\x18\x05 \x01(\v2$.nockchain.public.v2.NockchainSourceR\x06source\x12\x14\n" +
"\x05asset\x18\x06 \x01(\x04R\x05asset\"\xfb\x01\n" +
"\x0fNockchainNoteV1\x126\n" +
"\aversion\x18\x01 \x01(\x0e2\x1c.nockchain.public.v2.VersionR\aversion\x12\x1f\n" +
"\vorigin_page\x18\x02 \x01(\x04R\n" +
"originPage\x126\n" +
"\x04name\x18\x03 \x01(\v2\".nockchain.public.v2.NockchainNameR\x04name\x12?\n" +
"\tnote_data\x18\x04 \x01(\v2\".nockchain.public.v2.NockchainLockR\bnoteData\x12\x16\n" +
"\x06assets\x18\x05 \x01(\x04R\x06assets\"9\n" +
2025-10-06 13:38:53 +07:00
"\rNockchainName\x12\x14\n" +
"\x05first\x18\x01 \x01(\tR\x05first\x12\x12\n" +
2025-11-04 10:38:31 +07:00
"\x04last\x18\x02 \x01(\tR\x04last\"R\n" +
2025-10-06 13:38:53 +07:00
"\x12NockchainSignature\x12\x16\n" +
"\x06pubkey\x18\x01 \x01(\tR\x06pubkey\x12\x12\n" +
"\x04chal\x18\x02 \x03(\x04R\x04chal\x12\x10\n" +
2025-11-07 11:16:19 +07:00
"\x03sig\x18\x03 \x03(\x04R\x03sig\"\x8e\x01\n" +
"\x10NockchainWitness\x12?\n" +
"\x03lmp\x18\x01 \x01(\v2-.nockchain.public.v2.NockchainLockMerkleProofR\x03lmp\x129\n" +
"\x03pkh\x18\x02 \x03(\v2'.nockchain.public.v2.NockchainSignatureR\x03pkh\"\x9c\x01\n" +
"\x18NockchainLockMerkleProof\x12K\n" +
"\x0fspend_condition\x18\x01 \x01(\v2\".nockchain.public.v2.NockchainLockR\x0espendCondition\x12\x12\n" +
"\x04axis\x18\x02 \x01(\x04R\x04axis\x12\x1f\n" +
"\vmerkle_root\x18\x03 \x01(\tR\n" +
"merkleRoot\"\x84\x02\n" +
"\rNockchainSeed\x12N\n" +
2025-11-04 10:38:31 +07:00
"\routput_source\x18\x01 \x01(\v2$.nockchain.public.v2.NockchainSourceH\x00R\foutputSource\x88\x01\x01\x12\x1b\n" +
"\tlock_root\x18\x02 \x01(\tR\blockRoot\x12?\n" +
"\tnote_data\x18\x03 \x01(\v2\".nockchain.public.v2.NockchainLockR\bnoteData\x12\x12\n" +
2025-10-06 13:38:53 +07:00
"\x04gift\x18\x04 \x01(\x04R\x04gift\x12\x1f\n" +
"\vparent_hash\x18\x05 \x01(\tR\n" +
"parentHashB\x10\n" +
2025-11-04 10:38:31 +07:00
"\x0e_output_source\"N\n" +
2025-10-06 13:38:53 +07:00
"\rNockchainLock\x12#\n" +
"\rkeys_required\x18\x01 \x01(\x04R\fkeysRequired\x12\x18\n" +
"\apubkeys\x18\x02 \x03(\tR\apubkeys\"J\n" +
"\x0fNockchainSource\x12\x16\n" +
"\x06source\x18\x01 \x01(\tR\x06source\x12\x1f\n" +
"\vis_coinbase\x18\x02 \x01(\bR\n" +
"isCoinbase*a\n" +
"\n" +
"ImportType\x12\r\n" +
"\tUNDEFINED\x10\x00\x12\x10\n" +
"\fEXTENDED_KEY\x10\x01\x12\x0e\n" +
"\n" +
"SEEDPHRASE\x10\x02\x12\x12\n" +
"\x0eMASTER_PRIVKEY\x10\x03\x12\x0e\n" +
"\n" +
"WATCH_ONLY\x10\x04*!\n" +
"\aVersion\x12\x06\n" +
"\x02V0\x10\x00\x12\x06\n" +
"\x02V1\x10\x01\x12\x06\n" +
"\x02V2\x10\x02B\x0eZ\f./;nockchainb\x06proto3"
var (
file_types_proto_rawDescOnce sync.Once
file_types_proto_rawDescData []byte
)
func file_types_proto_rawDescGZIP() []byte {
file_types_proto_rawDescOnce.Do(func() {
file_types_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_types_proto_rawDesc), len(file_types_proto_rawDesc)))
})
return file_types_proto_rawDescData
}
var file_types_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
2025-11-07 11:16:19 +07:00
var file_types_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
2025-10-06 13:38:53 +07:00
var file_types_proto_goTypes = []any{
2025-11-07 11:16:19 +07:00
(ImportType)(0), // 0: nockchain.public.v2.ImportType
(Version)(0), // 1: nockchain.public.v2.Version
(*ScanData)(nil), // 2: nockchain.public.v2.ScanData
(*TimelockIntent)(nil), // 3: nockchain.public.v2.TimelockIntent
(*TimelockRange)(nil), // 4: nockchain.public.v2.TimelockRange
(*Timelock)(nil), // 5: nockchain.public.v2.Timelock
(*RawTx)(nil), // 6: nockchain.public.v2.RawTx
(*NockchainNamedSpend)(nil), // 7: nockchain.public.v2.NockchainNamedSpend
(*NockchainSpendV0)(nil), // 8: nockchain.public.v2.NockchainSpendV0
(*NockchainSpendV1)(nil), // 9: nockchain.public.v2.NockchainSpendV1
(*NockchainNote)(nil), // 10: nockchain.public.v2.NockchainNote
(*NockchainNoteV0)(nil), // 11: nockchain.public.v2.NockchainNoteV0
(*NockchainNoteV1)(nil), // 12: nockchain.public.v2.NockchainNoteV1
(*NockchainName)(nil), // 13: nockchain.public.v2.NockchainName
(*NockchainSignature)(nil), // 14: nockchain.public.v2.NockchainSignature
(*NockchainWitness)(nil), // 15: nockchain.public.v2.NockchainWitness
(*NockchainLockMerkleProof)(nil), // 16: nockchain.public.v2.NockchainLockMerkleProof
(*NockchainSeed)(nil), // 17: nockchain.public.v2.NockchainSeed
(*NockchainLock)(nil), // 18: nockchain.public.v2.NockchainLock
(*NockchainSource)(nil), // 19: nockchain.public.v2.NockchainSource
(*Balance)(nil), // 20: nockchain.public.v2.Balance
2025-10-06 13:38:53 +07:00
}
var file_types_proto_depIdxs = []int32{
2025-11-07 11:16:19 +07:00
20, // 0: nockchain.public.v2.ScanData.data:type_name -> nockchain.public.v2.Balance
2025-11-04 10:38:31 +07:00
4, // 1: nockchain.public.v2.TimelockIntent.absolute:type_name -> nockchain.public.v2.TimelockRange
4, // 2: nockchain.public.v2.TimelockIntent.relative:type_name -> nockchain.public.v2.TimelockRange
5, // 3: nockchain.public.v2.TimelockRange.min:type_name -> nockchain.public.v2.Timelock
5, // 4: nockchain.public.v2.TimelockRange.max:type_name -> nockchain.public.v2.Timelock
1, // 5: nockchain.public.v2.RawTx.version:type_name -> nockchain.public.v2.Version
7, // 6: nockchain.public.v2.RawTx.named_spends:type_name -> nockchain.public.v2.NockchainNamedSpend
13, // 7: nockchain.public.v2.NockchainNamedSpend.name:type_name -> nockchain.public.v2.NockchainName
8, // 8: nockchain.public.v2.NockchainNamedSpend.legacy:type_name -> nockchain.public.v2.NockchainSpendV0
9, // 9: nockchain.public.v2.NockchainNamedSpend.witness:type_name -> nockchain.public.v2.NockchainSpendV1
14, // 10: nockchain.public.v2.NockchainSpendV0.signatures:type_name -> nockchain.public.v2.NockchainSignature
2025-11-07 11:16:19 +07:00
17, // 11: nockchain.public.v2.NockchainSpendV0.seeds:type_name -> nockchain.public.v2.NockchainSeed
15, // 12: nockchain.public.v2.NockchainSpendV1.witness:type_name -> nockchain.public.v2.NockchainWitness
17, // 13: nockchain.public.v2.NockchainSpendV1.seeds:type_name -> nockchain.public.v2.NockchainSeed
11, // 14: nockchain.public.v2.NockchainNote.v0:type_name -> nockchain.public.v2.NockchainNoteV0
12, // 15: nockchain.public.v2.NockchainNote.v1:type_name -> nockchain.public.v2.NockchainNoteV1
1, // 16: nockchain.public.v2.NockchainNoteV0.version:type_name -> nockchain.public.v2.Version
13, // 17: nockchain.public.v2.NockchainNoteV0.name:type_name -> nockchain.public.v2.NockchainName
18, // 18: nockchain.public.v2.NockchainNoteV0.lock:type_name -> nockchain.public.v2.NockchainLock
19, // 19: nockchain.public.v2.NockchainNoteV0.source:type_name -> nockchain.public.v2.NockchainSource
1, // 20: nockchain.public.v2.NockchainNoteV1.version:type_name -> nockchain.public.v2.Version
13, // 21: nockchain.public.v2.NockchainNoteV1.name:type_name -> nockchain.public.v2.NockchainName
18, // 22: nockchain.public.v2.NockchainNoteV1.note_data:type_name -> nockchain.public.v2.NockchainLock
16, // 23: nockchain.public.v2.NockchainWitness.lmp:type_name -> nockchain.public.v2.NockchainLockMerkleProof
14, // 24: nockchain.public.v2.NockchainWitness.pkh:type_name -> nockchain.public.v2.NockchainSignature
18, // 25: nockchain.public.v2.NockchainLockMerkleProof.spend_condition:type_name -> nockchain.public.v2.NockchainLock
19, // 26: nockchain.public.v2.NockchainSeed.output_source:type_name -> nockchain.public.v2.NockchainSource
18, // 27: nockchain.public.v2.NockchainSeed.note_data:type_name -> nockchain.public.v2.NockchainLock
28, // [28:28] is the sub-list for method output_type
28, // [28:28] is the sub-list for method input_type
28, // [28:28] is the sub-list for extension type_name
28, // [28:28] is the sub-list for extension extendee
0, // [0:28] is the sub-list for field type_name
2025-10-06 13:38:53 +07:00
}
func init() { file_types_proto_init() }
func file_types_proto_init() {
if File_types_proto != nil {
return
}
file_blockchain_proto_init()
file_types_proto_msgTypes[1].OneofWrappers = []any{}
file_types_proto_msgTypes[2].OneofWrappers = []any{}
2025-11-04 10:38:31 +07:00
file_types_proto_msgTypes[5].OneofWrappers = []any{
(*NockchainNamedSpend_Legacy)(nil),
(*NockchainNamedSpend_Witness)(nil),
}
file_types_proto_msgTypes[8].OneofWrappers = []any{
(*NockchainNote_V0)(nil),
(*NockchainNote_V1)(nil),
}
2025-11-07 11:16:19 +07:00
file_types_proto_msgTypes[15].OneofWrappers = []any{}
2025-10-06 13:38:53 +07:00
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_types_proto_rawDesc), len(file_types_proto_rawDesc)),
NumEnums: 2,
2025-11-07 11:16:19 +07:00
NumMessages: 18,
2025-10-06 13:38:53 +07:00
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_types_proto_goTypes,
DependencyIndexes: file_types_proto_depIdxs,
EnumInfos: file_types_proto_enumTypes,
MessageInfos: file_types_proto_msgTypes,
}.Build()
File_types_proto = out.File
file_types_proto_goTypes = nil
file_types_proto_depIdxs = nil
}