1071 lines
31 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"`
Data *WalletBalanceData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
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 ""
}
func (x *ScanData) GetData() *WalletBalanceData {
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"`
Inputs []*NockchainInput `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty"`
TimelockRange *TimelockRange `protobuf:"bytes,3,opt,name=timelock_range,json=timelockRange,proto3" json:"timelock_range,omitempty"`
TotalFees uint64 `protobuf:"varint,4,opt,name=total_fees,json=totalFees,proto3" json:"total_fees,omitempty"`
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 ""
}
func (x *RawTx) GetInputs() []*NockchainInput {
if x != nil {
return x.Inputs
}
return nil
}
func (x *RawTx) GetTimelockRange() *TimelockRange {
if x != nil {
return x.TimelockRange
}
return nil
}
func (x *RawTx) GetTotalFees() uint64 {
if x != nil {
return x.TotalFees
}
return 0
}
type NockchainSpend struct {
state protoimpl.MessageState `protogen:"open.v1"`
Signatures []*NockchainSignature `protobuf:"bytes,1,rep,name=signatures,proto3" json:"signatures,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"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NockchainSpend) Reset() {
*x = NockchainSpend{}
mi := &file_types_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NockchainSpend) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NockchainSpend) ProtoMessage() {}
func (x *NockchainSpend) ProtoReflect() protoreflect.Message {
mi := &file_types_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 NockchainSpend.ProtoReflect.Descriptor instead.
func (*NockchainSpend) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{5}
}
func (x *NockchainSpend) GetSignatures() []*NockchainSignature {
if x != nil {
return x.Signatures
}
return nil
}
func (x *NockchainSpend) GetSeeds() []*NockchainSeed {
if x != nil {
return x.Seeds
}
return nil
}
func (x *NockchainSpend) GetFee() uint64 {
if x != nil {
return x.Fee
}
return 0
}
type NockchainNote struct {
state protoimpl.MessageState `protogen:"open.v1"`
Version Version `protobuf:"varint,1,opt,name=version,proto3,enum=nockchain.public.v1.Version" json:"version,omitempty"`
BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
Timelock *TimelockIntent `protobuf:"bytes,3,opt,name=timelock,proto3,oneof" json:"timelock,omitempty"`
Name *NockchainName `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
Lock *NockchainLock `protobuf:"bytes,5,opt,name=lock,proto3" json:"lock,omitempty"`
Source *NockchainSource `protobuf:"bytes,6,opt,name=source,proto3" json:"source,omitempty"`
Asset uint64 `protobuf:"varint,7,opt,name=asset,proto3" json:"asset,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NockchainNote) Reset() {
*x = NockchainNote{}
mi := &file_types_proto_msgTypes[6]
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 {
mi := &file_types_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 NockchainNote.ProtoReflect.Descriptor instead.
func (*NockchainNote) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{6}
}
func (x *NockchainNote) GetVersion() Version {
if x != nil {
return x.Version
}
return Version_V0
}
func (x *NockchainNote) GetBlockHeight() uint64 {
if x != nil {
return x.BlockHeight
}
return 0
}
func (x *NockchainNote) GetTimelock() *TimelockIntent {
if x != nil {
return x.Timelock
}
return nil
}
func (x *NockchainNote) GetName() *NockchainName {
if x != nil {
return x.Name
}
return nil
}
func (x *NockchainNote) GetLock() *NockchainLock {
if x != nil {
return x.Lock
}
return nil
}
func (x *NockchainNote) GetSource() *NockchainSource {
if x != nil {
return x.Source
}
return nil
}
func (x *NockchainNote) GetAsset() uint64 {
if x != nil {
return x.Asset
}
return 0
}
type NockchainName struct {
state protoimpl.MessageState `protogen:"open.v1"`
First string `protobuf:"bytes,1,opt,name=first,proto3" json:"first,omitempty"`
Last string `protobuf:"bytes,2,opt,name=last,proto3" json:"last,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NockchainName) Reset() {
*x = NockchainName{}
mi := &file_types_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NockchainName) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NockchainName) ProtoMessage() {}
func (x *NockchainName) 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 NockchainName.ProtoReflect.Descriptor instead.
func (*NockchainName) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{7}
}
func (x *NockchainName) GetFirst() string {
if x != nil {
return x.First
}
return ""
}
func (x *NockchainName) GetLast() string {
if x != nil {
return x.Last
}
return ""
}
type NockchainInput struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name *NockchainName `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Note *NockchainNote `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"`
Spend *NockchainSpend `protobuf:"bytes,3,opt,name=spend,proto3" json:"spend,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NockchainInput) Reset() {
*x = NockchainInput{}
mi := &file_types_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NockchainInput) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NockchainInput) ProtoMessage() {}
func (x *NockchainInput) ProtoReflect() protoreflect.Message {
mi := &file_types_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 NockchainInput.ProtoReflect.Descriptor instead.
func (*NockchainInput) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{8}
}
func (x *NockchainInput) GetName() *NockchainName {
if x != nil {
return x.Name
}
return nil
}
func (x *NockchainInput) GetNote() *NockchainNote {
if x != nil {
return x.Note
}
return nil
}
func (x *NockchainInput) GetSpend() *NockchainSpend {
if x != nil {
return x.Spend
}
return nil
}
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{}
mi := &file_types_proto_msgTypes[9]
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 {
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 NockchainSignature.ProtoReflect.Descriptor instead.
func (*NockchainSignature) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{9}
}
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
}
type NockchainSeed struct {
state protoimpl.MessageState `protogen:"open.v1"`
OutputSource *NockchainSource `protobuf:"bytes,1,opt,name=output_source,json=outputSource,proto3,oneof" json:"output_source,omitempty"`
Recipient *NockchainLock `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
TimelockIntent *TimelockIntent `protobuf:"bytes,3,opt,name=timelock_intent,json=timelockIntent,proto3,oneof" json:"timelock_intent,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
}
func (x *NockchainSeed) Reset() {
*x = NockchainSeed{}
mi := &file_types_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NockchainSeed) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NockchainSeed) ProtoMessage() {}
func (x *NockchainSeed) ProtoReflect() protoreflect.Message {
mi := &file_types_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 NockchainSeed.ProtoReflect.Descriptor instead.
func (*NockchainSeed) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{10}
}
func (x *NockchainSeed) GetOutputSource() *NockchainSource {
if x != nil {
return x.OutputSource
}
return nil
}
func (x *NockchainSeed) GetRecipient() *NockchainLock {
if x != nil {
return x.Recipient
}
return nil
}
func (x *NockchainSeed) GetTimelockIntent() *TimelockIntent {
if x != nil {
return x.TimelockIntent
}
return nil
}
func (x *NockchainSeed) GetGift() uint64 {
if x != nil {
return x.Gift
}
return 0
}
func (x *NockchainSeed) GetParentHash() string {
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{}
mi := &file_types_proto_msgTypes[11]
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 {
mi := &file_types_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 NockchainLock.ProtoReflect.Descriptor instead.
func (*NockchainLock) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{11}
}
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{}
mi := &file_types_proto_msgTypes[12]
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 {
mi := &file_types_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 NockchainSource.ProtoReflect.Descriptor instead.
func (*NockchainSource) Descriptor() ([]byte, []int) {
return file_types_proto_rawDescGZIP(), []int{12}
}
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" +
"\vtypes.proto\x12\x13nockchain.public.v1\x1a\x10blockchain.proto\"^\n" +
"\bScanData\x12\x16\n" +
"\x06pubkey\x18\x01 \x01(\tR\x06pubkey\x12:\n" +
"\x04data\x18\x02 \x01(\v2&.nockchain.public.v1.WalletBalanceDataR\x04data\"\xb4\x01\n" +
"\x0eTimelockIntent\x12C\n" +
"\babsolute\x18\x01 \x01(\v2\".nockchain.public.v1.TimelockRangeH\x00R\babsolute\x88\x01\x01\x12C\n" +
"\brelative\x18\x02 \x01(\v2\".nockchain.public.v1.TimelockRangeH\x01R\brelative\x88\x01\x01B\v\n" +
"\t_absoluteB\v\n" +
"\t_relative\"\x8b\x01\n" +
"\rTimelockRange\x124\n" +
"\x03min\x18\x01 \x01(\v2\x1d.nockchain.public.v1.TimelockH\x00R\x03min\x88\x01\x01\x124\n" +
"\x03max\x18\x02 \x01(\v2\x1d.nockchain.public.v1.TimelockH\x01R\x03max\x88\x01\x01B\x06\n" +
"\x04_minB\x06\n" +
"\x04_max\" \n" +
"\bTimelock\x12\x14\n" +
"\x05value\x18\x01 \x01(\x04R\x05value\"\xc3\x01\n" +
"\x05RawTx\x12\x13\n" +
"\x05tx_id\x18\x01 \x01(\tR\x04txId\x12;\n" +
"\x06inputs\x18\x02 \x03(\v2#.nockchain.public.v1.NockchainInputR\x06inputs\x12I\n" +
"\x0etimelock_range\x18\x03 \x01(\v2\".nockchain.public.v1.TimelockRangeR\rtimelockRange\x12\x1d\n" +
"\n" +
"total_fees\x18\x04 \x01(\x04R\ttotalFees\"\xa5\x01\n" +
"\x0eNockchainSpend\x12G\n" +
"\n" +
"signatures\x18\x01 \x03(\v2'.nockchain.public.v1.NockchainSignatureR\n" +
"signatures\x128\n" +
"\x05seeds\x18\x02 \x03(\v2\".nockchain.public.v1.NockchainSeedR\x05seeds\x12\x10\n" +
"\x03fee\x18\x03 \x01(\x04R\x03fee\"\x81\x03\n" +
"\rNockchainNote\x126\n" +
"\aversion\x18\x01 \x01(\x0e2\x1c.nockchain.public.v1.VersionR\aversion\x12!\n" +
"\fblock_height\x18\x02 \x01(\x04R\vblockHeight\x12D\n" +
"\btimelock\x18\x03 \x01(\v2#.nockchain.public.v1.TimelockIntentH\x00R\btimelock\x88\x01\x01\x126\n" +
"\x04name\x18\x04 \x01(\v2\".nockchain.public.v1.NockchainNameR\x04name\x126\n" +
"\x04lock\x18\x05 \x01(\v2\".nockchain.public.v1.NockchainLockR\x04lock\x12<\n" +
"\x06source\x18\x06 \x01(\v2$.nockchain.public.v1.NockchainSourceR\x06source\x12\x14\n" +
"\x05asset\x18\a \x01(\x04R\x05assetB\v\n" +
"\t_timelock\"9\n" +
"\rNockchainName\x12\x14\n" +
"\x05first\x18\x01 \x01(\tR\x05first\x12\x12\n" +
"\x04last\x18\x02 \x01(\tR\x04last\"\xbb\x01\n" +
"\x0eNockchainInput\x126\n" +
"\x04name\x18\x01 \x01(\v2\".nockchain.public.v1.NockchainNameR\x04name\x126\n" +
"\x04note\x18\x02 \x01(\v2\".nockchain.public.v1.NockchainNoteR\x04note\x129\n" +
"\x05spend\x18\x03 \x01(\v2#.nockchain.public.v1.NockchainSpendR\x05spend\"R\n" +
"\x12NockchainSignature\x12\x16\n" +
"\x06pubkey\x18\x01 \x01(\tR\x06pubkey\x12\x12\n" +
"\x04chal\x18\x02 \x03(\x04R\x04chal\x12\x10\n" +
"\x03sig\x18\x03 \x03(\x04R\x03sig\"\xcf\x02\n" +
"\rNockchainSeed\x12N\n" +
"\routput_source\x18\x01 \x01(\v2$.nockchain.public.v1.NockchainSourceH\x00R\foutputSource\x88\x01\x01\x12@\n" +
"\trecipient\x18\x02 \x01(\v2\".nockchain.public.v1.NockchainLockR\trecipient\x12Q\n" +
"\x0ftimelock_intent\x18\x03 \x01(\v2#.nockchain.public.v1.TimelockIntentH\x01R\x0etimelockIntent\x88\x01\x01\x12\x12\n" +
"\x04gift\x18\x04 \x01(\x04R\x04gift\x12\x1f\n" +
"\vparent_hash\x18\x05 \x01(\tR\n" +
"parentHashB\x10\n" +
"\x0e_output_sourceB\x12\n" +
"\x10_timelock_intent\"N\n" +
"\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)
var file_types_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
var file_types_proto_goTypes = []any{
(ImportType)(0), // 0: nockchain.public.v1.ImportType
(Version)(0), // 1: nockchain.public.v1.Version
(*ScanData)(nil), // 2: nockchain.public.v1.ScanData
(*TimelockIntent)(nil), // 3: nockchain.public.v1.TimelockIntent
(*TimelockRange)(nil), // 4: nockchain.public.v1.TimelockRange
(*Timelock)(nil), // 5: nockchain.public.v1.Timelock
(*RawTx)(nil), // 6: nockchain.public.v1.RawTx
(*NockchainSpend)(nil), // 7: nockchain.public.v1.NockchainSpend
(*NockchainNote)(nil), // 8: nockchain.public.v1.NockchainNote
(*NockchainName)(nil), // 9: nockchain.public.v1.NockchainName
(*NockchainInput)(nil), // 10: nockchain.public.v1.NockchainInput
(*NockchainSignature)(nil), // 11: nockchain.public.v1.NockchainSignature
(*NockchainSeed)(nil), // 12: nockchain.public.v1.NockchainSeed
(*NockchainLock)(nil), // 13: nockchain.public.v1.NockchainLock
(*NockchainSource)(nil), // 14: nockchain.public.v1.NockchainSource
(*WalletBalanceData)(nil), // 15: nockchain.public.v1.WalletBalanceData
}
var file_types_proto_depIdxs = []int32{
15, // 0: nockchain.public.v1.ScanData.data:type_name -> nockchain.public.v1.WalletBalanceData
4, // 1: nockchain.public.v1.TimelockIntent.absolute:type_name -> nockchain.public.v1.TimelockRange
4, // 2: nockchain.public.v1.TimelockIntent.relative:type_name -> nockchain.public.v1.TimelockRange
5, // 3: nockchain.public.v1.TimelockRange.min:type_name -> nockchain.public.v1.Timelock
5, // 4: nockchain.public.v1.TimelockRange.max:type_name -> nockchain.public.v1.Timelock
10, // 5: nockchain.public.v1.RawTx.inputs:type_name -> nockchain.public.v1.NockchainInput
4, // 6: nockchain.public.v1.RawTx.timelock_range:type_name -> nockchain.public.v1.TimelockRange
11, // 7: nockchain.public.v1.NockchainSpend.signatures:type_name -> nockchain.public.v1.NockchainSignature
12, // 8: nockchain.public.v1.NockchainSpend.seeds:type_name -> nockchain.public.v1.NockchainSeed
1, // 9: nockchain.public.v1.NockchainNote.version:type_name -> nockchain.public.v1.Version
3, // 10: nockchain.public.v1.NockchainNote.timelock:type_name -> nockchain.public.v1.TimelockIntent
9, // 11: nockchain.public.v1.NockchainNote.name:type_name -> nockchain.public.v1.NockchainName
13, // 12: nockchain.public.v1.NockchainNote.lock:type_name -> nockchain.public.v1.NockchainLock
14, // 13: nockchain.public.v1.NockchainNote.source:type_name -> nockchain.public.v1.NockchainSource
9, // 14: nockchain.public.v1.NockchainInput.name:type_name -> nockchain.public.v1.NockchainName
8, // 15: nockchain.public.v1.NockchainInput.note:type_name -> nockchain.public.v1.NockchainNote
7, // 16: nockchain.public.v1.NockchainInput.spend:type_name -> nockchain.public.v1.NockchainSpend
14, // 17: nockchain.public.v1.NockchainSeed.output_source:type_name -> nockchain.public.v1.NockchainSource
13, // 18: nockchain.public.v1.NockchainSeed.recipient:type_name -> nockchain.public.v1.NockchainLock
3, // 19: nockchain.public.v1.NockchainSeed.timelock_intent:type_name -> nockchain.public.v1.TimelockIntent
20, // [20:20] is the sub-list for method output_type
20, // [20:20] is the sub-list for method input_type
20, // [20:20] is the sub-list for extension type_name
20, // [20:20] is the sub-list for extension extendee
0, // [0:20] is the sub-list for field type_name
}
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{}
file_types_proto_msgTypes[6].OneofWrappers = []any{}
file_types_proto_msgTypes[10].OneofWrappers = []any{}
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,
NumMessages: 13,
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
}