We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ea689d commit 5cad991Copy full SHA for 5cad991
1 file changed
kate/recovery/src/data.rs
@@ -43,6 +43,10 @@ impl SingleCell {
43
pub fn proof(&self) -> [u8; 48] {
44
self.content[..48].try_into().expect("content is 80 bytes")
45
}
46
+
47
+ pub fn to_bytes(&self) -> Vec<u8> {
48
+ self.content.to_vec()
49
+ }
50
51
52
#[derive(Debug, Clone, Constructor)]
@@ -247,7 +251,7 @@ impl Cell {
247
251
pub fn to_bytes(&self) -> Vec<u8> {
248
252
match self {
249
253
Cell::MultiProofCell(mcell) => mcell.to_bytes(),
250
- Cell::SingleCell(cell) => cell.data().to_vec(),
254
+ Cell::SingleCell(cell) => cell.to_bytes(),
255
256
257
0 commit comments