mirror of
https://github.com/bitromortac/lndmanage.git
synced 2026-08-13 12:33:37 +02:00
protos: rebuild protos v0.15.5
Protos are built with ``` $ python -m grpc_tools.protoc --version libprotoc 3.19.5 ```
This commit is contained in:
parent
bc5b73ee4b
commit
17d6f2e082
8 changed files with 1751 additions and 17911 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
git clone https://github.com/googleapis/googleapis.git
|
||||
pip install grpcio grpcio-tools googleapis-common-protos
|
||||
tag="v0.14.2-beta"
|
||||
tag="v0.15.5-beta"
|
||||
wget "https://raw.githubusercontent.com/lightningnetwork/lnd/${tag}/lnrpc/lightning.proto" -O lightning.proto
|
||||
wget "https://raw.githubusercontent.com/lightningnetwork/lnd/${tag}/lnrpc/routerrpc/router.proto" -O router.proto
|
||||
wget "https://raw.githubusercontent.com/lightningnetwork/lnd/${tag}/lnrpc/walletrpc/walletkit.proto" -O walletkit.proto
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -357,6 +357,11 @@ class LightningStub(object):
|
|||
request_serializer=lightning__pb2.SubscribeCustomMessagesRequest.SerializeToString,
|
||||
response_deserializer=lightning__pb2.CustomMessage.FromString,
|
||||
)
|
||||
self.ListAliases = channel.unary_unary(
|
||||
'/lnrpc.Lightning/ListAliases',
|
||||
request_serializer=lightning__pb2.ListAliasesRequest.SerializeToString,
|
||||
response_deserializer=lightning__pb2.ListAliasesResponse.FromString,
|
||||
)
|
||||
|
||||
|
||||
class LightningServicer(object):
|
||||
|
|
@ -1097,6 +1102,16 @@ class LightningServicer(object):
|
|||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def ListAliases(self, request, context):
|
||||
"""lncli: `listaliases`
|
||||
ListAliases returns the set of all aliases that have ever existed with
|
||||
their confirmed SCID (if it exists) and/or the base SCID (in the case of
|
||||
zero conf).
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_LightningServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
|
|
@ -1425,6 +1440,11 @@ def add_LightningServicer_to_server(servicer, server):
|
|||
request_deserializer=lightning__pb2.SubscribeCustomMessagesRequest.FromString,
|
||||
response_serializer=lightning__pb2.CustomMessage.SerializeToString,
|
||||
),
|
||||
'ListAliases': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.ListAliases,
|
||||
request_deserializer=lightning__pb2.ListAliasesRequest.FromString,
|
||||
response_serializer=lightning__pb2.ListAliasesResponse.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'lnrpc.Lightning', rpc_method_handlers)
|
||||
|
|
@ -2557,3 +2577,20 @@ class Lightning(object):
|
|||
lightning__pb2.CustomMessage.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def ListAliases(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/lnrpc.Lightning/ListAliases',
|
||||
lightning__pb2.ListAliasesRequest.SerializeToString,
|
||||
lightning__pb2.ListAliasesResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -41,6 +41,36 @@ class SignerStub(object):
|
|||
request_serializer=signer__pb2.SharedKeyRequest.SerializeToString,
|
||||
response_deserializer=signer__pb2.SharedKeyResponse.FromString,
|
||||
)
|
||||
self.MuSig2CombineKeys = channel.unary_unary(
|
||||
'/signrpc.Signer/MuSig2CombineKeys',
|
||||
request_serializer=signer__pb2.MuSig2CombineKeysRequest.SerializeToString,
|
||||
response_deserializer=signer__pb2.MuSig2CombineKeysResponse.FromString,
|
||||
)
|
||||
self.MuSig2CreateSession = channel.unary_unary(
|
||||
'/signrpc.Signer/MuSig2CreateSession',
|
||||
request_serializer=signer__pb2.MuSig2SessionRequest.SerializeToString,
|
||||
response_deserializer=signer__pb2.MuSig2SessionResponse.FromString,
|
||||
)
|
||||
self.MuSig2RegisterNonces = channel.unary_unary(
|
||||
'/signrpc.Signer/MuSig2RegisterNonces',
|
||||
request_serializer=signer__pb2.MuSig2RegisterNoncesRequest.SerializeToString,
|
||||
response_deserializer=signer__pb2.MuSig2RegisterNoncesResponse.FromString,
|
||||
)
|
||||
self.MuSig2Sign = channel.unary_unary(
|
||||
'/signrpc.Signer/MuSig2Sign',
|
||||
request_serializer=signer__pb2.MuSig2SignRequest.SerializeToString,
|
||||
response_deserializer=signer__pb2.MuSig2SignResponse.FromString,
|
||||
)
|
||||
self.MuSig2CombineSig = channel.unary_unary(
|
||||
'/signrpc.Signer/MuSig2CombineSig',
|
||||
request_serializer=signer__pb2.MuSig2CombineSigRequest.SerializeToString,
|
||||
response_deserializer=signer__pb2.MuSig2CombineSigResponse.FromString,
|
||||
)
|
||||
self.MuSig2Cleanup = channel.unary_unary(
|
||||
'/signrpc.Signer/MuSig2Cleanup',
|
||||
request_serializer=signer__pb2.MuSig2CleanupRequest.SerializeToString,
|
||||
response_deserializer=signer__pb2.MuSig2CleanupResponse.FromString,
|
||||
)
|
||||
|
||||
|
||||
class SignerServicer(object):
|
||||
|
|
@ -67,8 +97,8 @@ class SignerServicer(object):
|
|||
"""
|
||||
ComputeInputScript generates a complete InputIndex for the passed
|
||||
transaction with the signature as defined within the passed SignDescriptor.
|
||||
This method should be capable of generating the proper input script for
|
||||
both regular p2wkh output and p2wkh outputs nested within a regular p2sh
|
||||
This method should be capable of generating the proper input script for both
|
||||
regular p2wkh/p2tr outputs and p2wkh outputs nested within a regular p2sh
|
||||
output.
|
||||
|
||||
Note that when using this method to sign inputs belonging to the wallet,
|
||||
|
|
@ -119,6 +149,101 @@ class SignerServicer(object):
|
|||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def MuSig2CombineKeys(self, request, context):
|
||||
"""
|
||||
MuSig2CombineKeys (experimental!) is a stateless helper RPC that can be used
|
||||
to calculate the combined MuSig2 public key from a list of all participating
|
||||
signers' public keys. This RPC is completely stateless and deterministic and
|
||||
does not create any signing session. It can be used to determine the Taproot
|
||||
public key that should be put in an on-chain output once all public keys are
|
||||
known. A signing session is only needed later when that output should be
|
||||
_spent_ again.
|
||||
|
||||
NOTE: The MuSig2 BIP is not final yet and therefore this API must be
|
||||
considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
|
||||
releases. Backward compatibility is not guaranteed!
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def MuSig2CreateSession(self, request, context):
|
||||
"""
|
||||
MuSig2CreateSession (experimental!) creates a new MuSig2 signing session
|
||||
using the local key identified by the key locator. The complete list of all
|
||||
public keys of all signing parties must be provided, including the public
|
||||
key of the local signing key. If nonces of other parties are already known,
|
||||
they can be submitted as well to reduce the number of RPC calls necessary
|
||||
later on.
|
||||
|
||||
NOTE: The MuSig2 BIP is not final yet and therefore this API must be
|
||||
considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
|
||||
releases. Backward compatibility is not guaranteed!
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def MuSig2RegisterNonces(self, request, context):
|
||||
"""
|
||||
MuSig2RegisterNonces (experimental!) registers one or more public nonces of
|
||||
other signing participants for a session identified by its ID. This RPC can
|
||||
be called multiple times until all nonces are registered.
|
||||
|
||||
NOTE: The MuSig2 BIP is not final yet and therefore this API must be
|
||||
considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
|
||||
releases. Backward compatibility is not guaranteed!
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def MuSig2Sign(self, request, context):
|
||||
"""
|
||||
MuSig2Sign (experimental!) creates a partial signature using the local
|
||||
signing key that was specified when the session was created. This can only
|
||||
be called when all public nonces of all participants are known and have been
|
||||
registered with the session. If this node isn't responsible for combining
|
||||
all the partial signatures, then the cleanup flag should be set, indicating
|
||||
that the session can be removed from memory once the signature was produced.
|
||||
|
||||
NOTE: The MuSig2 BIP is not final yet and therefore this API must be
|
||||
considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
|
||||
releases. Backward compatibility is not guaranteed!
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def MuSig2CombineSig(self, request, context):
|
||||
"""
|
||||
MuSig2CombineSig (experimental!) combines the given partial signature(s)
|
||||
with the local one, if it already exists. Once a partial signature of all
|
||||
participants is registered, the final signature will be combined and
|
||||
returned.
|
||||
|
||||
NOTE: The MuSig2 BIP is not final yet and therefore this API must be
|
||||
considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
|
||||
releases. Backward compatibility is not guaranteed!
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def MuSig2Cleanup(self, request, context):
|
||||
"""
|
||||
MuSig2Cleanup (experimental!) allows a caller to clean up a session early in
|
||||
cases where it's obvious that the signing session won't succeed and the
|
||||
resources can be released.
|
||||
|
||||
NOTE: The MuSig2 BIP is not final yet and therefore this API must be
|
||||
considered to be HIGHLY EXPERIMENTAL and subject to change in upcoming
|
||||
releases. Backward compatibility is not guaranteed!
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_SignerServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
|
|
@ -147,6 +272,36 @@ def add_SignerServicer_to_server(servicer, server):
|
|||
request_deserializer=signer__pb2.SharedKeyRequest.FromString,
|
||||
response_serializer=signer__pb2.SharedKeyResponse.SerializeToString,
|
||||
),
|
||||
'MuSig2CombineKeys': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.MuSig2CombineKeys,
|
||||
request_deserializer=signer__pb2.MuSig2CombineKeysRequest.FromString,
|
||||
response_serializer=signer__pb2.MuSig2CombineKeysResponse.SerializeToString,
|
||||
),
|
||||
'MuSig2CreateSession': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.MuSig2CreateSession,
|
||||
request_deserializer=signer__pb2.MuSig2SessionRequest.FromString,
|
||||
response_serializer=signer__pb2.MuSig2SessionResponse.SerializeToString,
|
||||
),
|
||||
'MuSig2RegisterNonces': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.MuSig2RegisterNonces,
|
||||
request_deserializer=signer__pb2.MuSig2RegisterNoncesRequest.FromString,
|
||||
response_serializer=signer__pb2.MuSig2RegisterNoncesResponse.SerializeToString,
|
||||
),
|
||||
'MuSig2Sign': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.MuSig2Sign,
|
||||
request_deserializer=signer__pb2.MuSig2SignRequest.FromString,
|
||||
response_serializer=signer__pb2.MuSig2SignResponse.SerializeToString,
|
||||
),
|
||||
'MuSig2CombineSig': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.MuSig2CombineSig,
|
||||
request_deserializer=signer__pb2.MuSig2CombineSigRequest.FromString,
|
||||
response_serializer=signer__pb2.MuSig2CombineSigResponse.SerializeToString,
|
||||
),
|
||||
'MuSig2Cleanup': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.MuSig2Cleanup,
|
||||
request_deserializer=signer__pb2.MuSig2CleanupRequest.FromString,
|
||||
response_serializer=signer__pb2.MuSig2CleanupResponse.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'signrpc.Signer', rpc_method_handlers)
|
||||
|
|
@ -243,3 +398,105 @@ class Signer(object):
|
|||
signer__pb2.SharedKeyResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def MuSig2CombineKeys(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/signrpc.Signer/MuSig2CombineKeys',
|
||||
signer__pb2.MuSig2CombineKeysRequest.SerializeToString,
|
||||
signer__pb2.MuSig2CombineKeysResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def MuSig2CreateSession(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/signrpc.Signer/MuSig2CreateSession',
|
||||
signer__pb2.MuSig2SessionRequest.SerializeToString,
|
||||
signer__pb2.MuSig2SessionResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def MuSig2RegisterNonces(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/signrpc.Signer/MuSig2RegisterNonces',
|
||||
signer__pb2.MuSig2RegisterNoncesRequest.SerializeToString,
|
||||
signer__pb2.MuSig2RegisterNoncesResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def MuSig2Sign(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/signrpc.Signer/MuSig2Sign',
|
||||
signer__pb2.MuSig2SignRequest.SerializeToString,
|
||||
signer__pb2.MuSig2SignResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def MuSig2CombineSig(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/signrpc.Signer/MuSig2CombineSig',
|
||||
signer__pb2.MuSig2CombineSigRequest.SerializeToString,
|
||||
signer__pb2.MuSig2CombineSigResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def MuSig2Cleanup(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/signrpc.Signer/MuSig2Cleanup',
|
||||
signer__pb2.MuSig2CleanupRequest.SerializeToString,
|
||||
signer__pb2.MuSig2CleanupResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -57,6 +57,11 @@ class WalletKitStub(object):
|
|||
request_serializer=walletkit__pb2.ListAccountsRequest.SerializeToString,
|
||||
response_deserializer=walletkit__pb2.ListAccountsResponse.FromString,
|
||||
)
|
||||
self.RequiredReserve = channel.unary_unary(
|
||||
'/walletrpc.WalletKit/RequiredReserve',
|
||||
request_serializer=walletkit__pb2.RequiredReserveRequest.SerializeToString,
|
||||
response_deserializer=walletkit__pb2.RequiredReserveResponse.FromString,
|
||||
)
|
||||
self.ImportAccount = channel.unary_unary(
|
||||
'/walletrpc.WalletKit/ImportAccount',
|
||||
request_serializer=walletkit__pb2.ImportAccountRequest.SerializeToString,
|
||||
|
|
@ -127,7 +132,9 @@ class WalletKitServicer(object):
|
|||
def ListUnspent(self, request, context):
|
||||
"""
|
||||
ListUnspent returns a list of all utxos spendable by the wallet with a
|
||||
number of confirmations between the specified minimum and maximum.
|
||||
number of confirmations between the specified minimum and maximum. By
|
||||
default, all utxos are listed. To list only the unconfirmed utxos, set
|
||||
the unconfirmed_only to true.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
|
|
@ -200,6 +207,16 @@ class WalletKitServicer(object):
|
|||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def RequiredReserve(self, request, context):
|
||||
"""
|
||||
RequiredReserve returns the minimum amount of satoshis that should be kept
|
||||
in the wallet in order to fee bump anchor channels if necessary. The value
|
||||
scales with the number of public anchor channels but is capped at a maximum.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def ImportAccount(self, request, context):
|
||||
"""
|
||||
ImportAccount imports an account backed by an account extended public key.
|
||||
|
|
@ -445,6 +462,11 @@ def add_WalletKitServicer_to_server(servicer, server):
|
|||
request_deserializer=walletkit__pb2.ListAccountsRequest.FromString,
|
||||
response_serializer=walletkit__pb2.ListAccountsResponse.SerializeToString,
|
||||
),
|
||||
'RequiredReserve': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.RequiredReserve,
|
||||
request_deserializer=walletkit__pb2.RequiredReserveRequest.FromString,
|
||||
response_serializer=walletkit__pb2.RequiredReserveResponse.SerializeToString,
|
||||
),
|
||||
'ImportAccount': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.ImportAccount,
|
||||
request_deserializer=walletkit__pb2.ImportAccountRequest.FromString,
|
||||
|
|
@ -653,6 +675,23 @@ class WalletKit(object):
|
|||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def RequiredReserve(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/walletrpc.WalletKit/RequiredReserve',
|
||||
walletkit__pb2.RequiredReserveRequest.SerializeToString,
|
||||
walletkit__pb2.RequiredReserveResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def ImportAccount(request,
|
||||
target,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue