def signature_unsafe(m, sk, pk, hash_func=H):
h = hash_func(sk)<EOL>a = <NUM_LIT:2> ** (b - <NUM_LIT:2>) + sum(<NUM_LIT:2> ** i * bit(h, i) for i in range(<NUM_LIT:3>, b - <NUM_LIT:2>))<EOL>r = Hint(bytearray([h[j] for j in range(b // <NUM_LIT:8>, b // <NUM_LIT:4>)]) + m)<EOL>R = scalarmult_B(r)<EOL>S = (r + Hint(encodepoint(R) + pk + m) * a) % l<EOL>return bytes(encodepoint(R) + encodeint(S))<EOL>
Not safe to use with secret keys or secret data.
See module docstring.  This function should be used for testing only.