2
0
mirror of synced 2025-02-21 09:58:16 +00:00

fromHex needs to be public after all

This commit is contained in:
Jacek Sieka 2020-06-22 16:59:37 +02:00
parent 5701a60143
commit be98963599
No known key found for this signature in database
GPG Key ID: A1B09461ABB656B8

View File

@ -158,7 +158,7 @@ func getContext(): ptr secp256k1_context =
secpContext = newSkContext()
secpContext.context
func fromHex(T: type seq[byte], s: string): SkResult[T] =
func fromHex*(T: type seq[byte], s: string): SkResult[T] =
# TODO move this to some common location and return a general error?
try:
ok(hexToSeqByte(s))