File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -61,21 +61,17 @@ func (vp *VerkleProof) Copy() *VerkleProof {
61
61
}
62
62
63
63
for i := range vp .OtherStems {
64
- copy ( ret .OtherStems [i ][:], vp .OtherStems [i ][:])
64
+ ret .OtherStems [i ] = vp .OtherStems [i ]
65
65
}
66
66
67
67
copy (ret .DepthExtensionPresent , vp .DepthExtensionPresent )
68
68
for i := range vp .CommitmentsByPath {
69
- copy ( ret .CommitmentsByPath [i ][:], vp .CommitmentsByPath [i ][:])
69
+ ret .CommitmentsByPath [i ] = vp .CommitmentsByPath [i ]
70
70
}
71
- copy ( ret .D [:], vp .D [:])
71
+ ret .D = vp .D
72
72
73
73
if vp .IPAProof != nil {
74
- for i := range vp .IPAProof .CL {
75
- copy (ret .IPAProof .CL [i ][:], vp .IPAProof .CL [i ][:])
76
- copy (ret .IPAProof .CR [i ][:], vp .IPAProof .CR [i ][:])
77
- }
78
- copy (ret .IPAProof .FinalEvaluation [:], vp .IPAProof .FinalEvaluation [:])
74
+ ret .IPAProof = vp .IPAProof
79
75
}
80
76
81
77
return ret
You can’t perform that action at this time.
0 commit comments