quicksign method
QuicksignResult
quicksign({
- required QuicksignRequest request,
- required List<
KadenaSignKeyPair> keyPairs,
override
Takes the QuicksignRequest object and signs each cmd in the request. See https://github.com/kadena-io/KIPs/blob/master/kip-0015.md for the Quicksign spec. This accepts multiple key pairs because the signing wallet might contain multiple keys.
Implementation
@override
QuicksignResult quicksign({
required QuicksignRequest request,
required List<KadenaSignKeyPair> keyPairs,
}) {
List<QuicksignResponse> responses = [];
// Loop through the list of commands
for (CommandSigData command in request.commandSigDatas) {
responses.add(
quicksignSingleCommand(
commandSigData: command,
keyPairs: keyPairs,
),
);
}
return QuicksignResult(
responses: responses,
);
}