assetwalletrpc

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: 17 Imported by: 2

Documentation

Overview

Package assetwalletrpc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var AssetWallet_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "assetwalletrpc.AssetWallet",
	HandlerType: (*AssetWalletServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FundVirtualPsbt",
			Handler:    _AssetWallet_FundVirtualPsbt_Handler,
		},
		{
			MethodName: "SignVirtualPsbt",
			Handler:    _AssetWallet_SignVirtualPsbt_Handler,
		},
		{
			MethodName: "AnchorVirtualPsbts",
			Handler:    _AssetWallet_AnchorVirtualPsbts_Handler,
		},
		{
			MethodName: "NextInternalKey",
			Handler:    _AssetWallet_NextInternalKey_Handler,
		},
		{
			MethodName: "NextScriptKey",
			Handler:    _AssetWallet_NextScriptKey_Handler,
		},
		{
			MethodName: "ProveAssetOwnership",
			Handler:    _AssetWallet_ProveAssetOwnership_Handler,
		},
		{
			MethodName: "VerifyAssetOwnership",
			Handler:    _AssetWallet_VerifyAssetOwnership_Handler,
		},
		{
			MethodName: "RemoveUTXOLease",
			Handler:    _AssetWallet_RemoveUTXOLease_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "assetwalletrpc/assetwallet.proto",
}

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

View Source
var File_assetwalletrpc_assetwallet_proto protoreflect.FileDescriptor

Functions

func RegisterAssetWalletHandler

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

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

func RegisterAssetWalletHandlerClient

func RegisterAssetWalletHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AssetWalletClient) error

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

func RegisterAssetWalletHandlerFromEndpoint

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

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

func RegisterAssetWalletHandlerServer

func RegisterAssetWalletHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AssetWalletServer) error

RegisterAssetWalletHandlerServer registers the http handlers for service AssetWallet to "mux". UnaryRPC :call AssetWalletServer 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 RegisterAssetWalletHandlerFromEndpoint instead.

func RegisterAssetWalletJSONCallbacks added in v0.2.1

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

func RegisterAssetWalletServer

func RegisterAssetWalletServer(s grpc.ServiceRegistrar, srv AssetWalletServer)

Types

type AnchorVirtualPsbtsRequest

type AnchorVirtualPsbtsRequest struct {

	// The list of virtual transactions that should be merged and committed to in
	// the BTC level anchor transaction.
	VirtualPsbts [][]byte `protobuf:"bytes,1,rep,name=virtual_psbts,json=virtualPsbts,proto3" json:"virtual_psbts,omitempty"`
	// contains filtered or unexported fields
}

func (*AnchorVirtualPsbtsRequest) Descriptor deprecated

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

Deprecated: Use AnchorVirtualPsbtsRequest.ProtoReflect.Descriptor instead.

func (*AnchorVirtualPsbtsRequest) GetVirtualPsbts

func (x *AnchorVirtualPsbtsRequest) GetVirtualPsbts() [][]byte

func (*AnchorVirtualPsbtsRequest) ProtoMessage

func (*AnchorVirtualPsbtsRequest) ProtoMessage()

func (*AnchorVirtualPsbtsRequest) ProtoReflect

func (*AnchorVirtualPsbtsRequest) Reset

func (x *AnchorVirtualPsbtsRequest) Reset()

func (*AnchorVirtualPsbtsRequest) String

func (x *AnchorVirtualPsbtsRequest) String() string

type AssetWalletClient

type AssetWalletClient interface {
	// FundVirtualPsbt selects inputs from the available asset commitments to fund
	// a virtual transaction matching the template.
	FundVirtualPsbt(ctx context.Context, in *FundVirtualPsbtRequest, opts ...grpc.CallOption) (*FundVirtualPsbtResponse, error)
	// SignVirtualPsbt signs the inputs of a virtual transaction and prepares the
	// commitments of the inputs and outputs.
	SignVirtualPsbt(ctx context.Context, in *SignVirtualPsbtRequest, opts ...grpc.CallOption) (*SignVirtualPsbtResponse, error)
	// AnchorVirtualPsbts merges and then commits multiple virtual transactions in
	// a single BTC level anchor transaction.
	//
	// TODO(guggero): Actually implement accepting and merging multiple
	// transactions.
	AnchorVirtualPsbts(ctx context.Context, in *AnchorVirtualPsbtsRequest, opts ...grpc.CallOption) (*taprpc.SendAssetResponse, error)
	// NextInternalKey derives the next internal key for the given key family and
	// stores it as an internal key in the database to make sure it is identified
	// as a local key later on when importing proofs. While an internal key can
	// also be used as the internal key of a script key, it is recommended to use
	// the NextScriptKey RPC instead, to make sure the tweaked Taproot output key
	// is also recognized as a local key.
	NextInternalKey(ctx context.Context, in *NextInternalKeyRequest, opts ...grpc.CallOption) (*NextInternalKeyResponse, error)
	// NextScriptKey derives the next script key (and its corresponding internal
	// key) and stores them both in the database to make sure they are identified
	// as local keys later on when importing proofs.
	NextScriptKey(ctx context.Context, in *NextScriptKeyRequest, opts ...grpc.CallOption) (*NextScriptKeyResponse, error)
	// tapcli: `proofs proveownership`
	// ProveAssetOwnership creates an ownership proof embedded in an asset
	// transition proof. That ownership proof is a signed virtual transaction
	// spending the asset with a valid witness to prove the prover owns the keys
	// that can spend the asset.
	ProveAssetOwnership(ctx context.Context, in *ProveAssetOwnershipRequest, opts ...grpc.CallOption) (*ProveAssetOwnershipResponse, error)
	// tapcli: `proofs verifyownership`
	// VerifyAssetOwnership verifies the asset ownership proof embedded in the
	// given transition proof of an asset and returns true if the proof is valid.
	VerifyAssetOwnership(ctx context.Context, in *VerifyAssetOwnershipRequest, opts ...grpc.CallOption) (*VerifyAssetOwnershipResponse, error)
	// RemoveUTXOLease removes the lease/lock/reservation of the given managed
	// UTXO.
	RemoveUTXOLease(ctx context.Context, in *RemoveUTXOLeaseRequest, opts ...grpc.CallOption) (*RemoveUTXOLeaseResponse, error)
}

AssetWalletClient is the client API for AssetWallet service.

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

type AssetWalletServer

type AssetWalletServer interface {
	// FundVirtualPsbt selects inputs from the available asset commitments to fund
	// a virtual transaction matching the template.
	FundVirtualPsbt(context.Context, *FundVirtualPsbtRequest) (*FundVirtualPsbtResponse, error)
	// SignVirtualPsbt signs the inputs of a virtual transaction and prepares the
	// commitments of the inputs and outputs.
	SignVirtualPsbt(context.Context, *SignVirtualPsbtRequest) (*SignVirtualPsbtResponse, error)
	// AnchorVirtualPsbts merges and then commits multiple virtual transactions in
	// a single BTC level anchor transaction.
	//
	// TODO(guggero): Actually implement accepting and merging multiple
	// transactions.
	AnchorVirtualPsbts(context.Context, *AnchorVirtualPsbtsRequest) (*taprpc.SendAssetResponse, error)
	// NextInternalKey derives the next internal key for the given key family and
	// stores it as an internal key in the database to make sure it is identified
	// as a local key later on when importing proofs. While an internal key can
	// also be used as the internal key of a script key, it is recommended to use
	// the NextScriptKey RPC instead, to make sure the tweaked Taproot output key
	// is also recognized as a local key.
	NextInternalKey(context.Context, *NextInternalKeyRequest) (*NextInternalKeyResponse, error)
	// NextScriptKey derives the next script key (and its corresponding internal
	// key) and stores them both in the database to make sure they are identified
	// as local keys later on when importing proofs.
	NextScriptKey(context.Context, *NextScriptKeyRequest) (*NextScriptKeyResponse, error)
	// tapcli: `proofs proveownership`
	// ProveAssetOwnership creates an ownership proof embedded in an asset
	// transition proof. That ownership proof is a signed virtual transaction
	// spending the asset with a valid witness to prove the prover owns the keys
	// that can spend the asset.
	ProveAssetOwnership(context.Context, *ProveAssetOwnershipRequest) (*ProveAssetOwnershipResponse, error)
	// tapcli: `proofs verifyownership`
	// VerifyAssetOwnership verifies the asset ownership proof embedded in the
	// given transition proof of an asset and returns true if the proof is valid.
	VerifyAssetOwnership(context.Context, *VerifyAssetOwnershipRequest) (*VerifyAssetOwnershipResponse, error)
	// RemoveUTXOLease removes the lease/lock/reservation of the given managed
	// UTXO.
	RemoveUTXOLease(context.Context, *RemoveUTXOLeaseRequest) (*RemoveUTXOLeaseResponse, error)
	// contains filtered or unexported methods
}

AssetWalletServer is the server API for AssetWallet service. All implementations must embed UnimplementedAssetWalletServer for forward compatibility

type FundVirtualPsbtRequest

type FundVirtualPsbtRequest struct {

	// Types that are assignable to Template:
	//
	//	*FundVirtualPsbtRequest_Psbt
	//	*FundVirtualPsbtRequest_Raw
	Template isFundVirtualPsbtRequest_Template `protobuf_oneof:"template"`
	// contains filtered or unexported fields
}

func (*FundVirtualPsbtRequest) Descriptor deprecated

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

Deprecated: Use FundVirtualPsbtRequest.ProtoReflect.Descriptor instead.

func (*FundVirtualPsbtRequest) GetPsbt

func (x *FundVirtualPsbtRequest) GetPsbt() []byte

func (*FundVirtualPsbtRequest) GetRaw

func (x *FundVirtualPsbtRequest) GetRaw() *TxTemplate

func (*FundVirtualPsbtRequest) GetTemplate

func (m *FundVirtualPsbtRequest) GetTemplate() isFundVirtualPsbtRequest_Template

func (*FundVirtualPsbtRequest) ProtoMessage

func (*FundVirtualPsbtRequest) ProtoMessage()

func (*FundVirtualPsbtRequest) ProtoReflect

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

func (*FundVirtualPsbtRequest) Reset

func (x *FundVirtualPsbtRequest) Reset()

func (*FundVirtualPsbtRequest) String

func (x *FundVirtualPsbtRequest) String() string

type FundVirtualPsbtRequest_Psbt

type FundVirtualPsbtRequest_Psbt struct {
	// Use an existing PSBT packet as the template for the funded PSBT.
	//
	// TODO(guggero): Actually implement this. We can't use the "reserved"
	// keyword here because we're in a oneof, so we add the field but implement
	// it later.
	Psbt []byte `protobuf:"bytes,1,opt,name=psbt,proto3,oneof"`
}

type FundVirtualPsbtRequest_Raw

type FundVirtualPsbtRequest_Raw struct {
	// Use the asset outputs and optional asset inputs from this raw template.
	Raw *TxTemplate `protobuf:"bytes,2,opt,name=raw,proto3,oneof"`
}

type FundVirtualPsbtResponse

type FundVirtualPsbtResponse struct {

	// The funded but not yet signed PSBT packet.
	FundedPsbt []byte `protobuf:"bytes,1,opt,name=funded_psbt,json=fundedPsbt,proto3" json:"funded_psbt,omitempty"`
	// The index of the added change output or -1 if no change was left over.
	ChangeOutputIndex int32 `protobuf:"varint,2,opt,name=change_output_index,json=changeOutputIndex,proto3" json:"change_output_index,omitempty"`
	// contains filtered or unexported fields
}

func (*FundVirtualPsbtResponse) Descriptor deprecated

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

Deprecated: Use FundVirtualPsbtResponse.ProtoReflect.Descriptor instead.

func (*FundVirtualPsbtResponse) GetChangeOutputIndex

func (x *FundVirtualPsbtResponse) GetChangeOutputIndex() int32

func (*FundVirtualPsbtResponse) GetFundedPsbt

func (x *FundVirtualPsbtResponse) GetFundedPsbt() []byte

func (*FundVirtualPsbtResponse) ProtoMessage

func (*FundVirtualPsbtResponse) ProtoMessage()

func (*FundVirtualPsbtResponse) ProtoReflect

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

func (*FundVirtualPsbtResponse) Reset

func (x *FundVirtualPsbtResponse) Reset()

func (*FundVirtualPsbtResponse) String

func (x *FundVirtualPsbtResponse) String() string

type NextInternalKeyRequest

type NextInternalKeyRequest struct {
	KeyFamily uint32 `protobuf:"varint,1,opt,name=key_family,json=keyFamily,proto3" json:"key_family,omitempty"`
	// contains filtered or unexported fields
}

func (*NextInternalKeyRequest) Descriptor deprecated

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

Deprecated: Use NextInternalKeyRequest.ProtoReflect.Descriptor instead.

func (*NextInternalKeyRequest) GetKeyFamily

func (x *NextInternalKeyRequest) GetKeyFamily() uint32

func (*NextInternalKeyRequest) ProtoMessage

func (*NextInternalKeyRequest) ProtoMessage()

func (*NextInternalKeyRequest) ProtoReflect

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

func (*NextInternalKeyRequest) Reset

func (x *NextInternalKeyRequest) Reset()

func (*NextInternalKeyRequest) String

func (x *NextInternalKeyRequest) String() string

type NextInternalKeyResponse

type NextInternalKeyResponse struct {
	InternalKey *taprpc.KeyDescriptor `protobuf:"bytes,1,opt,name=internal_key,json=internalKey,proto3" json:"internal_key,omitempty"`
	// contains filtered or unexported fields
}

func (*NextInternalKeyResponse) Descriptor deprecated

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

Deprecated: Use NextInternalKeyResponse.ProtoReflect.Descriptor instead.

func (*NextInternalKeyResponse) GetInternalKey

func (x *NextInternalKeyResponse) GetInternalKey() *taprpc.KeyDescriptor

func (*NextInternalKeyResponse) ProtoMessage

func (*NextInternalKeyResponse) ProtoMessage()

func (*NextInternalKeyResponse) ProtoReflect

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

func (*NextInternalKeyResponse) Reset

func (x *NextInternalKeyResponse) Reset()

func (*NextInternalKeyResponse) String

func (x *NextInternalKeyResponse) String() string

type NextScriptKeyRequest

type NextScriptKeyRequest struct {
	KeyFamily uint32 `protobuf:"varint,1,opt,name=key_family,json=keyFamily,proto3" json:"key_family,omitempty"`
	// contains filtered or unexported fields
}

func (*NextScriptKeyRequest) Descriptor deprecated

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

Deprecated: Use NextScriptKeyRequest.ProtoReflect.Descriptor instead.

func (*NextScriptKeyRequest) GetKeyFamily

func (x *NextScriptKeyRequest) GetKeyFamily() uint32

func (*NextScriptKeyRequest) ProtoMessage

func (*NextScriptKeyRequest) ProtoMessage()

func (*NextScriptKeyRequest) ProtoReflect

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

func (*NextScriptKeyRequest) Reset

func (x *NextScriptKeyRequest) Reset()

func (*NextScriptKeyRequest) String

func (x *NextScriptKeyRequest) String() string

type NextScriptKeyResponse

type NextScriptKeyResponse struct {
	ScriptKey *taprpc.ScriptKey `protobuf:"bytes,1,opt,name=script_key,json=scriptKey,proto3" json:"script_key,omitempty"`
	// contains filtered or unexported fields
}

func (*NextScriptKeyResponse) Descriptor deprecated

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

Deprecated: Use NextScriptKeyResponse.ProtoReflect.Descriptor instead.

func (*NextScriptKeyResponse) GetScriptKey

func (x *NextScriptKeyResponse) GetScriptKey() *taprpc.ScriptKey

func (*NextScriptKeyResponse) ProtoMessage

func (*NextScriptKeyResponse) ProtoMessage()

func (*NextScriptKeyResponse) ProtoReflect

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

func (*NextScriptKeyResponse) Reset

func (x *NextScriptKeyResponse) Reset()

func (*NextScriptKeyResponse) String

func (x *NextScriptKeyResponse) String() string

type PrevId

type PrevId struct {

	// The bitcoin anchor output on chain that contains the input asset.
	Outpoint *taprpc.OutPoint `protobuf:"bytes,1,opt,name=outpoint,proto3" json:"outpoint,omitempty"`
	// The asset ID of the previous asset tree.
	Id []byte `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// The tweaked Taproot output key committing to the possible spending
	// conditions of the asset.
	ScriptKey []byte `protobuf:"bytes,3,opt,name=script_key,json=scriptKey,proto3" json:"script_key,omitempty"`
	// contains filtered or unexported fields
}

func (*PrevId) Descriptor deprecated

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

Deprecated: Use PrevId.ProtoReflect.Descriptor instead.

func (*PrevId) GetId

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

func (*PrevId) GetOutpoint

func (x *PrevId) GetOutpoint() *taprpc.OutPoint

func (*PrevId) GetScriptKey

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

func (*PrevId) ProtoMessage

func (*PrevId) ProtoMessage()

func (*PrevId) ProtoReflect

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

func (*PrevId) Reset

func (x *PrevId) Reset()

func (*PrevId) String

func (x *PrevId) String() string

type ProveAssetOwnershipRequest

type ProveAssetOwnershipRequest 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  *taprpc.OutPoint `protobuf:"bytes,3,opt,name=outpoint,proto3" json:"outpoint,omitempty"`
	// contains filtered or unexported fields
}

func (*ProveAssetOwnershipRequest) Descriptor deprecated

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

Deprecated: Use ProveAssetOwnershipRequest.ProtoReflect.Descriptor instead.

func (*ProveAssetOwnershipRequest) GetAssetId

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

func (*ProveAssetOwnershipRequest) GetOutpoint added in v0.3.3

func (x *ProveAssetOwnershipRequest) GetOutpoint() *taprpc.OutPoint

func (*ProveAssetOwnershipRequest) GetScriptKey

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

func (*ProveAssetOwnershipRequest) ProtoMessage

func (*ProveAssetOwnershipRequest) ProtoMessage()

func (*ProveAssetOwnershipRequest) ProtoReflect

func (*ProveAssetOwnershipRequest) Reset

func (x *ProveAssetOwnershipRequest) Reset()

func (*ProveAssetOwnershipRequest) String

func (x *ProveAssetOwnershipRequest) String() string

type ProveAssetOwnershipResponse

type ProveAssetOwnershipResponse struct {
	ProofWithWitness []byte `protobuf:"bytes,1,opt,name=proof_with_witness,json=proofWithWitness,proto3" json:"proof_with_witness,omitempty"`
	// contains filtered or unexported fields
}

func (*ProveAssetOwnershipResponse) Descriptor deprecated

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

Deprecated: Use ProveAssetOwnershipResponse.ProtoReflect.Descriptor instead.

func (*ProveAssetOwnershipResponse) GetProofWithWitness

func (x *ProveAssetOwnershipResponse) GetProofWithWitness() []byte

func (*ProveAssetOwnershipResponse) ProtoMessage

func (*ProveAssetOwnershipResponse) ProtoMessage()

func (*ProveAssetOwnershipResponse) ProtoReflect

func (*ProveAssetOwnershipResponse) Reset

func (x *ProveAssetOwnershipResponse) Reset()

func (*ProveAssetOwnershipResponse) String

func (x *ProveAssetOwnershipResponse) String() string

type RemoveUTXOLeaseRequest added in v0.3.0

type RemoveUTXOLeaseRequest struct {

	// The outpoint of the UTXO to remove the lease for.
	Outpoint *taprpc.OutPoint `protobuf:"bytes,1,opt,name=outpoint,proto3" json:"outpoint,omitempty"`
	// contains filtered or unexported fields
}

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

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

Deprecated: Use RemoveUTXOLeaseRequest.ProtoReflect.Descriptor instead.

func (*RemoveUTXOLeaseRequest) GetOutpoint added in v0.3.0

func (x *RemoveUTXOLeaseRequest) GetOutpoint() *taprpc.OutPoint

func (*RemoveUTXOLeaseRequest) ProtoMessage added in v0.3.0

func (*RemoveUTXOLeaseRequest) ProtoMessage()

func (*RemoveUTXOLeaseRequest) ProtoReflect added in v0.3.0

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

func (*RemoveUTXOLeaseRequest) Reset added in v0.3.0

func (x *RemoveUTXOLeaseRequest) Reset()

func (*RemoveUTXOLeaseRequest) String added in v0.3.0

func (x *RemoveUTXOLeaseRequest) String() string

type RemoveUTXOLeaseResponse added in v0.3.0

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

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

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

Deprecated: Use RemoveUTXOLeaseResponse.ProtoReflect.Descriptor instead.

func (*RemoveUTXOLeaseResponse) ProtoMessage added in v0.3.0

func (*RemoveUTXOLeaseResponse) ProtoMessage()

func (*RemoveUTXOLeaseResponse) ProtoReflect added in v0.3.0

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

func (*RemoveUTXOLeaseResponse) Reset added in v0.3.0

func (x *RemoveUTXOLeaseResponse) Reset()

func (*RemoveUTXOLeaseResponse) String added in v0.3.0

func (x *RemoveUTXOLeaseResponse) String() string

type SignVirtualPsbtRequest

type SignVirtualPsbtRequest struct {

	// The PSBT of the virtual transaction that should be signed. The PSBT must
	// contain all required inputs, outputs, UTXO data and custom fields required
	// to identify the signing key.
	FundedPsbt []byte `protobuf:"bytes,1,opt,name=funded_psbt,json=fundedPsbt,proto3" json:"funded_psbt,omitempty"`
	// contains filtered or unexported fields
}

func (*SignVirtualPsbtRequest) Descriptor deprecated

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

Deprecated: Use SignVirtualPsbtRequest.ProtoReflect.Descriptor instead.

func (*SignVirtualPsbtRequest) GetFundedPsbt

func (x *SignVirtualPsbtRequest) GetFundedPsbt() []byte

func (*SignVirtualPsbtRequest) ProtoMessage

func (*SignVirtualPsbtRequest) ProtoMessage()

func (*SignVirtualPsbtRequest) ProtoReflect

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

func (*SignVirtualPsbtRequest) Reset

func (x *SignVirtualPsbtRequest) Reset()

func (*SignVirtualPsbtRequest) String

func (x *SignVirtualPsbtRequest) String() string

type SignVirtualPsbtResponse

type SignVirtualPsbtResponse struct {

	// The signed virtual transaction in PSBT format.
	SignedPsbt []byte `protobuf:"bytes,1,opt,name=signed_psbt,json=signedPsbt,proto3" json:"signed_psbt,omitempty"`
	// The indices of signed inputs.
	SignedInputs []uint32 `protobuf:"varint,2,rep,packed,name=signed_inputs,json=signedInputs,proto3" json:"signed_inputs,omitempty"`
	// contains filtered or unexported fields
}

func (*SignVirtualPsbtResponse) Descriptor deprecated

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

Deprecated: Use SignVirtualPsbtResponse.ProtoReflect.Descriptor instead.

func (*SignVirtualPsbtResponse) GetSignedInputs

func (x *SignVirtualPsbtResponse) GetSignedInputs() []uint32

func (*SignVirtualPsbtResponse) GetSignedPsbt

func (x *SignVirtualPsbtResponse) GetSignedPsbt() []byte

func (*SignVirtualPsbtResponse) ProtoMessage

func (*SignVirtualPsbtResponse) ProtoMessage()

func (*SignVirtualPsbtResponse) ProtoReflect

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

func (*SignVirtualPsbtResponse) Reset

func (x *SignVirtualPsbtResponse) Reset()

func (*SignVirtualPsbtResponse) String

func (x *SignVirtualPsbtResponse) String() string

type TxTemplate

type TxTemplate struct {

	// An optional list of inputs to use. Every input must be an asset UTXO known
	// to the wallet. The sum of all inputs must be greater than or equal to the
	// sum of all outputs.
	//
	// If no inputs are specified, asset coin selection will be performed instead
	// and inputs of sufficient value will be added to the resulting PSBT.
	Inputs []*PrevId `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"`
	// A map of all Taproot Asset addresses mapped to the anchor transaction's
	// output index that should be sent to.
	Recipients map[string]uint64 `` /* 162-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TxTemplate) Descriptor deprecated

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

Deprecated: Use TxTemplate.ProtoReflect.Descriptor instead.

func (*TxTemplate) GetInputs

func (x *TxTemplate) GetInputs() []*PrevId

func (*TxTemplate) GetRecipients

func (x *TxTemplate) GetRecipients() map[string]uint64

func (*TxTemplate) ProtoMessage

func (*TxTemplate) ProtoMessage()

func (*TxTemplate) ProtoReflect

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

func (*TxTemplate) Reset

func (x *TxTemplate) Reset()

func (*TxTemplate) String

func (x *TxTemplate) String() string

type UnimplementedAssetWalletServer

type UnimplementedAssetWalletServer struct {
}

UnimplementedAssetWalletServer must be embedded to have forward compatible implementations.

func (UnimplementedAssetWalletServer) AnchorVirtualPsbts

func (UnimplementedAssetWalletServer) FundVirtualPsbt

func (UnimplementedAssetWalletServer) NextInternalKey

func (UnimplementedAssetWalletServer) NextScriptKey

func (UnimplementedAssetWalletServer) RemoveUTXOLease added in v0.3.0

func (UnimplementedAssetWalletServer) SignVirtualPsbt

type UnsafeAssetWalletServer

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

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

type VerifyAssetOwnershipRequest

type VerifyAssetOwnershipRequest struct {
	ProofWithWitness []byte `protobuf:"bytes,1,opt,name=proof_with_witness,json=proofWithWitness,proto3" json:"proof_with_witness,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyAssetOwnershipRequest) Descriptor deprecated

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

Deprecated: Use VerifyAssetOwnershipRequest.ProtoReflect.Descriptor instead.

func (*VerifyAssetOwnershipRequest) GetProofWithWitness

func (x *VerifyAssetOwnershipRequest) GetProofWithWitness() []byte

func (*VerifyAssetOwnershipRequest) ProtoMessage

func (*VerifyAssetOwnershipRequest) ProtoMessage()

func (*VerifyAssetOwnershipRequest) ProtoReflect

func (*VerifyAssetOwnershipRequest) Reset

func (x *VerifyAssetOwnershipRequest) Reset()

func (*VerifyAssetOwnershipRequest) String

func (x *VerifyAssetOwnershipRequest) String() string

type VerifyAssetOwnershipResponse

type VerifyAssetOwnershipResponse struct {
	ValidProof bool `protobuf:"varint,1,opt,name=valid_proof,json=validProof,proto3" json:"valid_proof,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyAssetOwnershipResponse) Descriptor deprecated

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

Deprecated: Use VerifyAssetOwnershipResponse.ProtoReflect.Descriptor instead.

func (*VerifyAssetOwnershipResponse) GetValidProof

func (x *VerifyAssetOwnershipResponse) GetValidProof() bool

func (*VerifyAssetOwnershipResponse) ProtoMessage

func (*VerifyAssetOwnershipResponse) ProtoMessage()

func (*VerifyAssetOwnershipResponse) ProtoReflect

func (*VerifyAssetOwnershipResponse) Reset

func (x *VerifyAssetOwnershipResponse) Reset()

func (*VerifyAssetOwnershipResponse) String

Jump to

Keyboard shortcuts

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