[BREAKGLASS] MIT-licensed C implementation of getblocktemplate
Go to file
Luke Dashjr 5ab4fdff16 Bugfix: _blkmk_b58check: Check that zero-padding on base58check input matches output
This is needed to properly reject addresses with too many or too few prefix/pad '1's.
2012-12-29 02:33:25 +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 Automake build system 2012-09-15 07:55:19 +00:00
base58.c Bugfix: _blkmk_b58check: Check that zero-padding on base58check input matches output 2012-12-29 02:33:25 +00:00
blkmaker_jansson.c Move hexadecimal<->binary functions to hex.c (included via new not-installed private.h) 2012-10-12 15:58:16 +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 New blkmk_init_generation and blkmk_address_to_script functions to create a coinbase transaction if it isn't provided 2012-10-12 16:05:26 +00:00
blkmaker.h New blkmk_init_generation and blkmk_address_to_script functions to create a coinbase transaction if it isn't provided 2012-10-12 16:05:26 +00:00
blktemplate.c Bugfix: Correct signed/unsigned warnings 2012-09-29 10:12:18 +00:00
blktemplate.h Export BIP 22 long polling information (and accept lpid to make requests) 2012-09-15 03:07:23 +00:00
ChangeLog Automake build system 2012-09-15 07:55:19 +00:00
configure.ac Bump libtool version for 0.1.2 2012-10-08 22:58:44 +00:00
COPYING Automake build system 2012-09-15 07:55:19 +00:00
example.c Bugfix: _blkmk_b58check: Check that zero-padding on base58check input matches output 2012-12-29 02:33:25 +00:00
hex.c Move hexadecimal<->binary functions to hex.c (included via new not-installed private.h) 2012-10-12 15:58:16 +00:00
INSTALL Automake build system 2012-09-15 07:55:19 +00:00
libblkmaker_jansson.pc.in Automake build system 2012-09-15 07:55:19 +00:00
Makefile.am New blkmk_init_generation and blkmk_address_to_script functions to create a coinbase transaction if it isn't provided 2012-10-12 16:05:26 +00:00
NEWS Automake build system 2012-09-15 07:55:19 +00:00
private.h Bugfix: _blkmk_b58check: Check that zero-padding on base58check input matches output 2012-12-29 02:33:25 +00:00
README Initial import 2012-09-04 04:46:34 +00:00
testinput.c Bugfix: Correct "id" in requests (the 0 was leaked and the 2 double-freed) 2012-09-12 02:32:03 +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.