Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Add hash argument to Transaction.from_tryte_string #42

@todofixthis

Description

@todofixthis

The testnet IRI provides an --export setting which enables users to download raw trytes along with the corresponding transaction hashes.

When loading these values into PyOTA using Transaction.from_tryte_string, it is not necessary for PyOTA to recompute the transaction hash, since the user will be able to provide the corresponding hash.

Modify the signature of Transaction.from_tryte_string to include an optional hash argument:

  • If null, compute the transaction hash like normal.
  • If not null, use that as the transaction hash and skip curl.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions