lambdaworks icon indicating copy to clipboard operation
lambdaworks copied to clipboard

Remove unnecessary clone in FRI commit phase by copying root

Open radik878 opened this issue 1 month ago • 0 comments

Replaced the cloning of FriLayer with a safe move by first copying the Merkle root ([u8; 32] Copy) into a local variable, then pushing the layer into the list and appending the root bytes to the transcript; this eliminates redundant allocation and retains identical logic and transcript ordering, since only the root bytes are needed after moving the layer.

radik878 avatar Oct 18 '25 18:10 radik878