Skip to content

Commit 2de1969

Browse files
fix: remove legacy fields from PreCommitOutput
1 parent 6ac8400 commit 2de1969

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

proofs.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -731,8 +731,6 @@ func cSealPreCommitOutput(src RawSealPreCommitOutput) C.FFISealPreCommitOutput {
731731
return C.FFISealPreCommitOutput{
732732
comm_d: *(*[32]C.uint8_t)(unsafe.Pointer(&src.CommD)),
733733
comm_r: *(*[32]C.uint8_t)(unsafe.Pointer(&src.CommR)),
734-
p_aux_comm_c: *(*[32]C.uint8_t)(unsafe.Pointer(&src.CommC)),
735-
p_aux_comm_r_last: *(*[32]C.uint8_t)(unsafe.Pointer(&src.CommRLast)),
736734
}
737735
}
738736

@@ -805,8 +803,6 @@ func goRawSealPreCommitOutput(src C.FFISealPreCommitOutput) RawSealPreCommitOutp
805803
return RawSealPreCommitOutput{
806804
CommD: goCommitment(&src.comm_d[0]),
807805
CommR: goCommitment(&src.comm_r[0]),
808-
CommRLast: goCommitment(&src.p_aux_comm_r_last[0]),
809-
CommC: goCommitment(&src.p_aux_comm_c[0]),
810806
}
811807
}
812808

rust/src/proofs/api.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ use filecoin_proofs::{
1111
PoStConfig, SectorClass, SectorSize, UnpaddedByteIndex, UnpaddedBytesAmount,
1212
};
1313
use libc;
14-
use storage_proofs::hasher::pedersen::PedersenDomain;
15-
use storage_proofs::hasher::Domain;
1614
use storage_proofs::sector::SectorId;
1715

1816
use super::helpers::{
@@ -189,23 +187,6 @@ pub unsafe extern "C" fn seal_commit(
189187

190188
let mut response = SealCommitResponse::default();
191189

192-
let comm_r_last = PedersenDomain::try_from_bytes(&spco.p_aux_comm_r_last[..]);
193-
let comm_c = PedersenDomain::try_from_bytes(&spco.p_aux_comm_c[..]);
194-
195-
if comm_r_last.is_err() {
196-
response.status_code = FCPResponseStatus::FCPUnclassifiedError;
197-
response.error_msg = rust_str_to_c_str("cannot xform comm_r_last to PedersenDomain");
198-
info!("seal_commit: finish");
199-
return raw_ptr(response);
200-
}
201-
202-
if comm_c.is_err() {
203-
response.status_code = FCPResponseStatus::FCPUnclassifiedError;
204-
response.error_msg = rust_str_to_c_str("cannot xform comm_c to PedersenDomain");
205-
info!("seal_commit: finish");
206-
return raw_ptr(response);
207-
}
208-
209190
let spco = api_types::SealPreCommitOutput {
210191
comm_r: spco.comm_r,
211192
comm_d: spco.comm_d,

rust/src/proofs/types.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ impl std::io::Seek for FileDescriptorRef {
4848
pub struct FFISealPreCommitOutput {
4949
pub comm_d: [u8; 32],
5050
pub comm_r: [u8; 32],
51-
pub p_aux_comm_c: [u8; 32],
52-
pub p_aux_comm_r_last: [u8; 32],
5351
}
5452

5553
#[repr(C)]

0 commit comments

Comments
 (0)