[bitcoin-dev] Secure Proof Of Stake implementation on Bitcoin

2019-07-16 Thread Kenshiro [] via bitcoin-dev
Hi,


After studying several Proof of Stake implementations I think it's not only an 
eco-friendly (and more ethical) alternative to Proof of Work, but correctly 
implemented could be 100% secure against all 51% history rewrite attacks. Over 
a "standard" PoS protocol like PoS v3.0, only 2 extra improvements are required:


- Hardcoded checkpoints: each Bitcoin Core release (each few months) should 
include a hardcoded checkpoint with the hash of the current block height in 
that moment. This simple measure protects the blockchain up to the last 
checkpoint, and prevents any Long-Range attack.


- Moving checkpoints: the nodes only allow chain reorgs not deeper than N 
blocks. If N is 10 blocks, then the nodes ignore any hard fork starting at any 
block under nodeBlockHeight - N. This fully protects nodes that are online and 
updated. Nodes that are not fully updated need some extra rule to be protected 
between the last hardcoded checkpoint and the current blockchain height. This 
extra rule could be connecting to a block explorer to download the hash of the 
current block height, or ask some trusted source like a friend and enter the 
hash manually. After being fully updated, the user can always check that he is 
in the correct chain checking with a block explorer.


Someone could have 99% of the coins and still would be unable to use the coins 
to do any history rewrite attack. The attacker could only slow down the network 
not creating his blocks, or censor transactions in his blocks.


What do you think? :)


Regards

___
bitcoin-dev mailing list
bitcoin-dev@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev


[bitcoin-dev] Discover and move your coins by yourself

2019-07-16 Thread Aymeric Vitte via bitcoin-dev


Please see https://github.com/Ayms/bitcoin-transactions this is a merge
of former bitcoin-transactions and bitcoin-wallets nodejs modules with
additional features to be implemented as described in the README

It is financed by NLnet via EU Horizon 2020 Next Generation Internet
Search and Discovery call

So the initial dev fees have been removed and the code is now open
source and provided in clear under a MIT license

The intent is to provide all the necessary tools for anybody to discover
and manage their coins, as well as making transactions by themselves,
without having to sync a full node or as an alternative to wallets when
people don't understand where their coins are (we saw quite a lot of
confusion for people not understanding at all how to find their coins
and to what keys their addresses did relate in case of multisig, segwit
and now bech32)

It's somewhere bitcoin-cli outside of bitcoin core more easy to use and
not restricted to its own wallet, available for any bitcoin based coins

At the end it will be a secure standalone offline js webapp inside
browsers (like https://peersm.com/wallet but the app does not reflect
the current state of the nodejs repo)

It's not a remake of iancoleman's tool but of course some features
overlap, as well as for other existing tools, we will also extend all of
this inside one tool with no limitations (for example some tools do not
accept "invalid" bip39 seeds, or bip32 seeds, etc)

Comments/suggestions welcome

PS: initially sent to bitcoin-discuss but the list seems to be dead

-- 
Move your coins by yourself (browser version): https://peersm.com/wallet
Bitcoin transactions made simple: https://github.com/Ayms/bitcoin-transactions
Zcash wallets made simple: https://github.com/Ayms/zcash-wallets
Bitcoin wallets made simple: https://github.com/Ayms/bitcoin-wallets
Get the torrent dynamic blocklist: http://peersm.com/getblocklist
Check the 10 M passwords list: http://peersm.com/findmyass
Anti-spies and private torrents, dynamic blocklist: http://torrent-live.org
Peersm : http://www.peersm.com
torrent-live: https://github.com/Ayms/torrent-live
node-Tor : https://www.github.com/Ayms/node-Tor
GitHub : https://www.github.com/Ayms

___
bitcoin-dev mailing list
bitcoin-dev@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev