From f0d0b1031242f8741cbab4ddbea6f127d78d5f20 Mon Sep 17 00:00:00 2001 From: "Andrew Jackson (Ajax)" Date: Fri, 28 Jul 2023 15:29:24 -0500 Subject: [PATCH 1/2] Create fip-draft_new_msg_cc_with_snap-up_data.md --- .../fip-draft_new_msg_cc_with_snap-up_data.md | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 FIPS/fip-draft_new_msg_cc_with_snap-up_data.md diff --git a/FIPS/fip-draft_new_msg_cc_with_snap-up_data.md b/FIPS/fip-draft_new_msg_cc_with_snap-up_data.md new file mode 100644 index 00000000..e049f0d7 --- /dev/null +++ b/FIPS/fip-draft_new_msg_cc_with_snap-up_data.md @@ -0,0 +1,70 @@ +--- +fip: "0066" +title: Add a message for New CC Sector with Snap-up Data +author: Andy Jackson (@snadrus) +discussions-to: https://github.com/filecoin-project/FIPs/discussions/76 +status: Draft +type: Technical +category: Core +created: 2023-07-28 +--- + +## Simple Summary +Allow a new message creating a new sector with data already snapped-up. + +## Abstract + +Feeding sealing machines is difficult and complicated, especially as a service. CC is easier, but snap-up costs more. Can we get the best of both? + +## Change Motivation + +Today's snap-up allows for late-added deals and growing beyond being a CC provider. But it's **almost** well-suited to simplify sealing. +Now that Sealing-as-a-Service & large sealing system (like the ones from SupraNational) are in the mix, data-ingest in is a bottleneck. It could also be a +data-soverignty concern (ex: HIPAA, GDPR). The pre-FIP solution of snap-up partially resolves this except for (1) extra cost, (2) a 30-day window, and (3) sector PoSt while transferring from SaaS to owner. + +By allowing a new message to post CC with Data, this solves (2) and (3) by giving unlimited time to introduce the block. An overarching proof may be possible to +allow the network to do less total work to onboard than with today's snap-up because both proofs are happening at the same time, thereby fixing (1) above. + +## Specification + +[[ NOTE DRAFT as this area needs more investigation ]] +A single message should announce the sector, which will cut gas costs. +Today there are 2 proofs involved to make this happen. More investigation is needed to see if a single proof could encompass this case. + +## Design Rationale + +The goals are specified in Change Motivation. These are met by delaying registration of CC sectors AND having registration expense resemble regular sectors. + +## Backwards Compatibility + +This requires a network upgrade to allow this message. This could occur before code that acutally produces these new sectors. + +## Test Cases + +TEST 1: A CC with snapped-up data must be expressable in a single message defined by the spec (above) and pass concensus. +TEST 2: TEST 1 with an over_30_day_old sector must also pass concensus. + +## Security Considerations + +The 30-day window's reasoning needs to be considered. +If proofs stay the same, security implications should not change. If they change (discussion ongoing), an evaluation of any new proofs would be needed. + +## Incentive Considerations + +This is intended to incentivize the use of this new workflow (CC sector creation without registration followed by snap-up) to reduce the labor necessary in keeping +sealing pipelines fed. This will further incentivize use of "big sealing machines" and Sealing-as-a-service + +## Product Considerations + +Products wishing to benefit from this can make their sealing processes not register at the end, but provide those empty sectors to a market tool (eg. Boost). +Complying market tools would need to be able to use these new sectors and initiate a snap-up flow and registration. + +The result would lead to a workflow that is simpler as sealing pipelines (especially those running parallel) will not need input (nor a CC decision) to start. +Workflows with no particular input decision necessary can simply run when there is available resources (storage capacity). + +## Implementation + +Not yet available. + +## Copyright +Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/). From 70d0b2cd108a18f8201235db33cbc16094865983 Mon Sep 17 00:00:00 2001 From: "Andrew Jackson (Ajax)" Date: Wed, 16 Aug 2023 18:12:40 -0500 Subject: [PATCH 2/2] Update fip-draft_new_msg_cc_with_snap-up_data.md discussion url fix --- FIPS/fip-draft_new_msg_cc_with_snap-up_data.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FIPS/fip-draft_new_msg_cc_with_snap-up_data.md b/FIPS/fip-draft_new_msg_cc_with_snap-up_data.md index e049f0d7..6ee1d733 100644 --- a/FIPS/fip-draft_new_msg_cc_with_snap-up_data.md +++ b/FIPS/fip-draft_new_msg_cc_with_snap-up_data.md @@ -2,7 +2,7 @@ fip: "0066" title: Add a message for New CC Sector with Snap-up Data author: Andy Jackson (@snadrus) -discussions-to: https://github.com/filecoin-project/FIPs/discussions/76 +discussions-to: https://github.com/filecoin-project/FIPs/discussions/765 status: Draft type: Technical category: Core