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

1387 lines
45 KiB
Go

// nockchain/common/v1/blockchain.proto
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.9
// protoc v3.20.3
// source: blockchain.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 WalletBalanceData struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Page of full UTXO entries for the requested wallet. Entries are ordered
// by (Name.first, Name.last) to support consistent pagination.
Notes []*BalanceEntry `protobuf:"bytes,1,rep,name=notes,proto3" json:"notes,omitempty"` // note name -> amount
// Snapshot metadata where this page was computed. Clients should include
// the returned page token to continue paging against the same snapshot.
Height *BlockHeight `protobuf:"bytes,2,opt,name=height,proto3" json:"height,omitempty"` // block height where balance was computed
BlockId *Hash `protobuf:"bytes,3,opt,name=block_id,json=blockId,proto3,oneof" json:"block_id,omitempty"` // block where balance was computed
// Pagination cursor for fetching the next page in a paginated view.
// When empty, there are no further results for this snapshot.
Page *PageResponse `protobuf:"bytes,4,opt,name=page,proto3" json:"page,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *WalletBalanceData) Reset() {
*x = WalletBalanceData{}
mi := &file_blockchain_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WalletBalanceData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WalletBalanceData) ProtoMessage() {}
func (x *WalletBalanceData) ProtoReflect() protoreflect.Message {
mi := &file_blockchain_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 WalletBalanceData.ProtoReflect.Descriptor instead.
func (*WalletBalanceData) Descriptor() ([]byte, []int) {
return file_blockchain_proto_rawDescGZIP(), []int{0}
}
func (x *WalletBalanceData) GetNotes() []*BalanceEntry {
if x != nil {
return x.Notes
}
return nil
}
func (x *WalletBalanceData) GetHeight() *BlockHeight {
if x != nil {
return x.Height
}
return nil
}
func (x *WalletBalanceData) GetBlockId() *Hash {
if x != nil {
return x.BlockId
}
return nil
}
func (x *WalletBalanceData) GetPage() *PageResponse {
if x != nil {
return x.Page
}
return nil
}
type BalanceEntry struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name *Name `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Note *Note `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BalanceEntry) Reset() {
*x = BalanceEntry{}
mi := &file_blockchain_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BalanceEntry) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BalanceEntry) ProtoMessage() {}
func (x *BalanceEntry) ProtoReflect() protoreflect.Message {
mi := &file_blockchain_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 BalanceEntry.ProtoReflect.Descriptor instead.
func (*BalanceEntry) Descriptor() ([]byte, []int) {
return file_blockchain_proto_rawDescGZIP(), []int{1}
}
func (x *BalanceEntry) GetName() *Name {
if x != nil {
return x.Name
}
return nil
}
func (x *BalanceEntry) GetNote() *Note {
if x != nil {
return x.Note
}
return nil
}
// the string key is the name of the input
// message RawTransaction { map<Name, Input> inputs = 1; }
type RawTransaction struct {
state protoimpl.MessageState `protogen:"open.v1"`
NamedInputs []*NamedInput `protobuf:"bytes,1,rep,name=named_inputs,json=namedInputs,proto3" json:"named_inputs,omitempty"`
TimelockRange *TimeLockRangeAbsolute `protobuf:"bytes,2,opt,name=timelock_range,json=timelockRange,proto3" json:"timelock_range,omitempty"`
TotalFees *Nicks `protobuf:"bytes,3,opt,name=total_fees,json=totalFees,proto3" json:"total_fees,omitempty"`
Id *Hash `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RawTransaction) Reset() {
*x = RawTransaction{}
mi := &file_blockchain_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RawTransaction) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RawTransaction) ProtoMessage() {}
func (x *RawTransaction) ProtoReflect() protoreflect.Message {
mi := &file_blockchain_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 RawTransaction.ProtoReflect.Descriptor instead.
func (*RawTransaction) Descriptor() ([]byte, []int) {
return file_blockchain_proto_rawDescGZIP(), []int{2}
}
func (x *RawTransaction) GetNamedInputs() []*NamedInput {
if x != nil {
return x.NamedInputs
}
return nil
}
func (x *RawTransaction) GetTimelockRange() *TimeLockRangeAbsolute {
if x != nil {
return x.TimelockRange
}
return nil
}
func (x *RawTransaction) GetTotalFees() *Nicks {
if x != nil {
return x.TotalFees
}
return nil
}
func (x *RawTransaction) GetId() *Hash {
if x != nil {
return x.Id
}
return nil
}
type NamedInput struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name *Name `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Input *Input `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NamedInput) Reset() {
*x = NamedInput{}
mi := &file_blockchain_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NamedInput) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NamedInput) ProtoMessage() {}
func (x *NamedInput) ProtoReflect() protoreflect.Message {
mi := &file_blockchain_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 NamedInput.ProtoReflect.Descriptor instead.
func (*NamedInput) Descriptor() ([]byte, []int) {
return file_blockchain_proto_rawDescGZIP(), []int{3}
}
func (x *NamedInput) GetName() *Name {
if x != nil {
return x.Name
}
return nil
}
func (x *NamedInput) GetInput() *Input {
if x != nil {
return x.Input
}
return nil
}
type Input struct {
state protoimpl.MessageState `protogen:"open.v1"`
Note *Note `protobuf:"bytes,1,opt,name=note,proto3" json:"note,omitempty"`
Spend *Spend `protobuf:"bytes,2,opt,name=spend,proto3" json:"spend,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Input) Reset() {
*x = Input{}
mi := &file_blockchain_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Input) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Input) ProtoMessage() {}
func (x *Input) ProtoReflect() protoreflect.Message {
mi := &file_blockchain_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 Input.ProtoReflect.Descriptor instead.
func (*Input) Descriptor() ([]byte, []int) {
return file_blockchain_proto_rawDescGZIP(), []int{4}
}
func (x *Input) GetNote() *Note {
if x != nil {
return x.Note
}
return nil
}
func (x *Input) GetSpend() *Spend {
if x != nil {
return x.Spend
}
return nil
}
type Spend struct {
state protoimpl.MessageState `protogen:"open.v1"`
Signature *Signature `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
Seeds []*Seed `protobuf:"bytes,2,rep,name=seeds,proto3" json:"seeds,omitempty"`
MinerFeeNicks *Nicks `protobuf:"bytes,3,opt,name=miner_fee_nicks,json=minerFeeNicks,proto3" json:"miner_fee_nicks,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Spend) Reset() {
*x = Spend{}
mi := &file_blockchain_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Spend) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Spend) ProtoMessage() {}
func (x *Spend) ProtoReflect() protoreflect.Message {
mi := &file_blockchain_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 Spend.ProtoReflect.Descriptor instead.
func (*Spend) Descriptor() ([]byte, []int) {
return file_blockchain_proto_rawDescGZIP(), []int{5}
}
func (x *Spend) GetSignature() *Signature {
if x != nil {
return x.Signature
}
return nil
}
func (x *Spend) GetSeeds() []*Seed {
if x != nil {
return x.Seeds
}
return nil
}
func (x *Spend) GetMinerFeeNicks() *Nicks {
if x != nil {
return x.MinerFeeNicks
}
return nil
}
type Seed struct {
state protoimpl.MessageState `protogen:"open.v1"`
OutputSource *OutputSource `protobuf:"bytes,1,opt,name=output_source,json=outputSource,proto3,oneof" json:"output_source,omitempty"`
Recipient *Lock `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 *Nicks `protobuf:"bytes,4,opt,name=gift,proto3" json:"gift,omitempty"`
ParentHash *Hash `protobuf:"bytes,5,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Seed) Reset() {
*x = Seed{}
mi := &file_blockchain_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Seed) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Seed) ProtoMessage() {}
func (x *Seed) ProtoReflect() protoreflect.Message {
mi := &file_blockchain_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 Seed.ProtoReflect.Descriptor instead.
func (*Seed) Descriptor() ([]byte, []int) {
return file_blockchain_proto_rawDescGZIP(), []int{6}
}
func (x *Seed) GetOutputSource() *OutputSource {
if x != nil {
return x.OutputSource
}
return nil
}
func (x *Seed) GetRecipient() *Lock {
if x != nil {
return x.Recipient
}
return nil
}
func (x *Seed) GetTimelockIntent() *TimeLockIntent {
if x != nil {
return x.TimelockIntent
}
return nil
}
func (x *Seed) GetGift() *Nicks {
if x != nil {
return x.Gift
}
return nil
}
func (x *Seed) GetParentHash() *Hash {
if x != nil {
return x.ParentHash
}
return nil
}
type OutputSource struct {
state protoimpl.MessageState `protogen:"open.v1"`
Source *Source `protobuf:"bytes,1,opt,name=source,proto3,oneof" json:"source,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *OutputSource) Reset() {
*x = OutputSource{}
mi := &file_blockchain_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *OutputSource) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OutputSource) ProtoMessage() {}
func (x *OutputSource) ProtoReflect() protoreflect.Message {
mi := &file_blockchain_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 OutputSource.ProtoReflect.Descriptor instead.
func (*OutputSource) Descriptor() ([]byte, []int) {
return file_blockchain_proto_rawDescGZIP(), []int{7}
}
func (x *OutputSource) GetSource() *Source {
if x != nil {
return x.Source
}
return nil
}
type Source struct {
state protoimpl.MessageState `protogen:"open.v1"`
Hash *Hash `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
Coinbase bool `protobuf:"varint,2,opt,name=coinbase,proto3" json:"coinbase,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Source) Reset() {
*x = Source{}
mi := &file_blockchain_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Source) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Source) ProtoMessage() {}
func (x *Source) ProtoReflect() protoreflect.Message {
mi := &file_blockchain_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 Source.ProtoReflect.Descriptor instead.
func (*Source) Descriptor() ([]byte, []int) {
return file_blockchain_proto_rawDescGZIP(), []int{8}
}
func (x *Source) GetHash() *Hash {
if x != nil {
return x.Hash
}
return nil
}
func (x *Source) GetCoinbase() bool {
if x != nil {
return x.Coinbase
}
return false
}
type TimeLockIntent struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Value:
//
// *TimeLockIntent_Absolute
// *TimeLockIntent_Relative
// *TimeLockIntent_AbsoluteAndRelative
Value isTimeLockIntent_Value `protobuf_oneof:"value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TimeLockIntent) Reset() {
*x = TimeLockIntent{}
mi := &file_blockchain_proto_msgTypes[9]
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_blockchain_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 TimeLockIntent.ProtoReflect.Descriptor instead.
func (*TimeLockIntent) Descriptor() ([]byte, []int) {
return file_blockchain_proto_rawDescGZIP(), []int{9}
}
func (x *TimeLockIntent) GetValue() isTimeLockIntent_Value {
if x != nil {
return x.Value
}
return nil
}
func (x *TimeLockIntent) GetAbsolute() *TimeLockRangeAbsolute {
if x != nil {
if x, ok := x.Value.(*TimeLockIntent_Absolute); ok {
return x.Absolute
}
}
return nil
}
func (x *TimeLockIntent) GetRelative() *TimeLockRangeRelative {
if x != nil {
if x, ok := x.Value.(*TimeLockIntent_Relative); ok {
return x.Relative
}
}
return nil
}
func (x *TimeLockIntent) GetAbsoluteAndRelative() *TimeLockRangeAbsoluteAndRelative {
if x != nil {
if x, ok := x.Value.(*TimeLockIntent_AbsoluteAndRelative); ok {
return x.AbsoluteAndRelative
}
}
return nil
}
type isTimeLockIntent_Value interface {
isTimeLockIntent_Value()
}
type TimeLockIntent_Absolute struct {
Absolute *TimeLockRangeAbsolute `protobuf:"bytes,1,opt,name=absolute,proto3,oneof"`
}
type TimeLockIntent_Relative struct {
Relative *TimeLockRangeRelative `protobuf:"bytes,2,opt,name=relative,proto3,oneof"`
}
type TimeLockIntent_AbsoluteAndRelative struct {
AbsoluteAndRelative *TimeLockRangeAbsoluteAndRelative `protobuf:"bytes,3,opt,name=absolute_and_relative,json=absoluteAndRelative,proto3,oneof"`
}
func (*TimeLockIntent_Absolute) isTimeLockIntent_Value() {}
func (*TimeLockIntent_Relative) isTimeLockIntent_Value() {}
func (*TimeLockIntent_AbsoluteAndRelative) isTimeLockIntent_Value() {}
type TimeLockRangeAbsoluteAndRelative struct {
state protoimpl.MessageState `protogen:"open.v1"`
Absolute *TimeLockRangeAbsolute `protobuf:"bytes,1,opt,name=absolute,proto3,oneof" json:"absolute,omitempty"`
Relative *TimeLockRangeRelative `protobuf:"bytes,2,opt,name=relative,proto3,oneof" json:"relative,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TimeLockRangeAbsoluteAndRelative) Reset() {
*x = TimeLockRangeAbsoluteAndRelative{}
mi := &file_blockchain_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TimeLockRangeAbsoluteAndRelative) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TimeLockRangeAbsoluteAndRelative) ProtoMessage() {}
func (x *TimeLockRangeAbsoluteAndRelative) ProtoReflect() protoreflect.Message {
mi := &file_blockchain_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 TimeLockRangeAbsoluteAndRelative.ProtoReflect.Descriptor instead.
func (*TimeLockRangeAbsoluteAndRelative) Descriptor() ([]byte, []int) {
return file_blockchain_proto_rawDescGZIP(), []int{10}
}
func (x *TimeLockRangeAbsoluteAndRelative) GetAbsolute() *TimeLockRangeAbsolute {
if x != nil {
return x.Absolute
}
return nil
}
func (x *TimeLockRangeAbsoluteAndRelative) GetRelative() *TimeLockRangeRelative {
if x != nil {
return x.Relative
}
return nil
}
// min and max are absolute origin page numbers
type TimeLockRangeAbsolute struct {
state protoimpl.MessageState `protogen:"open.v1"`
Min *BlockHeight `protobuf:"bytes,1,opt,name=min,proto3,oneof" json:"min,omitempty"`
Max *BlockHeight `protobuf:"bytes,2,opt,name=max,proto3,oneof" json:"max,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TimeLockRangeAbsolute) Reset() {
*x = TimeLockRangeAbsolute{}
mi := &file_blockchain_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TimeLockRangeAbsolute) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TimeLockRangeAbsolute) ProtoMessage() {}
func (x *TimeLockRangeAbsolute) ProtoReflect() protoreflect.Message {
mi := &file_blockchain_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 TimeLockRangeAbsolute.ProtoReflect.Descriptor instead.
func (*TimeLockRangeAbsolute) Descriptor() ([]byte, []int) {
return file_blockchain_proto_rawDescGZIP(), []int{11}
}
func (x *TimeLockRangeAbsolute) GetMin() *BlockHeight {
if x != nil {
return x.Min
}
return nil
}
func (x *TimeLockRangeAbsolute) GetMax() *BlockHeight {
if x != nil {
return x.Max
}
return nil
}
// min and max are relative to the note's creation page
type TimeLockRangeRelative struct {
state protoimpl.MessageState `protogen:"open.v1"`
Min *BlockHeightDelta `protobuf:"bytes,1,opt,name=min,proto3,oneof" json:"min,omitempty"`
Max *BlockHeightDelta `protobuf:"bytes,2,opt,name=max,proto3,oneof" json:"max,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TimeLockRangeRelative) Reset() {
*x = TimeLockRangeRelative{}
mi := &file_blockchain_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TimeLockRangeRelative) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TimeLockRangeRelative) ProtoMessage() {}
func (x *TimeLockRangeRelative) ProtoReflect() protoreflect.Message {
mi := &file_blockchain_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 TimeLockRangeRelative.ProtoReflect.Descriptor instead.
func (*TimeLockRangeRelative) Descriptor() ([]byte, []int) {
return file_blockchain_proto_rawDescGZIP(), []int{12}
}
func (x *TimeLockRangeRelative) GetMin() *BlockHeightDelta {
if x != nil {
return x.Min
}
return nil
}
func (x *TimeLockRangeRelative) GetMax() *BlockHeightDelta {
if x != nil {
return x.Max
}
return nil
}
type Lock struct {
state protoimpl.MessageState `protogen:"open.v1"`
KeysRequired uint32 `protobuf:"varint,1,opt,name=keys_required,json=keysRequired,proto3" json:"keys_required,omitempty"` // threshold of keys required to spend the note
// DEPRECATED: repeated string schnorr_pubkeys_b58 = 2;
SchnorrPubkeys []*SchnorrPubkey `protobuf:"bytes,2,rep,name=schnorr_pubkeys,json=schnorrPubkeys,proto3" json:"schnorr_pubkeys,omitempty"` // schnorr pubkeys (curve: cheetah)
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Lock) Reset() {
*x = Lock{}
mi := &file_blockchain_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Lock) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Lock) ProtoMessage() {}
func (x *Lock) ProtoReflect() protoreflect.Message {
mi := &file_blockchain_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 Lock.ProtoReflect.Descriptor instead.
func (*Lock) Descriptor() ([]byte, []int) {
return file_blockchain_proto_rawDescGZIP(), []int{13}
}
func (x *Lock) GetKeysRequired() uint32 {
if x != nil {
return x.KeysRequired
}
return 0
}
func (x *Lock) GetSchnorrPubkeys() []*SchnorrPubkey {
if x != nil {
return x.SchnorrPubkeys
}
return nil
}
type Name struct {
state protoimpl.MessageState `protogen:"open.v1"`
// First is the hash of whether the note has a timelock and the lock
First *Hash `protobuf:"bytes,1,opt,name=first,proto3" json:"first,omitempty"`
// Last is the hash of the actual timelock and the source
Last *Hash `protobuf:"bytes,2,opt,name=last,proto3" json:"last,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Name) Reset() {
*x = Name{}
mi := &file_blockchain_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Name) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Name) ProtoMessage() {}
func (x *Name) ProtoReflect() protoreflect.Message {
mi := &file_blockchain_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 Name.ProtoReflect.Descriptor instead.
func (*Name) Descriptor() ([]byte, []int) {
return file_blockchain_proto_rawDescGZIP(), []int{14}
}
func (x *Name) GetFirst() *Hash {
if x != nil {
return x.First
}
return nil
}
func (x *Name) GetLast() *Hash {
if x != nil {
return x.Last
}
return nil
}
type Note struct {
state protoimpl.MessageState `protogen:"open.v1"`
OriginPage *BlockHeight `protobuf:"bytes,1,opt,name=origin_page,json=originPage,proto3" json:"origin_page,omitempty"` // page-number when added to balance
Timelock *TimeLockIntent `protobuf:"bytes,2,opt,name=timelock,proto3,oneof" json:"timelock,omitempty"` // enforced timelock
Name *Name `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // nname (human/name label)
Lock *Lock `protobuf:"bytes,4,opt,name=lock,proto3" json:"lock,omitempty"` // spending condition
Source *Source `protobuf:"bytes,5,opt,name=source,proto3" json:"source,omitempty"` // provenance commitment
Assets *Nicks `protobuf:"bytes,6,opt,name=assets,proto3" json:"assets,omitempty"` // coin amount (nicks)
Version *NoteVersion `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"` // note version (currently 0)
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Note) Reset() {
*x = Note{}
mi := &file_blockchain_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Note) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Note) ProtoMessage() {}
func (x *Note) ProtoReflect() protoreflect.Message {
mi := &file_blockchain_proto_msgTypes[15]
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 Note.ProtoReflect.Descriptor instead.
func (*Note) Descriptor() ([]byte, []int) {
return file_blockchain_proto_rawDescGZIP(), []int{15}
}
func (x *Note) GetOriginPage() *BlockHeight {
if x != nil {
return x.OriginPage
}
return nil
}
func (x *Note) GetTimelock() *TimeLockIntent {
if x != nil {
return x.Timelock
}
return nil
}
func (x *Note) GetName() *Name {
if x != nil {
return x.Name
}
return nil
}
func (x *Note) GetLock() *Lock {
if x != nil {
return x.Lock
}
return nil
}
func (x *Note) GetSource() *Source {
if x != nil {
return x.Source
}
return nil
}
func (x *Note) GetAssets() *Nicks {
if x != nil {
return x.Assets
}
return nil
}
func (x *Note) GetVersion() *NoteVersion {
if x != nil {
return x.Version
}
return nil
}
type Signature struct {
state protoimpl.MessageState `protogen:"open.v1"`
Entries []*SignatureEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Signature) Reset() {
*x = Signature{}
mi := &file_blockchain_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Signature) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Signature) ProtoMessage() {}
func (x *Signature) ProtoReflect() protoreflect.Message {
mi := &file_blockchain_proto_msgTypes[16]
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 Signature.ProtoReflect.Descriptor instead.
func (*Signature) Descriptor() ([]byte, []int) {
return file_blockchain_proto_rawDescGZIP(), []int{16}
}
func (x *Signature) GetEntries() []*SignatureEntry {
if x != nil {
return x.Entries
}
return nil
}
type SignatureEntry struct {
state protoimpl.MessageState `protogen:"open.v1"`
SchnorrPubkey *SchnorrPubkey `protobuf:"bytes,1,opt,name=schnorr_pubkey,json=schnorrPubkey,proto3" json:"schnorr_pubkey,omitempty"` // serialized pubkey corresponding to the signer
Signature *SchnorrSignature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SignatureEntry) Reset() {
*x = SignatureEntry{}
mi := &file_blockchain_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SignatureEntry) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SignatureEntry) ProtoMessage() {}
func (x *SignatureEntry) ProtoReflect() protoreflect.Message {
mi := &file_blockchain_proto_msgTypes[17]
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 SignatureEntry.ProtoReflect.Descriptor instead.
func (*SignatureEntry) Descriptor() ([]byte, []int) {
return file_blockchain_proto_rawDescGZIP(), []int{17}
}
func (x *SignatureEntry) GetSchnorrPubkey() *SchnorrPubkey {
if x != nil {
return x.SchnorrPubkey
}
return nil
}
func (x *SignatureEntry) GetSignature() *SchnorrSignature {
if x != nil {
return x.Signature
}
return nil
}
type SchnorrSignature struct {
state protoimpl.MessageState `protogen:"open.v1"`
Chal *EightBelt `protobuf:"bytes,1,opt,name=chal,proto3" json:"chal,omitempty"`
Sig *EightBelt `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SchnorrSignature) Reset() {
*x = SchnorrSignature{}
mi := &file_blockchain_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SchnorrSignature) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SchnorrSignature) ProtoMessage() {}
func (x *SchnorrSignature) ProtoReflect() protoreflect.Message {
mi := &file_blockchain_proto_msgTypes[18]
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 SchnorrSignature.ProtoReflect.Descriptor instead.
func (*SchnorrSignature) Descriptor() ([]byte, []int) {
return file_blockchain_proto_rawDescGZIP(), []int{18}
}
func (x *SchnorrSignature) GetChal() *EightBelt {
if x != nil {
return x.Chal
}
return nil
}
func (x *SchnorrSignature) GetSig() *EightBelt {
if x != nil {
return x.Sig
}
return nil
}
var File_blockchain_proto protoreflect.FileDescriptor
const file_blockchain_proto_rawDesc = "" +
"\n" +
"\x10blockchain.proto\x12\x13nockchain.public.v1\x1a\x10primitives.proto\x1a\x10pagination.proto\"\x85\x02\n" +
"\x11WalletBalanceData\x127\n" +
"\x05notes\x18\x01 \x03(\v2!.nockchain.public.v1.BalanceEntryR\x05notes\x128\n" +
"\x06height\x18\x02 \x01(\v2 .nockchain.public.v1.BlockHeightR\x06height\x129\n" +
"\bblock_id\x18\x03 \x01(\v2\x19.nockchain.public.v1.HashH\x00R\ablockId\x88\x01\x01\x125\n" +
"\x04page\x18\x04 \x01(\v2!.nockchain.public.v1.PageResponseR\x04pageB\v\n" +
"\t_block_id\"l\n" +
"\fBalanceEntry\x12-\n" +
"\x04name\x18\x01 \x01(\v2\x19.nockchain.public.v1.NameR\x04name\x12-\n" +
"\x04note\x18\x02 \x01(\v2\x19.nockchain.public.v1.NoteR\x04note\"\x8d\x02\n" +
"\x0eRawTransaction\x12B\n" +
"\fnamed_inputs\x18\x01 \x03(\v2\x1f.nockchain.public.v1.NamedInputR\vnamedInputs\x12Q\n" +
"\x0etimelock_range\x18\x02 \x01(\v2*.nockchain.public.v1.TimeLockRangeAbsoluteR\rtimelockRange\x129\n" +
"\n" +
"total_fees\x18\x03 \x01(\v2\x1a.nockchain.public.v1.NicksR\ttotalFees\x12)\n" +
"\x02id\x18\x04 \x01(\v2\x19.nockchain.public.v1.HashR\x02id\"m\n" +
"\n" +
"NamedInput\x12-\n" +
"\x04name\x18\x01 \x01(\v2\x19.nockchain.public.v1.NameR\x04name\x120\n" +
"\x05input\x18\x02 \x01(\v2\x1a.nockchain.public.v1.InputR\x05input\"h\n" +
"\x05Input\x12-\n" +
"\x04note\x18\x01 \x01(\v2\x19.nockchain.public.v1.NoteR\x04note\x120\n" +
"\x05spend\x18\x02 \x01(\v2\x1a.nockchain.public.v1.SpendR\x05spend\"\xba\x01\n" +
"\x05Spend\x12<\n" +
"\tsignature\x18\x01 \x01(\v2\x1e.nockchain.public.v1.SignatureR\tsignature\x12/\n" +
"\x05seeds\x18\x02 \x03(\v2\x19.nockchain.public.v1.SeedR\x05seeds\x12B\n" +
"\x0fminer_fee_nicks\x18\x03 \x01(\v2\x1a.nockchain.public.v1.NicksR\rminerFeeNicks\"\xf1\x02\n" +
"\x04Seed\x12K\n" +
"\routput_source\x18\x01 \x01(\v2!.nockchain.public.v1.OutputSourceH\x00R\foutputSource\x88\x01\x01\x127\n" +
"\trecipient\x18\x02 \x01(\v2\x19.nockchain.public.v1.LockR\trecipient\x12Q\n" +
"\x0ftimelock_intent\x18\x03 \x01(\v2#.nockchain.public.v1.TimeLockIntentH\x01R\x0etimelockIntent\x88\x01\x01\x12.\n" +
"\x04gift\x18\x04 \x01(\v2\x1a.nockchain.public.v1.NicksR\x04gift\x12:\n" +
"\vparent_hash\x18\x05 \x01(\v2\x19.nockchain.public.v1.HashR\n" +
"parentHashB\x10\n" +
"\x0e_output_sourceB\x12\n" +
"\x10_timelock_intent\"S\n" +
"\fOutputSource\x128\n" +
"\x06source\x18\x01 \x01(\v2\x1b.nockchain.public.v1.SourceH\x00R\x06source\x88\x01\x01B\t\n" +
"\a_source\"S\n" +
"\x06Source\x12-\n" +
"\x04hash\x18\x01 \x01(\v2\x19.nockchain.public.v1.HashR\x04hash\x12\x1a\n" +
"\bcoinbase\x18\x02 \x01(\bR\bcoinbase\"\x9a\x02\n" +
"\x0eTimeLockIntent\x12H\n" +
"\babsolute\x18\x01 \x01(\v2*.nockchain.public.v1.TimeLockRangeAbsoluteH\x00R\babsolute\x12H\n" +
"\brelative\x18\x02 \x01(\v2*.nockchain.public.v1.TimeLockRangeRelativeH\x00R\brelative\x12k\n" +
"\x15absolute_and_relative\x18\x03 \x01(\v25.nockchain.public.v1.TimeLockRangeAbsoluteAndRelativeH\x00R\x13absoluteAndRelativeB\a\n" +
"\x05value\"\xd6\x01\n" +
" TimeLockRangeAbsoluteAndRelative\x12K\n" +
"\babsolute\x18\x01 \x01(\v2*.nockchain.public.v1.TimeLockRangeAbsoluteH\x00R\babsolute\x88\x01\x01\x12K\n" +
"\brelative\x18\x02 \x01(\v2*.nockchain.public.v1.TimeLockRangeRelativeH\x01R\brelative\x88\x01\x01B\v\n" +
"\t_absoluteB\v\n" +
"\t_relative\"\x99\x01\n" +
"\x15TimeLockRangeAbsolute\x127\n" +
"\x03min\x18\x01 \x01(\v2 .nockchain.public.v1.BlockHeightH\x00R\x03min\x88\x01\x01\x127\n" +
"\x03max\x18\x02 \x01(\v2 .nockchain.public.v1.BlockHeightH\x01R\x03max\x88\x01\x01B\x06\n" +
"\x04_minB\x06\n" +
"\x04_max\"\xa3\x01\n" +
"\x15TimeLockRangeRelative\x12<\n" +
"\x03min\x18\x01 \x01(\v2%.nockchain.public.v1.BlockHeightDeltaH\x00R\x03min\x88\x01\x01\x12<\n" +
"\x03max\x18\x02 \x01(\v2%.nockchain.public.v1.BlockHeightDeltaH\x01R\x03max\x88\x01\x01B\x06\n" +
"\x04_minB\x06\n" +
"\x04_max\"x\n" +
"\x04Lock\x12#\n" +
"\rkeys_required\x18\x01 \x01(\rR\fkeysRequired\x12K\n" +
"\x0fschnorr_pubkeys\x18\x02 \x03(\v2\".nockchain.public.v1.SchnorrPubkeyR\x0eschnorrPubkeys\"f\n" +
"\x04Name\x12/\n" +
"\x05first\x18\x01 \x01(\v2\x19.nockchain.public.v1.HashR\x05first\x12-\n" +
"\x04last\x18\x02 \x01(\v2\x19.nockchain.public.v1.HashR\x04last\"\x9f\x03\n" +
"\x04Note\x12A\n" +
"\vorigin_page\x18\x01 \x01(\v2 .nockchain.public.v1.BlockHeightR\n" +
"originPage\x12D\n" +
"\btimelock\x18\x02 \x01(\v2#.nockchain.public.v1.TimeLockIntentH\x00R\btimelock\x88\x01\x01\x12-\n" +
"\x04name\x18\x03 \x01(\v2\x19.nockchain.public.v1.NameR\x04name\x12-\n" +
"\x04lock\x18\x04 \x01(\v2\x19.nockchain.public.v1.LockR\x04lock\x123\n" +
"\x06source\x18\x05 \x01(\v2\x1b.nockchain.public.v1.SourceR\x06source\x122\n" +
"\x06assets\x18\x06 \x01(\v2\x1a.nockchain.public.v1.NicksR\x06assets\x12:\n" +
"\aversion\x18\a \x01(\v2 .nockchain.public.v1.NoteVersionR\aversionB\v\n" +
"\t_timelock\"J\n" +
"\tSignature\x12=\n" +
"\aentries\x18\x01 \x03(\v2#.nockchain.public.v1.SignatureEntryR\aentries\"\xa0\x01\n" +
"\x0eSignatureEntry\x12I\n" +
"\x0eschnorr_pubkey\x18\x01 \x01(\v2\".nockchain.public.v1.SchnorrPubkeyR\rschnorrPubkey\x12C\n" +
"\tsignature\x18\x02 \x01(\v2%.nockchain.public.v1.SchnorrSignatureR\tsignature\"x\n" +
"\x10SchnorrSignature\x122\n" +
"\x04chal\x18\x01 \x01(\v2\x1e.nockchain.public.v1.EightBeltR\x04chal\x120\n" +
"\x03sig\x18\x02 \x01(\v2\x1e.nockchain.public.v1.EightBeltR\x03sigB\x0eZ\f./;nockchainb\x06proto3"
var (
file_blockchain_proto_rawDescOnce sync.Once
file_blockchain_proto_rawDescData []byte
)
func file_blockchain_proto_rawDescGZIP() []byte {
file_blockchain_proto_rawDescOnce.Do(func() {
file_blockchain_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_blockchain_proto_rawDesc), len(file_blockchain_proto_rawDesc)))
})
return file_blockchain_proto_rawDescData
}
var file_blockchain_proto_msgTypes = make([]protoimpl.MessageInfo, 19)
var file_blockchain_proto_goTypes = []any{
(*WalletBalanceData)(nil), // 0: nockchain.public.v1.WalletBalanceData
(*BalanceEntry)(nil), // 1: nockchain.public.v1.BalanceEntry
(*RawTransaction)(nil), // 2: nockchain.public.v1.RawTransaction
(*NamedInput)(nil), // 3: nockchain.public.v1.NamedInput
(*Input)(nil), // 4: nockchain.public.v1.Input
(*Spend)(nil), // 5: nockchain.public.v1.Spend
(*Seed)(nil), // 6: nockchain.public.v1.Seed
(*OutputSource)(nil), // 7: nockchain.public.v1.OutputSource
(*Source)(nil), // 8: nockchain.public.v1.Source
(*TimeLockIntent)(nil), // 9: nockchain.public.v1.TimeLockIntent
(*TimeLockRangeAbsoluteAndRelative)(nil), // 10: nockchain.public.v1.TimeLockRangeAbsoluteAndRelative
(*TimeLockRangeAbsolute)(nil), // 11: nockchain.public.v1.TimeLockRangeAbsolute
(*TimeLockRangeRelative)(nil), // 12: nockchain.public.v1.TimeLockRangeRelative
(*Lock)(nil), // 13: nockchain.public.v1.Lock
(*Name)(nil), // 14: nockchain.public.v1.Name
(*Note)(nil), // 15: nockchain.public.v1.Note
(*Signature)(nil), // 16: nockchain.public.v1.Signature
(*SignatureEntry)(nil), // 17: nockchain.public.v1.SignatureEntry
(*SchnorrSignature)(nil), // 18: nockchain.public.v1.SchnorrSignature
(*BlockHeight)(nil), // 19: nockchain.public.v1.BlockHeight
(*Hash)(nil), // 20: nockchain.public.v1.Hash
(*PageResponse)(nil), // 21: nockchain.public.v1.PageResponse
(*Nicks)(nil), // 22: nockchain.public.v1.Nicks
(*BlockHeightDelta)(nil), // 23: nockchain.public.v1.BlockHeightDelta
(*SchnorrPubkey)(nil), // 24: nockchain.public.v1.SchnorrPubkey
(*NoteVersion)(nil), // 25: nockchain.public.v1.NoteVersion
(*EightBelt)(nil), // 26: nockchain.public.v1.EightBelt
}
var file_blockchain_proto_depIdxs = []int32{
1, // 0: nockchain.public.v1.WalletBalanceData.notes:type_name -> nockchain.public.v1.BalanceEntry
19, // 1: nockchain.public.v1.WalletBalanceData.height:type_name -> nockchain.public.v1.BlockHeight
20, // 2: nockchain.public.v1.WalletBalanceData.block_id:type_name -> nockchain.public.v1.Hash
21, // 3: nockchain.public.v1.WalletBalanceData.page:type_name -> nockchain.public.v1.PageResponse
14, // 4: nockchain.public.v1.BalanceEntry.name:type_name -> nockchain.public.v1.Name
15, // 5: nockchain.public.v1.BalanceEntry.note:type_name -> nockchain.public.v1.Note
3, // 6: nockchain.public.v1.RawTransaction.named_inputs:type_name -> nockchain.public.v1.NamedInput
11, // 7: nockchain.public.v1.RawTransaction.timelock_range:type_name -> nockchain.public.v1.TimeLockRangeAbsolute
22, // 8: nockchain.public.v1.RawTransaction.total_fees:type_name -> nockchain.public.v1.Nicks
20, // 9: nockchain.public.v1.RawTransaction.id:type_name -> nockchain.public.v1.Hash
14, // 10: nockchain.public.v1.NamedInput.name:type_name -> nockchain.public.v1.Name
4, // 11: nockchain.public.v1.NamedInput.input:type_name -> nockchain.public.v1.Input
15, // 12: nockchain.public.v1.Input.note:type_name -> nockchain.public.v1.Note
5, // 13: nockchain.public.v1.Input.spend:type_name -> nockchain.public.v1.Spend
16, // 14: nockchain.public.v1.Spend.signature:type_name -> nockchain.public.v1.Signature
6, // 15: nockchain.public.v1.Spend.seeds:type_name -> nockchain.public.v1.Seed
22, // 16: nockchain.public.v1.Spend.miner_fee_nicks:type_name -> nockchain.public.v1.Nicks
7, // 17: nockchain.public.v1.Seed.output_source:type_name -> nockchain.public.v1.OutputSource
13, // 18: nockchain.public.v1.Seed.recipient:type_name -> nockchain.public.v1.Lock
9, // 19: nockchain.public.v1.Seed.timelock_intent:type_name -> nockchain.public.v1.TimeLockIntent
22, // 20: nockchain.public.v1.Seed.gift:type_name -> nockchain.public.v1.Nicks
20, // 21: nockchain.public.v1.Seed.parent_hash:type_name -> nockchain.public.v1.Hash
8, // 22: nockchain.public.v1.OutputSource.source:type_name -> nockchain.public.v1.Source
20, // 23: nockchain.public.v1.Source.hash:type_name -> nockchain.public.v1.Hash
11, // 24: nockchain.public.v1.TimeLockIntent.absolute:type_name -> nockchain.public.v1.TimeLockRangeAbsolute
12, // 25: nockchain.public.v1.TimeLockIntent.relative:type_name -> nockchain.public.v1.TimeLockRangeRelative
10, // 26: nockchain.public.v1.TimeLockIntent.absolute_and_relative:type_name -> nockchain.public.v1.TimeLockRangeAbsoluteAndRelative
11, // 27: nockchain.public.v1.TimeLockRangeAbsoluteAndRelative.absolute:type_name -> nockchain.public.v1.TimeLockRangeAbsolute
12, // 28: nockchain.public.v1.TimeLockRangeAbsoluteAndRelative.relative:type_name -> nockchain.public.v1.TimeLockRangeRelative
19, // 29: nockchain.public.v1.TimeLockRangeAbsolute.min:type_name -> nockchain.public.v1.BlockHeight
19, // 30: nockchain.public.v1.TimeLockRangeAbsolute.max:type_name -> nockchain.public.v1.BlockHeight
23, // 31: nockchain.public.v1.TimeLockRangeRelative.min:type_name -> nockchain.public.v1.BlockHeightDelta
23, // 32: nockchain.public.v1.TimeLockRangeRelative.max:type_name -> nockchain.public.v1.BlockHeightDelta
24, // 33: nockchain.public.v1.Lock.schnorr_pubkeys:type_name -> nockchain.public.v1.SchnorrPubkey
20, // 34: nockchain.public.v1.Name.first:type_name -> nockchain.public.v1.Hash
20, // 35: nockchain.public.v1.Name.last:type_name -> nockchain.public.v1.Hash
19, // 36: nockchain.public.v1.Note.origin_page:type_name -> nockchain.public.v1.BlockHeight
9, // 37: nockchain.public.v1.Note.timelock:type_name -> nockchain.public.v1.TimeLockIntent
14, // 38: nockchain.public.v1.Note.name:type_name -> nockchain.public.v1.Name
13, // 39: nockchain.public.v1.Note.lock:type_name -> nockchain.public.v1.Lock
8, // 40: nockchain.public.v1.Note.source:type_name -> nockchain.public.v1.Source
22, // 41: nockchain.public.v1.Note.assets:type_name -> nockchain.public.v1.Nicks
25, // 42: nockchain.public.v1.Note.version:type_name -> nockchain.public.v1.NoteVersion
17, // 43: nockchain.public.v1.Signature.entries:type_name -> nockchain.public.v1.SignatureEntry
24, // 44: nockchain.public.v1.SignatureEntry.schnorr_pubkey:type_name -> nockchain.public.v1.SchnorrPubkey
18, // 45: nockchain.public.v1.SignatureEntry.signature:type_name -> nockchain.public.v1.SchnorrSignature
26, // 46: nockchain.public.v1.SchnorrSignature.chal:type_name -> nockchain.public.v1.EightBelt
26, // 47: nockchain.public.v1.SchnorrSignature.sig:type_name -> nockchain.public.v1.EightBelt
48, // [48:48] is the sub-list for method output_type
48, // [48:48] is the sub-list for method input_type
48, // [48:48] is the sub-list for extension type_name
48, // [48:48] is the sub-list for extension extendee
0, // [0:48] is the sub-list for field type_name
}
func init() { file_blockchain_proto_init() }
func file_blockchain_proto_init() {
if File_blockchain_proto != nil {
return
}
file_primitives_proto_init()
file_pagination_proto_init()
file_blockchain_proto_msgTypes[0].OneofWrappers = []any{}
file_blockchain_proto_msgTypes[6].OneofWrappers = []any{}
file_blockchain_proto_msgTypes[7].OneofWrappers = []any{}
file_blockchain_proto_msgTypes[9].OneofWrappers = []any{
(*TimeLockIntent_Absolute)(nil),
(*TimeLockIntent_Relative)(nil),
(*TimeLockIntent_AbsoluteAndRelative)(nil),
}
file_blockchain_proto_msgTypes[10].OneofWrappers = []any{}
file_blockchain_proto_msgTypes[11].OneofWrappers = []any{}
file_blockchain_proto_msgTypes[12].OneofWrappers = []any{}
file_blockchain_proto_msgTypes[15].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_blockchain_proto_rawDesc), len(file_blockchain_proto_rawDesc)),
NumEnums: 0,
NumMessages: 19,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_blockchain_proto_goTypes,
DependencyIndexes: file_blockchain_proto_depIdxs,
MessageInfos: file_blockchain_proto_msgTypes,
}.Build()
File_blockchain_proto = out.File
file_blockchain_proto_goTypes = nil
file_blockchain_proto_depIdxs = nil
}