five-bells-condition icon indicating copy to clipboard operation
five-bells-condition copied to clipboard

Reason for identical Fulfillment.serializeBase64Url and .serializeUri?

Open sbellem opened this issue 8 years ago • 0 comments
trafficstars

The two functions are identical:

/**
 * Base class for fulfillment types.
 */
class Fulfillment {

  serializeUri () {
    return base64url.encode(this.serializeBinary())
  }

  serializeBase64Url () {
    return base64url.encode(this.serializeBinary())
  }

Is one preferred over the other moving forward?

sbellem avatar Jun 08 '17 16:06 sbellem