This document describes how to integrate lotus into any sealing service architecture

The sealing process

Untitled

The process of sealing a sector consists from a number of relatively simple steps:

Gathering deal data

In this step the unsealed sector file is created. This file contains fr32 padded data to be sealed

fr32 is a 32-bit representation of a field element (which, in our case, is the arithmetic field of BLS12-381). To be well-formed, a value of type Fr32 must actually fit within that field, but this is not enforced by the type system. It is an invariant which must be preserved by correct usage. In the case of so-called Fr32 padding, two zero bits are inserted ‘after’ a number requiring at most 254 bits to represent. This guarantees that the result will be Fr32, regardless of the value of the initial 254 bits. This is a ‘conservative’ technique, since for some initial values, only one bit of zero-padding would actually be required.