Questions tagged [hash]
The hash tag has no usage guidance.
15
questions
8
votes
2
answers
1k
views
What block hash function and transaction signature method does EOS use?
What hash function does EOS use for creating a block. Is it SHA-256?
In addition, what procedure for signing a transaction is used? RSA?
5
votes
2
answers
174
views
Is the block digest c++ specific?
I'm not sure how to write this block header digest/hash generation in another language then C(++). Is this even possible without a lot of hacking?
If so: Could a language-neutral format for the ...
3
votes
1
answer
577
views
Is there a way to print checksum256 variable?
Is there a way to print checksum256 variable?
Like:
checksum256 hash;
print(hash);
3
votes
1
answer
853
views
Transaction id is a hash of what?
https://eosio-cpp.readme.io/docs/communication-model states:
On completion of the transaction, a transaction receipt is generated.
This receipt takes the form a hash.
The transaction receipt is ...
3
votes
1
answer
186
views
SHA3 in eos contract
How can I use sha3(keccak) hash in eos contract? There is a sh3 implementation in cpp-ethereum. Can I copy the sha3 file to my smart contract?
2
votes
1
answer
204
views
IPFS Hash Storage In RAM Cost/Hash Question
According to this, an IPFS hash can be represented with 32 bytes.
Would these hashes need to be stored in RAM?
If so, is it limited to 1 file stored per hash?
Would it be ~$0.20/hash to store in ...
1
vote
1
answer
428
views
Trying to pass a sha256 hash to my contract and store it
I'm new to the EOS platform.
For my use case I'm trying to pass a sha256 hash to a function in my contract and store it in a table which is indexed by that hash.
I've realized you can't have the ...
1
vote
1
answer
243
views
eosjs ecc sha256 produce different hash than the EOS cpp sha256
I should compare two hashes and the scenario is the following:
I create a new record in the contract as I pass eosjs-ecc sha256 generated hash as string. Let name it hashA.
When I want to update the ...
1
vote
2
answers
196
views
How does EOS address its Smart Contracts?
Ethereum (for comparison purposes only), uses the address of the creator, the nonce, which is keccak (does EOS use this type of hashing?) hashed with the senders address(roughly- see related question ...
1
vote
1
answer
81
views
How to check number of std::hash locally?
I can not reproduce hash number of these code at local neither at ubuntu or mac environment.
Can anyone tell me how to write a local code that can reproduce the hash result.
Below is the code
hash ...
1
vote
1
answer
144
views
What does the EOS block id consist of and can you predict the id
What does the EOS block id consist of and can you predict the id of the blocks that will come out in the future?
After looking at the EOS block id, there were certain rules up to the first 7 digits, ...
1
vote
0
answers
76
views
Multiple transaction hash collisions on mainnet
There are currently multiple transaction hash collisions in consecutive blocks in EOS as noted below:
7dcdcdb558028c7703faddee96e1aa48e9bbe7cd3a07cd0a74513a3599185b40 at block 10712420 and 10712421
...
1
vote
0
answers
41
views
unordered map in eosio-cpp
I want to have an unordered_map inside a table so that I can have O(1) entry and retrieval. Can someone please link me to a snippet which implements that? I am new to cpp.
0
votes
1
answer
318
views
Convert type string to type checksum256
fist off let me get this strait, yes I know the dangers of memo parsing, yes I am aware of the vulnerabilities that can be created from doing such a process, so please there is no need to lecture me ...
0
votes
1
answer
42
views
How are block hashes generated
I was wondering how the future block hashes are generated. Is this fully random or could this be influenced by someone?