# if.api demo — SignNow (receipt-backed)

**Audience:** external reviewers + operators  
**Reality gate:** demo of a signing contract, not a deployed SignNow integration.

---

## Links (HTML-first)

if.trace receipt:
https://infrafabric.io/static/trace/TMibfiKsD3YOPEY2vJrjRg

Pack (HTML view):
https://infrafabric.io/static/pack/TMibfiKsD3YOPEY2vJrjRg

Pack (raw Markdown):
https://infrafabric.io/static/pack/TMibfiKsD3YOPEY2vJrjRg.md

Source bundle (tgz):
https://infrafabric.io/static/source/55157037bd5d37045500111fc53be093c6aea37e2b1f795ba3c29a133cacef27.tgz

---

## What this proves (black/white)

This demo proves:
- a known signing request can be normalized deterministically into a results envelope
- the output is bound to if.trace receipts (hash checks; signatures only where present and verifiable)

This demo does not prove:
- live SignNow API calls, credentials, or signer identity verification
- any shipped if.bus runtime or message broker

---

## Demo artifacts

Source bundle sha256 (tgz):

    55157037bd5d37045500111fc53be093c6aea37e2b1f795ba3c29a133cacef27

Input JSON sha256:

    ea33fb8adaf1402f42981567177f79428a89387f8d759e0f9e33d0566490ffef

Normalized output JSON sha256:

    aacd4a0dc505e1003a019885e5fd4a58bb9a221196a8b1f6d5aa63abead790ae

---

## How to reproduce (no internal access)

```bash
curl -fsSL -o if-api-signnow-demo-source.tgz "https://infrafabric.io/static/source/55157037bd5d37045500111fc53be093c6aea37e2b1f795ba3c29a133cacef27.tgz"
sha256sum if-api-signnow-demo-source.tgz

tar -xzf if-api-signnow-demo-source.tgz
python3 run_signnow_demo.py signnow_input.json > normalized_event.json
sha256sum normalized_event.json
```

Expected `sha256sum` (source bundle):

    55157037bd5d37045500111fc53be093c6aea37e2b1f795ba3c29a133cacef27  if-api-signnow-demo-source.tgz

Expected `sha256sum` (normalized output):

    aacd4a0dc505e1003a019885e5fd4a58bb9a221196a8b1f6d5aa63abead790ae  normalized_event.json

---

## Output (normalized event envelope)

```json
{
  "event": "sign",
  "input_sha256": "ea33fb8adaf1402f42981567177f79428a89387f8d759e0f9e33d0566490ffef",
  "integration": "signnow",
  "notes": {
    "integrity": "see if.trace receipt for output bytes",
    "live_lookup": false
  },
  "requested_at": "2026-01-07T00:00:00Z",
  "resolved_at": "2026-01-07T00:00:00Z",
  "results": [
    {
      "document_name": "demo-offer.pdf",
      "metadata": {
        "document_id": "DOC-0001",
        "routing": "parallel",
        "signature_type": "electronic"
      },
      "resolution_method": "synthetic-map",
      "status": "simulated"
    }
  ],
  "schema_version": "demo.v1"
}
```
