veres-one / did-veres-one

A Decentralized Identifier utility library for Veres One
BSD 3-Clause "New" or "Revised" License
9 stars 5 forks source link

Add mock support for Ticket Service #16

Closed dmitrizagidulin closed 3 years ago

dmitrizagidulin commented 5 years ago

Notes from chat.

Something like:

{
  type: 'GraphCycleProof2018', 
  powDifficulty: <base64Url-encoded blob>, 
  proofValue: <base64Url-encoded blob>
}

dlongley: powDifficulty is just an integer and proofValue is an array of integers and some other stuff
so... the client is going to contact a ticket service, get a ticket, do a PoW on it + their operation, send it to the ticket service and get their operation back with an ocap invocation proof on it .

after you get the operation back with the invocation proof on it, you follow the same code path as the accelerator version

dlongley commented 5 years ago

We might not need to have powDifficulty on there, so let's leave that off for now:

{
  type: 'GraphCycleProof2018', 
  proofValue: <base64Url-encoded blob>
}
dlongley commented 3 years ago

Closing this as the ticketing service will no longer be used, replace with "earned storage" instead.