mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-05 23:13:09 +00:00
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:
parent
09996476de
commit
5eb2408c16
@ -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 =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user