fixing DST tag in hashToG1

The DST tag should be unique to achieve domain separation
of hash functions as defined in:
https://tools.ietf.org/id/draft-irtf-cfrg-hash-to-curve-06.html#domain-separation

Changed DST tag to one that indicates the PoC status of this code.

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2021-09-22 10:19:04 +02:00 committed by Dmitriy Ryajov
parent 09996476de
commit 5eb2408c16
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4

View File

@ -174,7 +174,7 @@ proc split(f: File): (int64, int64) =
return (sectorsperblock, n)
proc hashToG1(msg: string): blst_p1 =
const dst = "BLS_SIG_BLS12381G2-SHA256-SSWU-RO_POP_"
const dst = "DAGGER-PROOF-OF-CONCEPT"
result.blst_hash_to_g1(msg, dst, aug = "")
proc hashNameI(name: openArray[byte], i: int64): blst_p1 =