-
Notifications
You must be signed in to change notification settings - Fork 57
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Enhancement feature - For discussion
- Raised by Aleix on slack
AggregatedCompleteTransaction
At the moment when issuing an Aggregated Complete Transaction, PublicAccount is used as a mandatory parameter on innerTx.toAggregate(..) for every inner transactions. Catapult server will validate cosignatories if multiple accounts (signers) provided in the inner transactions to make sure the AggregateCompleteTransaction isComplete. There could be potentially an enhancement to be created by making this parameter optional. So that the ACT Can/Only be signed by the issuer if other signers are unknown.
example:
const transferTransaction = TransferTransaction.create(
Deadline.create(),
recipient.address,
[NetworkCurrencyMosaic.createAbsolute(1)],
PlainMessage.create('test-message'),
NetworkType.MIJIN_TEST,
);
const aggregateTransaction = AggregateTransaction.createComplete(Deadline.create(),
[transferTransaction.toAggregate()],
NetworkType.MIJIN_TEST,
[],
);
const signedTransaction = aggregateTransaction.signWith(issuer, generationHash);- Node that the inner transaction's toAggregate method is taking zero parameter, so the only the issuer is needed to sign the ACT
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request