generalize hashToG1

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2021-11-24 17:24:05 +01:00 committed by Dmitriy Ryajov
parent a5da2ae946
commit cc3a57ba7e
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4

View File

@ -197,7 +197,7 @@ proc split(f: File, s: int64): int64 =
return n
proc hashToG1(msg: string): blst_p1 =
proc hashToG1[T: byte|char](msg: openArray[T]): blst_p1 =
## Hash to curve with Dagger specific domain separation
const dst = "DAGGER-PROOF-OF-CONCEPT"
result.blst_hash_to_g1(msg, dst, aug = "")