MCPcopy Create free account
hub / github.com/deroproject/derohe / Extract

Method Extract

cryptography/crypto/algebra_pointvector.go:145–160  ·  view source on GitHub ↗
(parity bool)

Source from the content-addressed store, hash-verified

143}
144
145func (gv *PointVector) Extract(parity bool) *PointVector {
146 var result PointVector
147
148 remainder := 0
149 if parity {
150 remainder = 1
151 }
152 for i := range gv.vector {
153 if i%2 == remainder {
154 var ri bn256.G1
155 ri.Set(gv.vector[i])
156 result.vector = append(result.vector, &ri)
157 }
158 }
159 return &result
160}
161
162func (gv *PointVector) Concat(addendum *PointVector) *PointVector {
163 var result PointVector

Callers 2

fft_FieldVectorFunction · 0.45
fft_GeneratorVectorFunction · 0.45

Calls 1

SetMethod · 0.95

Tested by

no test coverage detected