It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
AddLog(getHash(Encoding.ASCII.GetBytes("abcdef"))); // this works fine
var head = Utilities.getTestHeader(); // returning header as byte array with 80 bytes length
string res = getHash(head); // this gives a wrong hash
var headerByte = Encoding.ASCII.GetBytes("abcdef");// Utilities.getTestHeader();
var dataInfo = new byte[2];
dataInfo[0] = (byte)headerByte.Length;
dataInfo[1] = dataInfo[0];
var hashRest = new byte[32];
// buffers to store kernel output
var clBuffer0 = new ComputeBuffer(context, ComputeMemoryFlags.ReadWrite, dataInfo.Length);
var clBuffer1 = new ComputeBuffer(context, ComputeMemoryFlags.ReadWrite, headerByte.Length);
var clBuffer2 = new ComputeBuffer(context, ComputeMemoryFlags.ReadOnly, hashRest.Length);
queue.WriteToBuffer(dataInfo, clBuffer0, true, null);
queue.WriteToBuffer(headerByte, clBuffer1, true, null);
queue.WriteToBuffer(hashRest, clBuffer2, true, null);
var prog = new ComputeProgram(context, kernelcode);
try
{
prog.Build(new[] { device }, " -D WORKSIZE=1", null, userDataPtr);
}
catch (ComputeException)
{
AddLog(prog.GetBuildLog(device));
return;
}
var kernel = prog.CreateKernel("sha256");
kernel.SetMemoryArgument(0, clBuffer0);
kernel.SetMemoryArgument(1, clBuffer1);
kernel.SetMemoryArgument(2, clBuffer2);
queue.Finish();
queue.Execute(kernel, null, new long[] { 1 }, new long[] { 1 }, null);
var outp = new byte[hashRest.Length];
queue.ReadFromBuffer(clBuffer2, ref outp, true, null);
Encoding.ASCII.GetBytes("abcdef")