File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed
jvm-libs/blob-decompressor/src/main/kotlin/net/consensys/linea/blob Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,12 @@ internal interface GoNativeBlobDecompressorJnaBinding {
55
55
fun LoadDictionaries (dictPaths : String ): Int
56
56
57
57
/* *
58
- * Decompress a blob b and writes the resulting blocks in out, serialized in the format of
59
- * prover/backend/ethereum.
58
+
59
+ * Decompress processes a Linea blob and outputs an RLP encoded list of blocks.
60
+ * Due to information loss during pre-compression encoding, two pieces of information are represented "hackily":
61
+ * The block hash is in the ParentHash field.
62
+ * The transaction from address is in the signature.R field.
63
+ *
60
64
* Returns the number of bytes in out, or -1 in case of failure
61
65
* If -1 is returned, the Error() method will return a string describing the error.
62
66
*
Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ func GetDict() ([]byte, error) {
50
50
return os .ReadFile (dictPath )
51
51
}
52
52
53
+ // DecompressBlob takes in a Linea blob and outputs an RLP encoded list of blocks.
54
+ // Due to information loss during pre-compression encoding, two pieces of information are represented "hackily":
55
+ // The block hash is in the ParentHash field.
56
+ // The transaction from address is in the signature.R field.
53
57
func DecompressBlob (blob []byte , dictStore dictionary.Store ) ([]byte , error ) {
54
58
vsn := GetVersion (blob )
55
59
var (
Original file line number Diff line number Diff line change @@ -48,8 +48,11 @@ func LoadDictionaries(dictPaths *C.char) C.int {
48
48
return C .int (len (paths ))
49
49
}
50
50
51
- // Decompress processes a blob b and writes the resulting blocks in out, serialized in the format of
52
- // prover/backend/ethereum.
51
+ // Decompress processes a Linea blob and outputs an RLP encoded list of blocks.
52
+ // Due to information loss during pre-compression encoding, two pieces of information are represented "hackily":
53
+ // The block hash is in the ParentHash field.
54
+ // The transaction from address is in the signature.R field.
55
+ //
53
56
// Returns the number of bytes in out, or -1 in case of failure
54
57
// If -1 is returned, the Error() method will return a string describing the error.
55
58
//
You can’t perform that action at this time.
0 commit comments