Skip to content

TxnGroup.sign_with_private_key should raise an error if the address is not one of the senders #43

@fergalwalsh

Description

@fergalwalsh

def sign_with_private_key(self, address, private_key):

If the address is not one of the senders we should raise an error.
This has tripped up some people who were passing a different address to the one used to generate the transactions but didn't get any error.

PS. Don't be tempted to refactor this to require only a private key and derive the address from that - that won't work for rekeyed accounts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions