Commit Graph

2201 Commits

Author SHA1 Message Date
Andrew Poelstra 9562d8afac
Merge pull request #41 from tamasblummer/minimal_alert_message
minimal implementation of alert message
2018-02-18 15:00:55 +00:00
Andrew Poelstra 71bce7b067
Merge pull request #44 from tamasblummer/add_difficulty2
Add difficulty calculation
2018-02-18 14:59:36 +00:00
Andrew Poelstra 91a786d22c
Merge pull request #42 from tamasblummer/add_low_u64
add low_u64 to Uint256 and Uit128 types
2018-02-18 14:57:37 +00:00
Andrew Poelstra 3547d27430
Merge pull request #40 from tamasblummer/unit_debug_fix
fixing debug output for Uint256 and Uint128
2018-02-18 14:57:00 +00:00
Andrew Poelstra d8babeddba Bump version 2018-02-16 22:16:59 +00:00
Andrew Poelstra 7930d14124
Merge pull request #38 from apoelstra/bip143
util: add `bip143` module to create BIP143 signature hashes
2018-02-16 22:13:55 +00:00
Andrew Poelstra 7c56f4133b
Merge pull request #46 from apoelstra/copy-nonoverlapping
remove all use of mem::uninitialized and mem::copy_nonoverlapping
2018-02-16 22:13:39 +00:00
Andrew Poelstra 9f092a6f31 remove all use of mem::uninitialized and mem::copy_nonoverlapping 2018-02-14 16:53:49 +00:00
Andrew Poelstra deda031975
Merge pull request #45 from TheBlueMatt/master
Fix argument to copy_nonoverlapping in internal_macros
2018-02-14 16:23:53 +00:00
Matt Corallo 9052f3b5a2 Fix argument to copy_nonoverlapping in internal_macros
This resolves a segfault due to unsafe code.
2018-02-13 19:08:10 -05:00
Tamas Blummer 3efe511cc6 add difficulty calculation 2018-02-11 19:58:26 +01:00
Tamas Blummer 19f96fe62c add low_u64 to Uint256 and Uit128 types 2018-02-11 14:19:58 +01:00
Tamas Blummer 9fbe941621 minimal implementation of alert message 2018-02-11 14:08:33 +01:00
Tamas Blummer e05f45beb0 fixing debug output for Uint256 and Uint128 2018-02-11 14:04:35 +01:00
Andrew Poelstra f233fcac61 util: add `bip143` module to create BIP143 signature hashes 2018-01-15 17:54:32 +00:00
Andrew Poelstra 01e164025a
Merge pull request #35 from apoelstra/newops
add constants for OP_CLTV and OP_CSV
2017-12-21 01:21:09 +00:00
Andrew Poelstra b3644b7b6d add constants for OP_CLTV and OP_CSV 2017-12-21 01:10:00 +00:00
Andrew Poelstra b7ec971541 update README to reflect 0.10, bump version to republish 2017-12-13 21:20:16 +00:00
Andrew Poelstra 9a498ad5e1
Merge pull request #34 from apoelstra/segwit-txid
transaction: add txid() method
2017-12-11 14:37:24 +00:00
Andrew Poelstra 406160a386 transaction: add txid() function that does the right thing for segwit/nonsegwit
With Segwit transactions `bitcoin_hash()` is no longer sufficient to get a txid.
2017-12-09 19:52:09 +00:00
Andrew Poelstra 49d39a0796
Merge pull request #33 from apoelstra/sha2-encoder
util: add Sha256dEncoder to allow streaming data into a hash
2017-12-07 14:12:25 +00:00
Andrew Poelstra c691d0e382 util: add Sha256dEncoder to allow streaming data into a hash
This is needed to for a sane BIP143 implementation. Should be exactly equivalent to
serializing data into a vector then hashing that vector for all types.
2017-12-06 16:50:47 +00:00
Andrew Poelstra fc7c50ab8e
Merge pull request #32 from apoelstra/script-p2wsh
script: add `to_p2wsh()` and `is_p2swsh()` functions
2017-12-06 15:47:19 +00:00
Andrew Poelstra e5f109221e script: add `to_p2wsh()` and `is_p2swsh()` functions to allow easy segwit output computation 2017-12-06 15:39:37 +00:00
Andrew Poelstra c341e21dc6
remove unnecessary `mut` that nightly rustc has learned to detect 2017-10-06 19:56:50 +00:00
Andrew Poelstra 46439710d9
script: add `is_p2pkh()` function 2017-10-06 19:15:30 +00:00
Andrew Poelstra 8f7bd858fb
update byteorder to 1.1 from 0.3 2017-07-28 16:19:44 +00:00
Andrew Poelstra cdff7f15c3 Merge pull request #29 from alekseysidorov/update-deps
Fix vulnerabilities which found by `cargo audit`.
2017-07-28 16:17:59 +00:00
Aleksei Sidorov 2be08ccbae Bump version 2017-07-28 17:36:43 +03:00
Aleksei Sidorov bcd0d0480d Fix vulnerabilities which found by `cargo audit`. 2017-07-28 13:34:07 +03:00
Andrew Poelstra 2e7be81ea4 add unit test for overflow panic 2017-06-07 16:09:40 +00:00
Andrew Poelstra 287d285214 Merge pull request #25 from neosilky/panic-fix
Sanity checks for vector length
2017-06-07 16:07:53 +00:00
Daniel Lockyer 3cf1ccf8f8 Add fuzzing code 2017-06-07 09:19:25 +01:00
Daniel Lockyer a74efe6f8c Sanity checks for vector length 2017-06-05 18:06:30 +01:00
Andrew Poelstra 9a0aeb8646
Some README updates 2017-05-08 16:05:47 +00:00
Andrew Poelstra c4cc2a6949 Merge pull request #22 from chritchens/master
Add Cargo.lock to gitignore
2017-04-25 20:14:19 +00:00
Christian Nyumbayire f9efe3ecd9 Add Cargo.lock to gitignore 2017-04-25 03:12:37 +02:00
Andrew Poelstra cdb452f79f Sanity-check vector length when deserializing 2017-04-17 00:54:38 +00:00
Andrew Poelstra 4b73c3223c Merge pull request #18 from rotwatsb/GetAddr
Add GetAddr message
2016-10-12 11:26:48 +00:00
Steve Bradley f7fed8339d Add GetAddr message 2016-10-10 11:14:12 -04:00
Andrew Poelstra fd37023312 Increase secp version; transitive version bump
Cleans up dependency graph.
2016-10-10 13:22:30 +00:00
Andrew Poelstra 02718be82f Remove unused `num_cpus` dep 2016-10-10 13:09:40 +00:00
Andrew Poelstra e3c793f702 uint: bugfix in trailing_zeroes() 2016-08-26 16:20:26 +00:00
Andrew Poelstra af10b153be segwit: add transaction/block serialization support for BIP141/BIP144; bump to 0.8
Do not yet support new sighash type
2016-08-24 16:24:55 +00:00
Andrew Poelstra 19e3adce86 Merge pull request #14 from serprex/master
Replace time with std::time
2016-07-18 14:58:45 +00:00
Demur Rumed 5dda3e2602 Replace time with std::time 2016-07-17 04:02:57 +00:00
Andrew Poelstra 93f103bdb5 script: fix broken push_int in script::Builder 2016-07-14 15:15:34 +00:00
Andrew Poelstra 9d2826d5d1 bip32: error API cleanups 2016-06-24 19:45:42 +00:00
Andrew Poelstra f7d4ae8265 bip32: add accessor for the tweak used in public key derivation 2016-06-24 19:25:47 +00:00
Andrew Poelstra 14af175a11 Resurrect BIP32 support 2016-06-24 19:15:57 +00:00