OZExternalSigner

public struct OZExternalSigner : OZSmartAccountSigner, Equatable, Hashable

A signer that delegates signature verification to a custom verifier contract.

External signers point at a verifier contract (C… strkey) and carry the public-key bytes (and any auxiliary authentication data) the verifier needs. This enables non-native signature schemes such as WebAuthn (secp256r1) and Ed25519 to drive Smart Account authorization.

Use the webAuthn and ed25519 factory methods for the two well-known schemes; the raw initializer is available when integrating with a custom verifier.

Example:

let webAuthn = try OZExternalSigner.webAuthn(
    verifierAddress: "CBCD1234...",
    publicKey: secp256r1PublicKey,
    credentialId: credentialId
)
let ed25519 = try OZExternalSigner.ed25519(
    verifierAddress: "CDEF5678...",
    publicKey: ed25519PublicKey
)