From 5eb2408c1638f81e4b202d0f23e7afe83721b61b Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Wed, 22 Sep 2021 10:19:04 +0200 Subject: [PATCH] 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 --- dagger/storageproofs/bls.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dagger/storageproofs/bls.nim b/dagger/storageproofs/bls.nim index 85dd4dfa..ae7611fe 100644 --- a/dagger/storageproofs/bls.nim +++ b/dagger/storageproofs/bls.nim @@ -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 =