Skip to content

Instantly share code, notes, and snippets.

@jamescoxon
Created June 15, 2018 22:12
Show Gist options
  • Select an option

  • Save jamescoxon/959380a2c5b6c5607d7b43ad37c196c2 to your computer and use it in GitHub Desktop.

Select an option

Save jamescoxon/959380a2c5b6c5607d7b43ad37c196c2 to your computer and use it in GitHub Desktop.
from bitstring import BitArray
import ctypes
library_name = "librai_lib.dylib"
librai = ctypes.CDLL(library_name)
print("Calculating PoW")
work = librai.xrb_work(b"FC5A7FB777110A858052468D448B2DF22B648943C097C0608D1E2341007438B0")
print(work)
print(hex(work))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment