commit d8ffade7e6ff01b1e46284adc52be0a91e405927
parent 3948043cf2d1fd2d1c4266528b39c460c65b3996
Author: MS <ms@taler.net>
Date: Thu, 25 May 2023 12:00:23 +0200
comment
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/nexus/src/test/kotlin/SubjectNormalization.kt b/nexus/src/test/kotlin/SubjectNormalization.kt
@@ -27,6 +27,7 @@ class SubjectNormalization {
// At this point, the decoder handles 0s and Os interchangeably.
// Now check that the reserve pub. extractor behaves equally.
val extractedPub = extractReservePubFromSubject(validPub) // has 0s.
+ // The "!!" ensures that the extractor found a likely reserve pub.
assert(CryptoUtil.checkValidEddsaPublicKey(extractedPub!!))
val extractedPubWithOs = extractReservePubFromSubject(validPub.replace('0', 'O'))
// The "!!" ensures that the extractor did find the reserve pub. with Os instead of zeros.