taprpc

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 19 Imported by: 3

Documentation

Overview

Package taprpc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	AssetType_name = map[int32]string{
		0: "NORMAL",
		1: "COLLECTIBLE",
	}
	AssetType_value = map[string]int32{
		"NORMAL":      0,
		"COLLECTIBLE": 1,
	}
)

Enum value maps for AssetType.

View Source
var (
	AssetMetaType_name = map[int32]string{
		0: "META_TYPE_OPAQUE",
	}
	AssetMetaType_value = map[string]int32{
		"META_TYPE_OPAQUE": 0,
	}
)

Enum value maps for AssetMetaType.

View Source
var (
	AssetVersion_name = map[int32]string{
		0: "ASSET_VERSION_V0",
		1: "ASSET_VERSION_V1",
	}
	AssetVersion_value = map[string]int32{
		"ASSET_VERSION_V0": 0,
		"ASSET_VERSION_V1": 1,
	}
)

Enum value maps for AssetVersion.

View Source
var (
	OutputType_name = map[int32]string{
		0: "OUTPUT_TYPE_SIMPLE",
		1: "OUTPUT_TYPE_SPLIT_ROOT",
		2: "OUTPUT_TYPE_PASSIVE_ASSETS_ONLY",
		3: "OUTPUT_TYPE_PASSIVE_SPLIT_ROOT",
		4: "OUTPUT_TYPE_SIMPLE_PASSIVE_ASSETS",
	}
	OutputType_value = map[string]int32{
		"OUTPUT_TYPE_SIMPLE":                0,
		"OUTPUT_TYPE_SPLIT_ROOT":            1,
		"OUTPUT_TYPE_PASSIVE_ASSETS_ONLY":   2,
		"OUTPUT_TYPE_PASSIVE_SPLIT_ROOT":    3,
		"OUTPUT_TYPE_SIMPLE_PASSIVE_ASSETS": 4,
	}
)

Enum value maps for OutputType.

View Source
var (
	AddrEventStatus_name = map[int32]string{
		0: "ADDR_EVENT_STATUS_UNKNOWN",
		1: "ADDR_EVENT_STATUS_TRANSACTION_DETECTED",
		2: "ADDR_EVENT_STATUS_TRANSACTION_CONFIRMED",
		3: "ADDR_EVENT_STATUS_PROOF_RECEIVED",
		4: "ADDR_EVENT_STATUS_COMPLETED",
	}
	AddrEventStatus_value = map[string]int32{
		"ADDR_EVENT_STATUS_UNKNOWN":               0,
		"ADDR_EVENT_STATUS_TRANSACTION_DETECTED":  1,
		"ADDR_EVENT_STATUS_TRANSACTION_CONFIRMED": 2,
		"ADDR_EVENT_STATUS_PROOF_RECEIVED":        3,
		"ADDR_EVENT_STATUS_COMPLETED":             4,
	}
)

Enum value maps for AddrEventStatus.

View Source
var (
	ProofTransferType_name = map[int32]string{
		0: "PROOF_TRANSFER_TYPE_SEND",
		1: "PROOF_TRANSFER_TYPE_RECEIVE",
	}
	ProofTransferType_value = map[string]int32{
		"PROOF_TRANSFER_TYPE_SEND":    0,
		"PROOF_TRANSFER_TYPE_RECEIVE": 1,
	}
)

Enum value maps for ProofTransferType.

View Source
var (
	// ProtoJSONMarshalOpts is a struct that holds the default marshal
	// options for marshaling protobuf messages into JSON in a
	// human-readable way. This should only be used in the CLI and in
	// integration tests.
	ProtoJSONMarshalOpts = &protojson.MarshalOptions{
		EmitUnpopulated: true,
		UseProtoNames:   true,
		Indent:          "    ",
		UseHexForBytes:  true,
	}

	// ProtoJSONUnmarshalOpts is a struct that holds the default unmarshal
	// options for un-marshaling lncli JSON into protobuf messages. This
	// should only be used in the CLI and in integration tests.
	ProtoJSONUnmarshalOpts = &protojson.UnmarshalOptions{
		AllowPartial:   false,
		UseHexForBytes: true,
	}

	// RESTJsonMarshalOpts is a struct that holds the default marshal
	// options for marshaling protobuf messages into REST JSON in a
	// human-readable way. This should be used when interacting with the
	// REST proxy only.
	RESTJsonMarshalOpts = &protojson.MarshalOptions{
		EmitUnpopulated: true,
		UseProtoNames:   true,
		UseHexForBytes:  true,
	}

	// RESTJsonUnmarshalOpts is a struct that holds the default unmarshal
	// options for un-marshaling REST JSON into protobuf messages. This
	// should be used when interacting with the REST proxy only.
	RESTJsonUnmarshalOpts = &protojson.UnmarshalOptions{
		AllowPartial:   false,
		UseHexForBytes: true,
	}
)
View Source
var File_taprootassets_proto protoreflect.FileDescriptor
View Source
var TaprootAssets_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "taprpc.TaprootAssets",
	HandlerType: (*TaprootAssetsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListAssets",
			Handler:    _TaprootAssets_ListAssets_Handler,
		},
		{
			MethodName: "ListUtxos",
			Handler:    _TaprootAssets_ListUtxos_Handler,
		},
		{
			MethodName: "ListGroups",
			Handler:    _TaprootAssets_ListGroups_Handler,
		},
		{
			MethodName: "ListBalances",
			Handler:    _TaprootAssets_ListBalances_Handler,
		},
		{
			MethodName: "ListTransfers",
			Handler:    _TaprootAssets_ListTransfers_Handler,
		},
		{
			MethodName: "StopDaemon",
			Handler:    _TaprootAssets_StopDaemon_Handler,
		},
		{
			MethodName: "DebugLevel",
			Handler:    _TaprootAssets_DebugLevel_Handler,
		},
		{
			MethodName: "QueryAddrs",
			Handler:    _TaprootAssets_QueryAddrs_Handler,
		},
		{
			MethodName: "NewAddr",
			Handler:    _TaprootAssets_NewAddr_Handler,
		},
		{
			MethodName: "DecodeAddr",
			Handler:    _TaprootAssets_DecodeAddr_Handler,
		},
		{
			MethodName: "AddrReceives",
			Handler:    _TaprootAssets_AddrReceives_Handler,
		},
		{
			MethodName: "VerifyProof",
			Handler:    _TaprootAssets_VerifyProof_Handler,
		},
		{
			MethodName: "DecodeProof",
			Handler:    _TaprootAssets_DecodeProof_Handler,
		},
		{
			MethodName: "ExportProof",
			Handler:    _TaprootAssets_ExportProof_Handler,
		},
		{
			MethodName: "SendAsset",
			Handler:    _TaprootAssets_SendAsset_Handler,
		},
		{
			MethodName: "BurnAsset",
			Handler:    _TaprootAssets_BurnAsset_Handler,
		},
		{
			MethodName: "GetInfo",
			Handler:    _TaprootAssets_GetInfo_Handler,
		},
		{
			MethodName: "FetchAssetMeta",
			Handler:    _TaprootAssets_FetchAssetMeta_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SubscribeSendAssetEventNtfns",
			Handler:       _TaprootAssets_SubscribeSendAssetEventNtfns_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribeReceiveAssetEventNtfns",
			Handler:       _TaprootAssets_SubscribeReceiveAssetEventNtfns_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "taprootassets.proto",
}

TaprootAssets_ServiceDesc is the grpc.ServiceDesc for TaprootAssets service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTaprootAssetsHandler

func RegisterTaprootAssetsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterTaprootAssetsHandler registers the http handlers for service TaprootAssets to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterTaprootAssetsHandlerClient

func RegisterTaprootAssetsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TaprootAssetsClient) error

RegisterTaprootAssetsHandlerClient registers the http handlers for service TaprootAssets to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TaprootAssetsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TaprootAssetsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TaprootAssetsClient" to call the correct interceptors.

func RegisterTaprootAssetsHandlerFromEndpoint

func RegisterTaprootAssetsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterTaprootAssetsHandlerFromEndpoint is same as RegisterTaprootAssetsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterTaprootAssetsHandlerServer

func RegisterTaprootAssetsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TaprootAssetsServer) error

RegisterTaprootAssetsHandlerServer registers the http handlers for service TaprootAssets to "mux". UnaryRPC :call TaprootAssetsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterTaprootAssetsHandlerFromEndpoint instead.

func RegisterTaprootAssetsJSONCallbacks added in v0.2.1

func RegisterTaprootAssetsJSONCallbacks(registry map[string]func(ctx context.Context,
	conn *grpc.ClientConn, reqJSON string, callback func(string, error)))

func RegisterTaprootAssetsServer

func RegisterTaprootAssetsServer(s grpc.ServiceRegistrar, srv TaprootAssetsServer)

func UnmarshalAssetVersion added in v0.3.0

func UnmarshalAssetVersion(version AssetVersion) (asset.Version, error)

UnmarshalAssetVersion parses an asset version from the RPC variant.

Types

type Addr

type Addr struct {

	// The bech32 encoded Taproot Asset address.
	Encoded string `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"`
	// The asset ID that uniquely identifies the asset.
	AssetId []byte `protobuf:"bytes,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
	// The type of the asset.
	AssetType AssetType `protobuf:"varint,3,opt,name=asset_type,json=assetType,proto3,enum=taprpc.AssetType" json:"asset_type,omitempty"`
	// The total amount of the asset stored in this Taproot Asset UTXO.
	Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// The group key of the asset (if it exists)
	GroupKey []byte `protobuf:"bytes,5,opt,name=group_key,json=groupKey,proto3" json:"group_key,omitempty"`
	// The specific script key the asset must commit to in order to transfer
	// ownership to the creator of the address.
	ScriptKey []byte `protobuf:"bytes,6,opt,name=script_key,json=scriptKey,proto3" json:"script_key,omitempty"`
	// The internal key used for the on-chain output.
	InternalKey []byte `protobuf:"bytes,7,opt,name=internal_key,json=internalKey,proto3" json:"internal_key,omitempty"`
	// The optional serialized tapscript sibling preimage to use for the receiving
	// asset. This is usually empty as it is only needed when there should be an
	// additional script path in the Taproot tree alongside the Taproot Asset
	// commitment of the asset.
	TapscriptSibling []byte `protobuf:"bytes,8,opt,name=tapscript_sibling,json=tapscriptSibling,proto3" json:"tapscript_sibling,omitempty"`
	// The tweaked internal key that commits to the asset and represents the
	// on-chain output key the Bitcoin transaction must send to in order to
	// transfer assets described in this address.
	TaprootOutputKey []byte `protobuf:"bytes,9,opt,name=taproot_output_key,json=taprootOutputKey,proto3" json:"taproot_output_key,omitempty"`
	// The address of the proof courier service used in proof transfer.
	ProofCourierAddr string `protobuf:"bytes,10,opt,name=proof_courier_addr,json=proofCourierAddr,proto3" json:"proof_courier_addr,omitempty"`
	// The asset version of the address.
	AssetVersion AssetVersion `protobuf:"varint,11,opt,name=asset_version,json=assetVersion,proto3,enum=taprpc.AssetVersion" json:"asset_version,omitempty"`
	// contains filtered or unexported fields
}

func (*Addr) Descriptor deprecated

func (*Addr) Descriptor() ([]byte, []int)

Deprecated: Use Addr.ProtoReflect.Descriptor instead.

func (*Addr) GetAmount

func (x *Addr) GetAmount() uint64

func (*Addr) GetAssetId

func (x *Addr) GetAssetId() []byte

func (*Addr) GetAssetType

func (x *Addr) GetAssetType() AssetType

func (*Addr) GetAssetVersion added in v0.3.0

func (x *Addr) GetAssetVersion() AssetVersion

func (*Addr) GetEncoded

func (x *Addr) GetEncoded() string

func (*Addr) GetGroupKey

func (x *Addr) GetGroupKey() []byte

func (*Addr) GetInternalKey

func (x *Addr) GetInternalKey() []byte

func (*Addr) GetProofCourierAddr added in v0.3.0

func (x *Addr) GetProofCourierAddr() string

func (*Addr) GetScriptKey

func (x *Addr) GetScriptKey() []byte

func (*Addr) GetTaprootOutputKey

func (x *Addr) GetTaprootOutputKey() []byte

func (*Addr) GetTapscriptSibling

func (x *Addr) GetTapscriptSibling() []byte

func (*Addr) ProtoMessage

func (*Addr) ProtoMessage()

func (*Addr) ProtoReflect

func (x *Addr) ProtoReflect() protoreflect.Message

func (*Addr) Reset

func (x *Addr) Reset()

func (*Addr) String

func (x *Addr) String() string

type AddrEvent

type AddrEvent struct {

	// The time the event was created in unix timestamp seconds.
	CreationTimeUnixSeconds uint64 `` /* 135-byte string literal not displayed */
	// The address the event was created for.
	Addr *Addr `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	// The current status of the event.
	Status AddrEventStatus `protobuf:"varint,3,opt,name=status,proto3,enum=taprpc.AddrEventStatus" json:"status,omitempty"`
	// The outpoint that contains the inbound asset transfer.
	Outpoint string `protobuf:"bytes,4,opt,name=outpoint,proto3" json:"outpoint,omitempty"`
	// The amount in satoshis that were transferred on chain along with the asset.
	// This amount is independent of the requested asset amount, which can be
	// looked up on the address.
	UtxoAmtSat uint64 `protobuf:"varint,5,opt,name=utxo_amt_sat,json=utxoAmtSat,proto3" json:"utxo_amt_sat,omitempty"`
	// The taproot sibling hash that was used to send to the Taproot output.
	TaprootSibling []byte `protobuf:"bytes,6,opt,name=taproot_sibling,json=taprootSibling,proto3" json:"taproot_sibling,omitempty"`
	// The height at which the on-chain output was confirmed. If this is zero, it
	// means the output is unconfirmed.
	ConfirmationHeight uint32 `protobuf:"varint,7,opt,name=confirmation_height,json=confirmationHeight,proto3" json:"confirmation_height,omitempty"`
	// Indicates whether a proof file can be found for the address' asset ID and
	// script key.
	HasProof bool `protobuf:"varint,8,opt,name=has_proof,json=hasProof,proto3" json:"has_proof,omitempty"`
	// contains filtered or unexported fields
}

func (*AddrEvent) Descriptor deprecated

func (*AddrEvent) Descriptor() ([]byte, []int)

Deprecated: Use AddrEvent.ProtoReflect.Descriptor instead.

func (*AddrEvent) GetAddr

func (x *AddrEvent) GetAddr() *Addr

func (*AddrEvent) GetConfirmationHeight

func (x *AddrEvent) GetConfirmationHeight() uint32

func (*AddrEvent) GetCreationTimeUnixSeconds

func (x *AddrEvent) GetCreationTimeUnixSeconds() uint64

func (*AddrEvent) GetHasProof

func (x *AddrEvent) GetHasProof() bool

func (*AddrEvent) GetOutpoint

func (x *AddrEvent) GetOutpoint() string

func (*AddrEvent) GetStatus

func (x *AddrEvent) GetStatus() AddrEventStatus

func (*AddrEvent) GetTaprootSibling

func (x *AddrEvent) GetTaprootSibling() []byte

func (*AddrEvent) GetUtxoAmtSat

func (x *AddrEvent) GetUtxoAmtSat() uint64

func (*AddrEvent) ProtoMessage

func (*AddrEvent) ProtoMessage()

func (*AddrEvent) ProtoReflect

func (x *AddrEvent) ProtoReflect() protoreflect.Message

func (*AddrEvent) Reset

func (x *AddrEvent) Reset()

func (*AddrEvent) String

func (x *AddrEvent) String() string

type AddrEventStatus

type AddrEventStatus int32
const (
	AddrEventStatus_ADDR_EVENT_STATUS_UNKNOWN               AddrEventStatus = 0
	AddrEventStatus_ADDR_EVENT_STATUS_TRANSACTION_DETECTED  AddrEventStatus = 1
	AddrEventStatus_ADDR_EVENT_STATUS_TRANSACTION_CONFIRMED AddrEventStatus = 2
	AddrEventStatus_ADDR_EVENT_STATUS_PROOF_RECEIVED        AddrEventStatus = 3
	AddrEventStatus_ADDR_EVENT_STATUS_COMPLETED             AddrEventStatus = 4
)

func (AddrEventStatus) Descriptor

func (AddrEventStatus) Enum

func (x AddrEventStatus) Enum() *AddrEventStatus

func (AddrEventStatus) EnumDescriptor deprecated

func (AddrEventStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use AddrEventStatus.Descriptor instead.

func (AddrEventStatus) Number

func (AddrEventStatus) String

func (x AddrEventStatus) String() string

func (AddrEventStatus) Type

type AddrReceivesRequest

type AddrReceivesRequest struct {

	// Filter receives by a specific address. Leave empty to get all receives.
	FilterAddr string `protobuf:"bytes,1,opt,name=filter_addr,json=filterAddr,proto3" json:"filter_addr,omitempty"`
	// Filter receives by a specific status. Leave empty to get all receives.
	FilterStatus AddrEventStatus `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*AddrReceivesRequest) Descriptor deprecated

func (*AddrReceivesRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddrReceivesRequest.ProtoReflect.Descriptor instead.

func (*AddrReceivesRequest) GetFilterAddr

func (x *AddrReceivesRequest) GetFilterAddr() string

func (*AddrReceivesRequest) GetFilterStatus

func (x *AddrReceivesRequest) GetFilterStatus() AddrEventStatus

func (*AddrReceivesRequest) ProtoMessage

func (*AddrReceivesRequest) ProtoMessage()

func (*AddrReceivesRequest) ProtoReflect

func (x *AddrReceivesRequest) ProtoReflect() protoreflect.Message

func (*AddrReceivesRequest) Reset

func (x *AddrReceivesRequest) Reset()

func (*AddrReceivesRequest) String

func (x *AddrReceivesRequest) String() string

type AddrReceivesResponse

type AddrReceivesResponse struct {

	// The events that match the filter criteria.
	Events []*AddrEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	// contains filtered or unexported fields
}

func (*AddrReceivesResponse) Descriptor deprecated

func (*AddrReceivesResponse) Descriptor() ([]byte, []int)

Deprecated: Use AddrReceivesResponse.ProtoReflect.Descriptor instead.

func (*AddrReceivesResponse) GetEvents

func (x *AddrReceivesResponse) GetEvents() []*AddrEvent

func (*AddrReceivesResponse) ProtoMessage

func (*AddrReceivesResponse) ProtoMessage()

func (*AddrReceivesResponse) ProtoReflect

func (x *AddrReceivesResponse) ProtoReflect() protoreflect.Message

func (*AddrReceivesResponse) Reset

func (x *AddrReceivesResponse) Reset()

func (*AddrReceivesResponse) String

func (x *AddrReceivesResponse) String() string

type AnchorInfo

type AnchorInfo struct {

	// The transaction that anchors the Taproot Asset commitment where the asset
	//
	//	resides.
	AnchorTx []byte `protobuf:"bytes,1,opt,name=anchor_tx,json=anchorTx,proto3" json:"anchor_tx,omitempty"`
	// The block hash the contains the anchor transaction above.
	AnchorBlockHash string `protobuf:"bytes,3,opt,name=anchor_block_hash,json=anchorBlockHash,proto3" json:"anchor_block_hash,omitempty"`
	// The outpoint (txid:vout) that stores the Taproot Asset commitment.
	AnchorOutpoint string `protobuf:"bytes,4,opt,name=anchor_outpoint,json=anchorOutpoint,proto3" json:"anchor_outpoint,omitempty"`
	// The raw internal key that was used to create the anchor Taproot output key.
	InternalKey []byte `protobuf:"bytes,5,opt,name=internal_key,json=internalKey,proto3" json:"internal_key,omitempty"`
	// The Taproot merkle root hash of the anchor output the asset was committed
	// to. If there is no Tapscript sibling, this is equal to the Taproot Asset
	// root commitment hash.
	MerkleRoot []byte `protobuf:"bytes,6,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty"`
	// The serialized preimage of a Tapscript sibling, if there was one. If this
	// is empty, then the merkle_root hash is equal to the Taproot root hash of the
	// anchor output.
	TapscriptSibling []byte `protobuf:"bytes,7,opt,name=tapscript_sibling,json=tapscriptSibling,proto3" json:"tapscript_sibling,omitempty"`
	// The height of the block which contains the anchor transaction.
	BlockHeight uint32 `protobuf:"varint,8,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// contains filtered or unexported fields
}

func (*AnchorInfo) Descriptor deprecated

func (*AnchorInfo) Descriptor() ([]byte, []int)

Deprecated: Use AnchorInfo.ProtoReflect.Descriptor instead.

func (*AnchorInfo) GetAnchorBlockHash

func (x *AnchorInfo) GetAnchorBlockHash() string

func (*AnchorInfo) GetAnchorOutpoint

func (x *AnchorInfo) GetAnchorOutpoint() string

func (*AnchorInfo) GetAnchorTx

func (x *AnchorInfo) GetAnchorTx() []byte

func (*AnchorInfo) GetBlockHeight added in v0.2.3

func (x *AnchorInfo) GetBlockHeight() uint32

func (*AnchorInfo) GetInternalKey

func (x *AnchorInfo) GetInternalKey() []byte

func (*AnchorInfo) GetMerkleRoot

func (x *AnchorInfo) GetMerkleRoot() []byte

func (*AnchorInfo) GetTapscriptSibling

func (x *AnchorInfo) GetTapscriptSibling() []byte

func (*AnchorInfo) ProtoMessage

func (*AnchorInfo) ProtoMessage()

func (*AnchorInfo) ProtoReflect

func (x *AnchorInfo) ProtoReflect() protoreflect.Message

func (*AnchorInfo) Reset

func (x *AnchorInfo) Reset()

func (*AnchorInfo) String

func (x *AnchorInfo) String() string

type Asset

type Asset struct {

	// The version of the Taproot Asset.
	Version AssetVersion `protobuf:"varint,1,opt,name=version,proto3,enum=taprpc.AssetVersion" json:"version,omitempty"`
	// The base genesis information of an asset. This information never changes.
	AssetGenesis *GenesisInfo `protobuf:"bytes,2,opt,name=asset_genesis,json=assetGenesis,proto3" json:"asset_genesis,omitempty"`
	// The total amount of the asset stored in this Taproot Asset UTXO.
	Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// An optional locktime, as with Bitcoin transactions.
	LockTime int32 `protobuf:"varint,5,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"`
	// An optional relative lock time, same as Bitcoin transactions.
	RelativeLockTime int32 `protobuf:"varint,6,opt,name=relative_lock_time,json=relativeLockTime,proto3" json:"relative_lock_time,omitempty"`
	// The version of the script, only version 0 is defined at present.
	ScriptVersion int32 `protobuf:"varint,7,opt,name=script_version,json=scriptVersion,proto3" json:"script_version,omitempty"`
	// The script key of the asset, which can be spent under Taproot semantics.
	ScriptKey []byte `protobuf:"bytes,9,opt,name=script_key,json=scriptKey,proto3" json:"script_key,omitempty"`
	// Indicates whether the script key is known to the wallet of the lnd node
	// connected to the Taproot Asset daemon.
	ScriptKeyIsLocal bool `protobuf:"varint,10,opt,name=script_key_is_local,json=scriptKeyIsLocal,proto3" json:"script_key_is_local,omitempty"`
	// The information related to the key group of an asset (if it exists).
	AssetGroup *AssetGroup `protobuf:"bytes,11,opt,name=asset_group,json=assetGroup,proto3" json:"asset_group,omitempty"`
	// Describes where in the chain the asset is currently anchored.
	ChainAnchor   *AnchorInfo    `protobuf:"bytes,12,opt,name=chain_anchor,json=chainAnchor,proto3" json:"chain_anchor,omitempty"`
	PrevWitnesses []*PrevWitness `protobuf:"bytes,13,rep,name=prev_witnesses,json=prevWitnesses,proto3" json:"prev_witnesses,omitempty"`
	// Indicates whether the asset has been spent.
	IsSpent bool `protobuf:"varint,14,opt,name=is_spent,json=isSpent,proto3" json:"is_spent,omitempty"`
	// If the asset has been leased, this is the owner (application ID) of the
	// lease.
	LeaseOwner []byte `protobuf:"bytes,15,opt,name=lease_owner,json=leaseOwner,proto3" json:"lease_owner,omitempty"`
	// If the asset has been leased, this is the expiry of the lease as a Unix
	// timestamp in seconds.
	LeaseExpiry int64 `protobuf:"varint,16,opt,name=lease_expiry,json=leaseExpiry,proto3" json:"lease_expiry,omitempty"`
	// Indicates whether this transfer was an asset burn. If true, the number of
	// assets in this output are destroyed and can no longer be spent.
	IsBurn bool `protobuf:"varint,17,opt,name=is_burn,json=isBurn,proto3" json:"is_burn,omitempty"`
	// contains filtered or unexported fields
}

func MarshalAsset added in v0.3.0

func MarshalAsset(ctx context.Context, a *asset.Asset,
	isSpent, withWitness bool,
	keyRing KeyLookup) (*Asset, error)

MarshalAsset converts an asset to its rpc representation.

func (*Asset) Descriptor deprecated

func (*Asset) Descriptor() ([]byte, []int)

Deprecated: Use Asset.ProtoReflect.Descriptor instead.

func (*Asset) GetAmount

func (x *Asset) GetAmount() uint64

func (*Asset) GetAssetGenesis

func (x *Asset) GetAssetGenesis() *GenesisInfo

func (*Asset) GetAssetGroup

func (x *Asset) GetAssetGroup() *AssetGroup

func (*Asset) GetChainAnchor

func (x *Asset) GetChainAnchor() *AnchorInfo

func (*Asset) GetIsBurn added in v0.3.0

func (x *Asset) GetIsBurn() bool

func (*Asset) GetIsSpent

func (x *Asset) GetIsSpent() bool

func (*Asset) GetLeaseExpiry added in v0.3.0

func (x *Asset) GetLeaseExpiry() int64

func (*Asset) GetLeaseOwner added in v0.3.0

func (x *Asset) GetLeaseOwner() []byte

func (*Asset) GetLockTime

func (x *Asset) GetLockTime() int32

func (*Asset) GetPrevWitnesses

func (x *Asset) GetPrevWitnesses() []*PrevWitness

func (*Asset) GetRelativeLockTime

func (x *Asset) GetRelativeLockTime() int32

func (*Asset) GetScriptKey

func (x *Asset) GetScriptKey() []byte

func (*Asset) GetScriptKeyIsLocal

func (x *Asset) GetScriptKeyIsLocal() bool

func (*Asset) GetScriptVersion

func (x *Asset) GetScriptVersion() int32

func (*Asset) GetVersion

func (x *Asset) GetVersion() AssetVersion

func (*Asset) ProtoMessage

func (*Asset) ProtoMessage()

func (*Asset) ProtoReflect

func (x *Asset) ProtoReflect() protoreflect.Message

func (*Asset) Reset

func (x *Asset) Reset()

func (*Asset) String

func (x *Asset) String() string

type AssetBalance

type AssetBalance struct {

	// The base genesis information of an asset. This information never changes.
	AssetGenesis *GenesisInfo `protobuf:"bytes,1,opt,name=asset_genesis,json=assetGenesis,proto3" json:"asset_genesis,omitempty"`
	// The balance of the asset owned by the target daemon.
	Balance uint64 `protobuf:"varint,3,opt,name=balance,proto3" json:"balance,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetBalance) Descriptor deprecated

func (*AssetBalance) Descriptor() ([]byte, []int)

Deprecated: Use AssetBalance.ProtoReflect.Descriptor instead.

func (*AssetBalance) GetAssetGenesis

func (x *AssetBalance) GetAssetGenesis() *GenesisInfo

func (*AssetBalance) GetBalance

func (x *AssetBalance) GetBalance() uint64

func (*AssetBalance) ProtoMessage

func (*AssetBalance) ProtoMessage()

func (*AssetBalance) ProtoReflect

func (x *AssetBalance) ProtoReflect() protoreflect.Message

func (*AssetBalance) Reset

func (x *AssetBalance) Reset()

func (*AssetBalance) String

func (x *AssetBalance) String() string

type AssetGroup

type AssetGroup struct {

	// The raw group key which is a normal public key.
	RawGroupKey []byte `protobuf:"bytes,1,opt,name=raw_group_key,json=rawGroupKey,proto3" json:"raw_group_key,omitempty"`
	// The tweaked group key, which is derived based on the genesis point and also
	// asset type.
	TweakedGroupKey []byte `protobuf:"bytes,2,opt,name=tweaked_group_key,json=tweakedGroupKey,proto3" json:"tweaked_group_key,omitempty"`
	// A witness that authorizes a specific asset to be part of the asset group
	// specified by the above key.
	AssetWitness []byte `protobuf:"bytes,3,opt,name=asset_witness,json=assetWitness,proto3" json:"asset_witness,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetGroup) Descriptor deprecated

func (*AssetGroup) Descriptor() ([]byte, []int)

Deprecated: Use AssetGroup.ProtoReflect.Descriptor instead.

func (*AssetGroup) GetAssetWitness added in v0.3.0

func (x *AssetGroup) GetAssetWitness() []byte

func (*AssetGroup) GetRawGroupKey

func (x *AssetGroup) GetRawGroupKey() []byte

func (*AssetGroup) GetTweakedGroupKey

func (x *AssetGroup) GetTweakedGroupKey() []byte

func (*AssetGroup) ProtoMessage

func (*AssetGroup) ProtoMessage()

func (*AssetGroup) ProtoReflect

func (x *AssetGroup) ProtoReflect() protoreflect.Message

func (*AssetGroup) Reset

func (x *AssetGroup) Reset()

func (*AssetGroup) String

func (x *AssetGroup) String() string

type AssetGroupBalance

type AssetGroupBalance struct {

	// The group key or nil aggregating assets that don't have a group.
	GroupKey []byte `protobuf:"bytes,1,opt,name=group_key,json=groupKey,proto3" json:"group_key,omitempty"`
	// The total balance of the assets in the group.
	Balance uint64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetGroupBalance) Descriptor deprecated

func (*AssetGroupBalance) Descriptor() ([]byte, []int)

Deprecated: Use AssetGroupBalance.ProtoReflect.Descriptor instead.

func (*AssetGroupBalance) GetBalance

func (x *AssetGroupBalance) GetBalance() uint64

func (*AssetGroupBalance) GetGroupKey

func (x *AssetGroupBalance) GetGroupKey() []byte

func (*AssetGroupBalance) ProtoMessage

func (*AssetGroupBalance) ProtoMessage()

func (*AssetGroupBalance) ProtoReflect

func (x *AssetGroupBalance) ProtoReflect() protoreflect.Message

func (*AssetGroupBalance) Reset

func (x *AssetGroupBalance) Reset()

func (*AssetGroupBalance) String

func (x *AssetGroupBalance) String() string

type AssetHumanReadable

type AssetHumanReadable struct {

	// The ID of the asset.
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The amount of the asset.
	Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// An optional locktime, as with Bitcoin transactions.
	LockTime int32 `protobuf:"varint,3,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"`
	// An optional relative locktime, as with Bitcoin transactions.
	RelativeLockTime int32 `protobuf:"varint,4,opt,name=relative_lock_time,json=relativeLockTime,proto3" json:"relative_lock_time,omitempty"`
	// The name of the asset.
	Tag string `protobuf:"bytes,5,opt,name=tag,proto3" json:"tag,omitempty"`
	// The metadata hash of the asset.
	MetaHash []byte `protobuf:"bytes,6,opt,name=meta_hash,json=metaHash,proto3" json:"meta_hash,omitempty"`
	// The type of the asset.
	Type AssetType `protobuf:"varint,7,opt,name=type,proto3,enum=taprpc.AssetType" json:"type,omitempty"`
	// The version of the asset.
	Version AssetVersion `protobuf:"varint,8,opt,name=version,proto3,enum=taprpc.AssetVersion" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetHumanReadable) Descriptor deprecated

func (*AssetHumanReadable) Descriptor() ([]byte, []int)

Deprecated: Use AssetHumanReadable.ProtoReflect.Descriptor instead.

func (*AssetHumanReadable) GetAmount

func (x *AssetHumanReadable) GetAmount() uint64

func (*AssetHumanReadable) GetId

func (x *AssetHumanReadable) GetId() []byte

func (*AssetHumanReadable) GetLockTime

func (x *AssetHumanReadable) GetLockTime() int32

func (*AssetHumanReadable) GetMetaHash

func (x *AssetHumanReadable) GetMetaHash() []byte

func (*AssetHumanReadable) GetRelativeLockTime

func (x *AssetHumanReadable) GetRelativeLockTime() int32

func (*AssetHumanReadable) GetTag

func (x *AssetHumanReadable) GetTag() string

func (*AssetHumanReadable) GetType

func (x *AssetHumanReadable) GetType() AssetType

func (*AssetHumanReadable) GetVersion added in v0.3.0

func (x *AssetHumanReadable) GetVersion() AssetVersion

func (*AssetHumanReadable) ProtoMessage

func (*AssetHumanReadable) ProtoMessage()

func (*AssetHumanReadable) ProtoReflect

func (x *AssetHumanReadable) ProtoReflect() protoreflect.Message

func (*AssetHumanReadable) Reset

func (x *AssetHumanReadable) Reset()

func (*AssetHumanReadable) String

func (x *AssetHumanReadable) String() string

type AssetMeta

type AssetMeta struct {

	// The raw data of the asset meta data. Based on the type below, this may be
	// structured data such as a text file or PDF. The size of the data is limited
	// to 1MiB.
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// The type of the asset meta data.
	Type AssetMetaType `protobuf:"varint,2,opt,name=type,proto3,enum=taprpc.AssetMetaType" json:"type,omitempty"`
	// The hash of the meta. This is the hash of the TLV serialization of the meta
	// itself.
	MetaHash []byte `protobuf:"bytes,3,opt,name=meta_hash,json=metaHash,proto3" json:"meta_hash,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetMeta) Descriptor deprecated

func (*AssetMeta) Descriptor() ([]byte, []int)

Deprecated: Use AssetMeta.ProtoReflect.Descriptor instead.

func (*AssetMeta) GetData

func (x *AssetMeta) GetData() []byte

func (*AssetMeta) GetMetaHash

func (x *AssetMeta) GetMetaHash() []byte

func (*AssetMeta) GetType

func (x *AssetMeta) GetType() AssetMetaType

func (*AssetMeta) ProtoMessage

func (*AssetMeta) ProtoMessage()

func (*AssetMeta) ProtoReflect

func (x *AssetMeta) ProtoReflect() protoreflect.Message

func (*AssetMeta) Reset

func (x *AssetMeta) Reset()

func (*AssetMeta) String

func (x *AssetMeta) String() string

type AssetMetaType

type AssetMetaType int32
const (
	// Opaque is used for asset meta blobs that have no true structure and instead
	// should be interpreted as opaque blobs.
	AssetMetaType_META_TYPE_OPAQUE AssetMetaType = 0
)

func (AssetMetaType) Descriptor

func (AssetMetaType) Enum

func (x AssetMetaType) Enum() *AssetMetaType

func (AssetMetaType) EnumDescriptor deprecated

func (AssetMetaType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AssetMetaType.Descriptor instead.

func (AssetMetaType) Number

func (AssetMetaType) String

func (x AssetMetaType) String() string

func (AssetMetaType) Type

type AssetReceiveCompleteEvent added in v0.3.2

type AssetReceiveCompleteEvent struct {

	// Event creation timestamp.
	Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The address that received the asset.
	Address *Addr `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// The outpoint of the transaction that was used to receive the asset.
	Outpoint string `protobuf:"bytes,3,opt,name=outpoint,proto3" json:"outpoint,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetReceiveCompleteEvent) Descriptor deprecated added in v0.3.2

func (*AssetReceiveCompleteEvent) Descriptor() ([]byte, []int)

Deprecated: Use AssetReceiveCompleteEvent.ProtoReflect.Descriptor instead.

func (*AssetReceiveCompleteEvent) GetAddress added in v0.3.2

func (x *AssetReceiveCompleteEvent) GetAddress() *Addr

func (*AssetReceiveCompleteEvent) GetOutpoint added in v0.3.2

func (x *AssetReceiveCompleteEvent) GetOutpoint() string

func (*AssetReceiveCompleteEvent) GetTimestamp added in v0.3.2

func (x *AssetReceiveCompleteEvent) GetTimestamp() int64

func (*AssetReceiveCompleteEvent) ProtoMessage added in v0.3.2

func (*AssetReceiveCompleteEvent) ProtoMessage()

func (*AssetReceiveCompleteEvent) ProtoReflect added in v0.3.2

func (*AssetReceiveCompleteEvent) Reset added in v0.3.2

func (x *AssetReceiveCompleteEvent) Reset()

func (*AssetReceiveCompleteEvent) String added in v0.3.2

func (x *AssetReceiveCompleteEvent) String() string

type AssetTransfer

type AssetTransfer struct {
	TransferTimestamp int64 `protobuf:"varint,1,opt,name=transfer_timestamp,json=transferTimestamp,proto3" json:"transfer_timestamp,omitempty"`
	// The new transaction that commits to the set of Taproot Assets found
	// at the above new anchor point.
	AnchorTxHash       []byte `protobuf:"bytes,2,opt,name=anchor_tx_hash,json=anchorTxHash,proto3" json:"anchor_tx_hash,omitempty"`
	AnchorTxHeightHint uint32 `protobuf:"varint,3,opt,name=anchor_tx_height_hint,json=anchorTxHeightHint,proto3" json:"anchor_tx_height_hint,omitempty"`
	AnchorTxChainFees  int64  `protobuf:"varint,4,opt,name=anchor_tx_chain_fees,json=anchorTxChainFees,proto3" json:"anchor_tx_chain_fees,omitempty"`
	// Describes the set of spent assets.
	Inputs []*TransferInput `protobuf:"bytes,5,rep,name=inputs,proto3" json:"inputs,omitempty"`
	// Describes the set of newly created asset outputs.
	Outputs []*TransferOutput `protobuf:"bytes,6,rep,name=outputs,proto3" json:"outputs,omitempty"`
	// contains filtered or unexported fields
}

func (*AssetTransfer) Descriptor deprecated

func (*AssetTransfer) Descriptor() ([]byte, []int)

Deprecated: Use AssetTransfer.ProtoReflect.Descriptor instead.

func (*AssetTransfer) GetAnchorTxChainFees

func (x *AssetTransfer) GetAnchorTxChainFees() int64

func (*AssetTransfer) GetAnchorTxHash

func (x *AssetTransfer) GetAnchorTxHash() []byte

func (*AssetTransfer) GetAnchorTxHeightHint

func (x *AssetTransfer) GetAnchorTxHeightHint() uint32

func (*AssetTransfer) GetInputs

func (x *AssetTransfer) GetInputs() []*TransferInput

func (*AssetTransfer) GetOutputs

func (x *AssetTransfer) GetOutputs() []*TransferOutput

func (*AssetTransfer) GetTransferTimestamp

func (x *AssetTransfer) GetTransferTimestamp() int64

func (*AssetTransfer) ProtoMessage

func (*AssetTransfer) ProtoMessage()

func (*AssetTransfer) ProtoReflect

func (x *AssetTransfer) ProtoReflect() protoreflect.Message

func (*AssetTransfer) Reset

func (x *AssetTransfer) Reset()

func (*AssetTransfer) String

func (x *AssetTransfer) String() string

type AssetType

type AssetType int32
const (
	// Indicates that an asset is capable of being split/merged, with each of the
	// units being fungible, even across a key asset ID boundary (assuming the
	// key group is the same).
	AssetType_NORMAL AssetType = 0
	// Indicates that an asset is a collectible, meaning that each of the other
	// items under the same key group are not fully fungible with each other.
	// Collectibles also cannot be split or merged.
	AssetType_COLLECTIBLE AssetType = 1
)

func (AssetType) Descriptor

func (AssetType) Descriptor() protoreflect.EnumDescriptor

func (AssetType) Enum

func (x AssetType) Enum() *AssetType

func (AssetType) EnumDescriptor deprecated

func (AssetType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AssetType.Descriptor instead.

func (AssetType) Number

func (x AssetType) Number() protoreflect.EnumNumber

func (AssetType) String

func (x AssetType) String() string

func (AssetType) Type

type AssetVersion added in v0.3.0

type AssetVersion int32
const (
	// ASSET_VERSION_V0 is the default asset version. This version will include
	// the witness vector in the leaf for a tap commitment.
	AssetVersion_ASSET_VERSION_V0 AssetVersion = 0
	// ASSET_VERSION_V1 is the asset version that leaves out the witness vector
	// from the MS-SMT leaf encoding.
	AssetVersion_ASSET_VERSION_V1 AssetVersion = 1
)

func MarshalAssetVersion added in v0.3.0

func MarshalAssetVersion(version asset.Version) (AssetVersion, error)

MarshalAssetVersion parses an asset version from the RPC variant.

func (AssetVersion) Descriptor added in v0.3.0

func (AssetVersion) Enum added in v0.3.0

func (x AssetVersion) Enum() *AssetVersion

func (AssetVersion) EnumDescriptor deprecated added in v0.3.0

func (AssetVersion) EnumDescriptor() ([]byte, []int)

Deprecated: Use AssetVersion.Descriptor instead.

func (AssetVersion) Number added in v0.3.0

func (AssetVersion) String added in v0.3.0

func (x AssetVersion) String() string

func (AssetVersion) Type added in v0.3.0

type BurnAssetRequest added in v0.3.0

type BurnAssetRequest struct {

	// Types that are assignable to Asset:
	//
	//	*BurnAssetRequest_AssetId
	//	*BurnAssetRequest_AssetIdStr
	Asset        isBurnAssetRequest_Asset `protobuf_oneof:"asset"`
	AmountToBurn uint64                   `protobuf:"varint,3,opt,name=amount_to_burn,json=amountToBurn,proto3" json:"amount_to_burn,omitempty"`
	// A safety check to ensure the user is aware of the destructive nature of
	// the burn. This needs to be set to the value "assets will be destroyed"
	// for the burn to succeed.
	ConfirmationText string `protobuf:"bytes,4,opt,name=confirmation_text,json=confirmationText,proto3" json:"confirmation_text,omitempty"`
	// contains filtered or unexported fields
}

func (*BurnAssetRequest) Descriptor deprecated added in v0.3.0

func (*BurnAssetRequest) Descriptor() ([]byte, []int)

Deprecated: Use BurnAssetRequest.ProtoReflect.Descriptor instead.

func (*BurnAssetRequest) GetAmountToBurn added in v0.3.0

func (x *BurnAssetRequest) GetAmountToBurn() uint64

func (*BurnAssetRequest) GetAsset added in v0.3.0

func (m *BurnAssetRequest) GetAsset() isBurnAssetRequest_Asset

func (*BurnAssetRequest) GetAssetId added in v0.3.0

func (x *BurnAssetRequest) GetAssetId() []byte

func (*BurnAssetRequest) GetAssetIdStr added in v0.3.0

func (x *BurnAssetRequest) GetAssetIdStr() string

func (*BurnAssetRequest) GetConfirmationText added in v0.3.0

func (x *BurnAssetRequest) GetConfirmationText() string

func (*BurnAssetRequest) ProtoMessage added in v0.3.0

func (*BurnAssetRequest) ProtoMessage()

func (*BurnAssetRequest) ProtoReflect added in v0.3.0

func (x *BurnAssetRequest) ProtoReflect() protoreflect.Message

func (*BurnAssetRequest) Reset added in v0.3.0

func (x *BurnAssetRequest) Reset()

func (*BurnAssetRequest) String added in v0.3.0

func (x *BurnAssetRequest) String() string

type BurnAssetRequest_AssetId added in v0.3.0

type BurnAssetRequest_AssetId struct {
	// The asset ID of the asset to burn units of.
	AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3,oneof"`
}

type BurnAssetRequest_AssetIdStr added in v0.3.0

type BurnAssetRequest_AssetIdStr struct {
	// The hex encoded asset ID of the asset to burn units of.
	AssetIdStr string `protobuf:"bytes,2,opt,name=asset_id_str,json=assetIdStr,proto3,oneof"`
}

type BurnAssetResponse added in v0.3.0

type BurnAssetResponse struct {

	// The asset transfer that contains the asset burn as an output.
	BurnTransfer *AssetTransfer `protobuf:"bytes,1,opt,name=burn_transfer,json=burnTransfer,proto3" json:"burn_transfer,omitempty"`
	// The burn transition proof for the asset burn output.
	BurnProof *DecodedProof `protobuf:"bytes,2,opt,name=burn_proof,json=burnProof,proto3" json:"burn_proof,omitempty"`
	// contains filtered or unexported fields
}

func (*BurnAssetResponse) Descriptor deprecated added in v0.3.0

func (*BurnAssetResponse) Descriptor() ([]byte, []int)

Deprecated: Use BurnAssetResponse.ProtoReflect.Descriptor instead.

func (*BurnAssetResponse) GetBurnProof added in v0.3.0

func (x *BurnAssetResponse) GetBurnProof() *DecodedProof

func (*BurnAssetResponse) GetBurnTransfer added in v0.3.0

func (x *BurnAssetResponse) GetBurnTransfer() *AssetTransfer

func (*BurnAssetResponse) ProtoMessage added in v0.3.0

func (*BurnAssetResponse) ProtoMessage()

func (*BurnAssetResponse) ProtoReflect added in v0.3.0

func (x *BurnAssetResponse) ProtoReflect() protoreflect.Message

func (*BurnAssetResponse) Reset added in v0.3.0

func (x *BurnAssetResponse) Reset()

func (*BurnAssetResponse) String added in v0.3.0

func (x *BurnAssetResponse) String() string

type DebugLevelRequest

type DebugLevelRequest struct {

	// If true, all the valid debug sub-systems will be returned.
	Show      bool   `protobuf:"varint,1,opt,name=show,proto3" json:"show,omitempty"`
	LevelSpec string `protobuf:"bytes,2,opt,name=level_spec,json=levelSpec,proto3" json:"level_spec,omitempty"`
	// contains filtered or unexported fields
}

func (*DebugLevelRequest) Descriptor deprecated

func (*DebugLevelRequest) Descriptor() ([]byte, []int)

Deprecated: Use DebugLevelRequest.ProtoReflect.Descriptor instead.

func (*DebugLevelRequest) GetLevelSpec

func (x *DebugLevelRequest) GetLevelSpec() string

func (*DebugLevelRequest) GetShow

func (x *DebugLevelRequest) GetShow() bool

func (*DebugLevelRequest) ProtoMessage

func (*DebugLevelRequest) ProtoMessage()

func (*DebugLevelRequest) ProtoReflect

func (x *DebugLevelRequest) ProtoReflect() protoreflect.Message

func (*DebugLevelRequest) Reset

func (x *DebugLevelRequest) Reset()

func (*DebugLevelRequest) String

func (x *DebugLevelRequest) String() string

type DebugLevelResponse

type DebugLevelResponse struct {
	SubSystems string `protobuf:"bytes,1,opt,name=sub_systems,json=subSystems,proto3" json:"sub_systems,omitempty"`
	// contains filtered or unexported fields
}

func (*DebugLevelResponse) Descriptor deprecated

func (*DebugLevelResponse) Descriptor() ([]byte, []int)

Deprecated: Use DebugLevelResponse.ProtoReflect.Descriptor instead.

func (*DebugLevelResponse) GetSubSystems

func (x *DebugLevelResponse) GetSubSystems() string

func (*DebugLevelResponse) ProtoMessage

func (*DebugLevelResponse) ProtoMessage()

func (*DebugLevelResponse) ProtoReflect

func (x *DebugLevelResponse) ProtoReflect() protoreflect.Message

func (*DebugLevelResponse) Reset

func (x *DebugLevelResponse) Reset()

func (*DebugLevelResponse) String

func (x *DebugLevelResponse) String() string

type DecodeAddrRequest

type DecodeAddrRequest struct {
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	// contains filtered or unexported fields
}

func (*DecodeAddrRequest) Descriptor deprecated

func (*DecodeAddrRequest) Descriptor() ([]byte, []int)

Deprecated: Use DecodeAddrRequest.ProtoReflect.Descriptor instead.

func (*DecodeAddrRequest) GetAddr

func (x *DecodeAddrRequest) GetAddr() string

func (*DecodeAddrRequest) ProtoMessage

func (*DecodeAddrRequest) ProtoMessage()

func (*DecodeAddrRequest) ProtoReflect

func (x *DecodeAddrRequest) ProtoReflect() protoreflect.Message

func (*DecodeAddrRequest) Reset

func (x *DecodeAddrRequest) Reset()

func (*DecodeAddrRequest) String

func (x *DecodeAddrRequest) String() string

type DecodeProofRequest added in v0.2.1

type DecodeProofRequest struct {

	// The raw proof bytes to decode. This can be a full proof file or a single
	// mint/transition proof. If it is a full proof file, the proof_at_depth
	// field will be used to determine which individual proof within the file to
	// decode.
	RawProof []byte `protobuf:"bytes,1,opt,name=raw_proof,json=rawProof,proto3" json:"raw_proof,omitempty"`
	// The index depth of the decoded proof, with 0 being the latest proof. This
	// is ignored if the raw_proof is a single mint/transition proof and not a
	// proof file.
	ProofAtDepth uint32 `protobuf:"varint,2,opt,name=proof_at_depth,json=proofAtDepth,proto3" json:"proof_at_depth,omitempty"`
	// An option to include previous witnesses in decoding.
	WithPrevWitnesses bool `protobuf:"varint,3,opt,name=with_prev_witnesses,json=withPrevWitnesses,proto3" json:"with_prev_witnesses,omitempty"`
	// An option to attempt to retrieve the meta data associated with the proof.
	WithMetaReveal bool `protobuf:"varint,4,opt,name=with_meta_reveal,json=withMetaReveal,proto3" json:"with_meta_reveal,omitempty"`
	// contains filtered or unexported fields
}

func (*DecodeProofRequest) Descriptor deprecated added in v0.2.1

func (*DecodeProofRequest) Descriptor() ([]byte, []int)

Deprecated: Use DecodeProofRequest.ProtoReflect.Descriptor instead.

func (*DecodeProofRequest) GetProofAtDepth added in v0.2.1

func (x *DecodeProofRequest) GetProofAtDepth() uint32

func (*DecodeProofRequest) GetRawProof added in v0.2.1

func (x *DecodeProofRequest) GetRawProof() []byte

func (*DecodeProofRequest) GetWithMetaReveal added in v0.2.1

func (x *DecodeProofRequest) GetWithMetaReveal() bool

func (*DecodeProofRequest) GetWithPrevWitnesses added in v0.2.1

func (x *DecodeProofRequest) GetWithPrevWitnesses() bool

func (*DecodeProofRequest) ProtoMessage added in v0.2.1

func (*DecodeProofRequest) ProtoMessage()

func (*DecodeProofRequest) ProtoReflect added in v0.2.1

func (x *DecodeProofRequest) ProtoReflect() protoreflect.Message

func (*DecodeProofRequest) Reset added in v0.2.1

func (x *DecodeProofRequest) Reset()

func (*DecodeProofRequest) String added in v0.2.1

func (x *DecodeProofRequest) String() string

type DecodeProofResponse added in v0.2.1

type DecodeProofResponse struct {
	DecodedProof *DecodedProof `protobuf:"bytes,1,opt,name=decoded_proof,json=decodedProof,proto3" json:"decoded_proof,omitempty"`
	// contains filtered or unexported fields
}

func (*DecodeProofResponse) Descriptor deprecated added in v0.2.1

func (*DecodeProofResponse) Descriptor() ([]byte, []int)

Deprecated: Use DecodeProofResponse.ProtoReflect.Descriptor instead.

func (*DecodeProofResponse) GetDecodedProof added in v0.2.1

func (x *DecodeProofResponse) GetDecodedProof() *DecodedProof

func (*DecodeProofResponse) ProtoMessage added in v0.2.1

func (*DecodeProofResponse) ProtoMessage()

func (*DecodeProofResponse) ProtoReflect added in v0.2.1

func (x *DecodeProofResponse) ProtoReflect() protoreflect.Message

func (*DecodeProofResponse) Reset added in v0.2.1

func (x *DecodeProofResponse) Reset()

func (*DecodeProofResponse) String added in v0.2.1

func (x *DecodeProofResponse) String() string

type DecodedProof added in v0.2.1

type DecodedProof struct {

	// The index depth of the decoded proof, with 0 being the latest proof.
	ProofAtDepth uint32 `protobuf:"varint,1,opt,name=proof_at_depth,json=proofAtDepth,proto3" json:"proof_at_depth,omitempty"`
	// The total number of proofs contained in the decoded proof file (this will
	// always be 1 if a single mint/transition proof was given as the raw_proof
	// instead of a file).
	NumberOfProofs uint32 `protobuf:"varint,2,opt,name=number_of_proofs,json=numberOfProofs,proto3" json:"number_of_proofs,omitempty"`
	// The asset referenced in the proof.
	Asset *Asset `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"`
	// The reveal meta data associated with the proof, if available.
	MetaReveal *AssetMeta `protobuf:"bytes,4,opt,name=meta_reveal,json=metaReveal,proto3" json:"meta_reveal,omitempty"`
	// The merkle proof for AnchorTx used to prove its
	// inclusion within BlockHeader.
	TxMerkleProof []byte `protobuf:"bytes,5,opt,name=tx_merkle_proof,json=txMerkleProof,proto3" json:"tx_merkle_proof,omitempty"`
	// The TaprootProof proving the new inclusion of the
	// resulting asset within AnchorTx.
	InclusionProof []byte `protobuf:"bytes,6,opt,name=inclusion_proof,json=inclusionProof,proto3" json:"inclusion_proof,omitempty"`
	// The set of TaprootProofs proving the exclusion of
	// the resulting asset from all other Taproot outputs within AnchorTx.
	ExclusionProofs [][]byte `protobuf:"bytes,7,rep,name=exclusion_proofs,json=exclusionProofs,proto3" json:"exclusion_proofs,omitempty"`
	// An optional TaprootProof needed if this asset is
	// the result of a split. SplitRootProof proves inclusion of the root
	// asset of the split.
	SplitRootProof []byte `protobuf:"bytes,8,opt,name=split_root_proof,json=splitRootProof,proto3" json:"split_root_proof,omitempty"`
	// The number of additional nested full proofs for any inputs found within
	// the resulting asset.
	NumAdditionalInputs uint32 `protobuf:"varint,9,opt,name=num_additional_inputs,json=numAdditionalInputs,proto3" json:"num_additional_inputs,omitempty"`
	// ChallengeWitness is an optional virtual transaction witness that serves
	// as an ownership proof for the asset. If this is non-nil, then it is a
	// valid transfer witness for a 1-input, 1-output virtual transaction that
	// spends the asset in this proof and sends it to the NUMS key, to prove
	// that the creator of the proof is able to produce a valid signature to
	// spend the asset.
	ChallengeWitness [][]byte `protobuf:"bytes,10,rep,name=challenge_witness,json=challengeWitness,proto3" json:"challenge_witness,omitempty"`
	// Indicates whether the state transition this proof represents is a burn,
	// meaning that the assets were provably destroyed and can no longer be
	// spent.
	IsBurn bool `protobuf:"varint,11,opt,name=is_burn,json=isBurn,proto3" json:"is_burn,omitempty"`
	// GenesisReveal is an optional field that is the Genesis information for
	// the asset. This is required for minting proofs.
	GenesisReveal *GenesisReveal `protobuf:"bytes,12,opt,name=genesis_reveal,json=genesisReveal,proto3" json:"genesis_reveal,omitempty"`
	// GroupKeyReveal is an optional field that includes the information needed
	// to derive the tweaked group key.
	GroupKeyReveal *GroupKeyReveal `protobuf:"bytes,13,opt,name=group_key_reveal,json=groupKeyReveal,proto3" json:"group_key_reveal,omitempty"`
	// contains filtered or unexported fields
}

func (*DecodedProof) Descriptor deprecated added in v0.2.1

func (*DecodedProof) Descriptor() ([]byte, []int)

Deprecated: Use DecodedProof.ProtoReflect.Descriptor instead.

func (*DecodedProof) GetAsset added in v0.2.1

func (x *DecodedProof) GetAsset() *Asset

func (*DecodedProof) GetChallengeWitness added in v0.2.1

func (x *DecodedProof) GetChallengeWitness() [][]byte

func (*DecodedProof) GetExclusionProofs added in v0.2.1

func (x *DecodedProof) GetExclusionProofs() [][]byte

func (*DecodedProof) GetGenesisReveal added in v0.3.0

func (x *DecodedProof) GetGenesisReveal() *GenesisReveal

func (*DecodedProof) GetGroupKeyReveal added in v0.3.0

func (x *DecodedProof) GetGroupKeyReveal() *GroupKeyReveal

func (*DecodedProof) GetInclusionProof added in v0.2.1

func (x *DecodedProof) GetInclusionProof() []byte

func (*DecodedProof) GetIsBurn added in v0.3.0

func (x *DecodedProof) GetIsBurn() bool

func (*DecodedProof) GetMetaReveal added in v0.2.1

func (x *DecodedProof) GetMetaReveal() *AssetMeta

func (*DecodedProof) GetNumAdditionalInputs added in v0.2.1

func (x *DecodedProof) GetNumAdditionalInputs() uint32

func (*DecodedProof) GetNumberOfProofs added in v0.2.1

func (x *DecodedProof) GetNumberOfProofs() uint32

func (*DecodedProof) GetProofAtDepth added in v0.2.1

func (x *DecodedProof) GetProofAtDepth() uint32

func (*DecodedProof) GetSplitRootProof added in v0.2.1

func (x *DecodedProof) GetSplitRootProof() []byte

func (*DecodedProof) GetTxMerkleProof added in v0.2.1

func (x *DecodedProof) GetTxMerkleProof() []byte

func (*DecodedProof) ProtoMessage added in v0.2.1

func (*DecodedProof) ProtoMessage()

func (*DecodedProof) ProtoReflect added in v0.2.1

func (x *DecodedProof) ProtoReflect() protoreflect.Message

func (*DecodedProof) Reset added in v0.2.1

func (x *DecodedProof) Reset()

func (*DecodedProof) String added in v0.2.1

func (x *DecodedProof) String() string

type ExecuteSendStateEvent

type ExecuteSendStateEvent struct {

	// Execute timestamp (microseconds).
	Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The send state that is about to be executed.
	SendState string `protobuf:"bytes,2,opt,name=send_state,json=sendState,proto3" json:"send_state,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecuteSendStateEvent) Descriptor deprecated

func (*ExecuteSendStateEvent) Descriptor() ([]byte, []int)

Deprecated: Use ExecuteSendStateEvent.ProtoReflect.Descriptor instead.

func (*ExecuteSendStateEvent) GetSendState

func (x *ExecuteSendStateEvent) GetSendState() string

func (*ExecuteSendStateEvent) GetTimestamp

func (x *ExecuteSendStateEvent) GetTimestamp() int64

func (*ExecuteSendStateEvent) ProtoMessage

func (*ExecuteSendStateEvent) ProtoMessage()

func (*ExecuteSendStateEvent) ProtoReflect

func (x *ExecuteSendStateEvent) ProtoReflect() protoreflect.Message

func (*ExecuteSendStateEvent) Reset

func (x *ExecuteSendStateEvent) Reset()

func (*ExecuteSendStateEvent) String

func (x *ExecuteSendStateEvent) String() string

type ExportProofRequest

type ExportProofRequest struct {
	AssetId   []byte    `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
	ScriptKey []byte    `protobuf:"bytes,2,opt,name=script_key,json=scriptKey,proto3" json:"script_key,omitempty"`
	Outpoint  *OutPoint `protobuf:"bytes,3,opt,name=outpoint,proto3" json:"outpoint,omitempty"`
	// contains filtered or unexported fields
}

func (*ExportProofRequest) Descriptor deprecated

func (*ExportProofRequest) Descriptor() ([]byte, []int)

Deprecated: Use ExportProofRequest.ProtoReflect.Descriptor instead.

func (*ExportProofRequest) GetAssetId

func (x *ExportProofRequest) GetAssetId() []byte

func (*ExportProofRequest) GetOutpoint added in v0.3.3

func (x *ExportProofRequest) GetOutpoint() *OutPoint

func (*ExportProofRequest) GetScriptKey

func (x *ExportProofRequest) GetScriptKey() []byte

func (*ExportProofRequest) ProtoMessage

func (*ExportProofRequest) ProtoMessage()

func (*ExportProofRequest) ProtoReflect

func (x *ExportProofRequest) ProtoReflect() protoreflect.Message

func (*ExportProofRequest) Reset

func (x *ExportProofRequest) Reset()

func (*ExportProofRequest) String

func (x *ExportProofRequest) String() string

type FetchAssetMetaRequest

type FetchAssetMetaRequest struct {

	// Types that are assignable to Asset:
	//
	//	*FetchAssetMetaRequest_AssetId
	//	*FetchAssetMetaRequest_MetaHash
	//	*FetchAssetMetaRequest_AssetIdStr
	//	*FetchAssetMetaRequest_MetaHashStr
	Asset isFetchAssetMetaRequest_Asset `protobuf_oneof:"asset"`
	// contains filtered or unexported fields
}

func (*FetchAssetMetaRequest) Descriptor deprecated

func (*FetchAssetMetaRequest) Descriptor() ([]byte, []int)

Deprecated: Use FetchAssetMetaRequest.ProtoReflect.Descriptor instead.

func (*FetchAssetMetaRequest) GetAsset

func (m *FetchAssetMetaRequest) GetAsset() isFetchAssetMetaRequest_Asset

func (*FetchAssetMetaRequest) GetAssetId

func (x *FetchAssetMetaRequest) GetAssetId() []byte

func (*FetchAssetMetaRequest) GetAssetIdStr added in v0.3.0

func (x *FetchAssetMetaRequest) GetAssetIdStr() string

func (*FetchAssetMetaRequest) GetMetaHash

func (x *FetchAssetMetaRequest) GetMetaHash() []byte

func (*FetchAssetMetaRequest) GetMetaHashStr added in v0.3.0

func (x *FetchAssetMetaRequest) GetMetaHashStr() string

func (*FetchAssetMetaRequest) ProtoMessage

func (*FetchAssetMetaRequest) ProtoMessage()

func (*FetchAssetMetaRequest) ProtoReflect

func (x *FetchAssetMetaRequest) ProtoReflect() protoreflect.Message

func (*FetchAssetMetaRequest) Reset

func (x *FetchAssetMetaRequest) Reset()

func (*FetchAssetMetaRequest) String

func (x *FetchAssetMetaRequest) String() string

type FetchAssetMetaRequest_AssetId

type FetchAssetMetaRequest_AssetId struct {
	// The asset ID of the asset to fetch the meta for.
	AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3,oneof"`
}

type FetchAssetMetaRequest_AssetIdStr added in v0.3.0

type FetchAssetMetaRequest_AssetIdStr struct {
	// The hex encoded asset ID of the asset to fetch the meta for.
	AssetIdStr string `protobuf:"bytes,3,opt,name=asset_id_str,json=assetIdStr,proto3,oneof"`
}

type FetchAssetMetaRequest_MetaHash

type FetchAssetMetaRequest_MetaHash struct {
	// The 32-byte meta hash of the asset meta.
	MetaHash []byte `protobuf:"bytes,2,opt,name=meta_hash,json=metaHash,proto3,oneof"`
}

type FetchAssetMetaRequest_MetaHashStr added in v0.3.0

type FetchAssetMetaRequest_MetaHashStr struct {
	// The hex encoded meta hash of the asset meta.
	MetaHashStr string `protobuf:"bytes,4,opt,name=meta_hash_str,json=metaHashStr,proto3,oneof"`
}

type GenesisInfo

type GenesisInfo struct {

	// The first outpoint of the transaction that created the asset (txid:vout).
	GenesisPoint string `protobuf:"bytes,1,opt,name=genesis_point,json=genesisPoint,proto3" json:"genesis_point,omitempty"`
	// The name of the asset.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The hash of the meta data for this genesis asset.
	MetaHash []byte `protobuf:"bytes,3,opt,name=meta_hash,json=metaHash,proto3" json:"meta_hash,omitempty"`
	// The asset ID that uniquely identifies the asset.
	AssetId []byte `protobuf:"bytes,4,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
	// The type of the asset.
	AssetType AssetType `protobuf:"varint,5,opt,name=asset_type,json=assetType,proto3,enum=taprpc.AssetType" json:"asset_type,omitempty"`
	// The index of the output that carries the unique Taproot Asset commitment in
	// the genesis transaction.
	OutputIndex uint32 `protobuf:"varint,6,opt,name=output_index,json=outputIndex,proto3" json:"output_index,omitempty"`
	// The version of the Taproot Asset commitment that created this asset.
	Version int32 `protobuf:"varint,7,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*GenesisInfo) Descriptor deprecated

func (*GenesisInfo) Descriptor() ([]byte, []int)

Deprecated: Use GenesisInfo.ProtoReflect.Descriptor instead.

func (*GenesisInfo) GetAssetId

func (x *GenesisInfo) GetAssetId() []byte

func (*GenesisInfo) GetAssetType added in v0.3.1

func (x *GenesisInfo) GetAssetType() AssetType

func (*GenesisInfo) GetGenesisPoint

func (x *GenesisInfo) GetGenesisPoint() string

func (*GenesisInfo) GetMetaHash

func (x *GenesisInfo) GetMetaHash() []byte

func (*GenesisInfo) GetName

func (x *GenesisInfo) GetName() string

func (*GenesisInfo) GetOutputIndex

func (x *GenesisInfo) GetOutputIndex() uint32

func (*GenesisInfo) GetVersion

func (x *GenesisInfo) GetVersion() int32

func (*GenesisInfo) ProtoMessage

func (*GenesisInfo) ProtoMessage()

func (*GenesisInfo) ProtoReflect

func (x *GenesisInfo) ProtoReflect() protoreflect.Message

func (*GenesisInfo) Reset

func (x *GenesisInfo) Reset()

func (*GenesisInfo) String

func (x *GenesisInfo) String() string

type GenesisReveal added in v0.3.0

type GenesisReveal struct {

	// The base genesis information in the genesis reveal.
	GenesisBaseReveal *GenesisInfo `protobuf:"bytes,1,opt,name=genesis_base_reveal,json=genesisBaseReveal,proto3" json:"genesis_base_reveal,omitempty"`
	// contains filtered or unexported fields
}

func (*GenesisReveal) Descriptor deprecated added in v0.3.0

func (*GenesisReveal) Descriptor() ([]byte, []int)

Deprecated: Use GenesisReveal.ProtoReflect.Descriptor instead.

func (*GenesisReveal) GetGenesisBaseReveal added in v0.3.0

func (x *GenesisReveal) GetGenesisBaseReveal() *GenesisInfo

func (*GenesisReveal) ProtoMessage added in v0.3.0

func (*GenesisReveal) ProtoMessage()

func (*GenesisReveal) ProtoReflect added in v0.3.0

func (x *GenesisReveal) ProtoReflect() protoreflect.Message

func (*GenesisReveal) Reset added in v0.3.0

func (x *GenesisReveal) Reset()

func (*GenesisReveal) String added in v0.3.0

func (x *GenesisReveal) String() string

type GetInfoRequest added in v0.2.1

type GetInfoRequest struct {
	// contains filtered or unexported fields
}

func (*GetInfoRequest) Descriptor deprecated added in v0.2.1

func (*GetInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetInfoRequest.ProtoReflect.Descriptor instead.

func (*GetInfoRequest) ProtoMessage added in v0.2.1

func (*GetInfoRequest) ProtoMessage()

func (*GetInfoRequest) ProtoReflect added in v0.2.1

func (x *GetInfoRequest) ProtoReflect() protoreflect.Message

func (*GetInfoRequest) Reset added in v0.2.1

func (x *GetInfoRequest) Reset()

func (*GetInfoRequest) String added in v0.2.1

func (x *GetInfoRequest) String() string

type GetInfoResponse added in v0.2.1

type GetInfoResponse struct {
	Version           string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	LndVersion        string `protobuf:"bytes,2,opt,name=lnd_version,json=lndVersion,proto3" json:"lnd_version,omitempty"`
	Network           string `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"`
	LndIdentityPubkey string `protobuf:"bytes,4,opt,name=lnd_identity_pubkey,json=lndIdentityPubkey,proto3" json:"lnd_identity_pubkey,omitempty"`
	NodeAlias         string `protobuf:"bytes,5,opt,name=node_alias,json=nodeAlias,proto3" json:"node_alias,omitempty"`
	BlockHeight       uint32 `protobuf:"varint,6,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	BlockHash         string `protobuf:"bytes,7,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
	SyncToChain       bool   `protobuf:"varint,8,opt,name=sync_to_chain,json=syncToChain,proto3" json:"sync_to_chain,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInfoResponse) Descriptor deprecated added in v0.2.1

func (*GetInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetInfoResponse.ProtoReflect.Descriptor instead.

func (*GetInfoResponse) GetBlockHash added in v0.3.0

func (x *GetInfoResponse) GetBlockHash() string

func (*GetInfoResponse) GetBlockHeight added in v0.3.0

func (x *GetInfoResponse) GetBlockHeight() uint32

func (*GetInfoResponse) GetLndIdentityPubkey added in v0.3.0

func (x *GetInfoResponse) GetLndIdentityPubkey() string

func (*GetInfoResponse) GetLndVersion added in v0.2.1

func (x *GetInfoResponse) GetLndVersion() string

func (*GetInfoResponse) GetNetwork added in v0.2.1

func (x *GetInfoResponse) GetNetwork() string

func (*GetInfoResponse) GetNodeAlias added in v0.3.0

func (x *GetInfoResponse) GetNodeAlias() string

func (*GetInfoResponse) GetSyncToChain added in v0.3.0

func (x *GetInfoResponse) GetSyncToChain() bool

func (*GetInfoResponse) GetVersion added in v0.2.1

func (x *GetInfoResponse) GetVersion() string

func (*GetInfoResponse) ProtoMessage added in v0.2.1

func (*GetInfoResponse) ProtoMessage()

func (*GetInfoResponse) ProtoReflect added in v0.2.1

func (x *GetInfoResponse) ProtoReflect() protoreflect.Message

func (*GetInfoResponse) Reset added in v0.2.1

func (x *GetInfoResponse) Reset()

func (*GetInfoResponse) String added in v0.2.1

func (x *GetInfoResponse) String() string

type GroupKeyReveal added in v0.3.0

type GroupKeyReveal struct {

	// The raw group key which is a normal public key.
	RawGroupKey []byte `protobuf:"bytes,1,opt,name=raw_group_key,json=rawGroupKey,proto3" json:"raw_group_key,omitempty"`
	// The tapscript root included in the tweaked group key, which may be empty.
	TapscriptRoot []byte `protobuf:"bytes,2,opt,name=tapscript_root,json=tapscriptRoot,proto3" json:"tapscript_root,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupKeyReveal) Descriptor deprecated added in v0.3.0

func (*GroupKeyReveal) Descriptor() ([]byte, []int)

Deprecated: Use GroupKeyReveal.ProtoReflect.Descriptor instead.

func (*GroupKeyReveal) GetRawGroupKey added in v0.3.0

func (x *GroupKeyReveal) GetRawGroupKey() []byte

func (*GroupKeyReveal) GetTapscriptRoot added in v0.3.0

func (x *GroupKeyReveal) GetTapscriptRoot() []byte

func (*GroupKeyReveal) ProtoMessage added in v0.3.0

func (*GroupKeyReveal) ProtoMessage()

func (*GroupKeyReveal) ProtoReflect added in v0.3.0

func (x *GroupKeyReveal) ProtoReflect() protoreflect.Message

func (*GroupKeyReveal) Reset added in v0.3.0

func (x *GroupKeyReveal) Reset()

func (*GroupKeyReveal) String added in v0.3.0

func (x *GroupKeyReveal) String() string

type GroupedAssets

type GroupedAssets struct {

	// A list of assets with the same group key.
	Assets []*AssetHumanReadable `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupedAssets) Descriptor deprecated

func (*GroupedAssets) Descriptor() ([]byte, []int)

Deprecated: Use GroupedAssets.ProtoReflect.Descriptor instead.

func (*GroupedAssets) GetAssets

func (x *GroupedAssets) GetAssets() []*AssetHumanReadable

func (*GroupedAssets) ProtoMessage

func (*GroupedAssets) ProtoMessage()

func (*GroupedAssets) ProtoReflect

func (x *GroupedAssets) ProtoReflect() protoreflect.Message

func (*GroupedAssets) Reset

func (x *GroupedAssets) Reset()

func (*GroupedAssets) String

func (x *GroupedAssets) String() string

type KeyDescriptor

type KeyDescriptor struct {

	// The raw bytes of the key being identified.
	RawKeyBytes []byte `protobuf:"bytes,1,opt,name=raw_key_bytes,json=rawKeyBytes,proto3" json:"raw_key_bytes,omitempty"`
	// The key locator that identifies which key to use for signing.
	KeyLoc *KeyLocator `protobuf:"bytes,2,opt,name=key_loc,json=keyLoc,proto3" json:"key_loc,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyDescriptor) Descriptor deprecated

func (*KeyDescriptor) Descriptor() ([]byte, []int)

Deprecated: Use KeyDescriptor.ProtoReflect.Descriptor instead.

func (*KeyDescriptor) GetKeyLoc

func (x *KeyDescriptor) GetKeyLoc() *KeyLocator

func (*KeyDescriptor) GetRawKeyBytes

func (x *KeyDescriptor) GetRawKeyBytes() []byte

func (*KeyDescriptor) ProtoMessage

func (*KeyDescriptor) ProtoMessage()

func (*KeyDescriptor) ProtoReflect

func (x *KeyDescriptor) ProtoReflect() protoreflect.Message

func (*KeyDescriptor) Reset

func (x *KeyDescriptor) Reset()

func (*KeyDescriptor) String

func (x *KeyDescriptor) String() string

type KeyLocator

type KeyLocator struct {

	// The family of key being identified.
	KeyFamily int32 `protobuf:"varint,1,opt,name=key_family,json=keyFamily,proto3" json:"key_family,omitempty"`
	// The precise index of the key being identified.
	KeyIndex int32 `protobuf:"varint,2,opt,name=key_index,json=keyIndex,proto3" json:"key_index,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyLocator) Descriptor deprecated

func (*KeyLocator) Descriptor() ([]byte, []int)

Deprecated: Use KeyLocator.ProtoReflect.Descriptor instead.

func (*KeyLocator) GetKeyFamily

func (x *KeyLocator) GetKeyFamily() int32

func (*KeyLocator) GetKeyIndex

func (x *KeyLocator) GetKeyIndex() int32

func (*KeyLocator) ProtoMessage

func (*KeyLocator) ProtoMessage()

func (*KeyLocator) ProtoReflect

func (x *KeyLocator) ProtoReflect() protoreflect.Message

func (*KeyLocator) Reset

func (x *KeyLocator) Reset()

func (*KeyLocator) String

func (x *KeyLocator) String() string

type KeyLookup added in v0.3.0

type KeyLookup interface {
	// IsLocalKey returns true if the key is under the control of the
	// wallet and can be derived by it.
	IsLocalKey(ctx context.Context, desc keychain.KeyDescriptor) bool
}

KeyLookup is used to determine whether a key is under the control of the local wallet.

type ListAssetRequest

type ListAssetRequest struct {
	WithWitness   bool `protobuf:"varint,1,opt,name=with_witness,json=withWitness,proto3" json:"with_witness,omitempty"`
	IncludeSpent  bool `protobuf:"varint,2,opt,name=include_spent,json=includeSpent,proto3" json:"include_spent,omitempty"`
	IncludeLeased bool `protobuf:"varint,3,opt,name=include_leased,json=includeLeased,proto3" json:"include_leased,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAssetRequest) Descriptor deprecated

func (*ListAssetRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListAssetRequest.ProtoReflect.Descriptor instead.

func (*ListAssetRequest) GetIncludeLeased added in v0.3.0

func (x *ListAssetRequest) GetIncludeLeased() bool

func (*ListAssetRequest) GetIncludeSpent

func (x *ListAssetRequest) GetIncludeSpent() bool

func (*ListAssetRequest) GetWithWitness

func (x *ListAssetRequest) GetWithWitness() bool

func (*ListAssetRequest) ProtoMessage

func (*ListAssetRequest) ProtoMessage()

func (*ListAssetRequest) ProtoReflect

func (x *ListAssetRequest) ProtoReflect() protoreflect.Message

func (*ListAssetRequest) Reset

func (x *ListAssetRequest) Reset()

func (*ListAssetRequest) String

func (x *ListAssetRequest) String() string

type ListAssetResponse

type ListAssetResponse struct {
	Assets []*Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAssetResponse) Descriptor deprecated

func (*ListAssetResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListAssetResponse.ProtoReflect.Descriptor instead.

func (*ListAssetResponse) GetAssets

func (x *ListAssetResponse) GetAssets() []*Asset

func (*ListAssetResponse) ProtoMessage

func (*ListAssetResponse) ProtoMessage()

func (*ListAssetResponse) ProtoReflect

func (x *ListAssetResponse) ProtoReflect() protoreflect.Message

func (*ListAssetResponse) Reset

func (x *ListAssetResponse) Reset()

func (*ListAssetResponse) String

func (x *ListAssetResponse) String() string

type ListBalancesRequest

type ListBalancesRequest struct {

	// Types that are assignable to GroupBy:
	//
	//	*ListBalancesRequest_AssetId
	//	*ListBalancesRequest_GroupKey
	GroupBy isListBalancesRequest_GroupBy `protobuf_oneof:"group_by"`
	// If the query results should grouped by asset ids, then an optional asset
	// filter may be provided to query balance of a specific asset.
	AssetFilter []byte `protobuf:"bytes,3,opt,name=asset_filter,json=assetFilter,proto3" json:"asset_filter,omitempty"`
	// If the query results should be grouped by group keys, then an optional
	// group key filter may be provided to query the balance of a specific
	// asset group.
	GroupKeyFilter []byte `protobuf:"bytes,4,opt,name=group_key_filter,json=groupKeyFilter,proto3" json:"group_key_filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBalancesRequest) Descriptor deprecated

func (*ListBalancesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListBalancesRequest.ProtoReflect.Descriptor instead.

func (*ListBalancesRequest) GetAssetFilter

func (x *ListBalancesRequest) GetAssetFilter() []byte

func (*ListBalancesRequest) GetAssetId

func (x *ListBalancesRequest) GetAssetId() bool

func (*ListBalancesRequest) GetGroupBy

func (m *ListBalancesRequest) GetGroupBy() isListBalancesRequest_GroupBy

func (*ListBalancesRequest) GetGroupKey

func (x *ListBalancesRequest) GetGroupKey() bool

func (*ListBalancesRequest) GetGroupKeyFilter

func (x *ListBalancesRequest) GetGroupKeyFilter() []byte

func (*ListBalancesRequest) ProtoMessage

func (*ListBalancesRequest) ProtoMessage()

func (*ListBalancesRequest) ProtoReflect

func (x *ListBalancesRequest) ProtoReflect() protoreflect.Message

func (*ListBalancesRequest) Reset

func (x *ListBalancesRequest) Reset()

func (*ListBalancesRequest) String

func (x *ListBalancesRequest) String() string

type ListBalancesRequest_AssetId

type ListBalancesRequest_AssetId struct {
	// Group results by asset IDs.
	AssetId bool `protobuf:"varint,1,opt,name=asset_id,json=assetId,proto3,oneof"`
}

type ListBalancesRequest_GroupKey

type ListBalancesRequest_GroupKey struct {
	// Group results by group keys.
	GroupKey bool `protobuf:"varint,2,opt,name=group_key,json=groupKey,proto3,oneof"`
}

type ListBalancesResponse

type ListBalancesResponse struct {
	AssetBalances      map[string]*AssetBalance      `` /* 188-byte string literal not displayed */
	AssetGroupBalances map[string]*AssetGroupBalance `` /* 205-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListBalancesResponse) Descriptor deprecated

func (*ListBalancesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListBalancesResponse.ProtoReflect.Descriptor instead.

func (*ListBalancesResponse) GetAssetBalances

func (x *ListBalancesResponse) GetAssetBalances() map[string]*AssetBalance

func (*ListBalancesResponse) GetAssetGroupBalances

func (x *ListBalancesResponse) GetAssetGroupBalances() map[string]*AssetGroupBalance

func (*ListBalancesResponse) ProtoMessage

func (*ListBalancesResponse) ProtoMessage()

func (*ListBalancesResponse) ProtoReflect

func (x *ListBalancesResponse) ProtoReflect() protoreflect.Message

func (*ListBalancesResponse) Reset

func (x *ListBalancesResponse) Reset()

func (*ListBalancesResponse) String

func (x *ListBalancesResponse) String() string

type ListGroupsRequest

type ListGroupsRequest struct {
	// contains filtered or unexported fields
}

func (*ListGroupsRequest) Descriptor deprecated

func (*ListGroupsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListGroupsRequest.ProtoReflect.Descriptor instead.

func (*ListGroupsRequest) ProtoMessage

func (*ListGroupsRequest) ProtoMessage()

func (*ListGroupsRequest) ProtoReflect

func (x *ListGroupsRequest) ProtoReflect() protoreflect.Message

func (*ListGroupsRequest) Reset

func (x *ListGroupsRequest) Reset()

func (*ListGroupsRequest) String

func (x *ListGroupsRequest) String() string

type ListGroupsResponse

type ListGroupsResponse struct {

	// The set of assets with a group key.
	Groups map[string]*GroupedAssets `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListGroupsResponse) Descriptor deprecated

func (*ListGroupsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListGroupsResponse.ProtoReflect.Descriptor instead.

func (*ListGroupsResponse) GetGroups

func (x *ListGroupsResponse) GetGroups() map[string]*GroupedAssets

func (*ListGroupsResponse) ProtoMessage

func (*ListGroupsResponse) ProtoMessage()

func (*ListGroupsResponse) ProtoReflect

func (x *ListGroupsResponse) ProtoReflect() protoreflect.Message

func (*ListGroupsResponse) Reset

func (x *ListGroupsResponse) Reset()

func (*ListGroupsResponse) String

func (x *ListGroupsResponse) String() string

type ListTransfersRequest

type ListTransfersRequest struct {
	// contains filtered or unexported fields
}

func (*ListTransfersRequest) Descriptor deprecated

func (*ListTransfersRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListTransfersRequest.ProtoReflect.Descriptor instead.

func (*ListTransfersRequest) ProtoMessage

func (*ListTransfersRequest) ProtoMessage()

func (*ListTransfersRequest) ProtoReflect

func (x *ListTransfersRequest) ProtoReflect() protoreflect.Message

func (*ListTransfersRequest) Reset

func (x *ListTransfersRequest) Reset()

func (*ListTransfersRequest) String

func (x *ListTransfersRequest) String() string

type ListTransfersResponse

type ListTransfersResponse struct {

	// The unordered list of outgoing asset transfers.
	Transfers []*AssetTransfer `protobuf:"bytes,1,rep,name=transfers,proto3" json:"transfers,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTransfersResponse) Descriptor deprecated

func (*ListTransfersResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListTransfersResponse.ProtoReflect.Descriptor instead.

func (*ListTransfersResponse) GetTransfers

func (x *ListTransfersResponse) GetTransfers() []*AssetTransfer

func (*ListTransfersResponse) ProtoMessage

func (*ListTransfersResponse) ProtoMessage()

func (*ListTransfersResponse) ProtoReflect

func (x *ListTransfersResponse) ProtoReflect() protoreflect.Message

func (*ListTransfersResponse) Reset

func (x *ListTransfersResponse) Reset()

func (*ListTransfersResponse) String

func (x *ListTransfersResponse) String() string

type ListUtxosRequest

type ListUtxosRequest struct {
	IncludeLeased bool `protobuf:"varint,1,opt,name=include_leased,json=includeLeased,proto3" json:"include_leased,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUtxosRequest) Descriptor deprecated

func (*ListUtxosRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListUtxosRequest.ProtoReflect.Descriptor instead.

func (*ListUtxosRequest) GetIncludeLeased added in v0.3.0

func (x *ListUtxosRequest) GetIncludeLeased() bool

func (*ListUtxosRequest) ProtoMessage

func (*ListUtxosRequest) ProtoMessage()

func (*ListUtxosRequest) ProtoReflect

func (x *ListUtxosRequest) ProtoReflect() protoreflect.Message

func (*ListUtxosRequest) Reset

func (x *ListUtxosRequest) Reset()

func (*ListUtxosRequest) String

func (x *ListUtxosRequest) String() string

type ListUtxosResponse

type ListUtxosResponse struct {

	// The set of UTXOs managed by the daemon.
	ManagedUtxos map[string]*ManagedUtxo `` /* 185-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListUtxosResponse) Descriptor deprecated

func (*ListUtxosResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListUtxosResponse.ProtoReflect.Descriptor instead.

func (*ListUtxosResponse) GetManagedUtxos

func (x *ListUtxosResponse) GetManagedUtxos() map[string]*ManagedUtxo

func (*ListUtxosResponse) ProtoMessage

func (*ListUtxosResponse) ProtoMessage()

func (*ListUtxosResponse) ProtoReflect

func (x *ListUtxosResponse) ProtoReflect() protoreflect.Message

func (*ListUtxosResponse) Reset

func (x *ListUtxosResponse) Reset()

func (*ListUtxosResponse) String

func (x *ListUtxosResponse) String() string

type ManagedUtxo

type ManagedUtxo struct {

	// The outpoint of the UTXO.
	OutPoint string `protobuf:"bytes,1,opt,name=out_point,json=outPoint,proto3" json:"out_point,omitempty"`
	// The UTXO amount in satoshis.
	AmtSat int64 `protobuf:"varint,2,opt,name=amt_sat,json=amtSat,proto3" json:"amt_sat,omitempty"`
	// The internal key used for the on-chain output.
	InternalKey []byte `protobuf:"bytes,3,opt,name=internal_key,json=internalKey,proto3" json:"internal_key,omitempty"`
	// The Taproot Asset root commitment hash.
	TaprootAssetRoot []byte `protobuf:"bytes,4,opt,name=taproot_asset_root,json=taprootAssetRoot,proto3" json:"taproot_asset_root,omitempty"`
	// The Taproot merkle root hash committed to by the outpoint of this UTXO.
	// If there is no Tapscript sibling, this is equal to the Taproot Asset root
	// commitment hash.
	MerkleRoot []byte `protobuf:"bytes,5,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty"`
	// The assets held at this UTXO.
	Assets []*Asset `protobuf:"bytes,6,rep,name=assets,proto3" json:"assets,omitempty"`
	// contains filtered or unexported fields
}

func (*ManagedUtxo) Descriptor deprecated

func (*ManagedUtxo) Descriptor() ([]byte, []int)

Deprecated: Use ManagedUtxo.ProtoReflect.Descriptor instead.

func (*ManagedUtxo) GetAmtSat

func (x *ManagedUtxo) GetAmtSat() int64

func (*ManagedUtxo) GetAssets

func (x *ManagedUtxo) GetAssets() []*Asset

func (*ManagedUtxo) GetInternalKey

func (x *ManagedUtxo) GetInternalKey() []byte

func (*ManagedUtxo) GetMerkleRoot

func (x *ManagedUtxo) GetMerkleRoot() []byte

func (*ManagedUtxo) GetOutPoint

func (x *ManagedUtxo) GetOutPoint() string

func (*ManagedUtxo) GetTaprootAssetRoot

func (x *ManagedUtxo) GetTaprootAssetRoot() []byte

func (*ManagedUtxo) ProtoMessage

func (*ManagedUtxo) ProtoMessage()

func (*ManagedUtxo) ProtoReflect

func (x *ManagedUtxo) ProtoReflect() protoreflect.Message

func (*ManagedUtxo) Reset

func (x *ManagedUtxo) Reset()

func (*ManagedUtxo) String

func (x *ManagedUtxo) String() string

type NewAddrRequest

type NewAddrRequest struct {
	AssetId []byte `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
	Amt     uint64 `protobuf:"varint,2,opt,name=amt,proto3" json:"amt,omitempty"`
	// The optional script key that the receiving asset should be locked to. If no
	// script key is provided, a normal BIP-86 key will be derived from the
	// underlying wallet.
	//
	// NOTE: The script_key and internal_key fields should either both be set or
	// both be empty.
	ScriptKey *ScriptKey `protobuf:"bytes,3,opt,name=script_key,json=scriptKey,proto3" json:"script_key,omitempty"`
	// The optional internal key of the receiving BTC level transaction output on
	// which the receiving asset transfers will be committed to. If no internal key
	// is provided, a key will be derived from the underlying wallet.
	//
	// NOTE: The script_key and internal_key fields should either both be set or
	// both be empty.
	InternalKey *KeyDescriptor `protobuf:"bytes,4,opt,name=internal_key,json=internalKey,proto3" json:"internal_key,omitempty"`
	// The optional serialized tapscript sibling preimage to use for the receiving
	// asset. This is usually empty as it is only needed when there should be an
	// additional script path in the Taproot tree alongside the Taproot Asset
	// commitment of the asset.
	TapscriptSibling []byte `protobuf:"bytes,5,opt,name=tapscript_sibling,json=tapscriptSibling,proto3" json:"tapscript_sibling,omitempty"`
	// An optional proof courier address for use in proof transfer. If unspecified,
	// the daemon configured default address will be used.
	ProofCourierAddr string `protobuf:"bytes,6,opt,name=proof_courier_addr,json=proofCourierAddr,proto3" json:"proof_courier_addr,omitempty"`
	// The asset version to use when sending/receiving to/from this address.
	AssetVersion AssetVersion `protobuf:"varint,7,opt,name=asset_version,json=assetVersion,proto3,enum=taprpc.AssetVersion" json:"asset_version,omitempty"`
	// contains filtered or unexported fields
}

func (*NewAddrRequest) Descriptor deprecated

func (*NewAddrRequest) Descriptor() ([]byte, []int)

Deprecated: Use NewAddrRequest.ProtoReflect.Descriptor instead.

func (*NewAddrRequest) GetAmt

func (x *NewAddrRequest) GetAmt() uint64

func (*NewAddrRequest) GetAssetId

func (x *NewAddrRequest) GetAssetId() []byte

func (*NewAddrRequest) GetAssetVersion added in v0.3.0

func (x *NewAddrRequest) GetAssetVersion() AssetVersion

func (*NewAddrRequest) GetInternalKey

func (x *NewAddrRequest) GetInternalKey() *KeyDescriptor

func (*NewAddrRequest) GetProofCourierAddr added in v0.3.0

func (x *NewAddrRequest) GetProofCourierAddr() string

func (*NewAddrRequest) GetScriptKey

func (x *NewAddrRequest) GetScriptKey() *ScriptKey

func (*NewAddrRequest) GetTapscriptSibling

func (x *NewAddrRequest) GetTapscriptSibling() []byte

func (*NewAddrRequest) ProtoMessage

func (*NewAddrRequest) ProtoMessage()

func (*NewAddrRequest) ProtoReflect

func (x *NewAddrRequest) ProtoReflect() protoreflect.Message

func (*NewAddrRequest) Reset

func (x *NewAddrRequest) Reset()

func (*NewAddrRequest) String

func (x *NewAddrRequest) String() string

type OutPoint added in v0.3.3

type OutPoint struct {

	// Raw bytes representing the transaction id.
	Txid []byte `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"`
	// The index of the output on the transaction.
	OutputIndex uint32 `protobuf:"varint,2,opt,name=output_index,json=outputIndex,proto3" json:"output_index,omitempty"`
	// contains filtered or unexported fields
}

func (*OutPoint) Descriptor deprecated added in v0.3.3

func (*OutPoint) Descriptor() ([]byte, []int)

Deprecated: Use OutPoint.ProtoReflect.Descriptor instead.

func (*OutPoint) GetOutputIndex added in v0.3.3

func (x *OutPoint) GetOutputIndex() uint32

func (*OutPoint) GetTxid added in v0.3.3

func (x *OutPoint) GetTxid() []byte

func (*OutPoint) ProtoMessage added in v0.3.3

func (*OutPoint) ProtoMessage()

func (*OutPoint) ProtoReflect added in v0.3.3

func (x *OutPoint) ProtoReflect() protoreflect.Message

func (*OutPoint) Reset added in v0.3.3

func (x *OutPoint) Reset()

func (*OutPoint) String added in v0.3.3

func (x *OutPoint) String() string

type OutputType

type OutputType int32
const (
	// OUTPUT_TYPE_SIMPLE is a plain full-value or split output that is not a
	// split root and does not carry passive assets. In case of a split, the
	// asset of this output has a split commitment.
	OutputType_OUTPUT_TYPE_SIMPLE OutputType = 0
	// OUTPUT_TYPE_SPLIT_ROOT is a split root output that carries the change
	// from a split or a tombstone from a non-interactive full value send
	// output. In either case, the asset of this output has a tx witness.
	OutputType_OUTPUT_TYPE_SPLIT_ROOT OutputType = 1
	// OUTPUT_TYPE_PASSIVE_ASSETS_ONLY indicates that this output only carries
	// passive assets and therefore the asset in this output is nil. The passive
	// assets themselves are signed in their own virtual transactions and
	// are not present in this packet.
	OutputType_OUTPUT_TYPE_PASSIVE_ASSETS_ONLY OutputType = 2
	// OUTPUT_TYPE_PASSIVE_SPLIT_ROOT is a split root output that carries the
	// change from a split or a tombstone from a non-interactive full value send
	// output, as well as passive assets.
	OutputType_OUTPUT_TYPE_PASSIVE_SPLIT_ROOT OutputType = 3
	// OUTPUT_TYPE_SIMPLE_PASSIVE_ASSETS is a plain full-value interactive send
	// output that also carries passive assets. This is a special case where we
	// send the full value of a single asset in a commitment to a new script
	// key, but also carry passive assets in the same output. This is useful for
	// key rotation (send-to-self) scenarios or asset burns where we burn the
	// full supply of a single asset within a commitment.
	OutputType_OUTPUT_TYPE_SIMPLE_PASSIVE_ASSETS OutputType = 4
)

func (OutputType) Descriptor

func (OutputType) Descriptor() protoreflect.EnumDescriptor

func (OutputType) Enum

func (x OutputType) Enum() *OutputType

func (OutputType) EnumDescriptor deprecated

func (OutputType) EnumDescriptor() ([]byte, []int)

Deprecated: Use OutputType.Descriptor instead.

func (OutputType) Number

func (x OutputType) Number() protoreflect.EnumNumber

func (OutputType) String

func (x OutputType) String() string

func (OutputType) Type

type PrevInputAsset

type PrevInputAsset struct {
	AnchorPoint string `protobuf:"bytes,1,opt,name=anchor_point,json=anchorPoint,proto3" json:"anchor_point,omitempty"`
	AssetId     []byte `protobuf:"bytes,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
	ScriptKey   []byte `protobuf:"bytes,3,opt,name=script_key,json=scriptKey,proto3" json:"script_key,omitempty"`
	Amount      uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*PrevInputAsset) Descriptor deprecated

func (*PrevInputAsset) Descriptor() ([]byte, []int)

Deprecated: Use PrevInputAsset.ProtoReflect.Descriptor instead.

func (*PrevInputAsset) GetAmount

func (x *PrevInputAsset) GetAmount() uint64

func (*PrevInputAsset) GetAnchorPoint

func (x *PrevInputAsset) GetAnchorPoint() string

func (*PrevInputAsset) GetAssetId

func (x *PrevInputAsset) GetAssetId() []byte

func (*PrevInputAsset) GetScriptKey

func (x *PrevInputAsset) GetScriptKey() []byte

func (*PrevInputAsset) ProtoMessage

func (*PrevInputAsset) ProtoMessage()

func (*PrevInputAsset) ProtoReflect

func (x *PrevInputAsset) ProtoReflect() protoreflect.Message

func (*PrevInputAsset) Reset

func (x *PrevInputAsset) Reset()

func (*PrevInputAsset) String

func (x *PrevInputAsset) String() string

type PrevWitness

type PrevWitness struct {
	PrevId          *PrevInputAsset  `protobuf:"bytes,1,opt,name=prev_id,json=prevId,proto3" json:"prev_id,omitempty"`
	TxWitness       [][]byte         `protobuf:"bytes,2,rep,name=tx_witness,json=txWitness,proto3" json:"tx_witness,omitempty"`
	SplitCommitment *SplitCommitment `protobuf:"bytes,3,opt,name=split_commitment,json=splitCommitment,proto3" json:"split_commitment,omitempty"`
	// contains filtered or unexported fields
}

func (*PrevWitness) Descriptor deprecated

func (*PrevWitness) Descriptor() ([]byte, []int)

Deprecated: Use PrevWitness.ProtoReflect.Descriptor instead.

func (*PrevWitness) GetPrevId

func (x *PrevWitness) GetPrevId() *PrevInputAsset

func (*PrevWitness) GetSplitCommitment

func (x *PrevWitness) GetSplitCommitment() *SplitCommitment

func (*PrevWitness) GetTxWitness

func (x *PrevWitness) GetTxWitness() [][]byte

func (*PrevWitness) ProtoMessage

func (*PrevWitness) ProtoMessage()

func (*PrevWitness) ProtoReflect

func (x *PrevWitness) ProtoReflect() protoreflect.Message

func (*PrevWitness) Reset

func (x *PrevWitness) Reset()

func (*PrevWitness) String

func (x *PrevWitness) String() string

type ProofFile

type ProofFile struct {

	// The raw proof file encoded as bytes. Must be a file and not just an
	// individual mint/transfer proof.
	RawProofFile []byte `protobuf:"bytes,1,opt,name=raw_proof_file,json=rawProofFile,proto3" json:"raw_proof_file,omitempty"`
	GenesisPoint string `protobuf:"bytes,2,opt,name=genesis_point,json=genesisPoint,proto3" json:"genesis_point,omitempty"`
	// contains filtered or unexported fields
}

func (*ProofFile) Descriptor deprecated

func (*ProofFile) Descriptor() ([]byte, []int)

Deprecated: Use ProofFile.ProtoReflect.Descriptor instead.

func (*ProofFile) GetGenesisPoint

func (x *ProofFile) GetGenesisPoint() string

func (*ProofFile) GetRawProofFile added in v0.3.0

func (x *ProofFile) GetRawProofFile() []byte

func (*ProofFile) ProtoMessage

func (*ProofFile) ProtoMessage()

func (*ProofFile) ProtoReflect

func (x *ProofFile) ProtoReflect() protoreflect.Message

func (*ProofFile) Reset

func (x *ProofFile) Reset()

func (*ProofFile) String

func (x *ProofFile) String() string

type ProofTransferBackoffWaitEvent added in v0.3.1

type ProofTransferBackoffWaitEvent struct {

	// Transfer attempt timestamp (microseconds).
	Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Backoff is the active backoff wait duration.
	Backoff int64 `protobuf:"varint,2,opt,name=backoff,proto3" json:"backoff,omitempty"`
	// Tries counter is the number of tries we've made so far during the
	// course of the current backoff procedure to deliver the proof to the
	// receiver.
	TriesCounter int64 `protobuf:"varint,3,opt,name=tries_counter,json=triesCounter,proto3" json:"tries_counter,omitempty"`
	// The type of proof transfer attempt.
	TransferType ProofTransferType `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ProofTransferBackoffWaitEvent) Descriptor deprecated added in v0.3.1

func (*ProofTransferBackoffWaitEvent) Descriptor() ([]byte, []int)

Deprecated: Use ProofTransferBackoffWaitEvent.ProtoReflect.Descriptor instead.

func (*ProofTransferBackoffWaitEvent) GetBackoff added in v0.3.1

func (x *ProofTransferBackoffWaitEvent) GetBackoff() int64

func (*ProofTransferBackoffWaitEvent) GetTimestamp added in v0.3.1

func (x *ProofTransferBackoffWaitEvent) GetTimestamp() int64

func (*ProofTransferBackoffWaitEvent) GetTransferType added in v0.3.1

func (x *ProofTransferBackoffWaitEvent) GetTransferType() ProofTransferType

func (*ProofTransferBackoffWaitEvent) GetTriesCounter added in v0.3.1

func (x *ProofTransferBackoffWaitEvent) GetTriesCounter() int64

func (*ProofTransferBackoffWaitEvent) ProtoMessage added in v0.3.1

func (*ProofTransferBackoffWaitEvent) ProtoMessage()

func (*ProofTransferBackoffWaitEvent) ProtoReflect added in v0.3.1

func (*ProofTransferBackoffWaitEvent) Reset added in v0.3.1

func (x *ProofTransferBackoffWaitEvent) Reset()

func (*ProofTransferBackoffWaitEvent) String added in v0.3.1

type ProofTransferType added in v0.3.1

type ProofTransferType int32

ProofTransferType is the type of proof transfer attempt. The transfer is either a proof delivery to the transfer counterparty or receiving a proof from the transfer counterparty. Note that the transfer counterparty is usually the proof courier service.

const (
	// This value indicates that the proof transfer attempt is a delivery to the
	// transfer counterparty.
	ProofTransferType_PROOF_TRANSFER_TYPE_SEND ProofTransferType = 0
	// This value indicates that the proof transfer attempt is a receive from
	// the transfer counterparty.
	ProofTransferType_PROOF_TRANSFER_TYPE_RECEIVE ProofTransferType = 1
)

func (ProofTransferType) Descriptor added in v0.3.1

func (ProofTransferType) Enum added in v0.3.1

func (ProofTransferType) EnumDescriptor deprecated added in v0.3.1

func (ProofTransferType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProofTransferType.Descriptor instead.

func (ProofTransferType) Number added in v0.3.1

func (ProofTransferType) String added in v0.3.1

func (x ProofTransferType) String() string

func (ProofTransferType) Type added in v0.3.1

type QueryAddrRequest

type QueryAddrRequest struct {

	// If set, then only addresses created after this Unix timestamp will be
	// returned.
	CreatedAfter int64 `protobuf:"varint,1,opt,name=created_after,json=createdAfter,proto3" json:"created_after,omitempty"`
	// If set, then only addresses created before this Unix timestamp will be
	// returned.
	CreatedBefore int64 `protobuf:"varint,2,opt,name=created_before,json=createdBefore,proto3" json:"created_before,omitempty"`
	// The max number of addresses that should be returned.
	Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	// The offset from the addresses that should be returned.
	Offset int32 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryAddrRequest) Descriptor deprecated

func (*QueryAddrRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryAddrRequest.ProtoReflect.Descriptor instead.

func (*QueryAddrRequest) GetCreatedAfter

func (x *QueryAddrRequest) GetCreatedAfter() int64

func (*QueryAddrRequest) GetCreatedBefore

func (x *QueryAddrRequest) GetCreatedBefore() int64

func (*QueryAddrRequest) GetLimit

func (x *QueryAddrRequest) GetLimit() int32

func (*QueryAddrRequest) GetOffset

func (x *QueryAddrRequest) GetOffset() int32

func (*QueryAddrRequest) ProtoMessage

func (*QueryAddrRequest) ProtoMessage()

func (*QueryAddrRequest) ProtoReflect

func (x *QueryAddrRequest) ProtoReflect() protoreflect.Message

func (*QueryAddrRequest) Reset

func (x *QueryAddrRequest) Reset()

func (*QueryAddrRequest) String

func (x *QueryAddrRequest) String() string

type QueryAddrResponse

type QueryAddrResponse struct {
	Addrs []*Addr `protobuf:"bytes,1,rep,name=addrs,proto3" json:"addrs,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryAddrResponse) Descriptor deprecated

func (*QueryAddrResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryAddrResponse.ProtoReflect.Descriptor instead.

func (*QueryAddrResponse) GetAddrs

func (x *QueryAddrResponse) GetAddrs() []*Addr

func (*QueryAddrResponse) ProtoMessage

func (*QueryAddrResponse) ProtoMessage()

func (*QueryAddrResponse) ProtoReflect

func (x *QueryAddrResponse) ProtoReflect() protoreflect.Message

func (*QueryAddrResponse) Reset

func (x *QueryAddrResponse) Reset()

func (*QueryAddrResponse) String

func (x *QueryAddrResponse) String() string

type ReceiveAssetEvent added in v0.3.1

type ReceiveAssetEvent struct {

	// Types that are assignable to Event:
	//
	//	*ReceiveAssetEvent_ProofTransferBackoffWaitEvent
	//	*ReceiveAssetEvent_AssetReceiveCompleteEvent
	Event isReceiveAssetEvent_Event `protobuf_oneof:"event"`
	// contains filtered or unexported fields
}

func (*ReceiveAssetEvent) Descriptor deprecated added in v0.3.1

func (*ReceiveAssetEvent) Descriptor() ([]byte, []int)

Deprecated: Use ReceiveAssetEvent.ProtoReflect.Descriptor instead.

func (*ReceiveAssetEvent) GetAssetReceiveCompleteEvent added in v0.3.2

func (x *ReceiveAssetEvent) GetAssetReceiveCompleteEvent() *AssetReceiveCompleteEvent

func (*ReceiveAssetEvent) GetEvent added in v0.3.1

func (m *ReceiveAssetEvent) GetEvent() isReceiveAssetEvent_Event

func (*ReceiveAssetEvent) GetProofTransferBackoffWaitEvent added in v0.3.1

func (x *ReceiveAssetEvent) GetProofTransferBackoffWaitEvent() *ProofTransferBackoffWaitEvent

func (*ReceiveAssetEvent) ProtoMessage added in v0.3.1

func (*ReceiveAssetEvent) ProtoMessage()

func (*ReceiveAssetEvent) ProtoReflect added in v0.3.1

func (x *ReceiveAssetEvent) ProtoReflect() protoreflect.Message

func (*ReceiveAssetEvent) Reset added in v0.3.1

func (x *ReceiveAssetEvent) Reset()

func (*ReceiveAssetEvent) String added in v0.3.1

func (x *ReceiveAssetEvent) String() string

type ReceiveAssetEvent_AssetReceiveCompleteEvent added in v0.3.2

type ReceiveAssetEvent_AssetReceiveCompleteEvent struct {
	// An event which indicates that an asset receive process has finished.
	AssetReceiveCompleteEvent *AssetReceiveCompleteEvent `protobuf:"bytes,2,opt,name=asset_receive_complete_event,json=assetReceiveCompleteEvent,proto3,oneof"`
}

type ReceiveAssetEvent_ProofTransferBackoffWaitEvent added in v0.3.1

type ReceiveAssetEvent_ProofTransferBackoffWaitEvent struct {
	// An event which indicates that the proof transfer backoff wait period
	// will start imminently.
	ProofTransferBackoffWaitEvent *ProofTransferBackoffWaitEvent `protobuf:"bytes,1,opt,name=proof_transfer_backoff_wait_event,json=proofTransferBackoffWaitEvent,proto3,oneof"`
}

type ScriptKey

type ScriptKey struct {

	// The full Taproot output key the asset is locked to. This is either a BIP-86
	// key if the tap_tweak below is empty, or a key with the tap tweak applied to
	// it.
	PubKey []byte `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
	// The key descriptor describing the internal key of the above Taproot key.
	KeyDesc *KeyDescriptor `protobuf:"bytes,2,opt,name=key_desc,json=keyDesc,proto3" json:"key_desc,omitempty"`
	// The optional Taproot tweak to apply to the above internal key. If this is
	// empty then a BIP-86 style tweak is applied to the internal key.
	TapTweak []byte `protobuf:"bytes,3,opt,name=tap_tweak,json=tapTweak,proto3" json:"tap_tweak,omitempty"`
	// contains filtered or unexported fields
}

func (*ScriptKey) Descriptor deprecated

func (*ScriptKey) Descriptor() ([]byte, []int)

Deprecated: Use ScriptKey.ProtoReflect.Descriptor instead.

func (*ScriptKey) GetKeyDesc

func (x *ScriptKey) GetKeyDesc() *KeyDescriptor

func (*ScriptKey) GetPubKey

func (x *ScriptKey) GetPubKey() []byte

func (*ScriptKey) GetTapTweak

func (x *ScriptKey) GetTapTweak() []byte

func (*ScriptKey) ProtoMessage

func (*ScriptKey) ProtoMessage()

func (*ScriptKey) ProtoReflect

func (x *ScriptKey) ProtoReflect() protoreflect.Message

func (*ScriptKey) Reset

func (x *ScriptKey) Reset()

func (*ScriptKey) String

func (x *ScriptKey) String() string

type SendAssetEvent

type SendAssetEvent struct {

	// Types that are assignable to Event:
	//
	//	*SendAssetEvent_ExecuteSendStateEvent
	//	*SendAssetEvent_ProofTransferBackoffWaitEvent
	Event isSendAssetEvent_Event `protobuf_oneof:"event"`
	// contains filtered or unexported fields
}

func (*SendAssetEvent) Descriptor deprecated

func (*SendAssetEvent) Descriptor() ([]byte, []int)

Deprecated: Use SendAssetEvent.ProtoReflect.Descriptor instead.

func (*SendAssetEvent) GetEvent

func (m *SendAssetEvent) GetEvent() isSendAssetEvent_Event

func (*SendAssetEvent) GetExecuteSendStateEvent

func (x *SendAssetEvent) GetExecuteSendStateEvent() *ExecuteSendStateEvent

func (*SendAssetEvent) GetProofTransferBackoffWaitEvent added in v0.3.1

func (x *SendAssetEvent) GetProofTransferBackoffWaitEvent() *ProofTransferBackoffWaitEvent

func (*SendAssetEvent) ProtoMessage

func (*SendAssetEvent) ProtoMessage()

func (*SendAssetEvent) ProtoReflect

func (x *SendAssetEvent) ProtoReflect() protoreflect.Message

func (*SendAssetEvent) Reset

func (x *SendAssetEvent) Reset()

func (*SendAssetEvent) String

func (x *SendAssetEvent) String() string

type SendAssetEvent_ExecuteSendStateEvent

type SendAssetEvent_ExecuteSendStateEvent struct {
	// An event which indicates that a send state is about to be executed.
	ExecuteSendStateEvent *ExecuteSendStateEvent `protobuf:"bytes,1,opt,name=execute_send_state_event,json=executeSendStateEvent,proto3,oneof"`
}

type SendAssetEvent_ProofTransferBackoffWaitEvent added in v0.3.1

type SendAssetEvent_ProofTransferBackoffWaitEvent struct {
	// An event which indicates that the proof transfer backoff wait period
	// will start imminently.
	ProofTransferBackoffWaitEvent *ProofTransferBackoffWaitEvent `protobuf:"bytes,2,opt,name=proof_transfer_backoff_wait_event,json=proofTransferBackoffWaitEvent,proto3,oneof"`
}

type SendAssetRequest

type SendAssetRequest struct {
	TapAddrs []string `protobuf:"bytes,1,rep,name=tap_addrs,json=tapAddrs,proto3" json:"tap_addrs,omitempty"`
	// The optional fee rate to use for the minting transaction, in sat/kw.
	FeeRate uint32 `protobuf:"varint,2,opt,name=fee_rate,json=feeRate,proto3" json:"fee_rate,omitempty"`
	// contains filtered or unexported fields
}

func (*SendAssetRequest) Descriptor deprecated

func (*SendAssetRequest) Descriptor() ([]byte, []int)

Deprecated: Use SendAssetRequest.ProtoReflect.Descriptor instead.

func (*SendAssetRequest) GetFeeRate added in v0.3.0

func (x *SendAssetRequest) GetFeeRate() uint32

func (*SendAssetRequest) GetTapAddrs

func (x *SendAssetRequest) GetTapAddrs() []string

func (*SendAssetRequest) ProtoMessage

func (*SendAssetRequest) ProtoMessage()

func (*SendAssetRequest) ProtoReflect

func (x *SendAssetRequest) ProtoReflect() protoreflect.Message

func (*SendAssetRequest) Reset

func (x *SendAssetRequest) Reset()

func (*SendAssetRequest) String

func (x *SendAssetRequest) String() string

type SendAssetResponse

type SendAssetResponse struct {
	Transfer *AssetTransfer `protobuf:"bytes,1,opt,name=transfer,proto3" json:"transfer,omitempty"`
	// contains filtered or unexported fields
}

func (*SendAssetResponse) Descriptor deprecated

func (*SendAssetResponse) Descriptor() ([]byte, []int)

Deprecated: Use SendAssetResponse.ProtoReflect.Descriptor instead.

func (*SendAssetResponse) GetTransfer

func (x *SendAssetResponse) GetTransfer() *AssetTransfer

func (*SendAssetResponse) ProtoMessage

func (*SendAssetResponse) ProtoMessage()

func (*SendAssetResponse) ProtoReflect

func (x *SendAssetResponse) ProtoReflect() protoreflect.Message

func (*SendAssetResponse) Reset

func (x *SendAssetResponse) Reset()

func (*SendAssetResponse) String

func (x *SendAssetResponse) String() string

type SplitCommitment

type SplitCommitment struct {
	RootAsset *Asset `protobuf:"bytes,1,opt,name=root_asset,json=rootAsset,proto3" json:"root_asset,omitempty"`
	// contains filtered or unexported fields
}

func (*SplitCommitment) Descriptor deprecated

func (*SplitCommitment) Descriptor() ([]byte, []int)

Deprecated: Use SplitCommitment.ProtoReflect.Descriptor instead.

func (*SplitCommitment) GetRootAsset

func (x *SplitCommitment) GetRootAsset() *Asset

func (*SplitCommitment) ProtoMessage

func (*SplitCommitment) ProtoMessage()

func (*SplitCommitment) ProtoReflect

func (x *SplitCommitment) ProtoReflect() protoreflect.Message

func (*SplitCommitment) Reset

func (x *SplitCommitment) Reset()

func (*SplitCommitment) String

func (x *SplitCommitment) String() string

type StopRequest

type StopRequest struct {
	// contains filtered or unexported fields
}

func (*StopRequest) Descriptor deprecated

func (*StopRequest) Descriptor() ([]byte, []int)

Deprecated: Use StopRequest.ProtoReflect.Descriptor instead.

func (*StopRequest) ProtoMessage

func (*StopRequest) ProtoMessage()

func (*StopRequest) ProtoReflect

func (x *StopRequest) ProtoReflect() protoreflect.Message

func (*StopRequest) Reset

func (x *StopRequest) Reset()

func (*StopRequest) String

func (x *StopRequest) String() string

type StopResponse

type StopResponse struct {
	// contains filtered or unexported fields
}

func (*StopResponse) Descriptor deprecated

func (*StopResponse) Descriptor() ([]byte, []int)

Deprecated: Use StopResponse.ProtoReflect.Descriptor instead.

func (*StopResponse) ProtoMessage

func (*StopResponse) ProtoMessage()

func (*StopResponse) ProtoReflect

func (x *StopResponse) ProtoReflect() protoreflect.Message

func (*StopResponse) Reset

func (x *StopResponse) Reset()

func (*StopResponse) String

func (x *StopResponse) String() string

type SubscribeReceiveAssetEventNtfnsRequest added in v0.3.1

type SubscribeReceiveAssetEventNtfnsRequest struct {
	// contains filtered or unexported fields
}

func (*SubscribeReceiveAssetEventNtfnsRequest) Descriptor deprecated added in v0.3.1

func (*SubscribeReceiveAssetEventNtfnsRequest) Descriptor() ([]byte, []int)

Deprecated: Use SubscribeReceiveAssetEventNtfnsRequest.ProtoReflect.Descriptor instead.

func (*SubscribeReceiveAssetEventNtfnsRequest) ProtoMessage added in v0.3.1

func (*SubscribeReceiveAssetEventNtfnsRequest) ProtoReflect added in v0.3.1

func (*SubscribeReceiveAssetEventNtfnsRequest) Reset added in v0.3.1

func (*SubscribeReceiveAssetEventNtfnsRequest) String added in v0.3.1

type SubscribeSendAssetEventNtfnsRequest

type SubscribeSendAssetEventNtfnsRequest struct {
	// contains filtered or unexported fields
}

func (*SubscribeSendAssetEventNtfnsRequest) Descriptor deprecated

func (*SubscribeSendAssetEventNtfnsRequest) Descriptor() ([]byte, []int)

Deprecated: Use SubscribeSendAssetEventNtfnsRequest.ProtoReflect.Descriptor instead.

func (*SubscribeSendAssetEventNtfnsRequest) ProtoMessage

func (*SubscribeSendAssetEventNtfnsRequest) ProtoMessage()

func (*SubscribeSendAssetEventNtfnsRequest) ProtoReflect

func (*SubscribeSendAssetEventNtfnsRequest) Reset

func (*SubscribeSendAssetEventNtfnsRequest) String

type TaprootAssetsClient

type TaprootAssetsClient interface {
	// tapcli: `assets list`
	// ListAssets lists the set of assets owned by the target daemon.
	ListAssets(ctx context.Context, in *ListAssetRequest, opts ...grpc.CallOption) (*ListAssetResponse, error)
	// tapcli: `assets utxos`
	// ListUtxos lists the UTXOs managed by the target daemon, and the assets they
	// hold.
	ListUtxos(ctx context.Context, in *ListUtxosRequest, opts ...grpc.CallOption) (*ListUtxosResponse, error)
	// tapcli: `assets groups`
	// ListGroups lists the asset groups known to the target daemon, and the assets
	// held in each group.
	ListGroups(ctx context.Context, in *ListGroupsRequest, opts ...grpc.CallOption) (*ListGroupsResponse, error)
	// tapcli: `assets balance`
	// ListBalances lists asset balances
	ListBalances(ctx context.Context, in *ListBalancesRequest, opts ...grpc.CallOption) (*ListBalancesResponse, error)
	// tapcli: `assets transfers`
	// ListTransfers lists outbound asset transfers tracked by the target daemon.
	ListTransfers(ctx context.Context, in *ListTransfersRequest, opts ...grpc.CallOption) (*ListTransfersResponse, error)
	// tapcli: `stop`
	// StopDaemon will send a shutdown request to the interrupt handler, triggering
	// a graceful shutdown of the daemon.
	StopDaemon(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error)
	// tapcli: `debuglevel`
	// DebugLevel allows a caller to programmatically set the logging verbosity of
	// tapd. The logging can be targeted according to a coarse daemon-wide logging
	// level, or in a granular fashion to specify the logging for a target
	// sub-system.
	DebugLevel(ctx context.Context, in *DebugLevelRequest, opts ...grpc.CallOption) (*DebugLevelResponse, error)
	// tapcli: `addrs query`
	// QueryAddrs queries the set of Taproot Asset addresses stored in the
	// database.
	QueryAddrs(ctx context.Context, in *QueryAddrRequest, opts ...grpc.CallOption) (*QueryAddrResponse, error)
	// tapcli: `addrs new`
	// NewAddr makes a new address from the set of request params.
	NewAddr(ctx context.Context, in *NewAddrRequest, opts ...grpc.CallOption) (*Addr, error)
	// tapcli: `addrs decode`
	// DecodeAddr decode a Taproot Asset address into a partial asset message that
	// represents the asset it wants to receive.
	DecodeAddr(ctx context.Context, in *DecodeAddrRequest, opts ...grpc.CallOption) (*Addr, error)
	// tapcli: `addrs receives`
	// List all receives for incoming asset transfers for addresses that were
	// created previously.
	AddrReceives(ctx context.Context, in *AddrReceivesRequest, opts ...grpc.CallOption) (*AddrReceivesResponse, error)
	// tapcli: `proofs verify`
	// VerifyProof attempts to verify a given proof file that claims to be anchored
	// at the specified genesis point.
	VerifyProof(ctx context.Context, in *ProofFile, opts ...grpc.CallOption) (*VerifyProofResponse, error)
	// tapcli: `proofs decode`
	// DecodeProof attempts to decode a given proof file into human readable
	// format.
	DecodeProof(ctx context.Context, in *DecodeProofRequest, opts ...grpc.CallOption) (*DecodeProofResponse, error)
	// tapcli: `proofs export`
	// ExportProof exports the latest raw proof file anchored at the specified
	// script_key.
	ExportProof(ctx context.Context, in *ExportProofRequest, opts ...grpc.CallOption) (*ProofFile, error)
	// tapcli: `assets send`
	// SendAsset uses one or multiple passed Taproot Asset address(es) to attempt
	// to complete an asset send. The method returns information w.r.t the on chain
	// send, as well as the proof file information the receiver needs to fully
	// receive the asset.
	SendAsset(ctx context.Context, in *SendAssetRequest, opts ...grpc.CallOption) (*SendAssetResponse, error)
	// tapcli: `assets burn`
	// BurnAsset burns the given number of units of a given asset by sending them
	// to a provably un-spendable script key. Burning means irrevocably destroying
	// a certain number of assets, reducing the total supply of the asset. Because
	// burning is such a destructive and non-reversible operation, some specific
	// values need to be set in the request to avoid accidental burns.
	BurnAsset(ctx context.Context, in *BurnAssetRequest, opts ...grpc.CallOption) (*BurnAssetResponse, error)
	// tapcli: `getinfo`
	// GetInfo returns the information for the node.
	GetInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoResponse, error)
	// SubscribeSendAssetEventNtfns registers a subscription to the event
	// notification stream which relates to the asset sending process.
	SubscribeSendAssetEventNtfns(ctx context.Context, in *SubscribeSendAssetEventNtfnsRequest, opts ...grpc.CallOption) (TaprootAssets_SubscribeSendAssetEventNtfnsClient, error)
	// SubscribeReceiveAssetEventNtfns registers a subscription to the event
	// notification stream which relates to the asset receive process.
	SubscribeReceiveAssetEventNtfns(ctx context.Context, in *SubscribeReceiveAssetEventNtfnsRequest, opts ...grpc.CallOption) (TaprootAssets_SubscribeReceiveAssetEventNtfnsClient, error)
	// tapcli: `assets meta`
	// FetchAssetMeta allows a caller to fetch the reveal meta data for an asset
	// either by the asset ID for that asset, or a meta hash.
	FetchAssetMeta(ctx context.Context, in *FetchAssetMetaRequest, opts ...grpc.CallOption) (*AssetMeta, error)
}

TaprootAssetsClient is the client API for TaprootAssets service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type TaprootAssetsServer

type TaprootAssetsServer interface {
	// tapcli: `assets list`
	// ListAssets lists the set of assets owned by the target daemon.
	ListAssets(context.Context, *ListAssetRequest) (*ListAssetResponse, error)
	// tapcli: `assets utxos`
	// ListUtxos lists the UTXOs managed by the target daemon, and the assets they
	// hold.
	ListUtxos(context.Context, *ListUtxosRequest) (*ListUtxosResponse, error)
	// tapcli: `assets groups`
	// ListGroups lists the asset groups known to the target daemon, and the assets
	// held in each group.
	ListGroups(context.Context, *ListGroupsRequest) (*ListGroupsResponse, error)
	// tapcli: `assets balance`
	// ListBalances lists asset balances
	ListBalances(context.Context, *ListBalancesRequest) (*ListBalancesResponse, error)
	// tapcli: `assets transfers`
	// ListTransfers lists outbound asset transfers tracked by the target daemon.
	ListTransfers(context.Context, *ListTransfersRequest) (*ListTransfersResponse, error)
	// tapcli: `stop`
	// StopDaemon will send a shutdown request to the interrupt handler, triggering
	// a graceful shutdown of the daemon.
	StopDaemon(context.Context, *StopRequest) (*StopResponse, error)
	// tapcli: `debuglevel`
	// DebugLevel allows a caller to programmatically set the logging verbosity of
	// tapd. The logging can be targeted according to a coarse daemon-wide logging
	// level, or in a granular fashion to specify the logging for a target
	// sub-system.
	DebugLevel(context.Context, *DebugLevelRequest) (*DebugLevelResponse, error)
	// tapcli: `addrs query`
	// QueryAddrs queries the set of Taproot Asset addresses stored in the
	// database.
	QueryAddrs(context.Context, *QueryAddrRequest) (*QueryAddrResponse, error)
	// tapcli: `addrs new`
	// NewAddr makes a new address from the set of request params.
	NewAddr(context.Context, *NewAddrRequest) (*Addr, error)
	// tapcli: `addrs decode`
	// DecodeAddr decode a Taproot Asset address into a partial asset message that
	// represents the asset it wants to receive.
	DecodeAddr(context.Context, *DecodeAddrRequest) (*Addr, error)
	// tapcli: `addrs receives`
	// List all receives for incoming asset transfers for addresses that were
	// created previously.
	AddrReceives(context.Context, *AddrReceivesRequest) (*AddrReceivesResponse, error)
	// tapcli: `proofs verify`
	// VerifyProof attempts to verify a given proof file that claims to be anchored
	// at the specified genesis point.
	VerifyProof(context.Context, *ProofFile) (*VerifyProofResponse, error)
	// tapcli: `proofs decode`
	// DecodeProof attempts to decode a given proof file into human readable
	// format.
	DecodeProof(context.Context, *DecodeProofRequest) (*DecodeProofResponse, error)
	// tapcli: `proofs export`
	// ExportProof exports the latest raw proof file anchored at the specified
	// script_key.
	ExportProof(context.Context, *ExportProofRequest) (*ProofFile, error)
	// tapcli: `assets send`
	// SendAsset uses one or multiple passed Taproot Asset address(es) to attempt
	// to complete an asset send. The method returns information w.r.t the on chain
	// send, as well as the proof file information the receiver needs to fully
	// receive the asset.
	SendAsset(context.Context, *SendAssetRequest) (*SendAssetResponse, error)
	// tapcli: `assets burn`
	// BurnAsset burns the given number of units of a given asset by sending them
	// to a provably un-spendable script key. Burning means irrevocably destroying
	// a certain number of assets, reducing the total supply of the asset. Because
	// burning is such a destructive and non-reversible operation, some specific
	// values need to be set in the request to avoid accidental burns.
	BurnAsset(context.Context, *BurnAssetRequest) (*BurnAssetResponse, error)
	// tapcli: `getinfo`
	// GetInfo returns the information for the node.
	GetInfo(context.Context, *GetInfoRequest) (*GetInfoResponse, error)
	// SubscribeSendAssetEventNtfns registers a subscription to the event
	// notification stream which relates to the asset sending process.
	SubscribeSendAssetEventNtfns(*SubscribeSendAssetEventNtfnsRequest, TaprootAssets_SubscribeSendAssetEventNtfnsServer) error
	// SubscribeReceiveAssetEventNtfns registers a subscription to the event
	// notification stream which relates to the asset receive process.
	SubscribeReceiveAssetEventNtfns(*SubscribeReceiveAssetEventNtfnsRequest, TaprootAssets_SubscribeReceiveAssetEventNtfnsServer) error
	// tapcli: `assets meta`
	// FetchAssetMeta allows a caller to fetch the reveal meta data for an asset
	// either by the asset ID for that asset, or a meta hash.
	FetchAssetMeta(context.Context, *FetchAssetMetaRequest) (*AssetMeta, error)
	// contains filtered or unexported methods
}

TaprootAssetsServer is the server API for TaprootAssets service. All implementations must embed UnimplementedTaprootAssetsServer for forward compatibility

type TaprootAssets_SubscribeReceiveAssetEventNtfnsClient added in v0.3.1

type TaprootAssets_SubscribeReceiveAssetEventNtfnsClient interface {
	Recv() (*ReceiveAssetEvent, error)
	grpc.ClientStream
}

type TaprootAssets_SubscribeReceiveAssetEventNtfnsServer added in v0.3.1

type TaprootAssets_SubscribeReceiveAssetEventNtfnsServer interface {
	Send(*ReceiveAssetEvent) error
	grpc.ServerStream
}

type TaprootAssets_SubscribeSendAssetEventNtfnsClient

type TaprootAssets_SubscribeSendAssetEventNtfnsClient interface {
	Recv() (*SendAssetEvent, error)
	grpc.ClientStream
}

type TaprootAssets_SubscribeSendAssetEventNtfnsServer

type TaprootAssets_SubscribeSendAssetEventNtfnsServer interface {
	Send(*SendAssetEvent) error
	grpc.ServerStream
}

type TransferInput

type TransferInput struct {

	// The old/current location of the Taproot Asset commitment that was spent
	// as an input.
	AnchorPoint string `protobuf:"bytes,1,opt,name=anchor_point,json=anchorPoint,proto3" json:"anchor_point,omitempty"`
	// The ID of the asset that was spent.
	AssetId []byte `protobuf:"bytes,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
	// The script key of the asset that was spent.
	ScriptKey []byte `protobuf:"bytes,3,opt,name=script_key,json=scriptKey,proto3" json:"script_key,omitempty"`
	// The amount of the asset that was spent.
	Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferInput) Descriptor deprecated

func (*TransferInput) Descriptor() ([]byte, []int)

Deprecated: Use TransferInput.ProtoReflect.Descriptor instead.

func (*TransferInput) GetAmount

func (x *TransferInput) GetAmount() uint64

func (*TransferInput) GetAnchorPoint

func (x *TransferInput) GetAnchorPoint() string

func (*TransferInput) GetAssetId

func (x *TransferInput) GetAssetId() []byte

func (*TransferInput) GetScriptKey

func (x *TransferInput) GetScriptKey() []byte

func (*TransferInput) ProtoMessage

func (*TransferInput) ProtoMessage()

func (*TransferInput) ProtoReflect

func (x *TransferInput) ProtoReflect() protoreflect.Message

func (*TransferInput) Reset

func (x *TransferInput) Reset()

func (*TransferInput) String

func (x *TransferInput) String() string

type TransferOutput

type TransferOutput struct {
	Anchor           *TransferOutputAnchor `protobuf:"bytes,1,opt,name=anchor,proto3" json:"anchor,omitempty"`
	ScriptKey        []byte                `protobuf:"bytes,2,opt,name=script_key,json=scriptKey,proto3" json:"script_key,omitempty"`
	ScriptKeyIsLocal bool                  `protobuf:"varint,3,opt,name=script_key_is_local,json=scriptKeyIsLocal,proto3" json:"script_key_is_local,omitempty"`
	Amount           uint64                `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// The new individual transition proof (not a full proof file) that proves
	// the inclusion of the new asset within the new AnchorTx.
	NewProofBlob        []byte       `protobuf:"bytes,5,opt,name=new_proof_blob,json=newProofBlob,proto3" json:"new_proof_blob,omitempty"`
	SplitCommitRootHash []byte       `protobuf:"bytes,6,opt,name=split_commit_root_hash,json=splitCommitRootHash,proto3" json:"split_commit_root_hash,omitempty"`
	OutputType          OutputType   `protobuf:"varint,7,opt,name=output_type,json=outputType,proto3,enum=taprpc.OutputType" json:"output_type,omitempty"`
	AssetVersion        AssetVersion `protobuf:"varint,8,opt,name=asset_version,json=assetVersion,proto3,enum=taprpc.AssetVersion" json:"asset_version,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferOutput) Descriptor deprecated

func (*TransferOutput) Descriptor() ([]byte, []int)

Deprecated: Use TransferOutput.ProtoReflect.Descriptor instead.

func (*TransferOutput) GetAmount

func (x *TransferOutput) GetAmount() uint64

func (*TransferOutput) GetAnchor

func (x *TransferOutput) GetAnchor() *TransferOutputAnchor

func (*TransferOutput) GetAssetVersion added in v0.3.0

func (x *TransferOutput) GetAssetVersion() AssetVersion

func (*TransferOutput) GetNewProofBlob

func (x *TransferOutput) GetNewProofBlob() []byte

func (*TransferOutput) GetOutputType

func (x *TransferOutput) GetOutputType() OutputType

func (*TransferOutput) GetScriptKey

func (x *TransferOutput) GetScriptKey() []byte

func (*TransferOutput) GetScriptKeyIsLocal

func (x *TransferOutput) GetScriptKeyIsLocal() bool

func (*TransferOutput) GetSplitCommitRootHash

func (x *TransferOutput) GetSplitCommitRootHash() []byte

func (*TransferOutput) ProtoMessage

func (*TransferOutput) ProtoMessage()

func (*TransferOutput) ProtoReflect

func (x *TransferOutput) ProtoReflect() protoreflect.Message

func (*TransferOutput) Reset

func (x *TransferOutput) Reset()

func (*TransferOutput) String

func (x *TransferOutput) String() string

type TransferOutputAnchor

type TransferOutputAnchor struct {

	// The new location of the Taproot Asset commitment that was created on
	// chain.
	Outpoint         string `protobuf:"bytes,1,opt,name=outpoint,proto3" json:"outpoint,omitempty"`
	Value            int64  `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	InternalKey      []byte `protobuf:"bytes,3,opt,name=internal_key,json=internalKey,proto3" json:"internal_key,omitempty"`
	TaprootAssetRoot []byte `protobuf:"bytes,4,opt,name=taproot_asset_root,json=taprootAssetRoot,proto3" json:"taproot_asset_root,omitempty"`
	MerkleRoot       []byte `protobuf:"bytes,5,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty"`
	TapscriptSibling []byte `protobuf:"bytes,6,opt,name=tapscript_sibling,json=tapscriptSibling,proto3" json:"tapscript_sibling,omitempty"`
	NumPassiveAssets uint32 `protobuf:"varint,7,opt,name=num_passive_assets,json=numPassiveAssets,proto3" json:"num_passive_assets,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferOutputAnchor) Descriptor deprecated

func (*TransferOutputAnchor) Descriptor() ([]byte, []int)

Deprecated: Use TransferOutputAnchor.ProtoReflect.Descriptor instead.

func (*TransferOutputAnchor) GetInternalKey

func (x *TransferOutputAnchor) GetInternalKey() []byte

func (*TransferOutputAnchor) GetMerkleRoot

func (x *TransferOutputAnchor) GetMerkleRoot() []byte

func (*TransferOutputAnchor) GetNumPassiveAssets

func (x *TransferOutputAnchor) GetNumPassiveAssets() uint32

func (*TransferOutputAnchor) GetOutpoint

func (x *TransferOutputAnchor) GetOutpoint() string

func (*TransferOutputAnchor) GetTaprootAssetRoot

func (x *TransferOutputAnchor) GetTaprootAssetRoot() []byte

func (*TransferOutputAnchor) GetTapscriptSibling

func (x *TransferOutputAnchor) GetTapscriptSibling() []byte

func (*TransferOutputAnchor) GetValue

func (x *TransferOutputAnchor) GetValue() int64

func (*TransferOutputAnchor) ProtoMessage

func (*TransferOutputAnchor) ProtoMessage()

func (*TransferOutputAnchor) ProtoReflect

func (x *TransferOutputAnchor) ProtoReflect() protoreflect.Message

func (*TransferOutputAnchor) Reset

func (x *TransferOutputAnchor) Reset()

func (*TransferOutputAnchor) String

func (x *TransferOutputAnchor) String() string

type UnimplementedTaprootAssetsServer

type UnimplementedTaprootAssetsServer struct {
}

UnimplementedTaprootAssetsServer must be embedded to have forward compatible implementations.

func (UnimplementedTaprootAssetsServer) AddrReceives

func (UnimplementedTaprootAssetsServer) BurnAsset added in v0.3.0

func (UnimplementedTaprootAssetsServer) DebugLevel

func (UnimplementedTaprootAssetsServer) DecodeAddr

func (UnimplementedTaprootAssetsServer) DecodeProof added in v0.2.1

func (UnimplementedTaprootAssetsServer) ExportProof

func (UnimplementedTaprootAssetsServer) FetchAssetMeta

func (UnimplementedTaprootAssetsServer) GetInfo added in v0.2.1

func (UnimplementedTaprootAssetsServer) ListAssets

func (UnimplementedTaprootAssetsServer) ListBalances

func (UnimplementedTaprootAssetsServer) ListGroups

func (UnimplementedTaprootAssetsServer) ListTransfers

func (UnimplementedTaprootAssetsServer) ListUtxos

func (UnimplementedTaprootAssetsServer) NewAddr

func (UnimplementedTaprootAssetsServer) QueryAddrs

func (UnimplementedTaprootAssetsServer) SendAsset

func (UnimplementedTaprootAssetsServer) StopDaemon

func (UnimplementedTaprootAssetsServer) VerifyProof

type UnsafeTaprootAssetsServer

type UnsafeTaprootAssetsServer interface {
	// contains filtered or unexported methods
}

UnsafeTaprootAssetsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TaprootAssetsServer will result in compilation errors.

type VerifyProofResponse added in v0.2.1

type VerifyProofResponse struct {
	Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	// The decoded last proof in the file if the proof file was valid.
	DecodedProof *DecodedProof `protobuf:"bytes,2,opt,name=decoded_proof,json=decodedProof,proto3" json:"decoded_proof,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyProofResponse) Descriptor deprecated added in v0.2.1

func (*VerifyProofResponse) Descriptor() ([]byte, []int)

Deprecated: Use VerifyProofResponse.ProtoReflect.Descriptor instead.

func (*VerifyProofResponse) GetDecodedProof added in v0.2.1

func (x *VerifyProofResponse) GetDecodedProof() *DecodedProof

func (*VerifyProofResponse) GetValid added in v0.2.1

func (x *VerifyProofResponse) GetValid() bool

func (*VerifyProofResponse) ProtoMessage added in v0.2.1

func (*VerifyProofResponse) ProtoMessage()

func (*VerifyProofResponse) ProtoReflect added in v0.2.1

func (x *VerifyProofResponse) ProtoReflect() protoreflect.Message

func (*VerifyProofResponse) Reset added in v0.2.1

func (x *VerifyProofResponse) Reset()

func (*VerifyProofResponse) String added in v0.2.1

func (x *VerifyProofResponse) String() string

Directories

Path Synopsis
Package assetwalletrpc is a reverse proxy.
Package assetwalletrpc is a reverse proxy.
Package mintrpc is a reverse proxy.
Package mintrpc is a reverse proxy.
Package tapdevrpc is a reverse proxy.
Package tapdevrpc is a reverse proxy.
Package universerpc is a reverse proxy.
Package universerpc is a reverse proxy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL