Skip to content

Make FlashUser and FlashState objects (py27) #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions iota/flash/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from iota.commands import discover_commands
from iota.crypto.types import Digest
from iota.flash.commands.create_transaction import CreateFlashTransactionCommand
from iota.flash.commands.multisig.compose_address import ComposeAddressNodeCommand
from iota.flash.commands.multisig.compose_address_node import ComposeAddressNodeCommand
from iota.flash.types import FlashUser
from iota.multisig import MultisigIota

Expand Down Expand Up @@ -56,7 +56,7 @@ def create_flash_transaction(self, user, transactions, close=False):
"""

:param user: Flash object of user storing relevant metadata of the channel
:param transactions: list of transaction, wnich should be executed
:param transactions: list of transaction, which should be executed
:param close: Flag indicating a closing of the channel
:return:
Dict with the following items::
Expand Down
4 changes: 2 additions & 2 deletions iota/flash/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from iota.crypto.types import Seed, Digest


class FlashUser:
class FlashUser(object):
"""
Object representing a user withing a Flash channel
"""
Expand All @@ -25,7 +25,7 @@ def __init__(self, user_index, seed, index, security, depth, flash):
self.partial_digests = [] # type: List[Digest]


class FlashState:
class FlashState(object):
"""
Object storing information of the current state of the channel
"""
Expand Down