You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While investing the Java test failures, I noticed that some of the ThresholdCondition's fingerprint generation results don't line-up with the TestVectors published in the CryptoCondition RFC project.
I think the source of the problem is that method ThresholdSha256Condition.getFingerprintContents() only looks at the subconditions when computing the fingerprint. When CryptoConditionsReader reads the binary of the fulfillment in the test vector, it yields a ThresholdFulfillment with one subcondition and two subfulfillments (one RsaSha256Condition and then one PrefixSha256Fulfillment and a Ed25519Fulfillment).
Is it possible that the implementation is wrong, and should somehow be considering the genrated Condition of each subfulfillment, too?
As it stands, the fingerprint in the TestVector seems to have much more data than anything I can generate using the Java library.
The text was updated successfully, but these errors were encountered:
Issue by sappenin
Monday Jul 24, 2017 at 15:52 GMT
Originally opened as interledger-deprecated/java-crypto-conditions#63
While investing the Java test failures, I noticed that some of the ThresholdCondition's fingerprint generation results don't line-up with the TestVectors published in the CryptoCondition RFC project.
For example, looking at the
fingerprintContents
binary in 0008_test-basic-threshold.json, I see the following:However, in the Java code, the following call...
yields the only following
fingerprint
value:I think the source of the problem is that method
ThresholdSha256Condition.getFingerprintContents()
only looks at the subconditions when computing the fingerprint. When CryptoConditionsReader reads the binary of the fulfillment in the test vector, it yields a ThresholdFulfillment with one subcondition and two subfulfillments (oneRsaSha256Condition
and then onePrefixSha256Fulfillment
and aEd25519Fulfillment
).Is it possible that the implementation is wrong, and should somehow be considering the genrated Condition of each subfulfillment, too?
As it stands, the
fingerprint
in the TestVector seems to have much more data than anything I can generate using the Java library.The text was updated successfully, but these errors were encountered: