Transactions

A transaction is simply a request and a proof, signed by a verifier, and looks as follows:

{
  "writer": "0xc25b4ff9eb6f52392eef1e103daacc7519795f01",
  "subject": "0x6224d471b8590de463d27b067174b566b4b0b041",
  "signature": {
    "r": "0xd442661375322973148b808f4bcb3fedffab5d5855acf2e7e2c37745676f5a23",
    "s": "0xee1026f612fbf69e0195e1cef5d29a3fe65f7a2575031bb1818150b090df509c",
    "v": "0x1d"
  }
}

Request

A request consists of a session and a read permission and looks as follows:

{
  "readPermission": { ... },
  "session": { ... },
  "signature": {
    "r": "0xd442661375322973148b808f4bcb3fedffab5d5855acf2e7e2c37745676f5a23",
    "s": "0xee1026f612fbf69e0195e1cef5d29a3fe65f7a2575031bb1818150b090df509c",
    "v": "0x1d"
  }
}

A request must be signed by the actor making the call to the REY app specified as source in the included read permission.

Proof

A proof consists of a session and a write permission and looks as follows:

{
  "writePermission": { ... },
  "session": "0xc25b4ff9eb6f52392eef1e103daacc7519795f01",
  "signature": {
    "r": "0xd442661375322973148b808f4bcb3fedffab5d5855acf2e7e2c37745676f5a23",
    "s": "0xee1026f612fbf69e0195e1cef5d29a3fe65f7a2575031bb1818150b090df509c",
    "v": "0x1d"
  }
}

A proof must be signed by the write permission’s source.

Session

A sample session looks as follows:

{
  "subject": "0x6224d471b8590de463d27b067174b566b4b0b041",
  "verifier": "0xc25b4ff9eb6f52392eef1e103daacc7519795f01",
  "fee": "10", /* in parts per million */
  "nonce": "75482967549",
  "signature": {
    "r": "0xd442661375322973148b808f4bcb3fedffab5d5855acf2e7e2c37745676f5a23",
    "s": "0xee1026f612fbf69e0195e1cef5d29a3fe65f7a2575031bb1818150b090df509c",
    "v": "0x1d"
  }
}