This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.4; | |
contract Token { | |
/// @return total amount of tokens | |
function totalSupply() constant returns (uint256 supply) {} | |
/// @param _owner The address from which the balance will be retrieved | |
/// @return The balance | |
function balanceOf(address _owner) constant returns (uint256 balance) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* =============Copyright 2018 Siemens Mobility Ltd======== | |
* | |
* Author: Patrick Lismore - [email protected] | |
* | |
* =============Mobility Smart Contract==================== | |
* | |
* Incentivised commuter Journeys via Smart Contract | |
* & Cryptocurrency | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.0; | |
contract AudioAuthenticity { | |
string constant wavehash = "dea7db275ee984f7f4bf0e2b5ba77aa428e780ca5fda49435960c7fef1b4b94b"; | |
string constant mp3hash = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; | |
function checkMp3VersionHash(string hashInput)public returns(bool){ | |
bool result = compareHashes(hashInput, mp3hash); | |
return result; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#The NODEJS on Kali 2.0 gives issues when trying to install Yeoman for buliding ASP.NET 5 | |
# | |
# You may see output in the console like this | |
# root@kalilinux:~# npm install -g yo bower grunt-cli gulp | |
# npm WARN engine [email protected]: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) | |
# correct nodejs with right version on Kali Linux 2.0 | |
sudo apt-get install -y curl | |
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash - |