mirror of
https://github.com/bumi/lnrpc
synced 2026-02-14 23:37:50 +00:00
update GRPC files for v0.15.5-beta
This commit is contained in:
@@ -21,14 +21,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
||||
optional :key_desc, :message, 1, "signrpc.KeyDescriptor"
|
||||
optional :single_tweak, :bytes, 2
|
||||
optional :double_tweak, :bytes, 3
|
||||
optional :tap_tweak, :bytes, 10
|
||||
optional :witness_script, :bytes, 4
|
||||
optional :output, :message, 5, "signrpc.TxOut"
|
||||
optional :sighash, :uint32, 7
|
||||
optional :input_index, :int32, 8
|
||||
optional :sign_method, :enum, 9, "signrpc.SignMethod"
|
||||
end
|
||||
add_message "signrpc.SignReq" do
|
||||
optional :raw_tx_bytes, :bytes, 1
|
||||
repeated :sign_descs, :message, 2, "signrpc.SignDescriptor"
|
||||
repeated :prev_outputs, :message, 3, "signrpc.TxOut"
|
||||
end
|
||||
add_message "signrpc.SignResp" do
|
||||
repeated :raw_sigs, :bytes, 1
|
||||
@@ -45,6 +48,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
||||
optional :key_loc, :message, 2, "signrpc.KeyLocator"
|
||||
optional :double_hash, :bool, 3
|
||||
optional :compact_sig, :bool, 4
|
||||
optional :schnorr_sig, :bool, 5
|
||||
optional :schnorr_sig_tap_tweak, :bytes, 6
|
||||
end
|
||||
add_message "signrpc.SignMessageResp" do
|
||||
optional :signature, :bytes, 1
|
||||
@@ -53,6 +58,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
||||
optional :msg, :bytes, 1
|
||||
optional :signature, :bytes, 2
|
||||
optional :pubkey, :bytes, 3
|
||||
optional :is_schnorr_sig, :bool, 4
|
||||
end
|
||||
add_message "signrpc.VerifyMessageResp" do
|
||||
optional :valid, :bool, 1
|
||||
@@ -65,6 +71,71 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
||||
add_message "signrpc.SharedKeyResponse" do
|
||||
optional :shared_key, :bytes, 1
|
||||
end
|
||||
add_message "signrpc.TweakDesc" do
|
||||
optional :tweak, :bytes, 1
|
||||
optional :is_x_only, :bool, 2
|
||||
end
|
||||
add_message "signrpc.TaprootTweakDesc" do
|
||||
optional :script_root, :bytes, 1
|
||||
optional :key_spend_only, :bool, 2
|
||||
end
|
||||
add_message "signrpc.MuSig2CombineKeysRequest" do
|
||||
repeated :all_signer_pubkeys, :bytes, 1
|
||||
repeated :tweaks, :message, 2, "signrpc.TweakDesc"
|
||||
optional :taproot_tweak, :message, 3, "signrpc.TaprootTweakDesc"
|
||||
end
|
||||
add_message "signrpc.MuSig2CombineKeysResponse" do
|
||||
optional :combined_key, :bytes, 1
|
||||
optional :taproot_internal_key, :bytes, 2
|
||||
end
|
||||
add_message "signrpc.MuSig2SessionRequest" do
|
||||
optional :key_loc, :message, 1, "signrpc.KeyLocator"
|
||||
repeated :all_signer_pubkeys, :bytes, 2
|
||||
repeated :other_signer_public_nonces, :bytes, 3
|
||||
repeated :tweaks, :message, 4, "signrpc.TweakDesc"
|
||||
optional :taproot_tweak, :message, 5, "signrpc.TaprootTweakDesc"
|
||||
end
|
||||
add_message "signrpc.MuSig2SessionResponse" do
|
||||
optional :session_id, :bytes, 1
|
||||
optional :combined_key, :bytes, 2
|
||||
optional :taproot_internal_key, :bytes, 3
|
||||
optional :local_public_nonces, :bytes, 4
|
||||
optional :have_all_nonces, :bool, 5
|
||||
end
|
||||
add_message "signrpc.MuSig2RegisterNoncesRequest" do
|
||||
optional :session_id, :bytes, 1
|
||||
repeated :other_signer_public_nonces, :bytes, 3
|
||||
end
|
||||
add_message "signrpc.MuSig2RegisterNoncesResponse" do
|
||||
optional :have_all_nonces, :bool, 1
|
||||
end
|
||||
add_message "signrpc.MuSig2SignRequest" do
|
||||
optional :session_id, :bytes, 1
|
||||
optional :message_digest, :bytes, 2
|
||||
optional :cleanup, :bool, 3
|
||||
end
|
||||
add_message "signrpc.MuSig2SignResponse" do
|
||||
optional :local_partial_signature, :bytes, 1
|
||||
end
|
||||
add_message "signrpc.MuSig2CombineSigRequest" do
|
||||
optional :session_id, :bytes, 1
|
||||
repeated :other_partial_signatures, :bytes, 2
|
||||
end
|
||||
add_message "signrpc.MuSig2CombineSigResponse" do
|
||||
optional :have_all_signatures, :bool, 1
|
||||
optional :final_signature, :bytes, 2
|
||||
end
|
||||
add_message "signrpc.MuSig2CleanupRequest" do
|
||||
optional :session_id, :bytes, 1
|
||||
end
|
||||
add_message "signrpc.MuSig2CleanupResponse" do
|
||||
end
|
||||
add_enum "signrpc.SignMethod" do
|
||||
value :SIGN_METHOD_WITNESS_V0, 0
|
||||
value :SIGN_METHOD_TAPROOT_KEY_SPEND_BIP0086, 1
|
||||
value :SIGN_METHOD_TAPROOT_KEY_SPEND, 2
|
||||
value :SIGN_METHOD_TAPROOT_SCRIPT_SPEND, 3
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -83,4 +154,19 @@ module Signrpc
|
||||
VerifyMessageResp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.VerifyMessageResp").msgclass
|
||||
SharedKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.SharedKeyRequest").msgclass
|
||||
SharedKeyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.SharedKeyResponse").msgclass
|
||||
TweakDesc = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.TweakDesc").msgclass
|
||||
TaprootTweakDesc = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.TaprootTweakDesc").msgclass
|
||||
MuSig2CombineKeysRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2CombineKeysRequest").msgclass
|
||||
MuSig2CombineKeysResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2CombineKeysResponse").msgclass
|
||||
MuSig2SessionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2SessionRequest").msgclass
|
||||
MuSig2SessionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2SessionResponse").msgclass
|
||||
MuSig2RegisterNoncesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2RegisterNoncesRequest").msgclass
|
||||
MuSig2RegisterNoncesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2RegisterNoncesResponse").msgclass
|
||||
MuSig2SignRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2SignRequest").msgclass
|
||||
MuSig2SignResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2SignResponse").msgclass
|
||||
MuSig2CombineSigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2CombineSigRequest").msgclass
|
||||
MuSig2CombineSigResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2CombineSigResponse").msgclass
|
||||
MuSig2CleanupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2CleanupRequest").msgclass
|
||||
MuSig2CleanupResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.MuSig2CleanupResponse").msgclass
|
||||
SignMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("signrpc.SignMethod").enummodule
|
||||
end
|
||||
|
||||
@@ -29,8 +29,8 @@ module Signrpc
|
||||
#
|
||||
# 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,
|
||||
@@ -62,6 +62,71 @@ module Signrpc
|
||||
# The resulting shared public key is serialized in the compressed format and
|
||||
# hashed with sha256, resulting in the final key length of 256bit.
|
||||
rpc :DeriveSharedKey, ::Signrpc::SharedKeyRequest, ::Signrpc::SharedKeyResponse
|
||||
#
|
||||
# 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!
|
||||
rpc :MuSig2CombineKeys, ::Signrpc::MuSig2CombineKeysRequest, ::Signrpc::MuSig2CombineKeysResponse
|
||||
#
|
||||
# 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!
|
||||
rpc :MuSig2CreateSession, ::Signrpc::MuSig2SessionRequest, ::Signrpc::MuSig2SessionResponse
|
||||
#
|
||||
# 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!
|
||||
rpc :MuSig2RegisterNonces, ::Signrpc::MuSig2RegisterNoncesRequest, ::Signrpc::MuSig2RegisterNoncesResponse
|
||||
#
|
||||
# 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!
|
||||
rpc :MuSig2Sign, ::Signrpc::MuSig2SignRequest, ::Signrpc::MuSig2SignResponse
|
||||
#
|
||||
# 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!
|
||||
rpc :MuSig2CombineSig, ::Signrpc::MuSig2CombineSigRequest, ::Signrpc::MuSig2CombineSigResponse
|
||||
#
|
||||
# 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!
|
||||
rpc :MuSig2Cleanup, ::Signrpc::MuSig2CleanupRequest, ::Signrpc::MuSig2CleanupResponse
|
||||
end
|
||||
|
||||
Stub = Service.rpc_stub_class
|
||||
|
||||
Reference in New Issue
Block a user