mirror of
https://github.com/codex-storage/nim-json-rpc.git
synced 2025-02-23 16:38:22 +00:00
cryptoutils is no longer needed
This commit is contained in:
parent
b92869a2cd
commit
750d1c5e79
@ -1,9 +0,0 @@
|
||||
import nimcrypto
|
||||
|
||||
proc k256*(data: string): string =
|
||||
# do not convert, assume string is data
|
||||
# REVIEW: Nimcrypto has a one-liner for the code here: sha3_256.digest(data)
|
||||
var k = sha3_256()
|
||||
k.init
|
||||
k.update(cast[ptr uint8](data[0].unsafeaddr), data.len.uint)
|
||||
result = $finish(k)
|
Loading…
x
Reference in New Issue
Block a user