MCPcopy Create free account
hub / github.com/BitVM/BitVM / hash_le

Method hash_le

bitvm/src/chunk/elements.rs:325–346  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

323 }
324
325 pub(crate) fn hash_le(&self) -> HashBytes {
326 let mut le = vec![];
327 le.extend_from_slice(&[
328 self.a_plus_b[0].c0,
329 self.a_plus_b[0].c1,
330 self.a_plus_b[1].c0,
331 self.a_plus_b[1].c1,
332 ]);
333 le.extend_from_slice(
334 &self
335 .one_plus_ab_j_sq
336 .to_base_prime_field_elements()
337 .collect::<Vec<ark_bn254::Fq>>(),
338 );
339 le.extend_from_slice(&[
340 self.p2le[0].c0,
341 self.p2le[0].c1,
342 self.p2le[1].c0,
343 self.p2le[1].c1,
344 ]);
345 extern_hash_fps(le)
346 }
347
348 pub(crate) fn mock() -> Self {
349 let q4xc0: ark_bn254::Fq = ark_bn254::Fq::from(

Callers 2

to_hashMethod · 0.80
chunk_init_t4Function · 0.80

Calls 1

extern_hash_fpsFunction · 0.85

Tested by

no test coverage detected