[BREAKGLASS] MIT-licensed C implementation of getblocktemplate
Go to file
2014-09-02 16:36:32 +00:00
.gitignore Use AM_PROG_AR to support Cygwin 2012-09-29 11:30:14 +00:00
AUTHORS Automake build system 2012-09-15 07:55:19 +00:00
autogen.sh Add missing copyright headers 2013-06-13 07:26:54 +00:00
blkmaker_jansson.c Revert "Bugfix: Provide correctly-ordered transaction hash (using new key hash_ for backward compatibility)" (broke ABI) 2014-09-02 16:36:32 +00:00
blkmaker_jansson.h Export BIP 22 long polling information (and accept lpid to make requests) 2012-09-15 03:07:23 +00:00
blkmaker.c Implement blkmk_get_data's out_expire argument 2014-02-27 16:43:37 +00:00
blkmaker.h Bugfix: ssize_t requires unistd.h 2012-10-12 18:13:42 +00:00
blktemplate.c Revert "Bugfix: Provide correctly-ordered transaction hash (using new key hash_ for backward compatibility)" (broke ABI) 2014-09-02 16:36:32 +00:00
blktemplate.h Revert "Bugfix: Provide correctly-ordered transaction hash (using new key hash_ for backward compatibility)" (broke ABI) 2014-09-02 16:36:32 +00:00
configure.ac Remove autogenerated INSTALL and unused ChangeLog/NEWS files from git 2014-01-19 04:39:21 +00:00
COPYING COPYING: Update copyright year to 2014 2014-01-19 04:36:06 +00:00
example.c Add missing copyright headers 2013-06-13 07:26:54 +00:00
libblkmaker_jansson.pc.in Automake build system 2012-09-15 07:55:19 +00:00
Makefile.am Bugfix: Include documents in "make dist" output 2014-08-22 17:51:51 +00:00
README Initial import 2012-09-04 04:46:34 +00:00
testinput.c Add missing copyright headers 2013-06-13 07:26:54 +00:00

Dependencies:
	Jansson 2.0 with 'long long' support

Example dependencies:
	Jansson 2.1 (to read JSON from stdin)
	libgcrypt (for SHA256)

For usage, check out example.c
Note that you must assign blkmk_sha256_impl to a function pointer:
	bool mysha256(void *hash_out, const void *data, size_t datasz)
hash_out must be able to overlap with data!

Also note that you should NOT roll ntime for data retrieved; while it will
probably work, there is no guarantee it won't fall outside the maxtime limits
for the blocktemplate. It is usually best to simply get more data as often
as it is needed.