()
| 39 | } |
| 40 | |
| 41 | func randSig() []byte { |
| 42 | sig := csprngEntropy(65) |
| 43 | sig[32] &= 0x70 |
| 44 | sig[64] %= 4 |
| 45 | return sig |
| 46 | } |
| 47 | |
| 48 | // tests for malleability |
| 49 | // highest bit of signature ECDSA s value must be 0, in the 33th byte. |
no test coverage detected