Skip to content

Keccak isn't working #5

@thaistick

Description

@thaistick

Hi

I can make all other algo to work to generate genesis hash.
But can't make keccak256 to work.

Having this result :

$ python gen.py -a keccak -t 1517542208 -z "Don't work for weekends, work for our goals - 18/Jan/2018." -p "04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f"
04ffff001d01043a446f6e277420776f726b20666f72207765656b656e64732c20776f726b20666f72206f757220676f616c73202d2031382f4a616e2f323031382e
algorithm: keccak
merkle hash: 77fc7d6cfbc4ec91703444a515955092d4b7c04dbb8f23be59deb42a39ec0057
pszTimestamp: Don't work for weekends, work for our goals - 18/Jan/2018.
pubkey: 04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f
time: 1517542208
bits: 0x1e0ffff0
Searching for genesis hash...
Traceback (most recent call last):
  File "gen.py", line 261, in <module>
    main()
  File "gen.py", line 23, in main
    genesis_hash, nonce = generate_hash(block_header, algorithm, options.nonce, options.bits)
  File "gen.py", line 134, in generate_hash
    header_hash = generate_hashes_from_block(data_block, algorithm)
  File "gen.py", line 207, in generate_hashes_from_block
    return mixhash.Keccak(data_block)[::-1]
  File "/usr/local/lib/python2.7/dist-packages/mixhash/__init__.py", line 21, in Keccak
    return keccak_hash.getPoWHash(x, len(x))
TypeError: function takes exactly 1 argument (2 given)

Can you help to fix that please, that would help a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions