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
1 changed files with 1 additions and 1 deletions

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))