mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-15 12:03:12 +00:00
cryptoutils is no longer needed
This commit is contained in:
parent
e4105770aa
commit
ef53b52c9e
@ -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