Hashes a message to be signed with sha256 and truncates to fit into a
baby jub jub field element. The result includes the top 248 bits of
the 256 bit hash.
Parameters
signal: undefined | string
The initial message.
Returns bigint
The outputted hash, fed in as a signal to the Semaphore proof.
Hashes a message to be signed with sha256 and truncates to fit into a baby jub jub field element. The result includes the top 248 bits of the 256 bit hash.