signrpc.SignerClient.scala Maven / Gradle / Ivy
The newest version!
// Generated by Pekko gRPC. DO NOT EDIT.
package signrpc
import scala.concurrent.ExecutionContext
import org.apache.pekko
import pekko.actor.ClassicActorSystemProvider
import pekko.grpc.GrpcChannel
import pekko.grpc.GrpcClientCloseException
import pekko.grpc.GrpcClientSettings
import pekko.grpc.scaladsl.PekkoGrpcClient
import pekko.grpc.internal.NettyClientUtils
import pekko.grpc.PekkoGrpcGenerated
import pekko.grpc.scaladsl.SingleResponseRequestBuilder
import pekko.grpc.internal.ScalaUnaryRequestBuilder
// Not sealed so users can extend to write their stubs
@PekkoGrpcGenerated
trait SignerClient extends Signer with SignerClientPowerApi with PekkoGrpcClient
@PekkoGrpcGenerated
object SignerClient {
def apply(settings: GrpcClientSettings)(implicit sys: ClassicActorSystemProvider): SignerClient =
new DefaultSignerClient(GrpcChannel(settings), isChannelOwned = true)
def apply(channel: GrpcChannel)(implicit sys: ClassicActorSystemProvider): SignerClient =
new DefaultSignerClient(channel, isChannelOwned = false)
private class DefaultSignerClient(channel: GrpcChannel, isChannelOwned: Boolean)(implicit sys: ClassicActorSystemProvider) extends SignerClient {
import Signer.MethodDescriptors._
private implicit val ex: ExecutionContext = sys.classicSystem.dispatcher
private val settings = channel.settings
private val options = NettyClientUtils.callOptions(settings)
private def signOutputRawRequestBuilder(channel: pekko.grpc.internal.InternalChannel) =
new ScalaUnaryRequestBuilder(signOutputRawDescriptor, channel, options, settings)
private def computeInputScriptRequestBuilder(channel: pekko.grpc.internal.InternalChannel) =
new ScalaUnaryRequestBuilder(computeInputScriptDescriptor, channel, options, settings)
private def signMessageRequestBuilder(channel: pekko.grpc.internal.InternalChannel) =
new ScalaUnaryRequestBuilder(signMessageDescriptor, channel, options, settings)
private def verifyMessageRequestBuilder(channel: pekko.grpc.internal.InternalChannel) =
new ScalaUnaryRequestBuilder(verifyMessageDescriptor, channel, options, settings)
private def deriveSharedKeyRequestBuilder(channel: pekko.grpc.internal.InternalChannel) =
new ScalaUnaryRequestBuilder(deriveSharedKeyDescriptor, channel, options, settings)
private def muSig2CombineKeysRequestBuilder(channel: pekko.grpc.internal.InternalChannel) =
new ScalaUnaryRequestBuilder(muSig2CombineKeysDescriptor, channel, options, settings)
private def muSig2CreateSessionRequestBuilder(channel: pekko.grpc.internal.InternalChannel) =
new ScalaUnaryRequestBuilder(muSig2CreateSessionDescriptor, channel, options, settings)
private def muSig2RegisterNoncesRequestBuilder(channel: pekko.grpc.internal.InternalChannel) =
new ScalaUnaryRequestBuilder(muSig2RegisterNoncesDescriptor, channel, options, settings)
private def muSig2SignRequestBuilder(channel: pekko.grpc.internal.InternalChannel) =
new ScalaUnaryRequestBuilder(muSig2SignDescriptor, channel, options, settings)
private def muSig2CombineSigRequestBuilder(channel: pekko.grpc.internal.InternalChannel) =
new ScalaUnaryRequestBuilder(muSig2CombineSigDescriptor, channel, options, settings)
private def muSig2CleanupRequestBuilder(channel: pekko.grpc.internal.InternalChannel) =
new ScalaUnaryRequestBuilder(muSig2CleanupDescriptor, channel, options, settings)
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer signOutputRaw(signrpc.SignReq) if possible.
*/
override def signOutputRaw(): SingleResponseRequestBuilder[signrpc.SignReq, signrpc.SignResp] =
signOutputRawRequestBuilder(channel.internalChannel)
/**
* For access to method metadata use the parameterless version of signOutputRaw
*/
def signOutputRaw(in: signrpc.SignReq): scala.concurrent.Future[signrpc.SignResp] =
signOutputRaw().invoke(in)
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer computeInputScript(signrpc.SignReq) if possible.
*/
override def computeInputScript(): SingleResponseRequestBuilder[signrpc.SignReq, signrpc.InputScriptResp] =
computeInputScriptRequestBuilder(channel.internalChannel)
/**
* For access to method metadata use the parameterless version of computeInputScript
*/
def computeInputScript(in: signrpc.SignReq): scala.concurrent.Future[signrpc.InputScriptResp] =
computeInputScript().invoke(in)
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer signMessage(signrpc.SignMessageReq) if possible.
*/
override def signMessage(): SingleResponseRequestBuilder[signrpc.SignMessageReq, signrpc.SignMessageResp] =
signMessageRequestBuilder(channel.internalChannel)
/**
* For access to method metadata use the parameterless version of signMessage
*/
def signMessage(in: signrpc.SignMessageReq): scala.concurrent.Future[signrpc.SignMessageResp] =
signMessage().invoke(in)
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer verifyMessage(signrpc.VerifyMessageReq) if possible.
*/
override def verifyMessage(): SingleResponseRequestBuilder[signrpc.VerifyMessageReq, signrpc.VerifyMessageResp] =
verifyMessageRequestBuilder(channel.internalChannel)
/**
* For access to method metadata use the parameterless version of verifyMessage
*/
def verifyMessage(in: signrpc.VerifyMessageReq): scala.concurrent.Future[signrpc.VerifyMessageResp] =
verifyMessage().invoke(in)
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer deriveSharedKey(signrpc.SharedKeyRequest) if possible.
*/
override def deriveSharedKey(): SingleResponseRequestBuilder[signrpc.SharedKeyRequest, signrpc.SharedKeyResponse] =
deriveSharedKeyRequestBuilder(channel.internalChannel)
/**
* For access to method metadata use the parameterless version of deriveSharedKey
*/
def deriveSharedKey(in: signrpc.SharedKeyRequest): scala.concurrent.Future[signrpc.SharedKeyResponse] =
deriveSharedKey().invoke(in)
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer muSig2CombineKeys(signrpc.MuSig2CombineKeysRequest) if possible.
*/
override def muSig2CombineKeys(): SingleResponseRequestBuilder[signrpc.MuSig2CombineKeysRequest, signrpc.MuSig2CombineKeysResponse] =
muSig2CombineKeysRequestBuilder(channel.internalChannel)
/**
* For access to method metadata use the parameterless version of muSig2CombineKeys
*/
def muSig2CombineKeys(in: signrpc.MuSig2CombineKeysRequest): scala.concurrent.Future[signrpc.MuSig2CombineKeysResponse] =
muSig2CombineKeys().invoke(in)
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer muSig2CreateSession(signrpc.MuSig2SessionRequest) if possible.
*/
override def muSig2CreateSession(): SingleResponseRequestBuilder[signrpc.MuSig2SessionRequest, signrpc.MuSig2SessionResponse] =
muSig2CreateSessionRequestBuilder(channel.internalChannel)
/**
* For access to method metadata use the parameterless version of muSig2CreateSession
*/
def muSig2CreateSession(in: signrpc.MuSig2SessionRequest): scala.concurrent.Future[signrpc.MuSig2SessionResponse] =
muSig2CreateSession().invoke(in)
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer muSig2RegisterNonces(signrpc.MuSig2RegisterNoncesRequest) if possible.
*/
override def muSig2RegisterNonces(): SingleResponseRequestBuilder[signrpc.MuSig2RegisterNoncesRequest, signrpc.MuSig2RegisterNoncesResponse] =
muSig2RegisterNoncesRequestBuilder(channel.internalChannel)
/**
* For access to method metadata use the parameterless version of muSig2RegisterNonces
*/
def muSig2RegisterNonces(in: signrpc.MuSig2RegisterNoncesRequest): scala.concurrent.Future[signrpc.MuSig2RegisterNoncesResponse] =
muSig2RegisterNonces().invoke(in)
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer muSig2Sign(signrpc.MuSig2SignRequest) if possible.
*/
override def muSig2Sign(): SingleResponseRequestBuilder[signrpc.MuSig2SignRequest, signrpc.MuSig2SignResponse] =
muSig2SignRequestBuilder(channel.internalChannel)
/**
* For access to method metadata use the parameterless version of muSig2Sign
*/
def muSig2Sign(in: signrpc.MuSig2SignRequest): scala.concurrent.Future[signrpc.MuSig2SignResponse] =
muSig2Sign().invoke(in)
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer muSig2CombineSig(signrpc.MuSig2CombineSigRequest) if possible.
*/
override def muSig2CombineSig(): SingleResponseRequestBuilder[signrpc.MuSig2CombineSigRequest, signrpc.MuSig2CombineSigResponse] =
muSig2CombineSigRequestBuilder(channel.internalChannel)
/**
* For access to method metadata use the parameterless version of muSig2CombineSig
*/
def muSig2CombineSig(in: signrpc.MuSig2CombineSigRequest): scala.concurrent.Future[signrpc.MuSig2CombineSigResponse] =
muSig2CombineSig().invoke(in)
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer muSig2Cleanup(signrpc.MuSig2CleanupRequest) if possible.
*/
override def muSig2Cleanup(): SingleResponseRequestBuilder[signrpc.MuSig2CleanupRequest, signrpc.MuSig2CleanupResponse] =
muSig2CleanupRequestBuilder(channel.internalChannel)
/**
* For access to method metadata use the parameterless version of muSig2Cleanup
*/
def muSig2Cleanup(in: signrpc.MuSig2CleanupRequest): scala.concurrent.Future[signrpc.MuSig2CleanupResponse] =
muSig2Cleanup().invoke(in)
override def close(): scala.concurrent.Future[pekko.Done] =
if (isChannelOwned) channel.close()
else throw new GrpcClientCloseException()
override def closed: scala.concurrent.Future[pekko.Done] = channel.closed()
}
}
@PekkoGrpcGenerated
trait SignerClientPowerApi {
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer signOutputRaw(signrpc.SignReq) if possible.
*/
def signOutputRaw(): SingleResponseRequestBuilder[signrpc.SignReq, signrpc.SignResp] = ???
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer computeInputScript(signrpc.SignReq) if possible.
*/
def computeInputScript(): SingleResponseRequestBuilder[signrpc.SignReq, signrpc.InputScriptResp] = ???
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer signMessage(signrpc.SignMessageReq) if possible.
*/
def signMessage(): SingleResponseRequestBuilder[signrpc.SignMessageReq, signrpc.SignMessageResp] = ???
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer verifyMessage(signrpc.VerifyMessageReq) if possible.
*/
def verifyMessage(): SingleResponseRequestBuilder[signrpc.VerifyMessageReq, signrpc.VerifyMessageResp] = ???
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer deriveSharedKey(signrpc.SharedKeyRequest) if possible.
*/
def deriveSharedKey(): SingleResponseRequestBuilder[signrpc.SharedKeyRequest, signrpc.SharedKeyResponse] = ???
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer muSig2CombineKeys(signrpc.MuSig2CombineKeysRequest) if possible.
*/
def muSig2CombineKeys(): SingleResponseRequestBuilder[signrpc.MuSig2CombineKeysRequest, signrpc.MuSig2CombineKeysResponse] = ???
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer muSig2CreateSession(signrpc.MuSig2SessionRequest) if possible.
*/
def muSig2CreateSession(): SingleResponseRequestBuilder[signrpc.MuSig2SessionRequest, signrpc.MuSig2SessionResponse] = ???
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer muSig2RegisterNonces(signrpc.MuSig2RegisterNoncesRequest) if possible.
*/
def muSig2RegisterNonces(): SingleResponseRequestBuilder[signrpc.MuSig2RegisterNoncesRequest, signrpc.MuSig2RegisterNoncesResponse] = ???
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer muSig2Sign(signrpc.MuSig2SignRequest) if possible.
*/
def muSig2Sign(): SingleResponseRequestBuilder[signrpc.MuSig2SignRequest, signrpc.MuSig2SignResponse] = ???
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer muSig2CombineSig(signrpc.MuSig2CombineSigRequest) if possible.
*/
def muSig2CombineSig(): SingleResponseRequestBuilder[signrpc.MuSig2CombineSigRequest, signrpc.MuSig2CombineSigResponse] = ???
/**
* Lower level "lifted" version of the method, giving access to request metadata etc.
* prefer muSig2Cleanup(signrpc.MuSig2CleanupRequest) if possible.
*/
def muSig2Cleanup(): SingleResponseRequestBuilder[signrpc.MuSig2CleanupRequest, signrpc.MuSig2CleanupResponse] = ???
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy