diff --git a/recipes/server-wallets/alchemy-smart-wallets.mdx b/recipes/server-wallets/alchemy-smart-wallets.mdx index 68d3ce6..71a5a82 100644 --- a/recipes/server-wallets/alchemy-smart-wallets.mdx +++ b/recipes/server-wallets/alchemy-smart-wallets.mdx @@ -395,7 +395,7 @@ Since the private key lives inside Magic's TEE (Trusted Execution Environment), | Endpoint | Purpose | |----------|---------| | `POST /v1/wallet` | Get or create an EOA wallet | -| `POST /v1/wallet/sign/data` | Sign a raw hash (used for EIP-191 and EIP-712) | +| `POST /v1/wallet/sign/data` | Sign a hash, sent with its message or typed data as `transaction_data` (used for EIP-191 and EIP-712) | | `POST /v1/wallet/sign/eip7702` | Sign an EIP-7702 authorization | *** diff --git a/uoa/api-reference/wallet-operations.mdx b/uoa/api-reference/wallet-operations.mdx index ca1ea15..2400c18 100644 --- a/uoa/api-reference/wallet-operations.mdx +++ b/uoa/api-reference/wallet-operations.mdx @@ -44,16 +44,12 @@ curl -X POST 'https://uoa-server.magic.xyz/wallet/sign' \ ### Request Parameters - -A `0x`-prefixed hex hash to sign directly. Provide either this or `message`. - - - -A plain text message to hash (keccak256) and sign. Provide either this or `raw_data_hash`. + +A plain text message to sign. It is signed as an EIP-191 (`personal_sign`) message over its UTF-8 bytes, so you can verify it with standard tools such as ethers' `verifyMessage`. -You must provide `raw_data_hash` or `message`. If both are provided, `raw_data_hash` is signed. +Signing a bare hash is not supported. A request with `raw_data_hash` and no `message` returns `400`. ### Response Fields @@ -67,7 +63,7 @@ The hex-encoded signature. -The hash that was signed. +The EIP-191 hash of `message` that was signed.