Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GDI.
- ```
- proc `$`*(key: PublicKey): string =
- result = ""
- for i in 0 ..< 64:
- discard $i & " " & $key.data[i]
- var hex: string = key.data[i].toHex()
- echo hex
- result = result & hex
- ```
- That works.
- ```
- proc `$`*(key: PublicKey): string =
- result = ""
- for i in 0 ..< 64:
- discard $i & " " & $key.data[i]
- var hex: string = key.data[i].toHex()
- result = result & hex
- ```
- This segfaults. I tried discard hex but that also segfaults.
Advertisement
Add Comment
Please, Sign In to add comment