mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-03 22:13:12 +00:00
generalize hashToG1
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
a5da2ae946
commit
cc3a57ba7e
@ -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 = "")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user