The JavaDoc for PreimageSha256Fulfillment#getEncodedPreimage is incorrect. This field has nothing todo with the OER encoding of a PreimageSha256Fulfillment (which is generated using the CryptoConditionsWriter).
Instead, this is just an attempt to help make PreimageSha256Fulfillment more immutable, because returning the actual underlying byte[] allows external actors to mutate the state of a PreimageSha256Fulfillment.
The JavaDoc for
PreimageSha256Fulfillment#getEncodedPreimage
is incorrect. This field has nothing todo with the OER encoding of aPreimageSha256Fulfillment
(which is generated using theCryptoConditionsWriter
).Instead, this is just an attempt to help make
PreimageSha256Fulfillment
more immutable, because returning the actual underlying byte[] allows external actors to mutate the state of aPreimageSha256Fulfillment
.