[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: subject normalizer skeleton
From: |
gnunet |
Subject: |
[libeufin] branch master updated: subject normalizer skeleton |
Date: |
Wed, 10 Jun 2020 16:43:17 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new ac0af1a subject normalizer skeleton
ac0af1a is described below
commit ac0af1ac7b8854800cd12cdaa2ed8dc99e862737
Author: MS <ms@taler.net>
AuthorDate: Wed Jun 10 16:42:37 2020 +0200
subject normalizer skeleton
---
nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
index 9f126c0..a664b7b 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
@@ -221,6 +221,12 @@ fun paymentFailed(entry: RawBankTransactionEntity):
Boolean {
return false
}
+// Tries to extract a valid PUB from the raw subject
+// line, as that was communicated by the originating bank.
+fun normalizeSubject(rawSubject: String): String {
+ return rawSubject
+}
+
fun getTalerFacadeState(fcid: String): TalerFacadeStateEntity {
val facade = FacadeEntity.find { FacadesTable.id eq fcid }.firstOrNull()
?: throw NexusError(
HttpStatusCode.NotFound,
@@ -446,6 +452,7 @@ fun ingestTalerTransactions() {
}.orderBy(Pair(RawBankTransactionsTable.id, SortOrder.ASC)).forEach {
// Incoming payment.
if (it.transactionType == "CRDT") {
+ val normalizedSubject =
normalizeSubject(it.unstructuredRemittanceInformation)
if
(CryptoUtil.checkValidEddsaPublicKey(it.unstructuredRemittanceInformation)) {
TalerIncomingPaymentEntity.new {
payment = it
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: subject normalizer skeleton,
gnunet <=