Guest User

Untitled

a guest
Jun 29th, 2018
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. GDI.
  2.  
  3. ```
  4. proc `$`*(key: PublicKey): string =
  5. result = ""
  6. for i in 0 ..< 64:
  7. discard $i & " " & $key.data[i]
  8. var hex: string = key.data[i].toHex()
  9. echo hex
  10. result = result & hex
  11. ```
  12.  
  13. That works.
  14.  
  15. ```
  16. proc `$`*(key: PublicKey): string =
  17. result = ""
  18. for i in 0 ..< 64:
  19. discard $i & " " & $key.data[i]
  20. var hex: string = key.data[i].toHex()
  21. result = result & hex
  22. ```
  23.  
  24. This segfaults. I tried discard hex but that also segfaults.
Advertisement
Add Comment
Please, Sign In to add comment