Skip to content

Adding aggregateTx_InnerTx.toAggregate() for single signer #185

@rg911

Description

@rg911

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 request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions