provider.signMessage
ReservedRequest an identity signature from the Fiber node key. The contract is reserved, but current reference providers do not support it end to end.
Signature
function signMessage(message: string): Promise<{ signature: string; nodeId: string }>PERMISSION
Would require enable() and an explicit signing confirmation.
Parameters
NameTypeDescription
messagerequiredstringThe exact UTF-8 message the user is asked to sign.
Response
NameTypeDescription
signaturerequiredstringProvider-defined encoded signature.
nodeIdrequiredstringPublic node identity corresponding to the signing key.
Example
if (!fiber.signMessage) {
throw new UnsupportedMethodError("Signing is unavailable");
}
const signed = await fiber.signMessage("Sign in to example.app");Provider behavior
W
WASM node
fiber-js 0.9.0-rc7 exposes no node message-signing RPC, so the reference provider returns an unsupported error.
R
Remote fnn
The remote-fnn reference provider does not currently route signMessage to fnn.
Notes
- Apps must capability-check optional methods before presenting signing UI.