veres-one / veres-one-validator

A ledger validator that accepts either signatures or proof of work
Other
3 stars 0 forks source link

Update Operation Proofs to use CapabilityInvocation proofs #40

Open aljones15 opened 3 years ago

aljones15 commented 3 years ago
  1. All proofs (expect merge events) should have a purpose of CapabilityInvocation
  2. There should be two proofs for each ledger write or update
  3. The first proof should have capabilityAction: write and a invocationTarget set to the ledger itself with a postfix
    • <ledgerId>/config for LedgerConfiguration events and
    • <ledgerId>/records for writing new records to the ledger
  4. The second proof should also have capabilityAction: write and an invocationTarget set to the record.id
  5. Most if not all existing record writes in the test project should conform to the 2 CapabilityInvocation proofs
  6. All of the LedgerConfiguration writes will need to be changed from AssertionPurpose to CapabilityInvocation