commit ba85dc4e7643a92696b431b08fa4459a1420e9b5
parent ab6503604e4af554d873bbcbeac249d824e120b4
Author: Matyja Lukas Adam <lukas.matyja@students.bfh.ch>
Date: Sat, 22 Jun 2024 02:52:14 +0200
app add readme
Diffstat:
2 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/verification-app/README.md b/verification-app/README.md
@@ -1,4 +1,18 @@
-# Donau-Verification
+# Donau Verify
+The app verifies the donation statement made by a Donau.
+
+## Testing
+1. With provided QR-Codes in the root app directory
+2. For test purposes, a string of a valid donation statement is already hard coded.
+3. With the defined URI scheme following command can be used:
+```bash
+adb shell am start -a android.intent.action.VIEW -d "donau://2024/EUR:15/7560001010000/1234/SAAM5BA1F9H4VT6T78CFC3X63HAMY2TXB597XBVZ0EMXEZ90QPJ3000BXDBJ3ECHGB8AEX9FFQ5BAXVSF6X6NXM98PY353F2R99PP1R/E24CDJHGSPZG20ZSSTMTBREGCCP495WKETQYCYA9C93EPMZN4FEG"
+```
+## Future Work
+The public key should be requested directly from the Donau over HTTPS,
+ for this the Donau base url is needed -> pass it with the QR code?
+
+## Building
### build requirements
- minimal Android SDK: 31
- gradle
diff --git a/verification-app/app/src/main/java/taler/donau/verification/Results.java b/verification-app/app/src/main/java/taler/donau/verification/Results.java
@@ -39,9 +39,8 @@ public class Results extends AppCompatActivity {
}
// QR-string : YEAR/TOTALAMOUNT/TAXID/TAXIDSALT/ED25519SIGNATURE/PUBKEY
- // CrockfordBase32 encoded: TAXID, SALT, SIGNATURE, PUBLICKEY
- // FIXME: The public key should be requested directly from the Donau over HTTPS,
- // for this the donau base url is needed -> pass it over QR code?
+ // CrockfordBase32 encoded: SIGNATURE, PUBLICKEY
+ // TODO: Salt and taxId should maybe also be encoded
private final int NUMBER_OF_ARGUMENTS = 6;
private String year;