Documentation ¶
Overview ¶
Package assetwalletrpc is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterAssetWalletHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAssetWalletHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AssetWalletClient) error
- func RegisterAssetWalletHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAssetWalletHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AssetWalletServer) error
- func RegisterAssetWalletJSONCallbacks(...)
- func RegisterAssetWalletServer(s grpc.ServiceRegistrar, srv AssetWalletServer)
- type AnchorVirtualPsbtsRequest
- func (*AnchorVirtualPsbtsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AnchorVirtualPsbtsRequest) GetVirtualPsbts() [][]byte
- func (*AnchorVirtualPsbtsRequest) ProtoMessage()
- func (x *AnchorVirtualPsbtsRequest) ProtoReflect() protoreflect.Message
- func (x *AnchorVirtualPsbtsRequest) Reset()
- func (x *AnchorVirtualPsbtsRequest) String() string
- type AssetWalletClient
- type AssetWalletServer
- type FundVirtualPsbtRequest
- func (*FundVirtualPsbtRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FundVirtualPsbtRequest) GetPsbt() []byte
- func (x *FundVirtualPsbtRequest) GetRaw() *TxTemplate
- func (m *FundVirtualPsbtRequest) GetTemplate() isFundVirtualPsbtRequest_Template
- func (*FundVirtualPsbtRequest) ProtoMessage()
- func (x *FundVirtualPsbtRequest) ProtoReflect() protoreflect.Message
- func (x *FundVirtualPsbtRequest) Reset()
- func (x *FundVirtualPsbtRequest) String() string
- type FundVirtualPsbtRequest_Psbt
- type FundVirtualPsbtRequest_Raw
- type FundVirtualPsbtResponse
- func (*FundVirtualPsbtResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FundVirtualPsbtResponse) GetChangeOutputIndex() int32
- func (x *FundVirtualPsbtResponse) GetFundedPsbt() []byte
- func (*FundVirtualPsbtResponse) ProtoMessage()
- func (x *FundVirtualPsbtResponse) ProtoReflect() protoreflect.Message
- func (x *FundVirtualPsbtResponse) Reset()
- func (x *FundVirtualPsbtResponse) String() string
- type NextInternalKeyRequest
- func (*NextInternalKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NextInternalKeyRequest) GetKeyFamily() uint32
- func (*NextInternalKeyRequest) ProtoMessage()
- func (x *NextInternalKeyRequest) ProtoReflect() protoreflect.Message
- func (x *NextInternalKeyRequest) Reset()
- func (x *NextInternalKeyRequest) String() string
- type NextInternalKeyResponse
- func (*NextInternalKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NextInternalKeyResponse) GetInternalKey() *taprpc.KeyDescriptor
- func (*NextInternalKeyResponse) ProtoMessage()
- func (x *NextInternalKeyResponse) ProtoReflect() protoreflect.Message
- func (x *NextInternalKeyResponse) Reset()
- func (x *NextInternalKeyResponse) String() string
- type NextScriptKeyRequest
- func (*NextScriptKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NextScriptKeyRequest) GetKeyFamily() uint32
- func (*NextScriptKeyRequest) ProtoMessage()
- func (x *NextScriptKeyRequest) ProtoReflect() protoreflect.Message
- func (x *NextScriptKeyRequest) Reset()
- func (x *NextScriptKeyRequest) String() string
- type NextScriptKeyResponse
- func (*NextScriptKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NextScriptKeyResponse) GetScriptKey() *taprpc.ScriptKey
- func (*NextScriptKeyResponse) ProtoMessage()
- func (x *NextScriptKeyResponse) ProtoReflect() protoreflect.Message
- func (x *NextScriptKeyResponse) Reset()
- func (x *NextScriptKeyResponse) String() string
- type OutPoint
- type PrevId
- func (*PrevId) Descriptor() ([]byte, []int)deprecated
- func (x *PrevId) GetId() []byte
- func (x *PrevId) GetOutpoint() *OutPoint
- func (x *PrevId) GetScriptKey() []byte
- func (*PrevId) ProtoMessage()
- func (x *PrevId) ProtoReflect() protoreflect.Message
- func (x *PrevId) Reset()
- func (x *PrevId) String() string
- type ProveAssetOwnershipRequest
- func (*ProveAssetOwnershipRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProveAssetOwnershipRequest) GetAssetId() []byte
- func (x *ProveAssetOwnershipRequest) GetScriptKey() []byte
- func (*ProveAssetOwnershipRequest) ProtoMessage()
- func (x *ProveAssetOwnershipRequest) ProtoReflect() protoreflect.Message
- func (x *ProveAssetOwnershipRequest) Reset()
- func (x *ProveAssetOwnershipRequest) String() string
- type ProveAssetOwnershipResponse
- func (*ProveAssetOwnershipResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProveAssetOwnershipResponse) GetProofWithWitness() []byte
- func (*ProveAssetOwnershipResponse) ProtoMessage()
- func (x *ProveAssetOwnershipResponse) ProtoReflect() protoreflect.Message
- func (x *ProveAssetOwnershipResponse) Reset()
- func (x *ProveAssetOwnershipResponse) String() string
- type RemoveUTXOLeaseRequest
- func (*RemoveUTXOLeaseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveUTXOLeaseRequest) GetOutpoint() *OutPoint
- func (*RemoveUTXOLeaseRequest) ProtoMessage()
- func (x *RemoveUTXOLeaseRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveUTXOLeaseRequest) Reset()
- func (x *RemoveUTXOLeaseRequest) String() string
- type RemoveUTXOLeaseResponse
- type SignVirtualPsbtRequest
- func (*SignVirtualPsbtRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignVirtualPsbtRequest) GetFundedPsbt() []byte
- func (*SignVirtualPsbtRequest) ProtoMessage()
- func (x *SignVirtualPsbtRequest) ProtoReflect() protoreflect.Message
- func (x *SignVirtualPsbtRequest) Reset()
- func (x *SignVirtualPsbtRequest) String() string
- type SignVirtualPsbtResponse
- func (*SignVirtualPsbtResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SignVirtualPsbtResponse) GetSignedInputs() []uint32
- func (x *SignVirtualPsbtResponse) GetSignedPsbt() []byte
- func (*SignVirtualPsbtResponse) ProtoMessage()
- func (x *SignVirtualPsbtResponse) ProtoReflect() protoreflect.Message
- func (x *SignVirtualPsbtResponse) Reset()
- func (x *SignVirtualPsbtResponse) String() string
- type TxTemplate
- func (*TxTemplate) Descriptor() ([]byte, []int)deprecated
- func (x *TxTemplate) GetInputs() []*PrevId
- func (x *TxTemplate) GetRecipients() map[string]uint64
- func (*TxTemplate) ProtoMessage()
- func (x *TxTemplate) ProtoReflect() protoreflect.Message
- func (x *TxTemplate) Reset()
- func (x *TxTemplate) String() string
- type UnimplementedAssetWalletServer
- func (UnimplementedAssetWalletServer) AnchorVirtualPsbts(context.Context, *AnchorVirtualPsbtsRequest) (*taprpc.SendAssetResponse, error)
- func (UnimplementedAssetWalletServer) FundVirtualPsbt(context.Context, *FundVirtualPsbtRequest) (*FundVirtualPsbtResponse, error)
- func (UnimplementedAssetWalletServer) NextInternalKey(context.Context, *NextInternalKeyRequest) (*NextInternalKeyResponse, error)
- func (UnimplementedAssetWalletServer) NextScriptKey(context.Context, *NextScriptKeyRequest) (*NextScriptKeyResponse, error)
- func (UnimplementedAssetWalletServer) ProveAssetOwnership(context.Context, *ProveAssetOwnershipRequest) (*ProveAssetOwnershipResponse, error)
- func (UnimplementedAssetWalletServer) RemoveUTXOLease(context.Context, *RemoveUTXOLeaseRequest) (*RemoveUTXOLeaseResponse, error)
- func (UnimplementedAssetWalletServer) SignVirtualPsbt(context.Context, *SignVirtualPsbtRequest) (*SignVirtualPsbtResponse, error)
- func (UnimplementedAssetWalletServer) VerifyAssetOwnership(context.Context, *VerifyAssetOwnershipRequest) (*VerifyAssetOwnershipResponse, error)
- type UnsafeAssetWalletServer
- type VerifyAssetOwnershipRequest
- func (*VerifyAssetOwnershipRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyAssetOwnershipRequest) GetProofWithWitness() []byte
- func (*VerifyAssetOwnershipRequest) ProtoMessage()
- func (x *VerifyAssetOwnershipRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyAssetOwnershipRequest) Reset()
- func (x *VerifyAssetOwnershipRequest) String() string
- type VerifyAssetOwnershipResponse
- func (*VerifyAssetOwnershipResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyAssetOwnershipResponse) GetValidProof() bool
- func (*VerifyAssetOwnershipResponse) ProtoMessage()
- func (x *VerifyAssetOwnershipResponse) ProtoReflect() protoreflect.Message
- func (x *VerifyAssetOwnershipResponse) Reset()
- func (x *VerifyAssetOwnershipResponse) String() string
Constants ¶
This section is empty.
Variables ¶
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)
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 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 (x *AnchorVirtualPsbtsRequest) ProtoReflect() protoreflect.Message
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) // 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) // 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.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAssetWalletClient ¶
func NewAssetWalletClient(cc grpc.ClientConnInterface) AssetWalletClient
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) // 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) // 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 OutPoint ¶
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
func (*OutPoint) GetOutputIndex ¶
func (*OutPoint) ProtoMessage ¶
func (*OutPoint) ProtoMessage()
func (*OutPoint) ProtoReflect ¶
func (x *OutPoint) ProtoReflect() protoreflect.Message
type PrevId ¶
type PrevId struct { // The bitcoin anchor output on chain that contains the input asset. Outpoint *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) GetOutpoint ¶
func (*PrevId) GetScriptKey ¶
func (*PrevId) ProtoMessage ¶
func (*PrevId) ProtoMessage()
func (*PrevId) ProtoReflect ¶
func (x *PrevId) ProtoReflect() protoreflect.Message
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"` // 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) GetScriptKey ¶
func (x *ProveAssetOwnershipRequest) GetScriptKey() []byte
func (*ProveAssetOwnershipRequest) ProtoMessage ¶
func (*ProveAssetOwnershipRequest) ProtoMessage()
func (*ProveAssetOwnershipRequest) ProtoReflect ¶
func (x *ProveAssetOwnershipRequest) ProtoReflect() protoreflect.Message
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 (x *ProveAssetOwnershipResponse) ProtoReflect() protoreflect.Message
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 *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() *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) AnchorVirtualPsbts(context.Context, *AnchorVirtualPsbtsRequest) (*taprpc.SendAssetResponse, error)
func (UnimplementedAssetWalletServer) FundVirtualPsbt ¶
func (UnimplementedAssetWalletServer) FundVirtualPsbt(context.Context, *FundVirtualPsbtRequest) (*FundVirtualPsbtResponse, error)
func (UnimplementedAssetWalletServer) NextInternalKey ¶
func (UnimplementedAssetWalletServer) NextInternalKey(context.Context, *NextInternalKeyRequest) (*NextInternalKeyResponse, error)
func (UnimplementedAssetWalletServer) NextScriptKey ¶
func (UnimplementedAssetWalletServer) NextScriptKey(context.Context, *NextScriptKeyRequest) (*NextScriptKeyResponse, error)
func (UnimplementedAssetWalletServer) ProveAssetOwnership ¶
func (UnimplementedAssetWalletServer) ProveAssetOwnership(context.Context, *ProveAssetOwnershipRequest) (*ProveAssetOwnershipResponse, error)
func (UnimplementedAssetWalletServer) RemoveUTXOLease ¶ added in v0.3.0
func (UnimplementedAssetWalletServer) RemoveUTXOLease(context.Context, *RemoveUTXOLeaseRequest) (*RemoveUTXOLeaseResponse, error)
func (UnimplementedAssetWalletServer) SignVirtualPsbt ¶
func (UnimplementedAssetWalletServer) SignVirtualPsbt(context.Context, *SignVirtualPsbtRequest) (*SignVirtualPsbtResponse, error)
func (UnimplementedAssetWalletServer) VerifyAssetOwnership ¶
func (UnimplementedAssetWalletServer) VerifyAssetOwnership(context.Context, *VerifyAssetOwnershipRequest) (*VerifyAssetOwnershipResponse, error)
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 (x *VerifyAssetOwnershipRequest) ProtoReflect() protoreflect.Message
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 (x *VerifyAssetOwnershipResponse) ProtoReflect() protoreflect.Message
func (*VerifyAssetOwnershipResponse) Reset ¶
func (x *VerifyAssetOwnershipResponse) Reset()
func (*VerifyAssetOwnershipResponse) String ¶
func (x *VerifyAssetOwnershipResponse) String() string