Luke Dashjr 5016f8d86a Parse transaction weights into blktxn_t structure
ABI break: sizeof(blktxn_t) has been increased, so accesses to blktmpl_t->txns[>0] use a different offset (aside, hash_ and txid are moved)
New ABI supports up to 512 MB transactions (with a max weight-per-bytes of 4), and library gracefully interprets larger weight values as -1 (unknown)
2016-07-23 21:25:38 +00:00
2012-09-29 11:30:14 +00:00
2016-07-23 21:08:17 +00:00
2016-07-23 20:25:32 +00:00
2016-07-23 20:26:07 +00:00
2016-07-23 20:26:07 +00:00
2016-03-25 18:36:16 +00:00
2014-01-19 04:36:06 +00:00
2014-09-02 17:13:36 +00:00
2013-06-13 07:25:49 +00:00
2014-08-29 01:46:08 +00:00
2016-07-23 20:25:32 +00:00
2013-06-13 07:25:49 +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 without explicitly
checking that it falls within the template's limitations (mintime, maxtime,
mintimeoff, and maxtimeoff); read the BIP 23 specification in detail to
understand how they work. It is usually best to simply get more data as often
as it is needed. For blkmk_get_mdata, you may specify that you intend to roll
the ntime header exactly once per second past usetime - it will then set
*out_expires such that the expiration occurs before you roll beyond any ntime
limits. If you are rolling ntime at any rate other than once per second, you
should NOT specify can_roll_ntime to blkmk_get_mdata, and must check that your
usage falls within the explicit template limits yourself.
Description
No description provided
Readme 327 KiB
Languages
C 96.9%
Makefile 1.6%
M4 1.2%
Shell 0.3%