Convert Function to PHP
$40 USD
货到付款
Your job is to convert the follwing function into PHP which means: You have to write a function in PHP which returns exactly the same results as the following code:
CODE:
function getAllowedTime(string unhashedName) constant returns (uint timestamp)
{
bytes32 hash = sha3(unhashedName);
return registryStarted + (launchLength*(uint(_hash)>>128)>>128);
}
DESCRIPTION OF THE CODE:
We hash the name using keccak256, and express the result as an integer between 0 and 1. Then, we multiply that by the duration of the launch period (8 weeks) and add that to the start date (May 4th 2017 1100 UTC) to generate the time at which that name can first be auctioned.
EXAMPLE:
At current UTC Time 2017-05-07 16:10 for this name "testname" it must return: 2017-05-22 21:40
项目ID: #13958619
关于项目
授予:
Hello. I have much experience in conmverting code from one programming language to another programming language. Also, I have experience with porting similar code to PHP (with shifts and bit arithmetic)
有10名威客正在参与此工作的竞标,均价$42/小时
hey, I have good knowledge in below mentioned skills by you. I also have some certifications in php. I can share some of demos with you if you want for better understanding. Currently I'm working on a banking project i 更多
We are Expert In : PHP, Mysql, Laravel, Wordpress, Symfony, SugarCRM, suiteCRM, codeigniter, Prestashop,HTML, Bootstrap, CSS, PSD to HTML We are not just looking for money OR one project, as we firmly believe in long 更多