MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / randSig

Function randSig

crypto/secp256k1/secp256_test.go:41–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41func 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.

Callers 1

Calls 1

csprngEntropyFunction · 0.85

Tested by

no test coverage detected