Commit Graph

12 Commits

Author SHA1 Message Date
Olaoluwa Osuntokun 868ac0aca0 revocation: switch to tadge's bit-shifting to figure out log2 instead of using math 2015-12-23 12:12:53 -06:00
Tadge Dryja fbc5f37d0b remove dependencies on mathematics 2015-12-21 22:36:28 -05:00
Olaoluwa Osuntokun 06bad8ba42 revocation: fix integer underflow infinite loop bug in sha chain
* `i := toDerive - 1` created an unsigned integer, the last loop
iteration subtracted from zero causing this to underflow creating an
infinite loop
* Instead, initialized `i` as an int, and cast to uint as needed
2015-12-21 15:47:36 -06:00
Olaoluwa Osuntokun d7fba0e89d revocation: fix nil pointer panic in shachain constructor 2015-12-21 15:41:23 -06:00
Olaoluwa Osuntokun 422f0a9791 revocation: split up methods to get current pre-image and hash 2015-12-20 21:46:41 -06:00
Olaoluwa Osuntokun a83dac4e86 revocation: skeleton for possibly needed method? 2015-12-16 22:56:11 -06:00
Olaoluwa Osuntokun 139e63c9cf shachain: constructors for remote vs origin 2015-12-16 18:42:07 -06:00
Olaoluwa Osuntokun ce42741daa First stab at shachain. Untested. Still doin't really get it... 2015-12-16 18:36:03 -06:00
Olaoluwa Osuntokun 147748d178 rename wallet to lnwallet 2015-12-16 14:51:59 -06:00
Olaoluwa Osuntokun 9de294c31f add link to explanation 2015-12-16 14:49:01 -06:00
Olaoluwa Osuntokun 69936d694c revocation: HyperShaChan sounds cooler... 2015-12-16 14:43:59 -06:00
Olaoluwa Osuntokun 07984836e4 Create skeleton for revocation methods
* Just rusty’s shachain for now
2015-12-16 14:39:05 -06:00