Updated on 2026-08-14
This commit is contained in:
parent
71fe425c1b
commit
6ebb46c2a5
10 changed files with 711 additions and 492 deletions
|
|
@ -22,15 +22,15 @@ public class SignTask extends CustomReadCardTask {
|
|||
public interface PaymentToSign {
|
||||
boolean isSigningMethodSupported(TangemCard.SigningMethod signingMethod);
|
||||
|
||||
byte[][] getHashesToSign();
|
||||
byte[][] getHashesToSign() throws Exception;
|
||||
|
||||
byte[] getRawDataToSign();
|
||||
byte[] getRawDataToSign() throws Exception;
|
||||
|
||||
String getHashAlgToSign();
|
||||
String getHashAlgToSign() throws Exception;
|
||||
|
||||
byte[] getIssuerTransactionSignature(byte[] dataToSignByIssuer);
|
||||
byte[] getIssuerTransactionSignature(byte[] dataToSignByIssuer) throws Exception;
|
||||
|
||||
void OnSignCompleted(byte[] signature);
|
||||
void onSignCompleted(byte[] signature) throws Exception;
|
||||
}
|
||||
|
||||
private PaymentToSign paymentToSign;
|
||||
|
|
@ -86,7 +86,7 @@ public class SignTask extends CustomReadCardTask {
|
|||
throw new CardProtocol.TangemException("Signing method isn't supported!");
|
||||
}
|
||||
|
||||
paymentToSign.OnSignCompleted(signResult.getTLV(TLV.Tag.TAG_Signature).Value);
|
||||
paymentToSign.onSignCompleted(signResult.getTLV(TLV.Tag.TAG_Signature).Value);
|
||||
mNotifications.onReadProgress(protocol, 100);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue