recompile protos
This commit is contained in:
parent
e7e9530349
commit
4c9e75e28f
|
@ -623,7 +623,7 @@ func (s *lwdStreamer) GetMempoolTx(exclude *walletrpc.Exclude, resp walletrpc.Co
|
||||||
return errors.New("extra data deserializing transaction")
|
return errors.New("extra data deserializing transaction")
|
||||||
}
|
}
|
||||||
newmempoolMap[txidstr] = &walletrpc.CompactTx{}
|
newmempoolMap[txidstr] = &walletrpc.CompactTx{}
|
||||||
if tx.HasSaplingElements() {
|
if tx.HasShieldedElements() {
|
||||||
newmempoolMap[txidstr] = tx.ToCompact( /* height */ 0)
|
newmempoolMap[txidstr] = tx.ToCompact( /* height */ 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,124 +1,112 @@
|
||||||
// Copyright (c) 2019-2020 The Zcash developers
|
|
||||||
// Distributed under the MIT software license, see the accompanying
|
|
||||||
// file COPYING or https://www.opensource.org/licenses/mit-license.php .
|
|
||||||
|
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
|
||||||
// protoc-gen-go v1.26.0
|
|
||||||
// protoc v3.6.1
|
|
||||||
// source: compact_formats.proto
|
// source: compact_formats.proto
|
||||||
|
|
||||||
package walletrpc
|
package walletrpc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
fmt "fmt"
|
||||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
proto "github.com/golang/protobuf/proto"
|
||||||
reflect "reflect"
|
math "math"
|
||||||
sync "sync"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
// Reference imports to suppress errors if they are not otherwise used.
|
||||||
// Verify that this generated code is sufficiently up-to-date.
|
var _ = proto.Marshal
|
||||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
var _ = fmt.Errorf
|
||||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
var _ = math.Inf
|
||||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
||||||
)
|
// This is a compile-time assertion to ensure that this generated file
|
||||||
|
// is compatible with the proto package it is being compiled against.
|
||||||
|
// A compilation error at this line likely means your copy of the
|
||||||
|
// proto package needs to be updated.
|
||||||
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||||
|
|
||||||
// CompactBlock is a packaging of ONLY the data from a block that's needed to:
|
// CompactBlock is a packaging of ONLY the data from a block that's needed to:
|
||||||
// 1. Detect a payment to your shielded Sapling address
|
// 1. Detect a payment to your shielded Sapling address
|
||||||
// 2. Detect a spend of your shielded Sapling notes
|
// 2. Detect a spend of your shielded Sapling notes
|
||||||
// 3. Update your witnesses to generate new Sapling spend proofs.
|
// 3. Update your witnesses to generate new Sapling spend proofs.
|
||||||
type CompactBlock struct {
|
type CompactBlock struct {
|
||||||
state protoimpl.MessageState
|
ProtoVersion uint32 `protobuf:"varint,1,opt,name=protoVersion,proto3" json:"protoVersion,omitempty"`
|
||||||
sizeCache protoimpl.SizeCache
|
Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
Hash []byte `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
|
||||||
|
PrevHash []byte `protobuf:"bytes,4,opt,name=prevHash,proto3" json:"prevHash,omitempty"`
|
||||||
ProtoVersion uint32 `protobuf:"varint,1,opt,name=protoVersion,proto3" json:"protoVersion,omitempty"` // the version of this wire format, for storage
|
Time uint32 `protobuf:"varint,5,opt,name=time,proto3" json:"time,omitempty"`
|
||||||
Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` // the height of this block
|
Header []byte `protobuf:"bytes,6,opt,name=header,proto3" json:"header,omitempty"`
|
||||||
Hash []byte `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` // the ID (hash) of this block, same as in block explorers
|
Vtx []*CompactTx `protobuf:"bytes,7,rep,name=vtx,proto3" json:"vtx,omitempty"`
|
||||||
PrevHash []byte `protobuf:"bytes,4,opt,name=prevHash,proto3" json:"prevHash,omitempty"` // the ID (hash) of this block's predecessor
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
Time uint32 `protobuf:"varint,5,opt,name=time,proto3" json:"time,omitempty"` // Unix epoch time when the block was mined
|
XXX_unrecognized []byte `json:"-"`
|
||||||
Header []byte `protobuf:"bytes,6,opt,name=header,proto3" json:"header,omitempty"` // (hash, prevHash, and time) OR (full header)
|
XXX_sizecache int32 `json:"-"`
|
||||||
Vtx []*CompactTx `protobuf:"bytes,7,rep,name=vtx,proto3" json:"vtx,omitempty"` // zero or more compact transactions from this block
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *CompactBlock) Reset() {
|
|
||||||
*x = CompactBlock{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_compact_formats_proto_msgTypes[0]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *CompactBlock) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *CompactBlock) Reset() { *m = CompactBlock{} }
|
||||||
|
func (m *CompactBlock) String() string { return proto.CompactTextString(m) }
|
||||||
func (*CompactBlock) ProtoMessage() {}
|
func (*CompactBlock) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *CompactBlock) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_compact_formats_proto_msgTypes[0]
|
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use CompactBlock.ProtoReflect.Descriptor instead.
|
|
||||||
func (*CompactBlock) Descriptor() ([]byte, []int) {
|
func (*CompactBlock) Descriptor() ([]byte, []int) {
|
||||||
return file_compact_formats_proto_rawDescGZIP(), []int{0}
|
return fileDescriptor_dce29fee3ee34899, []int{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactBlock) GetProtoVersion() uint32 {
|
func (m *CompactBlock) XXX_Unmarshal(b []byte) error {
|
||||||
if x != nil {
|
return xxx_messageInfo_CompactBlock.Unmarshal(m, b)
|
||||||
return x.ProtoVersion
|
}
|
||||||
|
func (m *CompactBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
return xxx_messageInfo_CompactBlock.Marshal(b, m, deterministic)
|
||||||
|
}
|
||||||
|
func (m *CompactBlock) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_CompactBlock.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *CompactBlock) XXX_Size() int {
|
||||||
|
return xxx_messageInfo_CompactBlock.Size(m)
|
||||||
|
}
|
||||||
|
func (m *CompactBlock) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_CompactBlock.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_CompactBlock proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *CompactBlock) GetProtoVersion() uint32 {
|
||||||
|
if m != nil {
|
||||||
|
return m.ProtoVersion
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactBlock) GetHeight() uint64 {
|
func (m *CompactBlock) GetHeight() uint64 {
|
||||||
if x != nil {
|
if m != nil {
|
||||||
return x.Height
|
return m.Height
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactBlock) GetHash() []byte {
|
func (m *CompactBlock) GetHash() []byte {
|
||||||
if x != nil {
|
if m != nil {
|
||||||
return x.Hash
|
return m.Hash
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactBlock) GetPrevHash() []byte {
|
func (m *CompactBlock) GetPrevHash() []byte {
|
||||||
if x != nil {
|
if m != nil {
|
||||||
return x.PrevHash
|
return m.PrevHash
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactBlock) GetTime() uint32 {
|
func (m *CompactBlock) GetTime() uint32 {
|
||||||
if x != nil {
|
if m != nil {
|
||||||
return x.Time
|
return m.Time
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactBlock) GetHeader() []byte {
|
func (m *CompactBlock) GetHeader() []byte {
|
||||||
if x != nil {
|
if m != nil {
|
||||||
return x.Header
|
return m.Header
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactBlock) GetVtx() []*CompactTx {
|
func (m *CompactBlock) GetVtx() []*CompactTx {
|
||||||
if x != nil {
|
if m != nil {
|
||||||
return x.Vtx
|
return m.Vtx
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -127,93 +115,85 @@ func (x *CompactBlock) GetVtx() []*CompactTx {
|
||||||
// is relevant to it (either pays to it or spends from it) via shielded elements
|
// is relevant to it (either pays to it or spends from it) via shielded elements
|
||||||
// only. This message will not encode a transparent-to-transparent transaction.
|
// only. This message will not encode a transparent-to-transparent transaction.
|
||||||
type CompactTx struct {
|
type CompactTx struct {
|
||||||
state protoimpl.MessageState
|
Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
|
||||||
sizeCache protoimpl.SizeCache
|
Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // the index within the full block
|
|
||||||
Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` // the ID (hash) of this transaction, same as in block explorers
|
|
||||||
// The transaction fee: present if server can provide. In the case of a
|
// The transaction fee: present if server can provide. In the case of a
|
||||||
// stateless server and a transaction with transparent inputs, this will be
|
// stateless server and a transaction with transparent inputs, this will be
|
||||||
// unset because the calculation requires reference to prior transactions.
|
// unset because the calculation requires reference to prior transactions.
|
||||||
// in a pure-Sapling context, the fee will be calculable as:
|
// in a pure-Sapling context, the fee will be calculable as:
|
||||||
// valueBalance + (sum(vPubNew) - sum(vPubOld) - sum(tOut))
|
// valueBalance + (sum(vPubNew) - sum(vPubOld) - sum(tOut))
|
||||||
Fee uint32 `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"`
|
Fee uint32 `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"`
|
||||||
Spends []*CompactSaplingSpend `protobuf:"bytes,4,rep,name=spends,proto3" json:"spends,omitempty"` // inputs
|
Spends []*CompactSaplingSpend `protobuf:"bytes,4,rep,name=spends,proto3" json:"spends,omitempty"`
|
||||||
Outputs []*CompactSaplingOutput `protobuf:"bytes,5,rep,name=outputs,proto3" json:"outputs,omitempty"` // outputs
|
Outputs []*CompactSaplingOutput `protobuf:"bytes,5,rep,name=outputs,proto3" json:"outputs,omitempty"`
|
||||||
Actions []*CompactOrchardAction `protobuf:"bytes,6,rep,name=actions,proto3" json:"actions,omitempty"`
|
Actions []*CompactOrchardAction `protobuf:"bytes,6,rep,name=actions,proto3" json:"actions,omitempty"`
|
||||||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
|
XXX_unrecognized []byte `json:"-"`
|
||||||
|
XXX_sizecache int32 `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactTx) Reset() {
|
func (m *CompactTx) Reset() { *m = CompactTx{} }
|
||||||
*x = CompactTx{}
|
func (m *CompactTx) String() string { return proto.CompactTextString(m) }
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_compact_formats_proto_msgTypes[1]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *CompactTx) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*CompactTx) ProtoMessage() {}
|
func (*CompactTx) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *CompactTx) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_compact_formats_proto_msgTypes[1]
|
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use CompactTx.ProtoReflect.Descriptor instead.
|
|
||||||
func (*CompactTx) Descriptor() ([]byte, []int) {
|
func (*CompactTx) Descriptor() ([]byte, []int) {
|
||||||
return file_compact_formats_proto_rawDescGZIP(), []int{1}
|
return fileDescriptor_dce29fee3ee34899, []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactTx) GetIndex() uint64 {
|
func (m *CompactTx) XXX_Unmarshal(b []byte) error {
|
||||||
if x != nil {
|
return xxx_messageInfo_CompactTx.Unmarshal(m, b)
|
||||||
return x.Index
|
}
|
||||||
|
func (m *CompactTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
return xxx_messageInfo_CompactTx.Marshal(b, m, deterministic)
|
||||||
|
}
|
||||||
|
func (m *CompactTx) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_CompactTx.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *CompactTx) XXX_Size() int {
|
||||||
|
return xxx_messageInfo_CompactTx.Size(m)
|
||||||
|
}
|
||||||
|
func (m *CompactTx) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_CompactTx.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_CompactTx proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *CompactTx) GetIndex() uint64 {
|
||||||
|
if m != nil {
|
||||||
|
return m.Index
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactTx) GetHash() []byte {
|
func (m *CompactTx) GetHash() []byte {
|
||||||
if x != nil {
|
if m != nil {
|
||||||
return x.Hash
|
return m.Hash
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactTx) GetFee() uint32 {
|
func (m *CompactTx) GetFee() uint32 {
|
||||||
if x != nil {
|
if m != nil {
|
||||||
return x.Fee
|
return m.Fee
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactTx) GetSpends() []*CompactSaplingSpend {
|
func (m *CompactTx) GetSpends() []*CompactSaplingSpend {
|
||||||
if x != nil {
|
if m != nil {
|
||||||
return x.Spends
|
return m.Spends
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactTx) GetOutputs() []*CompactSaplingOutput {
|
func (m *CompactTx) GetOutputs() []*CompactSaplingOutput {
|
||||||
if x != nil {
|
if m != nil {
|
||||||
return x.Outputs
|
return m.Outputs
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactTx) GetActions() []*CompactOrchardAction {
|
func (m *CompactTx) GetActions() []*CompactOrchardAction {
|
||||||
if x != nil {
|
if m != nil {
|
||||||
return x.Actions
|
return m.Actions
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -221,48 +201,40 @@ func (x *CompactTx) GetActions() []*CompactOrchardAction {
|
||||||
// CompactSaplingSpend is a Sapling Spend Description as described in 7.3 of the Zcash
|
// CompactSaplingSpend is a Sapling Spend Description as described in 7.3 of the Zcash
|
||||||
// protocol specification.
|
// protocol specification.
|
||||||
type CompactSaplingSpend struct {
|
type CompactSaplingSpend struct {
|
||||||
state protoimpl.MessageState
|
Nf []byte `protobuf:"bytes,1,opt,name=nf,proto3" json:"nf,omitempty"`
|
||||||
sizeCache protoimpl.SizeCache
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
unknownFields protoimpl.UnknownFields
|
XXX_unrecognized []byte `json:"-"`
|
||||||
|
XXX_sizecache int32 `json:"-"`
|
||||||
Nf []byte `protobuf:"bytes,1,opt,name=nf,proto3" json:"nf,omitempty"` // nullifier (see the Zcash protocol specification)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *CompactSaplingSpend) Reset() {
|
|
||||||
*x = CompactSaplingSpend{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_compact_formats_proto_msgTypes[2]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *CompactSaplingSpend) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *CompactSaplingSpend) Reset() { *m = CompactSaplingSpend{} }
|
||||||
|
func (m *CompactSaplingSpend) String() string { return proto.CompactTextString(m) }
|
||||||
func (*CompactSaplingSpend) ProtoMessage() {}
|
func (*CompactSaplingSpend) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *CompactSaplingSpend) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_compact_formats_proto_msgTypes[2]
|
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use CompactSaplingSpend.ProtoReflect.Descriptor instead.
|
|
||||||
func (*CompactSaplingSpend) Descriptor() ([]byte, []int) {
|
func (*CompactSaplingSpend) Descriptor() ([]byte, []int) {
|
||||||
return file_compact_formats_proto_rawDescGZIP(), []int{2}
|
return fileDescriptor_dce29fee3ee34899, []int{2}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactSaplingSpend) GetNf() []byte {
|
func (m *CompactSaplingSpend) XXX_Unmarshal(b []byte) error {
|
||||||
if x != nil {
|
return xxx_messageInfo_CompactSaplingSpend.Unmarshal(m, b)
|
||||||
return x.Nf
|
}
|
||||||
|
func (m *CompactSaplingSpend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
return xxx_messageInfo_CompactSaplingSpend.Marshal(b, m, deterministic)
|
||||||
|
}
|
||||||
|
func (m *CompactSaplingSpend) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_CompactSaplingSpend.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *CompactSaplingSpend) XXX_Size() int {
|
||||||
|
return xxx_messageInfo_CompactSaplingSpend.Size(m)
|
||||||
|
}
|
||||||
|
func (m *CompactSaplingSpend) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_CompactSaplingSpend.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_CompactSaplingSpend proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *CompactSaplingSpend) GetNf() []byte {
|
||||||
|
if m != nil {
|
||||||
|
return m.Nf
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -270,64 +242,56 @@ func (x *CompactSaplingSpend) GetNf() []byte {
|
||||||
// output is a Sapling Output Description as described in section 7.4 of the
|
// output is a Sapling Output Description as described in section 7.4 of the
|
||||||
// Zcash protocol spec. Total size is 948.
|
// Zcash protocol spec. Total size is 948.
|
||||||
type CompactSaplingOutput struct {
|
type CompactSaplingOutput struct {
|
||||||
state protoimpl.MessageState
|
Cmu []byte `protobuf:"bytes,1,opt,name=cmu,proto3" json:"cmu,omitempty"`
|
||||||
sizeCache protoimpl.SizeCache
|
Epk []byte `protobuf:"bytes,2,opt,name=epk,proto3" json:"epk,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
Ciphertext []byte `protobuf:"bytes,3,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"`
|
||||||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
Cmu []byte `protobuf:"bytes,1,opt,name=cmu,proto3" json:"cmu,omitempty"` // note commitment u-coordinate
|
XXX_unrecognized []byte `json:"-"`
|
||||||
Epk []byte `protobuf:"bytes,2,opt,name=epk,proto3" json:"epk,omitempty"` // ephemeral public key
|
XXX_sizecache int32 `json:"-"`
|
||||||
Ciphertext []byte `protobuf:"bytes,3,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"` // first 52 bytes of ciphertext
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *CompactSaplingOutput) Reset() {
|
|
||||||
*x = CompactSaplingOutput{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_compact_formats_proto_msgTypes[3]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *CompactSaplingOutput) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *CompactSaplingOutput) Reset() { *m = CompactSaplingOutput{} }
|
||||||
|
func (m *CompactSaplingOutput) String() string { return proto.CompactTextString(m) }
|
||||||
func (*CompactSaplingOutput) ProtoMessage() {}
|
func (*CompactSaplingOutput) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *CompactSaplingOutput) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_compact_formats_proto_msgTypes[3]
|
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use CompactSaplingOutput.ProtoReflect.Descriptor instead.
|
|
||||||
func (*CompactSaplingOutput) Descriptor() ([]byte, []int) {
|
func (*CompactSaplingOutput) Descriptor() ([]byte, []int) {
|
||||||
return file_compact_formats_proto_rawDescGZIP(), []int{3}
|
return fileDescriptor_dce29fee3ee34899, []int{3}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactSaplingOutput) GetCmu() []byte {
|
func (m *CompactSaplingOutput) XXX_Unmarshal(b []byte) error {
|
||||||
if x != nil {
|
return xxx_messageInfo_CompactSaplingOutput.Unmarshal(m, b)
|
||||||
return x.Cmu
|
}
|
||||||
|
func (m *CompactSaplingOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
return xxx_messageInfo_CompactSaplingOutput.Marshal(b, m, deterministic)
|
||||||
|
}
|
||||||
|
func (m *CompactSaplingOutput) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_CompactSaplingOutput.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *CompactSaplingOutput) XXX_Size() int {
|
||||||
|
return xxx_messageInfo_CompactSaplingOutput.Size(m)
|
||||||
|
}
|
||||||
|
func (m *CompactSaplingOutput) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_CompactSaplingOutput.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_CompactSaplingOutput proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *CompactSaplingOutput) GetCmu() []byte {
|
||||||
|
if m != nil {
|
||||||
|
return m.Cmu
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactSaplingOutput) GetEpk() []byte {
|
func (m *CompactSaplingOutput) GetEpk() []byte {
|
||||||
if x != nil {
|
if m != nil {
|
||||||
return x.Epk
|
return m.Epk
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactSaplingOutput) GetCiphertext() []byte {
|
func (m *CompactSaplingOutput) GetCiphertext() []byte {
|
||||||
if x != nil {
|
if m != nil {
|
||||||
return x.Ciphertext
|
return m.Ciphertext
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -335,250 +299,106 @@ func (x *CompactSaplingOutput) GetCiphertext() []byte {
|
||||||
// https://github.com/zcash/zips/blob/main/zip-0225.rst#orchard-action-description-orchardaction
|
// https://github.com/zcash/zips/blob/main/zip-0225.rst#orchard-action-description-orchardaction
|
||||||
// (but not all fields are needed)
|
// (but not all fields are needed)
|
||||||
type CompactOrchardAction struct {
|
type CompactOrchardAction struct {
|
||||||
state protoimpl.MessageState
|
Nullifier []byte `protobuf:"bytes,1,opt,name=nullifier,proto3" json:"nullifier,omitempty"`
|
||||||
sizeCache protoimpl.SizeCache
|
Cmx []byte `protobuf:"bytes,2,opt,name=cmx,proto3" json:"cmx,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
EphemeralKey []byte `protobuf:"bytes,3,opt,name=ephemeralKey,proto3" json:"ephemeralKey,omitempty"`
|
||||||
|
Ciphertext []byte `protobuf:"bytes,4,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"`
|
||||||
Nullifier []byte `protobuf:"bytes,1,opt,name=nullifier,proto3" json:"nullifier,omitempty"` // [32] The nullifier of the input note
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
Cmx []byte `protobuf:"bytes,2,opt,name=cmx,proto3" json:"cmx,omitempty"` // [32] The x-coordinate of the note commitment for the output note
|
XXX_unrecognized []byte `json:"-"`
|
||||||
EphemeralKey []byte `protobuf:"bytes,3,opt,name=ephemeralKey,proto3" json:"ephemeralKey,omitempty"` // [32] An encoding of an ephemeral Pallas public key
|
XXX_sizecache int32 `json:"-"`
|
||||||
Ciphertext []byte `protobuf:"bytes,4,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"` // [52] The note plaintext component of the encCiphertext field
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *CompactOrchardAction) Reset() {
|
|
||||||
*x = CompactOrchardAction{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_compact_formats_proto_msgTypes[4]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *CompactOrchardAction) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *CompactOrchardAction) Reset() { *m = CompactOrchardAction{} }
|
||||||
|
func (m *CompactOrchardAction) String() string { return proto.CompactTextString(m) }
|
||||||
func (*CompactOrchardAction) ProtoMessage() {}
|
func (*CompactOrchardAction) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *CompactOrchardAction) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_compact_formats_proto_msgTypes[4]
|
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use CompactOrchardAction.ProtoReflect.Descriptor instead.
|
|
||||||
func (*CompactOrchardAction) Descriptor() ([]byte, []int) {
|
func (*CompactOrchardAction) Descriptor() ([]byte, []int) {
|
||||||
return file_compact_formats_proto_rawDescGZIP(), []int{4}
|
return fileDescriptor_dce29fee3ee34899, []int{4}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactOrchardAction) GetNullifier() []byte {
|
func (m *CompactOrchardAction) XXX_Unmarshal(b []byte) error {
|
||||||
if x != nil {
|
return xxx_messageInfo_CompactOrchardAction.Unmarshal(m, b)
|
||||||
return x.Nullifier
|
}
|
||||||
|
func (m *CompactOrchardAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
return xxx_messageInfo_CompactOrchardAction.Marshal(b, m, deterministic)
|
||||||
|
}
|
||||||
|
func (m *CompactOrchardAction) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_CompactOrchardAction.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *CompactOrchardAction) XXX_Size() int {
|
||||||
|
return xxx_messageInfo_CompactOrchardAction.Size(m)
|
||||||
|
}
|
||||||
|
func (m *CompactOrchardAction) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_CompactOrchardAction.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_CompactOrchardAction proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *CompactOrchardAction) GetNullifier() []byte {
|
||||||
|
if m != nil {
|
||||||
|
return m.Nullifier
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactOrchardAction) GetCmx() []byte {
|
func (m *CompactOrchardAction) GetCmx() []byte {
|
||||||
if x != nil {
|
if m != nil {
|
||||||
return x.Cmx
|
return m.Cmx
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactOrchardAction) GetEphemeralKey() []byte {
|
func (m *CompactOrchardAction) GetEphemeralKey() []byte {
|
||||||
if x != nil {
|
if m != nil {
|
||||||
return x.EphemeralKey
|
return m.EphemeralKey
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CompactOrchardAction) GetCiphertext() []byte {
|
func (m *CompactOrchardAction) GetCiphertext() []byte {
|
||||||
if x != nil {
|
if m != nil {
|
||||||
return x.Ciphertext
|
return m.Ciphertext
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var File_compact_formats_proto protoreflect.FileDescriptor
|
func init() {
|
||||||
|
proto.RegisterType((*CompactBlock)(nil), "cash.z.wallet.sdk.rpc.CompactBlock")
|
||||||
var file_compact_formats_proto_rawDesc = []byte{
|
proto.RegisterType((*CompactTx)(nil), "cash.z.wallet.sdk.rpc.CompactTx")
|
||||||
0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74,
|
proto.RegisterType((*CompactSaplingSpend)(nil), "cash.z.wallet.sdk.rpc.CompactSaplingSpend")
|
||||||
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x63, 0x61, 0x73, 0x68, 0x2e, 0x7a, 0x2e,
|
proto.RegisterType((*CompactSaplingOutput)(nil), "cash.z.wallet.sdk.rpc.CompactSaplingOutput")
|
||||||
0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63, 0x22, 0xda,
|
proto.RegisterType((*CompactOrchardAction)(nil), "cash.z.wallet.sdk.rpc.CompactOrchardAction")
|
||||||
0x01, 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12,
|
|
||||||
0x22, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18,
|
|
||||||
0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x56, 0x65, 0x72, 0x73,
|
|
||||||
0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20,
|
|
||||||
0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68,
|
|
||||||
0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12,
|
|
||||||
0x1a, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x76, 0x48, 0x61, 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28,
|
|
||||||
0x0c, 0x52, 0x08, 0x70, 0x72, 0x65, 0x76, 0x48, 0x61, 0x73, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x74,
|
|
||||||
0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12,
|
|
||||||
0x16, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52,
|
|
||||||
0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x03, 0x76, 0x74, 0x78, 0x18, 0x07,
|
|
||||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x61, 0x73, 0x68, 0x2e, 0x7a, 0x2e, 0x77, 0x61,
|
|
||||||
0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6d,
|
|
||||||
0x70, 0x61, 0x63, 0x74, 0x54, 0x78, 0x52, 0x03, 0x76, 0x74, 0x78, 0x22, 0x99, 0x02, 0x0a, 0x09,
|
|
||||||
0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x54, 0x78, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64,
|
|
||||||
0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12,
|
|
||||||
0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68,
|
|
||||||
0x61, 0x73, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d,
|
|
||||||
0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x42, 0x0a, 0x06, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x73, 0x18,
|
|
||||||
0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x61, 0x73, 0x68, 0x2e, 0x7a, 0x2e, 0x77,
|
|
||||||
0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f,
|
|
||||||
0x6d, 0x70, 0x61, 0x63, 0x74, 0x53, 0x61, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x70, 0x65, 0x6e,
|
|
||||||
0x64, 0x52, 0x06, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x73, 0x12, 0x45, 0x0a, 0x07, 0x6f, 0x75, 0x74,
|
|
||||||
0x70, 0x75, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x63, 0x61, 0x73,
|
|
||||||
0x68, 0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72,
|
|
||||||
0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x53, 0x61, 0x70, 0x6c, 0x69, 0x6e,
|
|
||||||
0x67, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73,
|
|
||||||
0x12, 0x45, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28,
|
|
||||||
0x0b, 0x32, 0x2b, 0x2e, 0x63, 0x61, 0x73, 0x68, 0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65,
|
|
||||||
0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63,
|
|
||||||
0x74, 0x4f, 0x72, 0x63, 0x68, 0x61, 0x72, 0x64, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07,
|
|
||||||
0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x25, 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x70, 0x61,
|
|
||||||
0x63, 0x74, 0x53, 0x61, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x70, 0x65, 0x6e, 0x64, 0x12, 0x0e,
|
|
||||||
0x0a, 0x02, 0x6e, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x6e, 0x66, 0x22, 0x5a,
|
|
||||||
0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x53, 0x61, 0x70, 0x6c, 0x69, 0x6e, 0x67,
|
|
||||||
0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x6d, 0x75, 0x18, 0x01, 0x20,
|
|
||||||
0x01, 0x28, 0x0c, 0x52, 0x03, 0x63, 0x6d, 0x75, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x70, 0x6b, 0x18,
|
|
||||||
0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x65, 0x70, 0x6b, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x69,
|
|
||||||
0x70, 0x68, 0x65, 0x72, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a,
|
|
||||||
0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x74, 0x65, 0x78, 0x74, 0x22, 0x8a, 0x01, 0x0a, 0x14, 0x43,
|
|
||||||
0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x4f, 0x72, 0x63, 0x68, 0x61, 0x72, 0x64, 0x41, 0x63, 0x74,
|
|
||||||
0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x75, 0x6c, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x72,
|
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x6e, 0x75, 0x6c, 0x6c, 0x69, 0x66, 0x69, 0x65,
|
|
||||||
0x72, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x6d, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03,
|
|
||||||
0x63, 0x6d, 0x78, 0x12, 0x22, 0x0a, 0x0c, 0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c,
|
|
||||||
0x4b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x65, 0x70, 0x68, 0x65, 0x6d,
|
|
||||||
0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x69, 0x70, 0x68, 0x65,
|
|
||||||
0x72, 0x74, 0x65, 0x78, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x69, 0x70,
|
|
||||||
0x68, 0x65, 0x72, 0x74, 0x65, 0x78, 0x74, 0x42, 0x1b, 0x5a, 0x16, 0x6c, 0x69, 0x67, 0x68, 0x74,
|
|
||||||
0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x64, 0x2f, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x72, 0x70,
|
|
||||||
0x63, 0xba, 0x02, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
func init() { proto.RegisterFile("compact_formats.proto", fileDescriptor_dce29fee3ee34899) }
|
||||||
file_compact_formats_proto_rawDescOnce sync.Once
|
|
||||||
file_compact_formats_proto_rawDescData = file_compact_formats_proto_rawDesc
|
|
||||||
)
|
|
||||||
|
|
||||||
func file_compact_formats_proto_rawDescGZIP() []byte {
|
var fileDescriptor_dce29fee3ee34899 = []byte{
|
||||||
file_compact_formats_proto_rawDescOnce.Do(func() {
|
// 440 bytes of a gzipped FileDescriptorProto
|
||||||
file_compact_formats_proto_rawDescData = protoimpl.X.CompressGZIP(file_compact_formats_proto_rawDescData)
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xdd, 0x6a, 0x14, 0x31,
|
||||||
})
|
0x14, 0x76, 0x66, 0x67, 0xa7, 0xf6, 0xb8, 0x15, 0x89, 0x6d, 0x09, 0x2a, 0x32, 0x0c, 0x08, 0x8b,
|
||||||
return file_compact_formats_proto_rawDescData
|
0xc2, 0x08, 0xf5, 0x09, 0x5c, 0x11, 0x04, 0x2f, 0x0a, 0xa9, 0x78, 0xd1, 0x1b, 0x89, 0x99, 0x33,
|
||||||
}
|
0x9d, 0xb0, 0xf3, 0x13, 0x92, 0x6c, 0x1d, 0x7d, 0x04, 0xdf, 0xc0, 0x57, 0xf1, 0x51, 0x7c, 0x1a,
|
||||||
|
0x49, 0x26, 0x3b, 0x76, 0xcb, 0x22, 0xbd, 0xca, 0xc9, 0xc7, 0xf9, 0x7e, 0xce, 0xe1, 0xc0, 0x89,
|
||||||
var file_compact_formats_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
0xe8, 0x5b, 0xc5, 0x85, 0xfd, 0x52, 0xf5, 0xba, 0xe5, 0xd6, 0x14, 0x4a, 0xf7, 0xb6, 0x27, 0x27,
|
||||||
var file_compact_formats_proto_goTypes = []interface{}{
|
0x82, 0x9b, 0xba, 0xf8, 0x51, 0x7c, 0xe3, 0x4d, 0x83, 0xb6, 0x30, 0xe5, 0xba, 0xd0, 0x4a, 0xe4,
|
||||||
(*CompactBlock)(nil), // 0: cash.z.wallet.sdk.rpc.CompactBlock
|
0x7f, 0x22, 0x58, 0xbc, 0x1b, 0x09, 0xab, 0xa6, 0x17, 0x6b, 0x92, 0xc3, 0xc2, 0x13, 0x3e, 0xa3,
|
||||||
(*CompactTx)(nil), // 1: cash.z.wallet.sdk.rpc.CompactTx
|
0x36, 0xb2, 0xef, 0x68, 0x94, 0x45, 0xcb, 0x23, 0xb6, 0x83, 0x91, 0x53, 0x48, 0x6b, 0x94, 0x57,
|
||||||
(*CompactSaplingSpend)(nil), // 2: cash.z.wallet.sdk.rpc.CompactSaplingSpend
|
0xb5, 0xa5, 0x71, 0x16, 0x2d, 0x13, 0x16, 0x7e, 0x84, 0x40, 0x52, 0x73, 0x53, 0xd3, 0x59, 0x16,
|
||||||
(*CompactSaplingOutput)(nil), // 3: cash.z.wallet.sdk.rpc.CompactSaplingOutput
|
0x2d, 0x17, 0xcc, 0xd7, 0xe4, 0x09, 0xdc, 0x57, 0x1a, 0xaf, 0x3f, 0x38, 0x3c, 0xf1, 0xf8, 0xf4,
|
||||||
(*CompactOrchardAction)(nil), // 4: cash.z.wallet.sdk.rpc.CompactOrchardAction
|
0x77, 0xfd, 0x56, 0xb6, 0x48, 0xe7, 0xde, 0xc3, 0xd7, 0xa3, 0x36, 0x2f, 0x51, 0xd3, 0xd4, 0x77,
|
||||||
}
|
0x87, 0x1f, 0x39, 0x83, 0xd9, 0xb5, 0x1d, 0xe8, 0x41, 0x36, 0x5b, 0x3e, 0x38, 0xcb, 0x8a, 0xbd,
|
||||||
var file_compact_formats_proto_depIdxs = []int32{
|
0xd3, 0x14, 0x61, 0x92, 0x4f, 0x03, 0x73, 0xcd, 0xf9, 0xaf, 0x18, 0x0e, 0x27, 0x88, 0x1c, 0xc3,
|
||||||
1, // 0: cash.z.wallet.sdk.rpc.CompactBlock.vtx:type_name -> cash.z.wallet.sdk.rpc.CompactTx
|
0x5c, 0x76, 0x25, 0x0e, 0x7e, 0xa4, 0x84, 0x8d, 0x9f, 0x29, 0x73, 0x7c, 0x23, 0xf3, 0x23, 0x98,
|
||||||
2, // 1: cash.z.wallet.sdk.rpc.CompactTx.spends:type_name -> cash.z.wallet.sdk.rpc.CompactSaplingSpend
|
0x55, 0x88, 0x7e, 0x8c, 0x23, 0xe6, 0x4a, 0xb2, 0x82, 0xd4, 0x28, 0xec, 0x4a, 0x43, 0x13, 0x1f,
|
||||||
3, // 2: cash.z.wallet.sdk.rpc.CompactTx.outputs:type_name -> cash.z.wallet.sdk.rpc.CompactSaplingOutput
|
0xe0, 0xe5, 0xff, 0x03, 0x5c, 0x70, 0xd5, 0xc8, 0xee, 0xea, 0xc2, 0x51, 0x58, 0x60, 0x92, 0xf7,
|
||||||
4, // 3: cash.z.wallet.sdk.rpc.CompactTx.actions:type_name -> cash.z.wallet.sdk.rpc.CompactOrchardAction
|
0x70, 0xd0, 0x6f, 0xac, 0xda, 0x58, 0x43, 0xe7, 0x5e, 0xe4, 0xd5, 0x9d, 0x44, 0xce, 0x3d, 0x87,
|
||||||
4, // [4:4] is the sub-list for method output_type
|
0x6d, 0xb9, 0x4e, 0x86, 0x0b, 0x2b, 0xfb, 0xce, 0xd0, 0xf4, 0x2e, 0x32, 0xe7, 0x5a, 0xd4, 0x5c,
|
||||||
4, // [4:4] is the sub-list for method input_type
|
0x97, 0x6f, 0x3d, 0x87, 0x6d, 0xb9, 0xf9, 0x0b, 0x78, 0xbc, 0x27, 0x2c, 0x79, 0x08, 0x71, 0x57,
|
||||||
4, // [4:4] is the sub-list for extension type_name
|
0xf9, 0x0d, 0x2d, 0x58, 0xdc, 0x55, 0xf9, 0x25, 0x1c, 0xef, 0x8b, 0xe3, 0x56, 0x24, 0xda, 0x4d,
|
||||||
4, // [4:4] is the sub-list for extension extendee
|
0x68, 0x74, 0xa5, 0x43, 0x50, 0xad, 0xc3, 0x1e, 0x5d, 0x49, 0x9e, 0x03, 0x08, 0xa9, 0x6a, 0xd4,
|
||||||
0, // [0:4] is the sub-list for field type_name
|
0x16, 0x07, 0x1b, 0x8e, 0xe2, 0x06, 0x92, 0xff, 0x8c, 0x26, 0xf1, 0x9d, 0x90, 0xe4, 0x19, 0x1c,
|
||||||
}
|
0x76, 0x9b, 0xa6, 0x91, 0x95, 0x44, 0x1d, 0x2c, 0xfe, 0x01, 0xa3, 0xf5, 0xb0, 0x35, 0x12, 0xed,
|
||||||
|
0xe0, 0x6e, 0x16, 0x55, 0x8d, 0x2d, 0x6a, 0xde, 0x7c, 0xc4, 0xef, 0xc1, 0x6a, 0x07, 0xbb, 0x15,
|
||||||
func init() { file_compact_formats_proto_init() }
|
0x26, 0xb9, 0x1d, 0x66, 0xf5, 0xf4, 0xf2, 0xb4, 0x71, 0x47, 0x3c, 0x2e, 0xb1, 0x7c, 0x3d, 0xbe,
|
||||||
func file_compact_formats_proto_init() {
|
0x5a, 0x89, 0xdf, 0xf1, 0xbd, 0xaf, 0xa9, 0x3f, 0xff, 0x37, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff,
|
||||||
if File_compact_formats_proto != nil {
|
0x97, 0xbc, 0xe4, 0x62, 0x5c, 0x03, 0x00, 0x00,
|
||||||
return
|
|
||||||
}
|
|
||||||
if !protoimpl.UnsafeEnabled {
|
|
||||||
file_compact_formats_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*CompactBlock); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_compact_formats_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*CompactTx); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_compact_formats_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*CompactSaplingSpend); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_compact_formats_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*CompactSaplingOutput); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_compact_formats_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*CompactOrchardAction); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
type x struct{}
|
|
||||||
out := protoimpl.TypeBuilder{
|
|
||||||
File: protoimpl.DescBuilder{
|
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
||||||
RawDescriptor: file_compact_formats_proto_rawDesc,
|
|
||||||
NumEnums: 0,
|
|
||||||
NumMessages: 5,
|
|
||||||
NumExtensions: 0,
|
|
||||||
NumServices: 0,
|
|
||||||
},
|
|
||||||
GoTypes: file_compact_formats_proto_goTypes,
|
|
||||||
DependencyIndexes: file_compact_formats_proto_depIdxs,
|
|
||||||
MessageInfos: file_compact_formats_proto_msgTypes,
|
|
||||||
}.Build()
|
|
||||||
File_compact_formats_proto = out.File
|
|
||||||
file_compact_formats_proto_rawDesc = nil
|
|
||||||
file_compact_formats_proto_goTypes = nil
|
|
||||||
file_compact_formats_proto_depIdxs = nil
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,136 +1,116 @@
|
||||||
// Copyright (c) 2019-2020 The Zcash developers
|
|
||||||
// Distributed under the MIT software license, see the accompanying
|
|
||||||
// file COPYING or https://www.opensource.org/licenses/mit-license.php .
|
|
||||||
|
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
|
||||||
// protoc-gen-go v1.27.1
|
|
||||||
// protoc v3.15.7
|
|
||||||
// source: darkside.proto
|
// source: darkside.proto
|
||||||
|
|
||||||
package walletrpc
|
package walletrpc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
fmt "fmt"
|
||||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
proto "github.com/golang/protobuf/proto"
|
||||||
reflect "reflect"
|
math "math"
|
||||||
sync "sync"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
// Reference imports to suppress errors if they are not otherwise used.
|
||||||
// Verify that this generated code is sufficiently up-to-date.
|
var _ = proto.Marshal
|
||||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
var _ = fmt.Errorf
|
||||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
var _ = math.Inf
|
||||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
||||||
)
|
// This is a compile-time assertion to ensure that this generated file
|
||||||
|
// is compatible with the proto package it is being compiled against.
|
||||||
|
// A compilation error at this line likely means your copy of the
|
||||||
|
// proto package needs to be updated.
|
||||||
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
||||||
|
|
||||||
type DarksideMetaState struct {
|
type DarksideMetaState struct {
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
SaplingActivation int32 `protobuf:"varint,1,opt,name=saplingActivation,proto3" json:"saplingActivation,omitempty"`
|
SaplingActivation int32 `protobuf:"varint,1,opt,name=saplingActivation,proto3" json:"saplingActivation,omitempty"`
|
||||||
BranchID string `protobuf:"bytes,2,opt,name=branchID,proto3" json:"branchID,omitempty"`
|
BranchID string `protobuf:"bytes,2,opt,name=branchID,proto3" json:"branchID,omitempty"`
|
||||||
ChainName string `protobuf:"bytes,3,opt,name=chainName,proto3" json:"chainName,omitempty"`
|
ChainName string `protobuf:"bytes,3,opt,name=chainName,proto3" json:"chainName,omitempty"`
|
||||||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
|
XXX_unrecognized []byte `json:"-"`
|
||||||
|
XXX_sizecache int32 `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DarksideMetaState) Reset() {
|
func (m *DarksideMetaState) Reset() { *m = DarksideMetaState{} }
|
||||||
*x = DarksideMetaState{}
|
func (m *DarksideMetaState) String() string { return proto.CompactTextString(m) }
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_darkside_proto_msgTypes[0]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DarksideMetaState) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*DarksideMetaState) ProtoMessage() {}
|
func (*DarksideMetaState) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DarksideMetaState) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_darkside_proto_msgTypes[0]
|
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use DarksideMetaState.ProtoReflect.Descriptor instead.
|
|
||||||
func (*DarksideMetaState) Descriptor() ([]byte, []int) {
|
func (*DarksideMetaState) Descriptor() ([]byte, []int) {
|
||||||
return file_darkside_proto_rawDescGZIP(), []int{0}
|
return fileDescriptor_5ea18aa1b2b1f163, []int{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DarksideMetaState) GetSaplingActivation() int32 {
|
func (m *DarksideMetaState) XXX_Unmarshal(b []byte) error {
|
||||||
if x != nil {
|
return xxx_messageInfo_DarksideMetaState.Unmarshal(m, b)
|
||||||
return x.SaplingActivation
|
}
|
||||||
|
func (m *DarksideMetaState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
return xxx_messageInfo_DarksideMetaState.Marshal(b, m, deterministic)
|
||||||
|
}
|
||||||
|
func (m *DarksideMetaState) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_DarksideMetaState.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *DarksideMetaState) XXX_Size() int {
|
||||||
|
return xxx_messageInfo_DarksideMetaState.Size(m)
|
||||||
|
}
|
||||||
|
func (m *DarksideMetaState) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_DarksideMetaState.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_DarksideMetaState proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *DarksideMetaState) GetSaplingActivation() int32 {
|
||||||
|
if m != nil {
|
||||||
|
return m.SaplingActivation
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DarksideMetaState) GetBranchID() string {
|
func (m *DarksideMetaState) GetBranchID() string {
|
||||||
if x != nil {
|
if m != nil {
|
||||||
return x.BranchID
|
return m.BranchID
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DarksideMetaState) GetChainName() string {
|
func (m *DarksideMetaState) GetChainName() string {
|
||||||
if x != nil {
|
if m != nil {
|
||||||
return x.ChainName
|
return m.ChainName
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
// A block is a hex-encoded string.
|
// A block is a hex-encoded string.
|
||||||
type DarksideBlock struct {
|
type DarksideBlock struct {
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Block string `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
|
Block string `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
|
||||||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
|
XXX_unrecognized []byte `json:"-"`
|
||||||
|
XXX_sizecache int32 `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DarksideBlock) Reset() {
|
func (m *DarksideBlock) Reset() { *m = DarksideBlock{} }
|
||||||
*x = DarksideBlock{}
|
func (m *DarksideBlock) String() string { return proto.CompactTextString(m) }
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_darkside_proto_msgTypes[1]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DarksideBlock) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*DarksideBlock) ProtoMessage() {}
|
func (*DarksideBlock) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DarksideBlock) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_darkside_proto_msgTypes[1]
|
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use DarksideBlock.ProtoReflect.Descriptor instead.
|
|
||||||
func (*DarksideBlock) Descriptor() ([]byte, []int) {
|
func (*DarksideBlock) Descriptor() ([]byte, []int) {
|
||||||
return file_darkside_proto_rawDescGZIP(), []int{1}
|
return fileDescriptor_5ea18aa1b2b1f163, []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DarksideBlock) GetBlock() string {
|
func (m *DarksideBlock) XXX_Unmarshal(b []byte) error {
|
||||||
if x != nil {
|
return xxx_messageInfo_DarksideBlock.Unmarshal(m, b)
|
||||||
return x.Block
|
}
|
||||||
|
func (m *DarksideBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
return xxx_messageInfo_DarksideBlock.Marshal(b, m, deterministic)
|
||||||
|
}
|
||||||
|
func (m *DarksideBlock) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_DarksideBlock.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *DarksideBlock) XXX_Size() int {
|
||||||
|
return xxx_messageInfo_DarksideBlock.Size(m)
|
||||||
|
}
|
||||||
|
func (m *DarksideBlock) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_DarksideBlock.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_DarksideBlock proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *DarksideBlock) GetBlock() string {
|
||||||
|
if m != nil {
|
||||||
|
return m.Block
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
@ -138,48 +118,40 @@ func (x *DarksideBlock) GetBlock() string {
|
||||||
// DarksideBlocksURL is typically something like:
|
// DarksideBlocksURL is typically something like:
|
||||||
// https://raw.githubusercontent.com/zcash-hackworks/darksidewalletd-test-data/master/basic-reorg/before-reorg.txt
|
// https://raw.githubusercontent.com/zcash-hackworks/darksidewalletd-test-data/master/basic-reorg/before-reorg.txt
|
||||||
type DarksideBlocksURL struct {
|
type DarksideBlocksURL struct {
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
||||||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
|
XXX_unrecognized []byte `json:"-"`
|
||||||
|
XXX_sizecache int32 `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DarksideBlocksURL) Reset() {
|
func (m *DarksideBlocksURL) Reset() { *m = DarksideBlocksURL{} }
|
||||||
*x = DarksideBlocksURL{}
|
func (m *DarksideBlocksURL) String() string { return proto.CompactTextString(m) }
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_darkside_proto_msgTypes[2]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DarksideBlocksURL) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*DarksideBlocksURL) ProtoMessage() {}
|
func (*DarksideBlocksURL) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DarksideBlocksURL) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_darkside_proto_msgTypes[2]
|
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use DarksideBlocksURL.ProtoReflect.Descriptor instead.
|
|
||||||
func (*DarksideBlocksURL) Descriptor() ([]byte, []int) {
|
func (*DarksideBlocksURL) Descriptor() ([]byte, []int) {
|
||||||
return file_darkside_proto_rawDescGZIP(), []int{2}
|
return fileDescriptor_5ea18aa1b2b1f163, []int{2}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DarksideBlocksURL) GetUrl() string {
|
func (m *DarksideBlocksURL) XXX_Unmarshal(b []byte) error {
|
||||||
if x != nil {
|
return xxx_messageInfo_DarksideBlocksURL.Unmarshal(m, b)
|
||||||
return x.Url
|
}
|
||||||
|
func (m *DarksideBlocksURL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
return xxx_messageInfo_DarksideBlocksURL.Marshal(b, m, deterministic)
|
||||||
|
}
|
||||||
|
func (m *DarksideBlocksURL) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_DarksideBlocksURL.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *DarksideBlocksURL) XXX_Size() int {
|
||||||
|
return xxx_messageInfo_DarksideBlocksURL.Size(m)
|
||||||
|
}
|
||||||
|
func (m *DarksideBlocksURL) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_DarksideBlocksURL.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_DarksideBlocksURL proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *DarksideBlocksURL) GetUrl() string {
|
||||||
|
if m != nil {
|
||||||
|
return m.Url
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
@ -188,405 +160,187 @@ func (x *DarksideBlocksURL) GetUrl() string {
|
||||||
// of hex-encoded transactions, one per line, that are to be associated
|
// of hex-encoded transactions, one per line, that are to be associated
|
||||||
// with the given height (fake-mined into the block at that height)
|
// with the given height (fake-mined into the block at that height)
|
||||||
type DarksideTransactionsURL struct {
|
type DarksideTransactionsURL struct {
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Height int32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
|
Height int32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
|
||||||
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
|
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
|
||||||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
|
XXX_unrecognized []byte `json:"-"`
|
||||||
|
XXX_sizecache int32 `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DarksideTransactionsURL) Reset() {
|
func (m *DarksideTransactionsURL) Reset() { *m = DarksideTransactionsURL{} }
|
||||||
*x = DarksideTransactionsURL{}
|
func (m *DarksideTransactionsURL) String() string { return proto.CompactTextString(m) }
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_darkside_proto_msgTypes[3]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DarksideTransactionsURL) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*DarksideTransactionsURL) ProtoMessage() {}
|
func (*DarksideTransactionsURL) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DarksideTransactionsURL) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_darkside_proto_msgTypes[3]
|
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use DarksideTransactionsURL.ProtoReflect.Descriptor instead.
|
|
||||||
func (*DarksideTransactionsURL) Descriptor() ([]byte, []int) {
|
func (*DarksideTransactionsURL) Descriptor() ([]byte, []int) {
|
||||||
return file_darkside_proto_rawDescGZIP(), []int{3}
|
return fileDescriptor_5ea18aa1b2b1f163, []int{3}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DarksideTransactionsURL) GetHeight() int32 {
|
func (m *DarksideTransactionsURL) XXX_Unmarshal(b []byte) error {
|
||||||
if x != nil {
|
return xxx_messageInfo_DarksideTransactionsURL.Unmarshal(m, b)
|
||||||
return x.Height
|
}
|
||||||
|
func (m *DarksideTransactionsURL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
return xxx_messageInfo_DarksideTransactionsURL.Marshal(b, m, deterministic)
|
||||||
|
}
|
||||||
|
func (m *DarksideTransactionsURL) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_DarksideTransactionsURL.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *DarksideTransactionsURL) XXX_Size() int {
|
||||||
|
return xxx_messageInfo_DarksideTransactionsURL.Size(m)
|
||||||
|
}
|
||||||
|
func (m *DarksideTransactionsURL) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_DarksideTransactionsURL.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_DarksideTransactionsURL proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *DarksideTransactionsURL) GetHeight() int32 {
|
||||||
|
if m != nil {
|
||||||
|
return m.Height
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DarksideTransactionsURL) GetUrl() string {
|
func (m *DarksideTransactionsURL) GetUrl() string {
|
||||||
if x != nil {
|
if m != nil {
|
||||||
return x.Url
|
return m.Url
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
type DarksideHeight struct {
|
type DarksideHeight struct {
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Height int32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
|
Height int32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
|
||||||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
|
XXX_unrecognized []byte `json:"-"`
|
||||||
|
XXX_sizecache int32 `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DarksideHeight) Reset() {
|
func (m *DarksideHeight) Reset() { *m = DarksideHeight{} }
|
||||||
*x = DarksideHeight{}
|
func (m *DarksideHeight) String() string { return proto.CompactTextString(m) }
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_darkside_proto_msgTypes[4]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DarksideHeight) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*DarksideHeight) ProtoMessage() {}
|
func (*DarksideHeight) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DarksideHeight) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_darkside_proto_msgTypes[4]
|
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use DarksideHeight.ProtoReflect.Descriptor instead.
|
|
||||||
func (*DarksideHeight) Descriptor() ([]byte, []int) {
|
func (*DarksideHeight) Descriptor() ([]byte, []int) {
|
||||||
return file_darkside_proto_rawDescGZIP(), []int{4}
|
return fileDescriptor_5ea18aa1b2b1f163, []int{4}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DarksideHeight) GetHeight() int32 {
|
func (m *DarksideHeight) XXX_Unmarshal(b []byte) error {
|
||||||
if x != nil {
|
return xxx_messageInfo_DarksideHeight.Unmarshal(m, b)
|
||||||
return x.Height
|
}
|
||||||
|
func (m *DarksideHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
return xxx_messageInfo_DarksideHeight.Marshal(b, m, deterministic)
|
||||||
|
}
|
||||||
|
func (m *DarksideHeight) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_DarksideHeight.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *DarksideHeight) XXX_Size() int {
|
||||||
|
return xxx_messageInfo_DarksideHeight.Size(m)
|
||||||
|
}
|
||||||
|
func (m *DarksideHeight) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_DarksideHeight.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_DarksideHeight proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *DarksideHeight) GetHeight() int32 {
|
||||||
|
if m != nil {
|
||||||
|
return m.Height
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
type DarksideEmptyBlocks struct {
|
type DarksideEmptyBlocks struct {
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Height int32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
|
Height int32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
|
||||||
Nonce int32 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
|
Nonce int32 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
|
||||||
Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
|
Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
|
||||||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
|
XXX_unrecognized []byte `json:"-"`
|
||||||
|
XXX_sizecache int32 `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DarksideEmptyBlocks) Reset() {
|
func (m *DarksideEmptyBlocks) Reset() { *m = DarksideEmptyBlocks{} }
|
||||||
*x = DarksideEmptyBlocks{}
|
func (m *DarksideEmptyBlocks) String() string { return proto.CompactTextString(m) }
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_darkside_proto_msgTypes[5]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DarksideEmptyBlocks) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*DarksideEmptyBlocks) ProtoMessage() {}
|
func (*DarksideEmptyBlocks) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DarksideEmptyBlocks) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_darkside_proto_msgTypes[5]
|
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use DarksideEmptyBlocks.ProtoReflect.Descriptor instead.
|
|
||||||
func (*DarksideEmptyBlocks) Descriptor() ([]byte, []int) {
|
func (*DarksideEmptyBlocks) Descriptor() ([]byte, []int) {
|
||||||
return file_darkside_proto_rawDescGZIP(), []int{5}
|
return fileDescriptor_5ea18aa1b2b1f163, []int{5}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DarksideEmptyBlocks) GetHeight() int32 {
|
func (m *DarksideEmptyBlocks) XXX_Unmarshal(b []byte) error {
|
||||||
if x != nil {
|
return xxx_messageInfo_DarksideEmptyBlocks.Unmarshal(m, b)
|
||||||
return x.Height
|
}
|
||||||
|
func (m *DarksideEmptyBlocks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
return xxx_messageInfo_DarksideEmptyBlocks.Marshal(b, m, deterministic)
|
||||||
|
}
|
||||||
|
func (m *DarksideEmptyBlocks) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_DarksideEmptyBlocks.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *DarksideEmptyBlocks) XXX_Size() int {
|
||||||
|
return xxx_messageInfo_DarksideEmptyBlocks.Size(m)
|
||||||
|
}
|
||||||
|
func (m *DarksideEmptyBlocks) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_DarksideEmptyBlocks.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_DarksideEmptyBlocks proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *DarksideEmptyBlocks) GetHeight() int32 {
|
||||||
|
if m != nil {
|
||||||
|
return m.Height
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DarksideEmptyBlocks) GetNonce() int32 {
|
func (m *DarksideEmptyBlocks) GetNonce() int32 {
|
||||||
if x != nil {
|
if m != nil {
|
||||||
return x.Nonce
|
return m.Nonce
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DarksideEmptyBlocks) GetCount() int32 {
|
func (m *DarksideEmptyBlocks) GetCount() int32 {
|
||||||
if x != nil {
|
if m != nil {
|
||||||
return x.Count
|
return m.Count
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
var File_darkside_proto protoreflect.FileDescriptor
|
func init() {
|
||||||
|
proto.RegisterType((*DarksideMetaState)(nil), "cash.z.wallet.sdk.rpc.DarksideMetaState")
|
||||||
var file_darkside_proto_rawDesc = []byte{
|
proto.RegisterType((*DarksideBlock)(nil), "cash.z.wallet.sdk.rpc.DarksideBlock")
|
||||||
0x0a, 0x0e, 0x64, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
proto.RegisterType((*DarksideBlocksURL)(nil), "cash.z.wallet.sdk.rpc.DarksideBlocksURL")
|
||||||
0x12, 0x15, 0x63, 0x61, 0x73, 0x68, 0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e,
|
proto.RegisterType((*DarksideTransactionsURL)(nil), "cash.z.wallet.sdk.rpc.DarksideTransactionsURL")
|
||||||
0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63, 0x1a, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
|
proto.RegisterType((*DarksideHeight)(nil), "cash.z.wallet.sdk.rpc.DarksideHeight")
|
||||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7b, 0x0a, 0x11, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69,
|
proto.RegisterType((*DarksideEmptyBlocks)(nil), "cash.z.wallet.sdk.rpc.DarksideEmptyBlocks")
|
||||||
0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x73,
|
|
||||||
0x61, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x73, 0x61, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x41,
|
|
||||||
0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x62, 0x72, 0x61,
|
|
||||||
0x6e, 0x63, 0x68, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x62, 0x72, 0x61,
|
|
||||||
0x6e, 0x63, 0x68, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x4e, 0x61,
|
|
||||||
0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x4e,
|
|
||||||
0x61, 0x6d, 0x65, 0x22, 0x25, 0x0a, 0x0d, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x42,
|
|
||||||
0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20,
|
|
||||||
0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0x25, 0x0a, 0x11, 0x44, 0x61,
|
|
||||||
0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x55, 0x52, 0x4c, 0x12,
|
|
||||||
0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72,
|
|
||||||
0x6c, 0x22, 0x43, 0x0a, 0x17, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x54, 0x72, 0x61,
|
|
||||||
0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x55, 0x52, 0x4c, 0x12, 0x16, 0x0a, 0x06,
|
|
||||||
0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x68, 0x65,
|
|
||||||
0x69, 0x67, 0x68, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
||||||
0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x28, 0x0a, 0x0e, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69,
|
|
||||||
0x64, 0x65, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67,
|
|
||||||
0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74,
|
|
||||||
0x22, 0x59, 0x0a, 0x13, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x45, 0x6d, 0x70, 0x74,
|
|
||||||
0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68,
|
|
||||||
0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12,
|
|
||||||
0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05,
|
|
||||||
0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03,
|
|
||||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0xda, 0x06, 0x0a, 0x10,
|
|
||||||
0x44, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x65, 0x72,
|
|
||||||
0x12, 0x51, 0x0a, 0x05, 0x52, 0x65, 0x73, 0x65, 0x74, 0x12, 0x28, 0x2e, 0x63, 0x61, 0x73, 0x68,
|
|
||||||
0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70,
|
|
||||||
0x63, 0x2e, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x53, 0x74,
|
|
||||||
0x61, 0x74, 0x65, 0x1a, 0x1c, 0x2e, 0x63, 0x61, 0x73, 0x68, 0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c,
|
|
||||||
0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6d, 0x70, 0x74,
|
|
||||||
0x79, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x11, 0x53, 0x74, 0x61, 0x67, 0x65, 0x42, 0x6c, 0x6f, 0x63,
|
|
||||||
0x6b, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x24, 0x2e, 0x63, 0x61, 0x73, 0x68, 0x2e,
|
|
||||||
0x7a, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63,
|
|
||||||
0x2e, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x1a, 0x1c,
|
|
||||||
0x2e, 0x63, 0x61, 0x73, 0x68, 0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x73,
|
|
||||||
0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x28, 0x01,
|
|
||||||
0x12, 0x57, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x67, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x12,
|
|
||||||
0x28, 0x2e, 0x63, 0x61, 0x73, 0x68, 0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e,
|
|
||||||
0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65,
|
|
||||||
0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x55, 0x52, 0x4c, 0x1a, 0x1c, 0x2e, 0x63, 0x61, 0x73, 0x68,
|
|
||||||
0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70,
|
|
||||||
0x63, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x5f, 0x0a, 0x11, 0x53, 0x74, 0x61,
|
|
||||||
0x67, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x2a,
|
|
||||||
0x2e, 0x63, 0x61, 0x73, 0x68, 0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x73,
|
|
||||||
0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x45,
|
|
||||||
0x6d, 0x70, 0x74, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x1a, 0x1c, 0x2e, 0x63, 0x61, 0x73,
|
|
||||||
0x68, 0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72,
|
|
||||||
0x70, 0x63, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x62, 0x0a, 0x17, 0x53, 0x74,
|
|
||||||
0x61, 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x53,
|
|
||||||
0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x25, 0x2e, 0x63, 0x61, 0x73, 0x68, 0x2e, 0x7a, 0x2e, 0x77,
|
|
||||||
0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x61,
|
|
||||||
0x77, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1c, 0x2e, 0x63,
|
|
||||||
0x61, 0x73, 0x68, 0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b,
|
|
||||||
0x2e, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x28, 0x01, 0x12, 0x63,
|
|
||||||
0x0a, 0x11, 0x53, 0x74, 0x61, 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69,
|
|
||||||
0x6f, 0x6e, 0x73, 0x12, 0x2e, 0x2e, 0x63, 0x61, 0x73, 0x68, 0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c,
|
|
||||||
0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x61, 0x72, 0x6b,
|
|
||||||
0x73, 0x69, 0x64, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
|
|
||||||
0x55, 0x52, 0x4c, 0x1a, 0x1c, 0x2e, 0x63, 0x61, 0x73, 0x68, 0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c,
|
|
||||||
0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6d, 0x70, 0x74,
|
|
||||||
0x79, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0b, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x67,
|
|
||||||
0x65, 0x64, 0x12, 0x25, 0x2e, 0x63, 0x61, 0x73, 0x68, 0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c, 0x6c,
|
|
||||||
0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x61, 0x72, 0x6b, 0x73,
|
|
||||||
0x69, 0x64, 0x65, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x1a, 0x1c, 0x2e, 0x63, 0x61, 0x73, 0x68,
|
|
||||||
0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70,
|
|
||||||
0x63, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x62, 0x0a, 0x17, 0x47, 0x65, 0x74,
|
|
||||||
0x49, 0x6e, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74,
|
|
||||||
0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1c, 0x2e, 0x63, 0x61, 0x73, 0x68, 0x2e, 0x7a, 0x2e, 0x77, 0x61,
|
|
||||||
0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x45, 0x6d, 0x70,
|
|
||||||
0x74, 0x79, 0x1a, 0x25, 0x2e, 0x63, 0x61, 0x73, 0x68, 0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c, 0x6c,
|
|
||||||
0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x61, 0x77, 0x54, 0x72,
|
|
||||||
0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x00, 0x30, 0x01, 0x12, 0x59, 0x0a,
|
|
||||||
0x19, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x49, 0x6e, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72,
|
|
||||||
0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1c, 0x2e, 0x63, 0x61, 0x73,
|
|
||||||
0x68, 0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72,
|
|
||||||
0x70, 0x63, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1c, 0x2e, 0x63, 0x61, 0x73, 0x68, 0x2e,
|
|
||||||
0x7a, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63,
|
|
||||||
0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x42, 0x1b, 0x5a, 0x16, 0x6c, 0x69, 0x67, 0x68,
|
|
||||||
0x74, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x64, 0x2f, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x72,
|
|
||||||
0x70, 0x63, 0xba, 0x02, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
func init() { proto.RegisterFile("darkside.proto", fileDescriptor_5ea18aa1b2b1f163) }
|
||||||
file_darkside_proto_rawDescOnce sync.Once
|
|
||||||
file_darkside_proto_rawDescData = file_darkside_proto_rawDesc
|
|
||||||
)
|
|
||||||
|
|
||||||
func file_darkside_proto_rawDescGZIP() []byte {
|
var fileDescriptor_5ea18aa1b2b1f163 = []byte{
|
||||||
file_darkside_proto_rawDescOnce.Do(func() {
|
// 478 bytes of a gzipped FileDescriptorProto
|
||||||
file_darkside_proto_rawDescData = protoimpl.X.CompressGZIP(file_darkside_proto_rawDescData)
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xed, 0x6e, 0xd3, 0x30,
|
||||||
})
|
0x14, 0x6d, 0x3a, 0xa5, 0xa2, 0x77, 0xda, 0xb4, 0x9a, 0xb1, 0x95, 0xb2, 0x1f, 0x53, 0x44, 0xa5,
|
||||||
return file_darkside_proto_rawDescData
|
0x08, 0xa1, 0x80, 0xe0, 0x09, 0xb6, 0x0e, 0xc1, 0x24, 0x40, 0x22, 0x1d, 0x42, 0x83, 0x1f, 0xe8,
|
||||||
}
|
0xd6, 0xb1, 0x9a, 0xa8, 0x89, 0x13, 0x39, 0xde, 0xa6, 0xc1, 0x9b, 0xf1, 0x28, 0x3c, 0x0d, 0x8a,
|
||||||
|
0xed, 0xac, 0x29, 0x25, 0xb8, 0xda, 0xaf, 0xf8, 0xda, 0xe7, 0x9e, 0x73, 0xee, 0x87, 0x02, 0xbb,
|
||||||
var file_darkside_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
0x11, 0x8a, 0x45, 0x99, 0x44, 0x2c, 0x28, 0x44, 0x2e, 0x73, 0xf2, 0x88, 0x62, 0x19, 0x07, 0x3f,
|
||||||
var file_darkside_proto_goTypes = []interface{}{
|
0x82, 0x1b, 0x4c, 0x53, 0x26, 0x83, 0x32, 0x5a, 0x04, 0xa2, 0xa0, 0xa3, 0x9d, 0x92, 0x89, 0xeb,
|
||||||
(*DarksideMetaState)(nil), // 0: cash.z.wallet.sdk.rpc.DarksideMetaState
|
0x84, 0x1a, 0x94, 0xf7, 0x13, 0x06, 0x67, 0x26, 0xef, 0x03, 0x93, 0x38, 0x95, 0x28, 0x19, 0x79,
|
||||||
(*DarksideBlock)(nil), // 1: cash.z.wallet.sdk.rpc.DarksideBlock
|
0x0e, 0x83, 0x12, 0x8b, 0x34, 0xe1, 0xf3, 0x13, 0x2a, 0x93, 0x6b, 0x94, 0x49, 0xce, 0x87, 0xce,
|
||||||
(*DarksideBlocksURL)(nil), // 2: cash.z.wallet.sdk.rpc.DarksideBlocksURL
|
0xb1, 0xe3, 0xbb, 0xe1, 0xfa, 0x03, 0x19, 0xc1, 0x83, 0x99, 0x40, 0x4e, 0xe3, 0xf3, 0xb3, 0x61,
|
||||||
(*DarksideTransactionsURL)(nil), // 3: cash.z.wallet.sdk.rpc.DarksideTransactionsURL
|
0xf7, 0xd8, 0xf1, 0xfb, 0xe1, 0x5d, 0x4c, 0x8e, 0xa0, 0x4f, 0x63, 0x4c, 0xf8, 0x47, 0xcc, 0xd8,
|
||||||
(*DarksideHeight)(nil), // 4: cash.z.wallet.sdk.rpc.DarksideHeight
|
0x70, 0x4b, 0x3d, 0x2e, 0x2f, 0xbc, 0x31, 0xec, 0xd4, 0xe2, 0xa7, 0x69, 0x4e, 0x17, 0x64, 0x1f,
|
||||||
(*DarksideEmptyBlocks)(nil), // 5: cash.z.wallet.sdk.rpc.DarksideEmptyBlocks
|
0xdc, 0x59, 0x75, 0x50, 0x62, 0xfd, 0x50, 0x07, 0xde, 0x78, 0xe9, 0x51, 0xc1, 0xca, 0xcf, 0xe1,
|
||||||
(*RawTransaction)(nil), // 6: cash.z.wallet.sdk.rpc.RawTransaction
|
0x7b, 0xb2, 0x07, 0x5b, 0x57, 0x22, 0x35, 0xc0, 0xea, 0xe8, 0x4d, 0xe0, 0xb0, 0x86, 0x5d, 0x08,
|
||||||
(*Empty)(nil), // 7: cash.z.wallet.sdk.rpc.Empty
|
0xe4, 0x25, 0xd2, 0xca, 0x9e, 0x02, 0x1f, 0x40, 0x2f, 0x66, 0xc9, 0x3c, 0x96, 0xa6, 0x0a, 0x13,
|
||||||
}
|
0xd5, 0x24, 0xdd, 0x25, 0x89, 0x0f, 0xbb, 0x35, 0xc9, 0x3b, 0x8d, 0x69, 0xc9, 0xf5, 0x2e, 0xe1,
|
||||||
var file_darkside_proto_depIdxs = []int32{
|
0x61, 0x8d, 0x7c, 0x93, 0x15, 0xf2, 0x56, 0x5b, 0x6b, 0x95, 0xda, 0x07, 0x97, 0xe7, 0x9c, 0x32,
|
||||||
0, // 0: cash.z.wallet.sdk.rpc.DarksideStreamer.Reset:input_type -> cash.z.wallet.sdk.rpc.DarksideMetaState
|
0x25, 0xe6, 0x86, 0x3a, 0xa8, 0x6e, 0x69, 0x7e, 0xc5, 0xa5, 0xea, 0x8d, 0x1b, 0xea, 0xe0, 0xd5,
|
||||||
1, // 1: cash.z.wallet.sdk.rpc.DarksideStreamer.StageBlocksStream:input_type -> cash.z.wallet.sdk.rpc.DarksideBlock
|
0xef, 0x1e, 0xec, 0xd5, 0xdc, 0x53, 0x29, 0x18, 0x66, 0x4c, 0x90, 0x4f, 0xe0, 0x86, 0xac, 0x64,
|
||||||
2, // 2: cash.z.wallet.sdk.rpc.DarksideStreamer.StageBlocks:input_type -> cash.z.wallet.sdk.rpc.DarksideBlocksURL
|
0x92, 0xf8, 0xc1, 0x3f, 0x27, 0x1b, 0xac, 0xcd, 0x71, 0x74, 0xd4, 0x82, 0x54, 0x7e, 0xbd, 0x0e,
|
||||||
5, // 3: cash.z.wallet.sdk.rpc.DarksideStreamer.StageBlocksCreate:input_type -> cash.z.wallet.sdk.rpc.DarksideEmptyBlocks
|
0xf9, 0x06, 0x83, 0xa9, 0xc4, 0xb9, 0xe9, 0xaa, 0x56, 0x22, 0x4f, 0x2d, 0xf4, 0x0a, 0x6c, 0xa3,
|
||||||
6, // 4: cash.z.wallet.sdk.rpc.DarksideStreamer.StageTransactionsStream:input_type -> cash.z.wallet.sdk.rpc.RawTransaction
|
0xf6, 0x1d, 0xf2, 0x05, 0xb6, 0x1b, 0xe4, 0x56, 0xd7, 0x77, 0x93, 0xb5, 0xba, 0xfe, 0xbe, 0xe2,
|
||||||
3, // 5: cash.z.wallet.sdk.rpc.DarksideStreamer.StageTransactions:input_type -> cash.z.wallet.sdk.rpc.DarksideTransactionsURL
|
0x7a, 0x22, 0x58, 0xb5, 0xb2, 0xcf, 0x2c, 0xf4, 0x8d, 0x11, 0x59, 0x05, 0x66, 0x70, 0xa8, 0x04,
|
||||||
4, // 6: cash.z.wallet.sdk.rpc.DarksideStreamer.ApplyStaged:input_type -> cash.z.wallet.sdk.rpc.DarksideHeight
|
0x9a, 0x5b, 0x64, 0x9a, 0x33, 0x6e, 0x49, 0x0d, 0xf1, 0xa6, 0x81, 0xde, 0xa0, 0x3b, 0xd4, 0x14,
|
||||||
7, // 7: cash.z.wallet.sdk.rpc.DarksideStreamer.GetIncomingTransactions:input_type -> cash.z.wallet.sdk.rpc.Empty
|
0xd1, 0xd4, 0x20, 0x81, 0xa5, 0x88, 0xbf, 0xd6, 0xda, 0x5a, 0xc8, 0x05, 0x6c, 0x9f, 0x14, 0x45,
|
||||||
7, // 8: cash.z.wallet.sdk.rpc.DarksideStreamer.ClearIncomingTransactions:input_type -> cash.z.wallet.sdk.rpc.Empty
|
0x7a, 0xab, 0x94, 0xa2, 0x56, 0xf3, 0xab, 0x0b, 0xbf, 0x49, 0x7b, 0xde, 0x32, 0x79, 0xce, 0x69,
|
||||||
7, // 9: cash.z.wallet.sdk.rpc.DarksideStreamer.Reset:output_type -> cash.z.wallet.sdk.rpc.Empty
|
0x9e, 0x25, 0x7c, 0xbe, 0x52, 0xc0, 0x7f, 0x53, 0x47, 0x9b, 0x35, 0xcf, 0xeb, 0xbc, 0x74, 0xc8,
|
||||||
7, // 10: cash.z.wallet.sdk.rpc.DarksideStreamer.StageBlocksStream:output_type -> cash.z.wallet.sdk.rpc.Empty
|
0x25, 0x3c, 0x9e, 0xa4, 0x0c, 0xc5, 0x3d, 0x54, 0x2c, 0xf6, 0x4f, 0x9f, 0x7c, 0x3d, 0x48, 0xab,
|
||||||
7, // 11: cash.z.wallet.sdk.rpc.DarksideStreamer.StageBlocks:output_type -> cash.z.wallet.sdk.rpc.Empty
|
0x3a, 0xf5, 0x73, 0xf4, 0x42, 0x7f, 0x45, 0x41, 0x7f, 0x75, 0x3b, 0xb3, 0x9e, 0xfa, 0x2b, 0xbe,
|
||||||
7, // 12: cash.z.wallet.sdk.rpc.DarksideStreamer.StageBlocksCreate:output_type -> cash.z.wallet.sdk.rpc.Empty
|
0xfe, 0x13, 0x00, 0x00, 0xff, 0xff, 0x9d, 0xe7, 0x29, 0xf3, 0x4d, 0x05, 0x00, 0x00,
|
||||||
7, // 13: cash.z.wallet.sdk.rpc.DarksideStreamer.StageTransactionsStream:output_type -> cash.z.wallet.sdk.rpc.Empty
|
|
||||||
7, // 14: cash.z.wallet.sdk.rpc.DarksideStreamer.StageTransactions:output_type -> cash.z.wallet.sdk.rpc.Empty
|
|
||||||
7, // 15: cash.z.wallet.sdk.rpc.DarksideStreamer.ApplyStaged:output_type -> cash.z.wallet.sdk.rpc.Empty
|
|
||||||
6, // 16: cash.z.wallet.sdk.rpc.DarksideStreamer.GetIncomingTransactions:output_type -> cash.z.wallet.sdk.rpc.RawTransaction
|
|
||||||
7, // 17: cash.z.wallet.sdk.rpc.DarksideStreamer.ClearIncomingTransactions:output_type -> cash.z.wallet.sdk.rpc.Empty
|
|
||||||
9, // [9:18] is the sub-list for method output_type
|
|
||||||
0, // [0:9] is the sub-list for method input_type
|
|
||||||
0, // [0:0] is the sub-list for extension type_name
|
|
||||||
0, // [0:0] is the sub-list for extension extendee
|
|
||||||
0, // [0:0] is the sub-list for field type_name
|
|
||||||
}
|
|
||||||
|
|
||||||
func init() { file_darkside_proto_init() }
|
|
||||||
func file_darkside_proto_init() {
|
|
||||||
if File_darkside_proto != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
file_service_proto_init()
|
|
||||||
if !protoimpl.UnsafeEnabled {
|
|
||||||
file_darkside_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*DarksideMetaState); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_darkside_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*DarksideBlock); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_darkside_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*DarksideBlocksURL); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_darkside_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*DarksideTransactionsURL); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_darkside_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*DarksideHeight); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_darkside_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*DarksideEmptyBlocks); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
type x struct{}
|
|
||||||
out := protoimpl.TypeBuilder{
|
|
||||||
File: protoimpl.DescBuilder{
|
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
||||||
RawDescriptor: file_darkside_proto_rawDesc,
|
|
||||||
NumEnums: 0,
|
|
||||||
NumMessages: 6,
|
|
||||||
NumExtensions: 0,
|
|
||||||
NumServices: 1,
|
|
||||||
},
|
|
||||||
GoTypes: file_darkside_proto_goTypes,
|
|
||||||
DependencyIndexes: file_darkside_proto_depIdxs,
|
|
||||||
MessageInfos: file_darkside_proto_msgTypes,
|
|
||||||
}.Build()
|
|
||||||
File_darkside_proto = out.File
|
|
||||||
file_darkside_proto_rawDesc = nil
|
|
||||||
file_darkside_proto_goTypes = nil
|
|
||||||
file_darkside_proto_depIdxs = nil
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// - protoc-gen-go-grpc v1.2.0
|
||||||
|
// - protoc v3.11.4
|
||||||
|
// source: darkside.proto
|
||||||
|
|
||||||
package walletrpc
|
package walletrpc
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,4 +1,8 @@
|
||||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// - protoc-gen-go-grpc v1.2.0
|
||||||
|
// - protoc v3.11.4
|
||||||
|
// source: service.proto
|
||||||
|
|
||||||
package walletrpc
|
package walletrpc
|
||||||
|
|
||||||
|
@ -45,6 +49,8 @@ type CompactTxStreamerClient interface {
|
||||||
// match a shortened txid, they are all sent (none is excluded). Transactions
|
// match a shortened txid, they are all sent (none is excluded). Transactions
|
||||||
// in the exclude list that don't exist in the mempool are ignored.
|
// in the exclude list that don't exist in the mempool are ignored.
|
||||||
GetMempoolTx(ctx context.Context, in *Exclude, opts ...grpc.CallOption) (CompactTxStreamer_GetMempoolTxClient, error)
|
GetMempoolTx(ctx context.Context, in *Exclude, opts ...grpc.CallOption) (CompactTxStreamer_GetMempoolTxClient, error)
|
||||||
|
// Return a stream of current Mempool transactions. This will keep the output stream open while
|
||||||
|
// there are mempool transactions. It will close the returned stream when a new block is mined.
|
||||||
GetMempoolStream(ctx context.Context, in *Empty, opts ...grpc.CallOption) (CompactTxStreamer_GetMempoolStreamClient, error)
|
GetMempoolStream(ctx context.Context, in *Empty, opts ...grpc.CallOption) (CompactTxStreamer_GetMempoolStreamClient, error)
|
||||||
// GetTreeState returns the note commitment tree state corresponding to the given block.
|
// GetTreeState returns the note commitment tree state corresponding to the given block.
|
||||||
// See section 3.7 of the Zcash protocol specification. It returns several other useful
|
// See section 3.7 of the Zcash protocol specification. It returns several other useful
|
||||||
|
@ -391,6 +397,8 @@ type CompactTxStreamerServer interface {
|
||||||
// match a shortened txid, they are all sent (none is excluded). Transactions
|
// match a shortened txid, they are all sent (none is excluded). Transactions
|
||||||
// in the exclude list that don't exist in the mempool are ignored.
|
// in the exclude list that don't exist in the mempool are ignored.
|
||||||
GetMempoolTx(*Exclude, CompactTxStreamer_GetMempoolTxServer) error
|
GetMempoolTx(*Exclude, CompactTxStreamer_GetMempoolTxServer) error
|
||||||
|
// Return a stream of current Mempool transactions. This will keep the output stream open while
|
||||||
|
// there are mempool transactions. It will close the returned stream when a new block is mined.
|
||||||
GetMempoolStream(*Empty, CompactTxStreamer_GetMempoolStreamServer) error
|
GetMempoolStream(*Empty, CompactTxStreamer_GetMempoolStreamServer) error
|
||||||
// GetTreeState returns the note commitment tree state corresponding to the given block.
|
// GetTreeState returns the note commitment tree state corresponding to the given block.
|
||||||
// See section 3.7 of the Zcash protocol specification. It returns several other useful
|
// See section 3.7 of the Zcash protocol specification. It returns several other useful
|
||||||
|
|
Loading…
Reference in New Issue