Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Release 0.4.0

Compare
Choose a tag to compare
@D4nte D4nte released this 26 Nov 06:09

Changed

  • Breaking (HTTP+COMIT API): Change the identity for the Bitcoin Ledger from a public key hash to a public key. This change impacts the HTTP and the COMIT API of cnd.
  • Breaking (COMIT API): Replace Ethereum network with Ethereum chain_id
  • cnd no longer automatically generates a config file, but instead simply defaults to what it would have written to the file on first startup.
  • Make expiries optional when sending a swap request, with defaults:
    • 24 hours later for alpha ledger.
    • 12 hours later for beta ledger.
  • Breaking (Config file format): Expand http_api section in config file to contain both the socket and CORS settings.

Added

  • Return Ethereum chain_id on the HTTP API.
  • Support Ethereum chain_id in the Swap Request (HTTP API).
  • Ability to set CORS allowed origins through the configuration file.
  • Added command line option --dump-config to print the running configuration to stdout.

Fixed

  • Error responses now properly identify themselves as application/problem+json. They have been conforming to this format for a while already, we just never set the Content-Type header properly. From now on, applications can fully rely on the error format!