wallet-kit / test / vectors / keys.json
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  "_doc": "Dedup key derivations. Each row carries the exact string that was hashed, so a reader can reproduce it with `printf %s '<input>' | openssl dgst -sha256 -binary | basenc --base64url` and never has to trust this file.",
  "order_id": {
    "input_desc": "canon(the fixture order minus its sig) — twelve keys, ASCII-sorted",
    "input": "{\"amt\":100,\"ctx\":\"stake:demo\",\"cur\":\"0EqyMnQrtKs6E2i9RhXk5tAiSrcaAWuvhSCjMsl3hzc.LEI\",\"exp\":1735690200000,\"from\":\"A6EHv_POEL4dcN0Y50vAmWfk1jCbpQ1fHdyGZBJVMbg\",\"id\":\"oKGio6SlpqeoqaqrrK2urw\",\"memo\":\"cafea ☕\",\"seq\":7,\"t\":\"wpo\",\"to\":\"Kay64UG8yvCyLhqU000LxzYeUm0L_hLIl5S8kyKWbdc\",\"ts\":1735689600000,\"v\":1}",
    "sha256_b64url": "K6TXr0fFUk_qNCx-JkhBPYKeFI9dhfDSp0ZXu83WKH8"
  },
  "receipt_key_wrc": {
    "input_desc": "canon({v:1, t:\"wrc\", bank:<bankPub>, oid:<the order id above>})",
    "input": "{\"bank\":\"0EqyMnQrtKs6E2i9RhXk5tAiSrcaAWuvhSCjMsl3hzc\",\"oid\":\"K6TXr0fFUk_qNCx-JkhBPYKeFI9dhfDSp0ZXu83WKH8\",\"t\":\"wrc\",\"v\":1}",
    "sha256_b64url": "MTAaYYLgKj8OZNE_wwqQxoD654yVeMKTsQfX5zdyYZ8"
  },
  "receipt_key_wrj": {
    "input_desc": "canon({v:1, t:\"wrj\", bank:<bankPub>, oid:<the order id above>}) — the SAME order, so the two keys must differ only because `t` does",
    "input": "{\"bank\":\"0EqyMnQrtKs6E2i9RhXk5tAiSrcaAWuvhSCjMsl3hzc\",\"oid\":\"K6TXr0fFUk_qNCx-JkhBPYKeFI9dhfDSp0ZXu83WKH8\",\"t\":\"wrj\",\"v\":1}",
    "sha256_b64url": "2TfnQAy7mwRzrNB34R81Y5BA9LpZzyIe2p2Z-2yWogg"
  },
  "issuance_key": {
    "input_desc": "canon({v:1, t:\"wri\", bank:<bankPub>, h:<the fixture mint entry hash>}) — receiptKey's shape with the log hash where the order id sits: (bank, h) IS the fact being made final",
    "input": "{\"bank\":\"0EqyMnQrtKs6E2i9RhXk5tAiSrcaAWuvhSCjMsl3hzc\",\"h\":\"zdpuAtq8kqPXzS3rVGkD1nDNJCoCUqfEC97WQMg4vDeqQm3wg\",\"t\":\"wri\",\"v\":1}",
    "sha256_b64url": "KJduXCj3lSmzDG-VepQJLrgpWMpx8ljUtebCtUWh43g"
  },
  "properties": {
    "_doc": "Claims about the derivation that the test checks directly against dist/.",
    "order_id_ignores_sig": true,
    "receipt_key_ignores_bank_ts_and_log_ref": true,
    "receipt_and_decline_keys_differ": true,
    "issuance_key_ignores_ts_seq_to_amt_and_cur": true
  }
}

static mirror of HEAD · about · clone: git clone https://git.ardegazu.ro/wallet-kit.git