Captured local Linux execution; environment-dependent values may differ.

{
  "steps": [
    {
      "n": 55,
      "phi": 40,
      "gcd": 1
    },
    {
      "dividend": 3,
      "divisor": 40,
      "quotient": 0,
      "remainder": 3,
      "coeff_a": 1,
      "coeff_b": 0
    },
    {
      "dividend": 40,
      "divisor": 3,
      "quotient": 13,
      "remainder": 1,
      "coeff_a": -13,
      "coeff_b": 1
    },
    {
      "dividend": 3,
      "divisor": 1,
      "quotient": 3,
      "remainder": 0,
      "coeff_a": 40,
      "coeff_b": -3
    },
    {
      "e": 3,
      "d": 27,
      "product_mod_phi": 1
    }
  ],
  "result": {
    "public": [
      3,
      55
    ],
    "private": [
      27,
      55
    ],
    "phi": 40
  }
}

Test script output:
CR45 PASS
