Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [hash]

The tag has no usage guidance.

0
votes
0answers
19 views

How large should the 'secrets' be when doing random number generation on a smart contract?

I am trying to implement an RNG system like the following, with the hash as a SHA-1 function: Randomness without risk of anyone "knowing" it requires a three step process: both parties ...
1
vote
1answer
78 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
1answer
46 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
1answer
230 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
2answers
88 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 ...
3
votes
1answer
337 views

Is there a way to print checksum256 variable?

Is there a way to print checksum256 variable? Like: checksum256 hash; print(hash);
3
votes
1answer
515 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 ...
2
votes
1answer
149 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 ...
3
votes
1answer
135 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?
5
votes
2answers
780 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?
4
votes
1answer
114 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 ...