A lightweight bitcoin library