Make Transaction multi-sign by default
-
Store
SigningKey
andSignature
arguments/attributes inList
s -
Overwrite
Document.{sign(),check_signature()}
as undefined
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Moul added D: Transfer Feature labels
added D: Transfer Feature labels
- Moul mentioned in merge request !144 (merged)
mentioned in merge request !144 (merged)
- Owner
There is a typo here:
List[SigningKey] = None
should be:
Optional[List[SigningKey]] = None
If
signing_keys
is not a list, you can not sign anything as it isNone
. - Moul changed title from Introduce Transaction multi-sign feature in the consturctor to Introduce Transaction multi-sign feature in the constructor
changed title from Introduce Transaction multi-sign feature in the consturctor to Introduce Transaction multi-sign feature in the constructor
- Moul changed the description
changed the description
- Moul changed the description
changed the description
- Moul changed title from Introduce Transaction multi-sign feature in the constructor to Make Transaction multi-sign by default
changed title from Introduce Transaction multi-sign feature in the constructor to Make Transaction multi-sign by default
- Moul changed the description
changed the description
- Moul mentioned in merge request !150 (merged)
mentioned in merge request !150 (merged)
- Owner
Ok, to support multi-sign in the constructor, but it must not get in the way of single signature.
I don't want the user to be forced to give a list for everyday use case where a single SigningKey only is needed. It is not KISS.
Transaction.__init__(signing_keys: Optional[Union[SigningKey, List[SigningKey]] = None)
is what I want.
Please write this argument, as it will appear in the constructor, in the issue description.
Can you check !150 (merged). I added a commit.
I am not a big fan of handling two types: the list of instance and the instance. It makes more cases to handle and to test. More cases means more bugs. On the other hand, it makes it more convenient to be able to pass a single or multiple instances.
- Owner
Fine! Great job in the last commit! I have just commented on the constructor as it seems type casting to list is useless for multi_sign now.
- Moul closed with merge request !150 (merged)
closed with merge request !150 (merged)
- Vincent Texier mentioned in commit 04ecedc2
mentioned in commit 04ecedc2