You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once a signature has been added via addSignature, there is no convenience method to remove the signature.
Removing signatures is helpful when a transaction has a signing account that has a large keylist with many thresholds. If all signatures added to the transaction result in a transaction too large to submit, then only the minimum number of signatures required to make the transaction valid should be added to the transaction.
Also, if a signature is added, the owner of the key might decide to revoke the signature. Without recreating the transaction and re adding all the signatures, this is not possible.
Solution
Add removeSignature(publicKey/signature) method
Add clearSignatures() method
These two convenience methods will be helpful to remove signatures as needed.
Alternatives
No response
The text was updated successfully, but these errors were encountered:
Problem
Once a signature has been added via addSignature, there is no convenience method to remove the signature.
Removing signatures is helpful when a transaction has a signing account that has a large keylist with many thresholds. If all signatures added to the transaction result in a transaction too large to submit, then only the minimum number of signatures required to make the transaction valid should be added to the transaction.
Also, if a signature is added, the owner of the key might decide to revoke the signature. Without recreating the transaction and re adding all the signatures, this is not possible.
Solution
These two convenience methods will be helpful to remove signatures as needed.
Alternatives
No response
The text was updated successfully, but these errors were encountered: