lambdaworks
lambdaworks copied to clipboard
Remove unnecessary clone in FRI commit phase by copying root
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.