SigningDriverMessageSigner

signMessage backed by a SigningDriver.

The signature is over DappSignMessage.signingBytes — the message behind a fixed domain-separation prefix — not the raw message, so a signMessage signature can never be mistaken for a signature over a transaction hash the same key also produces. The signature is returned base64-encoded in the driver's native format (DER for ECDSA, raw for Ed25519). A dApp verifying it must reconstruct the same signing bytes; see the sign-in reference example.

DappSession additionally gates every call behind user approval and a rate limit.

Constructors

Link copied to clipboard
constructor(signer: SigningDriver)

Functions

Link copied to clipboard
open suspend override fun sign(account: DappWallet, message: String): String

Returns the signature, encoded however the wallet and its verifiers agree — this SDK does not impose a format because CIP-0103 does not.