upsert Signer
fun upsertSigner(payload: SmartAccountAuthPayload, signer: SmartAccountSigner, signatureBytes: ByteArray)
Upserts a signer entry in the payload.
If a signer matching signer already exists (using SmartAccountBuilders.signersEqual), the old entry is removed before adding the new one.
Parameters
payload
The payload to update (mutated in place).
signer
The signer to add or replace.
signature Bytes
The double-XDR-encoded signature bytes to associate with the signer.