Commit graph

12660 commits

Author SHA1 Message Date
Akio Nakamura
a965d44204 [RPC]Add assetlabel support to some commands
Remain the support of assetlabel parameter that was previously present.

1. sendtoaddress
 Print 'optional' explicitly in the help text.↲
2. getreceivedbyaddress
 Add the 3rd parameter as "assetlabel"
 Print 'optional' explicitly in the help text.↲
3. getreceivedbylabel
 Add the 3rd parameter as "assetlabel"
 Print 'optional' explicitly in the help text.↲
4. getbalance
 Set the name of 4th parameter as "assetlabel".
 Print 'optional' explicitly in the help text.↲
5. listreceivedbyaddress
 Set the name of 5th parameter as "assetlabel".
 Enable assetlabel selection to the result of amounts.
 Print 'optional' explicitly in the help text.↲
6. gettransaction
 Add the 3rd parameter as "assetlabel"

notice) Also getwalletinfo had a parameter to specify "assetlabel".
But no need to add a parameter because the command is a catch-all one.
2019-09-16 10:04:37 -04:00
Gregory Sanders
ef64be681d fix HelpExamplRPC port for liquidv1 vs bitcoin mainnet 2019-09-03 10:12:35 -04:00
Gregory Sanders
db01a6dc38 Fix sendtomainchain with pak when subtracting fee from output 2019-09-03 10:12:30 -04:00
Gregory Sanders
fd52db918d Change default chain to liquidv1 2019-07-12 10:51:18 -04:00
Gregory Sanders
880945d303
Do non-depth check for peg-in witness where possible 2019-06-13 16:55:47 +01:00
Gregory Sanders
e50cbd7afc
FundTransaction: mark all change keys as kept 2019-06-12 16:51:00 +01:00
Steven Roose
1aa3afe238
Update secp256k1-zkp dependency to 44db4d801fff3cd94105136cb443d603683baad2 2019-06-06 15:57:30 +01:00
Steven Roose
479b6ffade Squashed 'src/secp256k1/' changes from 43dd1f4fe..44db4d801
44db4d801 Merge pull request #57 from apoelstra/2019-04-surjectionproof-stack
f7e4d08da surjection proof: Reject proofs with too many used inputs in reduced mode
112edb2c6 allow reducing surjection proof size (to lower generation stack usage)
d512d7865 surjectionproof: introduce `SECP256K1_SURJECTIONPROOF_MAX_USED_INPUTS` constant and set it to 16
a118acc02 surjectionproof: reduce stack usage
e7f4ff4c6 Merge pull request #70 from apoelstra/2019-06-surjection-count
f94d46e65 Merge pull request #71 from real-or-random/fix-trailing-test
49a1e0173 surjectionproof: fix malleability in surjection proof parsing
55311b0e0 Fix read of wrong buffer (and OOB) in surjectionproof tests
290a27bb7 surjectionproof: add test vectors for "set padding bits"
7bc3daa48 surjectionproof: add fixed test vectors
6f3b0c05c Improve comments for surctionproof init+alloc/destroy funcs
250ebb364 work in progress: add _allocate_initialized/destroy funcs
4a7763361 Improve explanation of key cancellation attack in whitelist.md
898c9f05b Clarify how to derive alternative generator H
15d92782d Add bench_generator and bench_rangeproof to .gitignore
86240b207 Clean up ./configure help strings (zkp extensions)
865b76186 Fix a small typo in the generator parameter name
cd5ba5c3b generator: remove `CHECK` abort calls exposed by public API
ff1665127 musig: add user documentation
0ad6b6036 Add 3-of-3 MuSig example
b61a1a9d9 Add MuSig module which allows creating n-of-n multisignatures and adaptor signatures.
5d5374f92 Add schnorrsig module which implements BIP-schnorr [0] compatible signing, verification and batch verification.
a8ae6baff add chacha20 function
9a8a71e8b use proper types for rangeproof min/max
14769b964 rangeproof: reduce iteration count in unit tests
0593861cc Enable more builds with rest of experimental flags
e9fea7427 Add explanation about how BIP32 unhardened derivation can be used to simplify whitelisting
dec1b9ce2 Add comment to explain effect of max_n_iterations in surjectionproof_init
ea62bfe22 add unit test for generator and pedersen commitment roundtripping
e32924f0e rangeproof: fix serialization of pedersen commintments
972d056fa rangeproof: verify correctness of pedersen commitments when parsing
2cc4c6fef generator: verify correctness of point when parsing
65ffea43d rangeproof: check that points deserialize correctly when verifying rangeproof
cb786d6d1 rangeproof: add fixed vector test case
b387ba038 Expose generator in shared library
8da432855 fix spelling in documentation
6f14fe40d Test for rejection of trailing bytes in range proofs
ab4fbc1be Test for rejection of trailing bytes in surjection proofs
c908c97d6 Reject surjection proofs with trailing garbage
f723bf5b3 Minor bugfix. Wrong length due to NUL character.
6872069de Add whitelisting benchmark
6ceccb75b add whitelist_impl.h to include for dist
a3ad4a866 generator: add API tests
e93e886cb generator: remove unnecessary ARG_CHECK from generate()
f1d6e4b83 Fix generator makefile
68be61131 Fix pedersen_blind_generator_blind_sum return value documentation
51fc58ae6 Add n_keys argument to whitelist_verify
36b100c77 Fix checks of whitelist serialize/parse arguments
c8f54e12e whitelist: fix serialize/parse API to take serialized length
56fca5077 Fix include/secp256k1_rangeproof.h function argument documentation.
4617f0478 rangeproof: add API tests
cd4e438a3 surjectionproof: rename unit test functions to be more consistent with other modules
2cc7f1e04 surjectionproof: add API unit tests
c4097f758 surjectionproof: tests_impl.h s/assert/CHECK/g
5ee6bf341 rangeproof: fix memory leak in unit tests
94e81a250 add surjection proof module
a66ea3522 Implement ring-signature based whitelist delegation scheme
2bb513361 rangeproof: several API changes
9b00b61d9 Expose generator in pedersen/rangeproof API
54fa2639e Constant-time generator module
023aa86ac rangeproof: expose sidechannel message field in the signing API
89e7451d4 [RANGEPROOF BREAK] Use quadratic residue for tie break and modularity cleanup
f126331bc Pedersen commitments, borromean ring signatures, and ZK range proofs.
e1fb4af90 Add 64-bit integer utilities
e541a90ef Merge #629: Avoid calling _is_zero when _set_b32 fails.
f34b0c3f3 Merge #630: Note intention of timing sidechannel freeness.
8d1563b0f Note intention of timing sidechannel freeness.
1669bb286 Merge #628: Fix ability to compile tests without -DVERIFY.
ecc94abcc Merge #627: Guard memcmp in tests against mixed size inputs.
544435fc9 Merge #578: Avoid implementation-defined and undefined behavior when dealing with sizes
143dc6e9e Merge #595: Allow to use external default callbacks
e49f7991c Add missing #(un)defines to base-config.h
77defd2c3 Add secp256k1_ prefix to default callback functions
908bdce64 Include stdio.h and stdlib.h explicitly in secp256k1.c
5db782e65 Allow usage of external default callbacks
6095a863f Replace CHECKs for no_precomp ctx by ARG_CHECKs without a return
cd473e02c Avoid calling secp256k1_*_is_zero when secp256k1_*_set_b32 fails.
6c36de7a3 Merge #600: scratch space: use single allocation
98836b11f scratch: replace frames with "checkpoint" system
7623cf2b9 scratch: save a couple bytes of unnecessarily-allocated memory
a7a164f2c scratch: rename `max_size` to `size`, document that extra will actually be allocated
5a4bc0bb9 scratch: unify allocations
c2b028a28 scratch space: thread `error_callback` into all scratch space functions
0be1a4ae6 scratch: add magic bytes to beginning of structure
92a48a764 scratch space: use single allocation
40839e21b Merge #592: Use trivial algorithm in ecmult_multi if scratch space is small
dcf392027 Fix ability to compile tests without -DVERIFY.
a484e0008 Merge #566: Enable context creation in preallocated memory
0522caac8 Explain caller's obligations for preallocated memory
238305fdb Move _preallocated functions to separate header
695feb6fb Export _preallocated functions
814cc78d7 Add tests for contexts in preallocated memory
ba12dd08d Check arguments of _preallocated functions
5feadde46 Support cloning a context into preallocated memory
c4fd5dab4 Switch to a single malloc call
ef020de16 Add size constants for preallocated memory
1bf7c056b Prepare for manual memory management in preallocated memory
248bffb05 Guard memcmp in tests against mixed size inputs.
36698dcfe Merge #596: Make WINDOW_G configurable
a61a93ff5 Clean up ./configure help strings
2842dc523 Make WINDOW_G configurable
1a02d6ce5 Merge #626: Revert "Merge #620: Install headers automatically"
662918cb2 Revert "Merge #620: Install headers automatically"
14c7dbd44 Simplify control flow in DER parsing
ec8f20bab Avoid out-of-bound pointers and integer overflows in size comparisons
01ee1b3b3 Parse DER-enconded length into a size_t instead of an int
912680ed8 Merge #561: Respect LDFLAGS and #undef STATIC_PRECOMPUTATION if using basic config
91fae3ace Merge #620: Install headers automatically
5df77a0ed Merge #533: Make sure we're not using an uninitialized variable in secp256k1_wnaf_const(...)
975e51e0d Merge #617: Pass scalar by reference in secp256k1_wnaf_const()
735fbde04 Merge #619: Clear a copied secret key after negation
16e86150d Install headers automatically
069870d92 Clear a copied secret key after negation
8979ec0d9 Pass scalar by reference in secp256k1_wnaf_const()
84a808598 Merge #612: Allow field_10x26_arm.s to compile for ARMv7 architecture
d4d270a59 Allow field_10x26_arm.s to compile for ARMv7 architecture
b19c00006 Merge #607: Use size_t shifts when computing a size_t
4d01bc2d9 Merge #606: travis: Remove unused sudo:false
e6d01e934 Use size_t shifts when computing a size_t
7667532bd travis: Remove unused sudo:false
248f04661 Make sure we're not using an uninitialized variable in secp256k1_wnaf_const(...)
9ab96f7b1 Use trivial algorithm in ecmult_multi if scratch space is small
ee99f12f3 Merge #599: Switch x86_64 asm to use "i" instead of "n" for immediate values.
d58bc93f2 Switch x86_64 asm to use "i" instead of "n" for immediate values.
05362ee04 Merge #597: Add $(COMMON_LIB) to exhaustive tests to fix ARM asm build
83483869a Add $(COMMON_LIB) to exhaustive tests to fix ARM asm build
aa15154a4 Merge #568: Fix integer overflow in ecmult_multi_var when n is large
2277af5ff Fix integer overflow in ecmult_multi_var when n is large
dbed75d96 Undefine `STATIC_PRECOMPUTATION` if using the basic config
310111e09 Keep LDFLAGS if `--coverage`
85d0e1bcc Merge #591: Make bench_internal obey secp256k1_fe_sqrt's contract wrt aliasing.
14196379e Merge #580: Add trivial ecmult_multi algorithm which does not require a scratch space
a697d82da Add trivial ecmult_multi to the benchmark tool
bade61741 Add trivial ecmult_multi algorithm. It is selected when no scratch space is given and just multiplies and adds the points.
5545e13de Merge #584: configure: Use CFLAGS_FOR_BUILD when checking native compiler
20c5869df Merge #516: improvements to random seed in src/tests.c
b76e45d5d Make bench_internal obey secp256k1_fe_sqrt's contract wrt aliasing.
870a97764 Merge #562: Make use of TAG_PUBKEY constants in secp256k1_eckey_pubkey_parse
be40c4d0b Fixup for C90 mixed declarations.
c71dd2c08 Merge #509: Fix algorithm selection in bench_ecmult
6492bf88c Merge #518: Summarize build options after running configure
0e9ada194 Merge #567: Correct order of libs returned on pkg-config --libs --static libsecp2…
e96901a4b Merge #587: Make randomization of a non-signing context a noop
58df8d03a Merge #511: Portability fix for the configure scripts generated
2ebdad772 Merge #552: Make constants static:
1c131affd Merge #551: secp256k1_fe_sqrt: Verify that the arguments don't alias.
ba698f883 Merge #539: Assorted minor corrections
949e85b00 Merge #550: Optimize secp256k1_fe_normalize_weak calls.
a34bcaadf Actually pass CFLAGS_FOR_BUILD and LDFLAGS_FOR_BUILD to linker
2d5f4cebd configure: Use CFLAGS_FOR_BUILD when checking native compiler
b408c6a8b Merge #579: Use __GNUC_PREREQ for detecting __builtin_expect
619837521 Make randomization of a non-signing context a noop
c663397f4 Use __GNUC_PREREQ for detecting __builtin_expect
3cb057f84 Fix possible integer overflow in DER parsing
89a20a894 Correct order of libs returned on pkg-config --libs --static libsecp256k1 call.
d3cb1f95e Make use of TAG_PUBKEY constants in secp256k1_eckey_pubkey_parse
496c5b43b Make constants static: static const secp256k1_ge secp256k1_ge_const_g; static const int CURVE_B;
bf8b86cc0 secp256k1_fe_sqrt: Verify that the arguments don't alias.
9bd89c836 Optimize secp256k1_fe_normalize_weak calls. Move secp256k1_fe_normalize_weak calls out of ECMULT_TABLE_GET_GE and ECMULT_TABLE_GET_GE_STORAGE and into secp256k1_ge_globalz_set_table_gej instead.
52ab96fed clean dependendies in field_*_impl.h
deff5edd4 Correct math typos in field_*.h
4efb3f8dd Add check that restrict pointers don't alias with all parameters.
3965027c8 Summarize build options in configure script
0f0517369 Fix algorithm selection in bench_ecmult
8b3841c91 fix bug in fread() failure check
cddef0c0b tests: add warning message when /dev/urandom fails
270f6c80d Portability fix for the configure scripts generated
REVERT: 43dd1f4fe Merge pull request #40 from instagibbs/size_t
REVERT: 6532fa0a9 Merge pull request #39 from instagibbs/more_builds
REVERT: 2b2429dfa rangeproof: reduce iteration count in unit tests
REVERT: 12b0e5dda Enable more builds with rest of experimental flags
REVERT: 8c444eef6 use proper types for rangeproof min/max
REVERT: 53ad841ca Add explanation about how BIP32 unhardened derivation can be used to simplify whitelisting
REVERT: 71c5fe0f6 Add comment to explain effect of max_n_iterations in surjectionproof_init
REVERT: 85fd42fb7 add unit test for generator and pedersen commitment roundtripping
REVERT: 2ccf88541 rangeproof: fix serialization of pedersen commintments
REVERT: 60c173b64 rangeproof: verify correctness of pedersen commitments when parsing
REVERT: 32d7526cd generator: verify correctness of point when parsing
REVERT: ae14e8a9d rangeproof: check that points deserialize correctly when verifying rangeproof
REVERT: 44fe43d75 rangeproof: add fixed vector test case
REVERT: e065d7df9 Expose generator in shared library
REVERT: fb1ba329a fix spelling in documentation
REVERT: fb75faa14 Test for rejection of trailing bytes in range proofs
REVERT: 9b2cf1708 Test for rejection of trailing bytes in surjection proofs
REVERT: a3a1800ba Reject surjection proofs with trailing garbage
REVERT: 0c77ae9a7 Minor bugfix. Wrong length due to NUL character.
REVERT: b1f31bc4b Add whitelisting benchmark
REVERT: 52a9f8f8f add whitelist_impl.h to include for dist
REVERT: a707865bc generator: add API tests
REVERT: ec1ef040f generator: remove unnecessary ARG_CHECK from generate()
REVERT: b0e9aa828 Fix generator makefile
REVERT: 526c65499 Fix pedersen_blind_generator_blind_sum return value documentation
REVERT: b51886e72 Add n_keys argument to whitelist_verify
REVERT: 37c57de08 Fix checks of whitelist serialize/parse arguments
REVERT: 9b8a9d91e whitelist: fix serialize/parse API to take serialized length
REVERT: 7f1751560 Fix include/secp256k1_rangeproof.h function argument documentation.
REVERT: 0d817020d rangeproof: add API tests
REVERT: 417bb0643 surjectionproof: rename unit test functions to be more consistent with other modules
REVERT: 1e2d5c1a2 surjectionproof: add API unit tests
REVERT: 7878a298b surjectionproof: tests_impl.h s/assert/CHECK/g
REVERT: e609591b6 rangeproof: fix memory leak in unit tests
REVERT: 0c17f7972 add surjection proof module
REVERT: c174f0c60 Implement ring-signature based whitelist delegation scheme
REVERT: a2bc6604f rangeproof: several API changes
REVERT: 21bfb3c91 Expose generator in pedersen/rangeproof API
REVERT: f4620de04 Constant-time generator module
REVERT: d46fc3c19 rangeproof: expose sidechannel message field in the signing API
REVERT: cf40b1bed [RANGEPROOF BREAK] Use quadratic residue for tie break and modularity cleanup
REVERT: 6d28767c7 Get rid of precomputed H tables (Pieter Wuille)
REVERT: ae1e576f6 Pedersen commitments, borromean ring signatures, and ZK range proofs.
REVERT: efc61dc0c Add 64-bit integer utilities

git-subtree-dir: src/secp256k1
git-subtree-split: 44db4d801fff3cd94105136cb443d603683baad2
2019-06-06 10:58:01 +01:00
Gregory Sanders
81674d677c
Merge #650: [0.17 backport] Move MainchainRPCCheck to its own schedule to avoid waiting for itself
78e315d Move MainchainRPCCheck to its own schedule, fix resolution (Gregory Sanders)

Pull request description:

  backport of #647 for 0.17

Tree-SHA512: 48bba6d29048c9686aa2a122156e6321a1da1e900d301a8898f4942da076fadc2cb9d29f14622b3c0a6562f7bda3e7a6764c79fdfc0bdbfb272b2041e1124032
2019-06-06 10:16:52 +02:00
Gregory Sanders
58c070a315
Merge #644: [0.17 backport] Fixup some QT-only credit computing code
bc3dc13 Fix qt usages of txout-based GetCredit (Gregory Sanders)
0746330 Delete unused non-CWalletTx GetCredit (Gregory Sanders)

Pull request description:

  backport of #629 for 0.17

Tree-SHA512: 2787b8a2d41c80c50e3d007763737fd3e4edba97270ee98c0b0b8ce36e494f09d6f71823416880bb9bc332bc7533f83fcfe3b9a68eb256f341271f2277f4b9e7
2019-06-06 10:16:12 +02:00
Gregory Sanders
434067a229
Disallow issuance calls in bitcoin mode 2019-06-05 15:29:33 +01:00
Gregory Sanders
bc3dc13b7e
Fix qt usages of txout-based GetCredit 2019-06-05 15:29:09 +01:00
Gregory Sanders
0746330f8f
Delete unused non-CWalletTx GetCredit 2019-06-05 15:29:06 +01:00
Gregory Sanders
78e315d31e
Move MainchainRPCCheck to its own schedule, fix resolution 2019-06-05 15:27:55 +01:00
Gregory Sanders
63bc3e3f02
Merge #614: Improve double pegin claim behavior
52ef283 Improve the fedpeg test with extra double claim tests (Steven Roose)
48a82fa Make claimpegin fail in the case of a double claim (Steven Roose)
af22646 Prevent pegin double spends from entering the mempool (Steven Roose)
50c5570 Report IsValidPeginWitness error message (Steven Roose)

Pull request description:

  Fixes #612 and #613.

  - prevents a double claim from entering mempool
  - makes `claimpegin` throw an exception when trying to double claim a pegin
  - check the last commit message on all the extra cases that are tested.

Tree-SHA512: dd9602cd4bc78a3e8f7a6b566f881ede09dba54900425348c1eb528268a3e869416e3c9ca97c1a8da4d120875ef59c4e21a857256312ce77e06b7b6ae04abf92
2019-05-08 11:10:58 -04:00
Steven Roose
48a82fa993
Make claimpegin fail in the case of a double claim
Currently it will commit to the transaction without it being able to
enter the mempool. This makes the block creation code include the tx
into the block and create an invalid block.
2019-05-08 15:35:58 +01:00
Steven Roose
af2264665e
Prevent pegin double spends from entering the mempool
This bug got introduced with the 0.17 rebase. In 0.14.1 the double pegin
claim check was done in the beginning of the validation logic, where the
coins view was the actual UTXO set. In 0.17, Core moved several checks
because the intermediate method CheckInputs was removed and some logic
moved to tx_verify.cpp, where we also put the pegin check.  In the
mempool acceptance check, however (as opposed to the ConnectBlock
check), CheckTxInputs is called with only a partial UTXO view for
optimization reasons. This commit adds an extra pegin check in the
beginning of the mempool code where we have a full UTXO view.
2019-05-08 15:34:55 +01:00
Steven Roose
50c557083d
Report IsValidPeginWitness error message 2019-05-07 20:13:42 +01:00
Gregory Sanders
ad43f9c60f Only spin-wait MainchainRPCCheck on initial loading with warmup code 2019-05-06 09:39:29 -04:00
Gregory Sanders
9d4097dca2 Only schedule mainchain RPC checks after initial check succeeds 2019-05-06 09:38:58 -04:00
Gregory Sanders
a9cbe55309 refactor getpeginaddress to not call getnewaddress RPC 2019-05-01 10:54:06 -04:00
Gregory Sanders
cdb33e5214 createrawpegin should look for wpkh addresses, not nested 2019-05-01 10:54:06 -04:00
Steven Roose
4a218cd0ef
Fix linter by exporting b(l)ech32 internals 2019-04-23 21:11:30 +01:00
Steven Roose
99b047c305
Add additional blech32 unit test 2019-04-23 20:38:39 +01:00
Steven Roose
64129703a8
Fix bug in blech32 2019-04-23 20:38:28 +01:00
Steven Roose
0de2b056d1
Add unit test for the PolyMod method in b(l)ech32 2019-04-23 16:36:15 +01:00
Steven Roose
b89a64c36b
Merge #591: Add testdummy deployment for versionbits to squash warnings
88b380211 Add testdummy deployment for versionbits to squash warnings (Gregory Sanders)

Pull request description:

  liquidv1 has a testdummy deployment like other common chains, sync this up.

Tree-SHA512: a4dfccc284e11bc3a69463fc553138c1b8d560d2bf9539679c815acea7754aca4fbd78ec3d23dbccd825c59da7cce8044d42b1dfbc2bff78c332556afdbaa7f3
2019-04-22 12:31:34 +01:00
Steven Roose
59def74d27
Merge #588: CreateTransaction: Place blinding pubkey into nNonce in case of fundraw
7fd6b88c9 claimpegins should arrive in witness destinations (Gregory Sanders)
a4a051e75 Add tests for fundrawtransaction placing back blinding keys properly (Gregory Sanders)
48958a6db CreateTransaction: Place blinding pubkey into nNonce in case of fundraw (Gregory Sanders)
2e6191d73 QA: Hack around no issuance an non-witness tx bug issue#473 (Gregory Sanders)

Pull request description:

  Currently any fundrawtransaction call will result in unblinded change output. Automated flow isn't effected by this bug.

Tree-SHA512: ee09a58bd8d5ac35f8d090a0e8928efebb7f9d8e886105bff7188ad4983406d53e4693b46b1e4f70ba76d3e06a420bd778b4c879de183d02d7ec3c7ccbac3f8e
2019-04-22 10:41:53 +01:00
Gregory Sanders
88b3802114 Add testdummy deployment for versionbits to squash warnings 2019-04-20 15:19:36 -04:00
Gregory Sanders
7fd6b88c97 claimpegins should arrive in witness destinations 2019-04-19 07:39:32 -04:00
Gregory Sanders
48958a6db5 CreateTransaction: Place blinding pubkey into nNonce in case of fundraw 2019-04-19 07:39:32 -04:00
Gregory Sanders
dc1ede8f20 CreateTransaction should still print blinded tx info during fundraw etc 2019-04-18 16:03:31 -04:00
Gregory Sanders
5735322a06
Merge #574: configure option --enable-liquid for default liquidv1 chain
ff12bf7 QT: --enable-liquid needs to use different QAPP name for QSettings (Gregory Sanders)
f475780 QT: WalletModel should always check for balance changes once (Gregory Sanders)
93e2660 QT: dummy address needs fully valid pubkey (Gregory Sanders)
c227c65 QT: Cache the blinded destination values on transactions we create, like -cli (Gregory Sanders)
5622a83 QT: remove GetAmounts calls or put behind bitcoind mode only (Gregory Sanders)
17229bf QT: Add bracket to not reassign values on non-tx (Gregory Sanders)
88c256f Split out liquid gitian build descriptors (Gregory Sanders)
7bd0667 Change gitian defaults back to elements, leave commented out lines as switch (Gregory Sanders)
6d6ddc5 Rename binaries to liquid naming at end of gitian process (Gregory Sanders)
aa2af38 --enable-liquid: liquid.conf and liquid.pid (Gregory Sanders)
3b1ca17 --enable-liquid: change default datadir to .liquid (Gregory Sanders)
1f67fec --enable-liquid for gitian builds (Gregory Sanders)
1fdc059 Add travis build for --enable-liquid (Gregory Sanders)
7eea59a configure option --enable-liquid for default liquidv1 chain (Gregory Sanders)

Pull request description:

  The only behavior it modifies is that the default chain becomes `liquidv1`. Also added a Travis test for coverage and adapted a unit test, and enabled this mode for gitian descriptors.

Tree-SHA512: 9a19267a51ee7a8906b6a8af9c511a4838ec529c5ea2873de215eb849111d2d2380679b524e7198f53606810b47cd85ef46a8fc5816c86e78ebedd8c30de0da7
2019-04-18 13:19:59 -04:00
Gregory Sanders
ff12bf7250 QT: --enable-liquid needs to use different QAPP name for QSettings 2019-04-18 12:06:28 -04:00
Gregory Sanders
b08fcb1f9a RawFillBlinds needs to push blank pubkeys if output it already blinded 2019-04-18 10:52:22 -04:00
Gregory Sanders
f47578083e QT: WalletModel should always check for balance changes once 2019-04-17 15:35:27 -04:00
Gregory Sanders
93e26608c2 QT: dummy address needs fully valid pubkey 2019-04-17 15:35:27 -04:00
Gregory Sanders
c227c65a13 QT: Cache the blinded destination values on transactions we create, like -cli 2019-04-17 14:23:23 -04:00
Gregory Sanders
5622a838c2 QT: remove GetAmounts calls or put behind bitcoind mode only 2019-04-17 14:22:57 -04:00
Gregory Sanders
17229bfb8c QT: Add bracket to not reassign values on non-tx 2019-04-17 11:16:17 -04:00
Gregory Sanders
aa2af38715 --enable-liquid: liquid.conf and liquid.pid 2019-04-15 16:59:49 -04:00
Gregory Sanders
3b1ca174d7 --enable-liquid: change default datadir to .liquid 2019-04-15 16:59:49 -04:00
Gregory Sanders
1cccb6ebb8 Add a couple comments on (re)issueasset to let users know about raw versions 2019-04-13 14:59:03 -04:00
Gregory Sanders
7eea59a2ca configure option --enable-liquid for default liquidv1 chain 2019-04-12 13:27:01 -04:00
Gregory Sanders
a32cd1d363
Merge #573: Add issuance serialization in python, tighten up DoS rules
d70367b Add broken python serialization to always give issuance input, test for decode failure (Gregory Sanders)
2cb47d1 Disallow coinbase output witness data, since outputs are explicit anyways (Gregory Sanders)
8b2e885 Test for block-blinding by txinwit-overstuffed block (Gregory Sanders)
789d4b9 Disallow output witness data in coinbase transactions (Gregory Sanders)
e64324e Test coinbase witness data consensus rules (Gregory Sanders)
ac98ca4 python test support for issuance and peg-in serialization and data (Gregory Sanders)
8140a87 Reject unneeded pegin witness by policy (Gregory Sanders)
97356e8 test_framework: Fix CTxInWitness.is_null with pegin_witness (Gregory Sanders)
2309508 feature_fedpeg.py: change sidechain's parent bech32 prefix to match (Gregory Sanders)

Pull request description:

  resolves https://github.com/ElementsProject/elements/issues/530

Tree-SHA512: 89d78bfe512ba573304e0033798ed1de27decfbdbda78ed158ce1ee205e9f57054bb3c53d7e1e8aba9da2b865c33b9852551b0d4cc1c3c807a0b8dbae130ee86
2019-04-12 13:23:17 -04:00
Gregory Sanders
34aa9faf3a
Merge #572: Fix some const clang complaints
3ef0e6d Fix some const clang complaints (Gregory Sanders)

Pull request description:

  Resolves https://github.com/ElementsProject/elements/issues/571

Tree-SHA512: c2dd4287d22678da570f0a9c053929c373e7377b1e1f8eff12e3df4d43cfa6c21d5be1d45c44db76c5686ea40c925c94250ed245451174cf0190b6e58cca9268
2019-04-12 12:48:28 -04:00
Gregory Sanders
2cb47d1705 Disallow coinbase output witness data, since outputs are explicit anyways 2019-04-12 11:50:01 -04:00
Gregory Sanders
789d4b97f7 Disallow output witness data in coinbase transactions 2019-04-12 11:50:01 -04:00
Gregory Sanders
8140a87dec Reject unneeded pegin witness by policy 2019-04-12 11:50:01 -04:00
Steven Roose
12387b2348
Merge #569: Qt port from Liquid-qt
003fb1933 QT: Carbon copy 0.14-based transaction accounting (Gregory Sanders)
633316632 QT: get fee directly from elementsmode transactions (Gregory Sanders)
a337b7634 QT: Fixup OSX build (Gregory Sanders)
962690743 QT: Disable URI unit tests since unused (Gregory Sanders)
95d098197 QT: Fix QT to work in non-elementsmode (Gregory Sanders)
027aeef83 QT: Remove ^M and trailing whitespace (Gregory Sanders)
c299dd24a QT: fix qt linter (Gregory Sanders)
8adf59159 QT include linting (Gregory Sanders)
ab21387c8 QT: Always return blinded address (Gregory Sanders)
dbac2afd0 QT: Enter a s/Bitcoin/Liquid/ address (Gregory Sanders)
1dde8a7ff Update blech32 checkbox text (Gregory Sanders)
7108ab76e Add unix build notes for Elements-QT dependencies (Gregory Sanders)
967ed8385 f'init: If bitcoind is unreachable, explain where the user can get it' (Gregory Sanders)
acf243683 f'GUI: Pre-render amount for transaction notifications so asset is correct' (Gregory Sanders)
d51b9edcd f'GUI: Display label rather than address on popups' (Gregory Sanders)
f7f5bb7cb f'GUI: Disable Subtract fee from amount' (Gregory Sanders)
084a2fdc9 f'GUI: Make liquidv1 the' (Gregory Sanders)
0aff67508 f'GUI: Add liquidv1 network style' (Gregory Sanders)
cbf93b9b6 Added liquid.conf template (Daniel Olaya)
1a654f449 fix logo position and size on retina displays (Riccardo Casatta)
3241af9d4 GUI: Adjust recommended number of blocks confirmed to 2 (Luke Dashjr)
3779ae290 Bugfix: GUI: Re-enable Show/Remove buttons on Receive tab (Luke Dashjr)
f96392040 GUI: Pre-render amount for transaction notifications so asset is correct (Luke Dashjr)
3bedac45a GUI: Drop "(GUI node for Bitcoin)" from program description (Luke Dashjr)
33f54fb53 GUI: Remove unnecessary references to Bitcoin (Luke Dashjr)
be7527f50 GUI: Replace "Bitcoin" with "Liquid" in appropriate strings (Luke Dashjr)
f62c0d3bf GUI: Replace "Bitcoin" with "Liquid" in appropriate strings (Luke Dashjr)
737e99a35 GUI: Make liquidv1 the "normal title bar" style (Luke Dashjr)
d82eee9d2 GUI: Add liquidv1 network style (Luke Dashjr)
ce752c0bd GUI: Remove access to unported "transaction details" display (Luke Dashjr)
0a3f58905 init: If bitcoind is unreachable, explain where the user can get it (Luke Dashjr)
680265806 GUI: Adjust blockchain and chainstate sizes in Intro (Luke Dashjr)
d522775b8 Bugfix: GUI: Ensure negative symbol is before whole number in GUIUtil::formatAssetAmount (Luke Dashjr)
36ebb131d GUI: Disable "Subtract fee from amount" checkbox when a non-pegged asset is selected (Luke Dashjr)
1f0b6886b GUI: Emit BitcoinAmountField::valueChanged when unit changes even if the current value is invalid (Luke Dashjr)
954f7758a Bugfix: GUI: Receive: Don't try to update label for non-existent Amount column (Luke Dashjr)
bbb5a4cc3 Gitian: Remove libconsensus from Windows/macOS builds (Luke Dashjr)
08aea0ecc configure: Rename binary to elements name (Gregory Sanders)
795f7f1a5 Gitian: Use newer librsvg so Liquid logo renders correctly (Luke Dashjr)
4c678d1e3 GUI: Receive: Eliminate "Copy URI" from receive request dialog (Luke Dashjr)
9ee46291d GUI: Add "L-" prefix to Bitcoin units (Luke Dashjr)
6879be703 GUI: Liquid branding (Luke Dashjr)
3f1764afd Generate bitcoin_testnet.ico using ImageMagick (Luke Dashjr)
f60462d45 Rather than clean generated icons, plan to distribute them (Luke Dashjr)
d389515e8 Render NSIS wizard sidebar image (Luke Dashjr)
ff6a0a103 Render some icons when possible (Luke Dashjr)
ec8e73a4d Make a modified copy of qrc file for VPATH builds (Luke Dashjr)
06b30cfad Travis: Include dependencies for building icons (Luke Dashjr)
4fa10fe4e gitian: Dependencies for rendering icons (Luke Dashjr)
335149944 Reuse Windows ICO for Windows installer (Luke Dashjr)
749e0a83c clientversion: Fix CLIENT_NAME to "Elements Core" (Luke Dashjr)
20bf9c5cd GUI: Disable coin control (non-functional) (Luke Dashjr)
82dfd3ff1 GUI: Receive: Eliminate URI, and make QR code of just the address (Luke Dashjr)
273aa76f8 GUI: Receive: Split up long addresses across multiple lines, in QR code image (Luke Dashjr)
25600f90d GUI: Receive: Remove URI-specific parameters for now (Luke Dashjr)
20479e4ad GUI: Receive: Replace "Copy URI" with "Copy address" (Luke Dashjr)
d4d45b6f0 GUI: Use CT address for examples (Luke Dashjr)
0d11cd0de GUI: Transactions: Remove "to yourself" filter, no longer applicable (Luke Dashjr)
66ac3e62e GUI: Move the "Recent Transactions" view below "Balances" (Luke Dashjr)
6ab7bcc4e Bugfix: GUI: Overview: Fix hiding of immature when balances are zero (Gregory Sanders)
8048a6d8b QT: have output amounts propagated for subtractfeefromoutput logic (Gregory Sanders)
2a334b73e Slightly smarter change key vector padding (Gregory Sanders)
79e0cb74f GUI: Support for sending assets (Luke Dashjr)
f4d5552f6 GUI: Clone SendCoinsRecipient to SendAssetsRecipient (Luke Dashjr)
70458f6f9 Pad change keys for wallet interface pending txs (Gregory Sanders)
466b3d03f CAmountMap::operator! to check if empty (Luke Dashjr)
af726c7c3 GUI: BitcoinAmountField: Limit issued assets to 21M (Luke Dashjr)
2ebae1ab8 GUI: SendCoinsEntry: Propagate asset types available to amount field (Luke Dashjr)
a163be0ae GUI: WalletModel: Track asset type collection (Luke Dashjr)
7f00087b5 GUI: BitcoinAmountField: Allow changing allowed assets after construction (Luke Dashjr)
3e669cd31 GUI: BitcoinAmountField: Allow code to set assets not in allowed_assets (Luke Dashjr)
2c75c4441 GUI: BitcoinAmountField: Support for non-bitcoin assets (Luke Dashjr)
a1a884855 GUI: GUIUtil::parseAssetAmount abstraction (Luke Dashjr)
881862c9c bugfix: issuance to self not a debit (Gregory Sanders)
047799cb1 CAsset: GetIdentifier to get label or hex id (Luke Dashjr)
d81c9f7b3 AmountSpinBox: Resolve singleStep default when making steps (Luke Dashjr)
295361348 GUI: Option to remove asset name for GUIUtil::formatAssetAmount (Luke Dashjr)
85f0ad80d replace bitcoin-qt with elements-qt (Lawrence Nahum)
f027ca0c6 GUI: Always include bitcoins in formatMultiAssetAmount (Luke Dashjr)
f5fb840cd GUI: Overview: Show all assets in balances (Luke Dashjr)
6342d80d7 GUI: Add GUIUtil::formatMultiAssetAmount to handle a CAmountMap (Luke Dashjr)
988ed5eff GUI: Abstract asset+amount formatting into new GUIUtil::formatAssetAmount (Luke Dashjr)
89275ebf2 GUI: TransactionRecord: Special-case the common scenario where assets are simply issued to myself (Luke Dashjr)
906cc4c40 Wallet: GetIssuanceAssets to get CAmountMap for issuances (Luke Dashjr)
4ea8f8827 GUI: TransactionRecord: When time/index/etc match, sort fee, issuance, send, then receive (Luke Dashjr)
51e789722 GUI: TransactionRecord: Add asset issuance record type (Luke Dashjr)
e6b3676b3 Wallet: GetIssuanceAssets to just get CAssets for issuances (Gregory Sanders)
2bcd24313 GUI: Overview: Use formatted amount text from TransactionTableModel (Luke Dashjr)
eef551a58 GUI: TransactionTableModel: Remove bitcoin unit from Amount column header (Luke Dashjr)
19c87c0ae GUI: TransactionTableModel: Include unit name with formatted amount (Luke Dashjr)
a582fe03e GUI: TransactionRecord: Turn non-bitcoin fees into entries (Luke Dashjr)
ef2f717e6 GUI: TransactionRecord: Add asset field (Gregory Sanders)
060ad2f56 GUI: TransactionRecord: Collapse credit+debit fields to just amount (Luke Dashjr)
0aeab14f7 GUI: Ignore explicit fee output when determining if a transaction is send-to-self (Luke Dashjr)
1655947c1 gui: Alternate row background based on txid (João Barbosa)
3edcdf8f0 gui: Add transaction record type Fee (João Barbosa)
41c8d4c89 gui: Avoid TransactionRecord instance for IsMine outputs (João Barbosa)

Pull request description:

  Splash page is always Liquid-themed like before. Pegged asset is assumed to be `L-BTC`. Default network for QT is still `elementsregtest`. Do we want it to be `liquidv1`?

  resolves https://github.com/ElementsProject/elements/issues/528

Tree-SHA512: cd7c07262195c344185f5b7bd779985cf7ee26f0fdf1fa105a4ce93b51cbbd83cc78884e3ed711d884697a48904c2d76647eba76509f6a22210b75f6fcdc13c5
2019-04-12 15:56:59 +01:00