Skip to content

Commit fe4245f

Browse files
committed
chore: clean comment
1 parent 875ed3e commit fe4245f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/verifier.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ use crate::{
99
use crate::utils::load_vk_from_json;
1010

1111
#[cfg(not(feature = "std"))]
12-
// ===== 💡 FIX: format 매크로를 가져옵니다. =====
12+
// ===== 💡 FIX: bring in the format macro. =====
1313
use alloc::{format, string::String, vec::Vec};
1414
// ===============================================
1515

16-
/// 검증 실패의 원인을 구체적으로 나타내는 오류 타입입니다.
16+
/// Error type describing the specific reason verification failed.
1717
#[derive(Debug)]
1818
pub enum VerifyError {
1919
InvalidInput(String),
2020
SumcheckFailed(String),
2121
ShplonkFailed(String),
2222
}
2323

24-
/// 디버깅 및 로깅을 위해 VerifyError를 String으로 변환할 수 있도록 합니다.
24+
/// Allow converting VerifyError into a String for debugging and logging.
2525
impl From<VerifyError> for String {
2626
fn from(err: VerifyError) -> String {
2727
match err {
@@ -53,7 +53,7 @@ impl UltraHonkVerifier {
5353
&self.vk
5454
}
5555

56-
/// Top-level verify. 반환 타입을 String에서 구체적인 VerifyError로 변경했습니다.
56+
/// Top-level verify; return type changed from String to the concrete VerifyError.
5757
pub fn verify(
5858
&self,
5959
proof_bytes: &[u8],
@@ -94,10 +94,10 @@ impl UltraHonkVerifier {
9494
)
9595
.map_err(VerifyError::InvalidInput)?;
9696

97-
// 5) Sum-check: 실패 시 SumcheckFailed 오류를 반환합니다.
97+
// 5) Sum-check: returns SumcheckFailed when this step fails.
9898
verify_sumcheck(&proof, &tx, &self.vk).map_err(VerifyError::SumcheckFailed)?;
9999

100-
// 6) Shplonk (batch opening): 실패 시 ShplonkFailed 오류를 반환합니다.
100+
// 6) Shplonk (batch opening): returns ShplonkFailed when this stage fails.
101101
verify_shplemini(&proof, &self.vk, &tx).map_err(VerifyError::ShplonkFailed)?;
102102

103103
Ok(())

0 commit comments

Comments
 (0)