Skip to content

Commit

Permalink
Update comments on opcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
AurelienFT committed Nov 19, 2024
1 parent c8bc192 commit 519e8f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fuel-vm/src/interpreter/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ fn read_g1_point_alt_bn_128(
memory: &MemoryInstance,
point_ptr: Word,
) -> SimpleResult<G1> {
// Big endian required by the library
let px = Fq::from_slice(memory.read(point_ptr, 32u64)?).map_err(|_| {
crate::error::PanicOrBug::Panic(fuel_tx::PanicReason::InvalidEllipticCurvePoint)
})?;
Expand Down Expand Up @@ -302,6 +303,7 @@ fn read_g2_point_alt_bn_128(
memory: &MemoryInstance,
point_ptr: Word,
) -> SimpleResult<G2> {
// Big endian required by the library
let ay = Fq::from_slice(memory.read(point_ptr, 32u64)?).map_err(|_| {
crate::error::PanicOrBug::Panic(fuel_tx::PanicReason::InvalidEllipticCurvePoint)
})?;
Expand Down Expand Up @@ -357,8 +359,6 @@ fn read_g2_point_alt_bn_128(
}
}

// TODO: When regid when imm ?
// TODO: Should we only have 1 point ptr
pub(crate) fn ec_add(
memory: &mut MemoryInstance,
owner: OwnershipRegisters,
Expand Down

0 comments on commit 519e8f3

Please sign in to comment.