postWalletByIdSignWithHttpInfo method
Produces a secp256k1 signature from one of the caller org's wallets over a 32-byte digest, through whichever custody backend that wallet uses.
Produces a secp256k1 signature from one of the caller org's wallets over a 32-byte digest, through whichever custody backend that wallet uses. Give it either a digest (32 bytes as hex, signed verbatim) or a message (hashed with Keccak256 first) — exactly one is required. The private key never leaves its backend: KMS custody opens the sealed key in-process, MPC custody produces a threshold signature on the ring. The answer carries the digest that was signed alongside the signature, so a caller can verify what it got.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> postWalletByIdSignWithHttpInfo(String id, SignIn signIn,) async {
// ignore: prefer_const_declarations
final path = r'/v1/wallet/{id}/sign'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = signIn;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}