centrifuge / apps

Monorepo for Centrifuge frontends, including Centrifuge App, onboarding api, and Fabric design system.
GNU Lesser General Public License v3.0
27 stars 16 forks source link

feat: Pin and Link Proof of Portfolio during Epoch Close #2431

Open mustermeiszer opened 1 month ago

mustermeiszer commented 1 month ago

Needed for future oracle integrations. These integrations will query the proof of portfolio and verify it.

Process

  1. Updating NAV through the UI

    • Sign attestation with private key from the connected key-pair offchain ONLY sign the portfolio section!
    • Pin attestation on ipfs
    • Update portfolio onchain
      remark.Remark(IPFS_HASH, utility.batchAll(UPDATE_PRICES, UPDATE_NAV, ...))
    • IF WANTED: Close and execute epoch
  2. Subquery indexes latest portfolio attestation by filtering for Remark::IPFS-event the and extracting the info from the JSON

  3. Chronicle retrieves latest portfolio attestation from subquery

    • Verifies signature is from known public key of fund admin
    • Post check of verification on EVM chains

Full Spec

mustermeiszer commented 2 weeks ago

TBD: Indexing logic and work