Elias Rohrer
827d98d821
Fixed for rust 1.22.0.
2020-03-03 12:18:37 +01:00
Elias Rohrer
aa46618da7
Intialize stream reader only once.
2020-03-03 10:48:01 +01:00
Elias Rohrer
40431f3d4f
Formatted.
2020-03-03 10:48:01 +01:00
Elias Rohrer
b5f5abe0b4
Removed pre-configured IP, now takes IP as argument.
2020-03-03 10:48:01 +01:00
Elias Rohrer
62f5f8e3f9
Removed explicit dependency on rand.
2020-03-03 10:48:01 +01:00
Elias Rohrer
2852083ff3
Using write_all().
2020-03-03 10:48:01 +01:00
Elias Rohrer
c4f0056856
No clone needed.
2020-03-03 10:48:01 +01:00
Elias Rohrer
9d212da0ba
Added a simple handshake example.
2020-03-03 10:48:01 +01:00
Steven Roose
826b2e0e2a
Export the util::amount::Denomination type
2020-02-28 11:51:44 +00:00
Steven Roose
9cff794a09
Merge pull request #399 from elichai/2020-01-tests
...
Add tests based on mutagen outputs
2020-02-24 19:29:19 +00:00
Elichai Turkel
07b30c7fac
Mutation testing: amount: Added tests to fix mutation misses
2020-02-23 15:59:26 +02:00
Elichai Turkel
ab6e20c87e
Fix an overflow bug in SignedAmount to_string/fmt
2020-02-23 15:59:26 +02:00
Elichai Turkel
abc70781e7
Fix a logic problem in base58 (isn't a real bug)
2020-02-23 15:59:26 +02:00
Elichai Turkel
1d01262d5c
Mutation testing: base58: Added tests to "fix" mutation misses
2020-02-23 15:59:26 +02:00
Elichai Turkel
5d276caf95
Mutation testing: encode: Added tests to "fix" mutation misses
2020-02-23 15:59:26 +02:00
Elichai Turkel
eb7369b1db
Simlify consensus_encode vectors
2020-02-23 15:59:23 +02:00
Andrew Poelstra
1b946b0034
Merge pull request #378 from wbnns/readme-links
...
readme: Add links to CHANGELOG.md and LICENSE
2020-01-24 19:41:29 +00:00
Andrew Poelstra
a2bfcb5a89
Merge pull request #395 from pandoracore/fix-construct_uint
...
Improving `construct_uint` macro
2020-01-24 19:39:32 +00:00
Andrew Poelstra
659f2edb3b
Merge pull request #381 from elichai/2020-01-hex
...
Remove the hex dependency
2020-01-24 19:14:20 +00:00
Andrew Poelstra
bf6828c47f
Merge pull request #398 from elichai/2020-01-json
...
Yet another MSRV breaking change
2020-01-23 15:20:42 +00:00
Elichai Turkel
399950bf71
Restrict serde-json dev dependency to less than 1.0.45
2020-01-23 11:45:59 +02:00
Will Binns
410e45f378
readme: Add links to CHANGELOG.md and LICENSE
2020-01-23 10:45:18 +01:00
Dr Maxim Orlovsky
9c0f4b1a60
Fixing namespaces in `impl_hashencode`
2020-01-22 13:23:09 +01:00
Steven Roose
930a6ca1dc
Merge pull request #390 from instagibbs/bip143_sighash_notall
...
Add bip143 sighash support for other flags
2020-01-21 23:26:17 +00:00
Gregory Sanders
d1c5c7b08d
Deprecate SigHashComponents
2020-01-21 09:50:41 -05:00
Gregory Sanders
908aff50bc
Add bip143 sighash support for other flags
2020-01-21 09:50:41 -05:00
Dr Maxim Orlovsky
f3e762b555
Improving `construct_uint` macro
2020-01-21 13:16:34 +01:00
Elichai Turkel
c19b736566
Remove the hex dependency
2020-01-20 18:50:02 +02:00
Elichai Turkel
5452260884
Merge pull request #392 from instagibbs/wit_scale
...
Add, use WITNESS_SCALE_FACTOR constant
2020-01-20 18:02:59 +02:00
Gregory Sanders
2916685ca6
small Transaction test cleanup
2020-01-14 11:14:23 -05:00
Gregory Sanders
3624ee82c8
Use witness scaling constant in get_weight
2020-01-14 11:14:23 -05:00
Gregory Sanders
09c0e7fbde
Add WITNESS_SCALE_FACTOR constant
2020-01-14 11:14:23 -05:00
Steven Roose
e76803be85
Merge pull request #385 from stevenroose/no-bitcoin-hash
...
Remove the BitcoinHash trait
2020-01-13 16:45:31 +01:00
Steven Roose
8e52b8ce4d
Remove the BitcoinHash trait
...
Replaced by a `block_hash` method on both `Block` and `BlockHeader`.
2020-01-10 11:34:16 +00:00
Andrew Poelstra
2cba81935d
Merge pull request #380 from stevenroose/bump-0.23
...
Release v0.23.0
2020-01-09 17:02:43 +00:00
Steven Roose
2326dd6a82
Update secp256k1's rand feature to rand-std
2020-01-09 11:11:49 +00:00
Steven Roose
2f89c943e1
Release v0.23.0
2020-01-07 19:27:05 +00:00
Steven Roose
7587c4bf71
Merge pull request #379 from kiminuo/feature/network_address_debug
...
Improve fmt::Debug for network/Address
2020-01-07 17:39:14 +00:00
Steven Roose
e6bc3ec974
Merge pull request #366 from stevenroose/bump-secp
...
Release v0.22.0
2020-01-07 16:05:29 +00:00
kiminuo
9e223988fa
Improve fmt::Debug for network/Address
...
Original output:
"Address {services: ServiceFlags(9), address: [0, 0, 0, 0, 0, 65535, 2560, 1], port: 8333}"
New output:
* for IPv4: "Address {services: ServiceFlags(NETWORK|WITNESS), address: 10.0.0.1, port: 8333}"
* for IPv6: "Address {services: ServiceFlags(NETWORK_LIMITED), address: fd87:d87e:eb43::ffff:a00:1, port: 8333}"
2020-01-07 12:30:47 +01:00
Andrew Cann
d156c65778
Fix serde struct macros deserialization impls
...
The Deserialize impls generated by serde_struct_impl and
serde_struct_human_string_impl need to be able to handle serialization
formats which serialize structs as sequences (such as bincode).
This commit adds visit_seq methods to the Visitor types defined by these
macros, in addition to the existing visit_map methods. The
implementation is taken directly from the serde docs:
https://serde.rs/deserialize-struct.html
2020-01-07 13:19:22 +08:00
Steven Roose
448b45a3ba
Bump version to v0.22.0
2020-01-06 22:36:15 +00:00
Steven Roose
0398ef8f48
Update changelog for v0.22.0
2020-01-06 22:36:14 +00:00
Andrew Poelstra
50f3a60712
Merge pull request #349 from pandoracore/hashtypes
...
Hash new types as specified in #284
2020-01-05 00:46:45 +00:00
Dr Maxim Orlovsky
5fc24dea33
Multiple fixes for hash types and their computing
...
Unit test for wtxid and SegWit transactions
2020-01-01 13:54:23 +01:00
Dr Maxim Orlovsky
0abe15b1f6
Moving from BitcoinHash to Wtxid for Transactions
2020-01-01 13:52:20 +01:00
Dr Maxim Orlovsky
f5a8087105
New hash types: MerkleRoot/Branch, WitnessCommit, SigHash, FilterHash
2020-01-01 13:50:17 +01:00
Dr Maxim Orlovsky
4746ccb88e
Final work on Txid and other hashes
...
Fixing issue with external dependency and hash_newtype macro implementation
Reverting back to the bitcoin_hashes crate after new version release
2020-01-01 13:48:28 +01:00
Dr Maxim Orlovsky
d20ab1dbc4
Switching to XpubIdentifier
2020-01-01 13:46:44 +01:00
Dr Maxim Orlovsky
5f4f629bb1
Replaced all hash160, sha256 and sha256d with the new hash types throughout the code
...
Embedding Txid's in the doc exaples
2020-01-01 13:44:34 +01:00