Updated on 2026-08-14
This commit is contained in:
parent
8954738212
commit
2447e71a63
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ class SignScanConsequence: ItemsChangeConsequence {
|
|||
val hashedData = when(card.curve) {
|
||||
EllipticCurve.Secp256k1 -> dataForHashing.calculateSha256()
|
||||
EllipticCurve.Ed25519 -> dataForHashing.calculateSha512()
|
||||
else -> throw Exception("Can't calculate hash of a data with unknown card curve")
|
||||
else -> return null
|
||||
}
|
||||
hashItem.setData(hashedData)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue