(n int)
| 95 | } |
| 96 | |
| 97 | func (i *InputBuf) ReadBigInt(n int) *big.Int { |
| 98 | zbuf := make([]byte, n) |
| 99 | for j := 0; j < n; j++ { |
| 100 | zbuf[j] = i.buf[n-1-j] |
| 101 | } |
| 102 | x := new(big.Int).SetBytes(zbuf) |
| 103 | i.buf = i.buf[n:] |
| 104 | return x |
| 105 | } |
| 106 | |
| 107 | func (i *InputBuf) ReadFieldElement(field SimpleField) constraint.Element { |
| 108 | return field.FromInterface(i.ReadBigInt(field.SerializedLen())) |
no outgoing calls
no test coverage detected