Christopher Jeffrey
5a34dd6633
chain/block/mining: implement a more foolproof pow (WIP).
2019-11-04 03:57:19 -08:00
Christopher Jeffrey
40157aa468
hsd: several hard-forks.
...
- Change PoW to KMAC+BLAKE2b-256, remove Cuckoo Cycle.
- Change to a 10 minute block time (updates other constants,
including the halving interval).
- Add `filterRoot` to block header.
- Add a separate witnessRoot.
The last change fixes our original misdesigned segwit, which made syncing a
non-witness chain more difficult than it needed to be. The previous design
merkelized the transaction itself and there was only one merkle root, which was
essentially a witness root. This required "witness data hashes" to be requested
for each block in a non-witness sync. Using a separate tree is just a better
design in the end.
2019-01-21 22:06:25 -08:00
Christopher Jeffrey
a03fcd1a23
pkg: rename to hsd.
2018-08-01 20:00:09 -07:00
Christopher Jeffrey
169da98147
pkg: update deps. remove build.
2018-07-19 05:40:48 -07:00
Christopher Jeffrey
d4782e0cc1
hskd: switch to buffer maps and structs.
2018-07-15 06:22:25 -07:00
Christopher Jeffrey
674d1d6003
net: fix various p2p serialization issues.
2018-06-19 09:32:47 -07:00
Christopher Jeffrey
f3db8d8c39
hskd: update links.
2018-06-08 07:13:46 -07:00
Christopher Jeffrey
75fe4a530e
hskd: fix cuckoo requires.
2018-03-12 20:19:10 -07:00
Christopher Jeffrey
ab99474bc8
hsk: fix revokes.
2018-03-04 20:30:01 -08:00
Christopher Jeffrey
c9fedc53b7
workers: fix sign packet.
2018-03-02 20:15:01 -08:00
Christopher Jeffrey
add3235d5b
hsk: no more little-endian hashes. add outputs to genesis block.
2018-03-02 19:26:21 -08:00
Christopher Jeffrey
e8c2337fbe
hsk: update copyright.
2018-02-01 13:40:45 -08:00
Christopher Jeffrey
84f811f6e9
hsk: move cuckoo cycle and trie in.
2018-02-01 13:34:03 -08:00
Christopher Jeffrey
c090793e79
hsk: rename to hsk.
2018-02-01 13:28:31 -08:00
Christopher Jeffrey
6e0d489aec
handshake: finish cleaning up bitcoin.
2018-01-02 20:24:56 -08:00
Christopher Jeffrey
da46526c18
workers: classify.
2017-11-16 20:26:28 -08:00
Christopher Jeffrey
c60b8ea125
refactor: switch to bio module.
2017-11-16 11:43:24 -08:00
Christopher Jeffrey
1b39abe157
bcoin: rename bufio and bstring.
2017-11-15 09:02:44 -08:00
Christopher Jeffrey
3ecc9829e3
utils: start using bbuf.
2017-10-30 21:29:49 -07:00
Christopher Jeffrey
4046202b3f
lint: minor.
2017-09-04 16:46:47 -07:00
Christopher Jeffrey
7e456595de
workers: minor.
2017-09-03 22:16:06 -07:00
Christopher Jeffrey
bc25bdb016
workers: drop all static methods for packets.
2017-09-02 21:09:22 -07:00
Christopher Jeffrey
d6ce66bce9
script: refactor script and stack mutation.
...
This allows more reasonable signing behavior and eliminates all polymorphism.
2017-08-24 17:34:20 -07:00
Christopher Jeffrey
411db44a76
workers: fix ErrorResultPacket.
2017-08-17 09:56:22 -07:00
Christopher Jeffrey
62152a1005
util: remove util.inherits. inline inheritance.
2017-08-06 19:45:10 -07:00
Christopher Jeffrey
a290e6880d
encoding: rename read int methods to readIx.
2017-08-06 03:27:06 -07:00
Christopher Jeffrey
88ef28d837
lint: no implicit casting.
2017-07-31 18:21:03 -07:00
Christopher Jeffrey
6ba8eb9951
eslint: more style rules.
2017-07-31 18:21:03 -07:00
Christopher Jeffrey
6f3988e861
refactor: use const as much as possible.
2017-07-31 18:21:02 -07:00
Christopher Jeffrey
9cc5c393b4
eslint: use prefer-const.
2017-07-31 18:21:02 -07:00
Christopher Jeffrey
498264b417
workers: better errors for verification.
2017-07-17 14:26:43 -07:00
Christopher Jeffrey
4ab48c5f54
workers: saner env sending.
2017-07-17 14:26:41 -07:00
Christopher Jeffrey
90f783fd05
workers: remove parser-client.
2017-07-17 14:26:40 -07:00
Christopher Jeffrey
3f3516ca18
coinview: remove old serialization methods.
2017-07-17 14:26:39 -07:00
Christopher Jeffrey
c53f4cf89e
refactor: switch to const/let.
2017-07-17 14:26:37 -07:00
Christopher Jeffrey
e00472891d
refactor: start using for...of.
2017-07-17 14:26:37 -07:00
Christopher Jeffrey
4e7df6ef87
docs: get jsdoc compiling again.
2017-02-03 22:47:26 -08:00
Christopher Jeffrey
dfefc7182f
serialization: more sizes.
2016-12-11 19:16:02 -08:00
Christopher Jeffrey
5e23b284a3
coinview: fix parsing.
2016-12-10 21:46:50 -08:00
Christopher Jeffrey
b77aa9240e
coins: refactor and comments.
2016-12-10 20:43:49 -08:00
Christopher Jeffrey
12b3274d33
refactor: pass coin viewpoints for every function requiring inputs.
2016-12-09 07:15:35 -08:00
Christopher Jeffrey
f7e50e3435
tx: pass coins into scripting system.
2016-12-06 17:37:35 -08:00
Christopher Jeffrey
a95aba92fb
serialization: less polymorphism.
2016-12-04 00:54:50 -08:00
Christopher Jeffrey
f2a9eb6538
workers: refactor logging.
2016-12-02 18:34:29 -08:00
Christopher Jeffrey
bdc7ec0198
worker: more refactoring.
2016-12-02 18:14:47 -08:00
Christopher Jeffrey
a4d30f00a8
workers: improve protocol.
2016-12-02 11:52:03 -08:00