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 3efac65 commit d5d3e74Copy full SHA for d5d3e74
ecc/bn254/fr/sis/sis.go
@@ -172,6 +172,8 @@ func (r *RSis) Sum(b []byte) []byte {
172
173
// bitwise decomposition of the buffer, in order to build m (the vector to hash)
174
// as a list of polynomials, whose coefficients are less than r.B bits long.
175
+ // Say buf=[0xbe,0x0f]. As a stream of bits it is interpreted like this:
176
+ // 10111110 00001111. BitAt(0)=1 (=leftmost bit), bitAt(1)=0 (=second leftmost bit), etc.
177
nbBits := len(buf) * 8
178
bitAt := func(i int) uint8 {
179
k := i / 8
0 commit comments