signerMatchesAddress

Checks if a signer matches a given Stellar address.

Useful for finding a specific delegated signer among a list of signers.

Return

true if the signer is a DelegatedSigner with the matching address

Example:

val matchingSigner = signers.find {
SmartAccountBuilders.signerMatchesAddress(it, walletAddress)
}

Parameters

signer

The signer to check

address

The Stellar address to match (G-address or C-address)