rgb-cln/bitcoin
Christian Decker 7283efa5b5 elements: Add amount_asset to support more than just plain satoshis
Currently the only source for amount_asset is the value getter on a tx output,
and we don't hand it too far around (mainly ignoring it if it isn't the
chain's main currency). Eventually we could bubble them up to the wallet, use
them to select outputs or actually support assets in the channels.

Since we don't hand them around too widely I thought it was ok for them to be
pass-by-value rather than having to allocate them and pass them around by
reference. They're just 41 bytes currently so the overhead should be ok.

Signed-off-by: Christian Decker <@cdecker>
2019-10-03 04:32:57 +00:00
..
test elements: Add amount_asset to support more than just plain satoshis 2019-10-03 04:32:57 +00:00
Makefile secret_eq: remove in favor of constant time variant. 2018-08-23 14:46:22 +02:00
README Fix typo. 2015-06-25 13:48:05 +09:30
address.h Makefile: generalize whitespace check. 2017-01-04 14:09:20 +10:30
base58.c wallet: Pass chainparams to address serialization 2019-05-10 23:07:49 +00:00
base58.h wallet: Pass chainparams to address serialization 2019-05-10 23:07:49 +00:00
block.c elements: Remove global is_elements variable in favor of chainparams 2019-10-03 04:32:57 +00:00
block.h elements: Move blkid computation into its own function 2019-10-03 04:32:57 +00:00
chainparams.c chainparams: Add liquid_fee_asset to determine which asset pays fees 2019-10-03 04:32:57 +00:00
chainparams.h chainparams: Add liquid_fee_asset to determine which asset pays fees 2019-10-03 04:32:57 +00:00
feerate.h bitcoin: expose feerate_floor. 2018-06-21 13:43:32 +02:00
locktime.c Remove unused functions not covered by unit tests 2018-03-26 23:35:56 +00:00
locktime.h Remove unused functions not covered by unit tests 2018-03-26 23:35:56 +00:00
preimage.h Update ccan/structeq. 2018-07-04 23:57:00 +02:00
privkey.c secret_eq: remove in favor of constant time variant. 2018-08-23 14:46:22 +02:00
privkey.h devtools: Minor cleanup of the onion command line tool 2019-07-30 02:14:49 +00:00
pubkey.c pubkey: rename PUBKEY_DER_LEN to PUBKEY_CMPR_LEN. 2019-04-09 12:37:16 -07:00
pubkey.h pubkey: rename PUBKEY_DER_LEN to PUBKEY_CMPR_LEN. 2019-04-09 12:37:16 -07:00
pullpush.c Makefile: check for direct amount_sat/amount_msat access. 2019-02-21 08:01:37 +00:00
pullpush.h bitcoin: use amount_sat/amount_msat. 2019-02-21 08:01:37 +00:00
script.c bolt: update to lightning-rfc:636b9f, change opcode reference format 2019-07-16 06:10:58 +00:00
script.h signature: wrap almost all signatures in struct bitcoin_signature. 2018-12-06 23:11:51 +01:00
shadouble.c type_to_string: support sha256_double. 2018-03-13 16:34:55 +01:00
shadouble.h header cleanup: sort include lines into alpha order, after config.h 2016-01-22 06:38:08 +10:30
short_channel_id.c JSON: remove handling of pre-Adelaide (B:T:N) short_channel_ids. 2019-09-06 14:19:14 +02:00
short_channel_id.h bitcoin: implement is_scid_depth_announceable helper. 2019-09-25 04:01:56 +00:00
signature.c elements: Remove global is_elements variable in favor of chainparams 2019-10-03 04:32:57 +00:00
signature.h bitcoin/signature: implement SIGHASH_SINGLE|SIGHASH_ANYONECANPAY for segwit. 2018-12-06 23:11:51 +01:00
tx.c elements: Add amount_asset to support more than just plain satoshis 2019-10-03 04:32:57 +00:00
tx.h elements: Add amount_asset to support more than just plain satoshis 2019-10-03 04:32:57 +00:00
varint.c bigsize: make it a proper first-class type. 2019-07-31 23:25:59 +00:00
varint.h bigsize: make it a proper first-class type. 2019-07-31 23:25:59 +00:00

README

These are standard bitcoin manipulation routines which should be
provided by any normal bitcoin library in whatever language you choose.

The ones here are standalone ones taken from bitcoin core and some I
wrote, many taken from bitcoin-iterate and pasted in here.