Skip to content

crypto.py cannot use function derivation_to_scalar from hex string #2

@MatthewCroughan

Description

@MatthewCroughan
>>> transactions.generate_genesis_tx('913236fa901190aabc584ba9007093f88f31621be1f531ab8a24c76857045a00','1ec6171d5813923bc87036c5a08df894f2eed2e5609241cdfb0a5e905ba15e08','61043c1c2512280bba09e8057d4e08619ef7ba80af41569a29062bb667d76d99', 10*10**12)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "monerolib/transactions.py", line 24, in generate_genesis_tx
    vout_key = stealth_address.derive_public_key(key_derivation, "00", spend_key)
  File "monerolib/stealth_address.py", line 7, in derive_public_key
    scalar = crypto.derivation_to_scalar(derivation, index)
  File "monerolib/crypto.py", line 60, in derivation_to_scalar
    buf = struct.pack("64sL", derivation, index)
struct.error: cannot convert argument to integer

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