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

add_signature_or_message method for ProposedBundle #258

Merged
merged 1 commit into from
Nov 18, 2019

Conversation

lzpap
Copy link
Member

@lzpap lzpap commented Nov 1, 2019

Solves #253

Description

The method can insert custom messages or signatures into transactions in a ProposedBundle object.

Motivation

Ability to easily add custom messages to transactions after ProposedBundle creation.

Additional Info

The test file is formatted with 2 space indentation to make review easier. In a future PR old test files will be converted to use 4 space indentation as per PEP-8.

Copy link
Contributor

@todofixthis todofixthis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommending that this method not be callable after the bundle is finalised. Otherwise looks good w/ suggestions+questions.

iota/transaction/creation.py Outdated Show resolved Hide resolved
iota/transaction/creation.py Outdated Show resolved Hide resolved
iota/transaction/creation.py Outdated Show resolved Hide resolved
iota/transaction/creation.py Outdated Show resolved Hide resolved
iota/transaction/creation.py Outdated Show resolved Hide resolved
test/transaction/creation_test.py Outdated Show resolved Hide resolved
test/transaction/creation_test.py Outdated Show resolved Hide resolved
test/transaction/creation_test.py Outdated Show resolved Hide resolved
test/transaction/creation_test.py Outdated Show resolved Hide resolved
test/transaction/creation_test.py Outdated Show resolved Hide resolved
Copy link
Contributor

@todofixthis todofixthis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommending that this method not be callable after the bundle is finalised. Otherwise looks good w/ suggestions+questions.

@lzpap lzpap force-pushed the add_signature_or_message branch from d8843bf to 28f0586 Compare November 14, 2019 16:45
@lzpap
Copy link
Member Author

lzpap commented Nov 14, 2019

Thanks for the review @todofixthis, I implemented your suggested changes.

Copy link
Contributor

@todofixthis todofixthis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iota/transaction/creation.py Outdated Show resolved Hide resolved
The method can insert custom messages or signatures into
transactions in a ProposedBundle object. Must be called
before bundle is finalized.
@lzpap lzpap force-pushed the add_signature_or_message branch from 28f0586 to 22b4f46 Compare November 15, 2019 10:07
Copy link
Contributor

@todofixthis todofixthis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🎉

@lzpap lzpap merged commit f3d20c0 into iotaledger:develop Nov 18, 2019
@lzpap lzpap deleted the add_signature_or_message branch January 28, 2020 10:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants