Bitcoin Forum
August 26, 2024, 04:46:36 AM *
News: All versions of Windows are affected by a critical security bug; make sure you update.
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Alternate cryptocurrencies / Altcoin Discussion / Is a new cryptocurrency with SMS verification before transfer valuable? on: June 03, 2018, 01:54:07 PM
hi all


I was stolen all my ETH in my wallet after submitting Keystore file to a phishing website carelessly. So I has an idea of a SAFER cryptocurrency.

It has following features:
1) Only trusted receiver address is permitted.
2) Phone SMS verification needed when adding trusted receiver address
Thus even private key is leaked , scammer cannot transfer coin to his address.

Sample contract code maybe:
Code:
function transfer(address _to, uint _value) returns (bool) {
        if(_to not in TRUSTED_ADDRSSES) {   #Check _to is in trusted addresses or not
             return false
        }
        if (balances[msg.sender] >= _value && balances[_to] + _value >= balances[_to]) {
            balances[msg.sender] -= _value;
            balances[_to] += _value;
            Transfer(msg.sender, _to, _value);
            return true;
        } else { return false; }
    }

Look forward to your opinions or advise.  Thank you
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!