#95, #172: BBC: Arguments changes on 'Documents' constructors: Remove 'signature', introduce 'signing_key', make 'currency' and 'version' optionals
Break backward compatibilities!
- Remove useless
signature
argument fromDocuments.__init__()
- Rename
Identity(ts: BlockUID)
byIdentity(timestamp: BlockUID)
- Rename
- Refactor
Document.signatures
(List
) asDocument.signature
(str
)-
Transaction
can have multiplesignatures
, withTransaction.signatures
attribute andTransaction.multi_sign([keys])
method. - Move signatures verifications in the
Documents
classes
-
- Add optional
signing_key
argument in Document sub-classes - Refactor subclass
version
argument as optional withdefault=subclass.VERSION
- Set
time
argument optional inSimpleTransaction
- Refactor
Documents
currency
arguments as optional withdefault=constants.CURRENCY_CODENAME_G1
Close #95 (closed), #172 (closed).
Edited by Moul