Questions about readme
Closed this issue · 2 comments
What is/are the allowed type(s) for 'hash' in Condition condition1 = Condition.of(hash)
? 32-bytes, just like for Fulfillment.of(preimage)
, I guess?
What is/are the allowed type(s) for 'destinationAmount' and for 'data' in InterledgerPayment.builder().destinationAmount
? And I guess 'address' there has to be an InterledgerAddress object? Or can it also be a String?
What is/are the allowed type(s) for 'destinationAmount' and for 'data' in InterledgerPayment.builder().destinationAmount?
destinationAmount
must be a BigInteger
, and data
is a byte[]
(an array of bytes).
And I guess 'address' there has to be an InterledgerAddress object? Or can it also be a String?
The address is always of type InterledgerAddress
, which is basically just a wrapper for a String that enforces everything from the RFC, like max-length, and offers some utility functions like, "is this a prefix?" and such.
What is/are the allowed type(s) for 'hash' in Condition condition1 = Condition.of(hash)? 32-bytes, just like for Fulfillment.of(preimage), I guess?
Condition.of(hash)
is validated to be 32 bytes