Skip to content

Commit 7830e43

Browse files
committed
chore: remove "_deflattened" postfix
1 parent 0315277 commit 7830e43

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

bindings/c/src/compute_cells_and_kzg_proofs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::pointer_utils::{
44
use crate::{CResult, PeerDASContext};
55
use eip7594::constants::{BYTES_PER_BLOB, CELLS_PER_EXT_BLOB};
66

7-
pub(crate) fn _compute_cells_and_kzg_proofs_deflattened(
7+
pub(crate) fn _compute_cells_and_kzg_proofs(
88
ctx: *const PeerDASContext,
99
blob_length: u64,
1010
blob: *const u8,

bindings/c/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mod blob_to_kzg_commitment;
44
use blob_to_kzg_commitment::_blob_to_kzg_commitment;
55

66
mod compute_cells_and_kzg_proofs;
7-
use compute_cells_and_kzg_proofs::_compute_cells_and_kzg_proofs_deflattened;
7+
use compute_cells_and_kzg_proofs::_compute_cells_and_kzg_proofs;
88

99
mod verify_cells_and_kzg_proofs;
1010
use verify_cells_and_kzg_proofs::_verify_cell_kzg_proof;
@@ -172,14 +172,14 @@ pub extern "C" fn blob_to_kzg_commitment(
172172
/// - The caller must ensure that `out_proofs` points to a region of memory that is at least `NUM_BYTES_PROOFS` bytes.
173173
#[no_mangle]
174174
#[must_use]
175-
pub extern "C" fn compute_cells_and_kzg_proofs_deflattened(
175+
pub extern "C" fn compute_cells_and_kzg_proofs(
176176
ctx: *const PeerDASContext,
177177
blob_length: u64,
178178
blob: *const u8,
179179
out_cells: *mut *mut u8,
180180
out_proofs: *mut *mut u8,
181181
) -> CResult {
182-
match _compute_cells_and_kzg_proofs_deflattened(ctx, blob_length, blob, out_cells, out_proofs) {
182+
match _compute_cells_and_kzg_proofs(ctx, blob_length, blob, out_cells, out_proofs) {
183183
Ok(_) => return CResult::with_ok(),
184184
Err(err) => return err,
185185
}

bindings/csharp/csharp_code/PeerDASKZG.bindings/native_methods.g.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public static unsafe partial class NativeMethods
3535
public static extern CResult blob_to_kzg_commitment(PeerDASContext* ctx, ulong blob_length, byte* blob, byte* @out);
3636

3737
/// <summary>Safety: - The caller must ensure that the pointers are valid. If pointers are null, this method will return an error. - The caller must ensure that `blob` points to a region of memory that is at least `BYTES_PER_BLOB` bytes. - The caller must ensure that `out_cells` points to a region of memory that is at least `NUM_BYTES_CELLS` bytes. - The caller must ensure that `out_proofs` points to a region of memory that is at least `NUM_BYTES_PROOFS` bytes.</summary>
38-
[DllImport(__DllName, EntryPoint = "compute_cells_and_kzg_proofs_deflattened", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
39-
public static extern CResult compute_cells_and_kzg_proofs_deflattened(PeerDASContext* ctx, ulong blob_length, byte* blob, byte** out_cells, byte** out_proofs);
38+
[DllImport(__DllName, EntryPoint = "compute_cells_and_kzg_proofs", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
39+
public static extern CResult compute_cells_and_kzg_proofs(PeerDASContext* ctx, ulong blob_length, byte* blob, byte** out_cells, byte** out_proofs);
4040

4141
/// <summary>Safety: - The caller must ensure that the pointers are valid. If pointers are null, this method will return an error. - The caller must ensure that `cell` points to a region of memory that is at least `BYTES_PER_CELL` bytes. - The caller must ensure that `commitment` points to a region of memory that is at least `BYTES_PER_COMMITMENT` bytes. - The caller must ensure that `proof` points to a region of memory that is at least `BYTES_PER_COMMITMENT` bytes. - The caller must ensure that `verified` points to a region of memory that is at least 1 byte.</summary>
4242
[DllImport(__DllName, EntryPoint = "verify_cell_kzg_proof", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]

bindings/csharp/csharp_code/PeerDASKZG.bindings/peerdaskzg.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public unsafe (byte[][], byte[][]) ComputeCellsAndKZGProofs(byte[] blob)
9696
}
9797
}
9898

99-
CResult result = compute_cells_and_kzg_proofs_deflattened(_context, Convert.ToUInt64(blob.Length), blobPtr, outCellsPtrPtr, outProofsPtrPtr);
99+
CResult result = compute_cells_and_kzg_proofs(_context, Convert.ToUInt64(blob.Length), blobPtr, outCellsPtrPtr, outProofsPtrPtr);
100100
ThrowOnError(result);
101101
}
102102
return (outCells, outProofs);

bindings/java/rust_code/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pub unsafe extern "system" fn Java_ethereum_cryptography_LibPeerDASKZG_computeCe
7676
let out_cells_ptr_ptr = vec_vec_u8_to_ptr_ptr_u8_mut(&mut out_cells);
7777
let out_proofs_ptr_ptr = vec_vec_u8_to_ptr_ptr_u8_mut(&mut out_proofs);
7878

79-
let result = c_peerdas_kzg::compute_cells_and_kzg_proofs_deflattened(
79+
let result = c_peerdas_kzg::compute_cells_and_kzg_proofs(
8080
ctx,
8181
blob.len() as u64,
8282
blob.as_ptr(),

bindings/nim/nim_code/src/header.nim

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ proc blob_to_kzg_commitment*(ctx: ptr PeerDASContext,
4343
# - The caller must ensure that `blob` points to a region of memory that is at least `BYTES_PER_BLOB` bytes.
4444
# - The caller must ensure that `out_cells` points to a region of memory that is at least `NUM_BYTES_CELLS` bytes.
4545
# - The caller must ensure that `out_proofs` points to a region of memory that is at least `NUM_BYTES_PROOFS` bytes.
46-
proc compute_cells_and_kzg_proofs_deflattened*(ctx: ptr PeerDASContext,
47-
blob_length: uint64,
48-
blob: pointer,
49-
out_cells: ptr pointer,
50-
out_proofs: ptr pointer): CResult {.importc: "compute_cells_and_kzg_proofs_deflattened".}
46+
proc compute_cells_and_kzg_proofs*(ctx: ptr PeerDASContext,
47+
blob_length: uint64,
48+
blob: pointer,
49+
out_cells: ptr pointer,
50+
out_proofs: ptr pointer): CResult {.importc: "compute_cells_and_kzg_proofs".}
5151

5252
## Safety:
5353
# - The caller must ensure that the pointers are valid. If pointers are null, this method will return an error.

0 commit comments

Comments
 (0)