We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de81293 commit f3de2cbCopy full SHA for f3de2cb
proof_ipa.go
@@ -60,14 +60,10 @@ func (vp *VerkleProof) Copy() *VerkleProof {
60
IPAProof: &IPAProof{},
61
}
62
63
- for i := range vp.OtherStems {
64
- ret.OtherStems[i] = vp.OtherStems[i]
65
- }
66
-
+ copy(ret.OtherStems, vp.OtherStems)
67
copy(ret.DepthExtensionPresent, vp.DepthExtensionPresent)
68
- for i := range vp.CommitmentsByPath {
69
- ret.CommitmentsByPath[i] = vp.CommitmentsByPath[i]
70
+ copy(ret.CommitmentsByPath, vp.CommitmentsByPath)
+
71
ret.D = vp.D
72
73
if vp.IPAProof != nil {
0 commit comments