Skip to content

Commit beebcdf

Browse files
AnsonhkgCopilot
andauthored
Update docs/sdk/auth-context-consumption/pkp-sign.mdx
Co-authored-by: Copilot <[email protected]> Signed-off-by: Anson <[email protected]>
1 parent d2ff969 commit beebcdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/sdk/auth-context-consumption/pkp-sign.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const signatures = await litClient.chain.raw.pkpSign({
3333

3434
### Hashing defaults and bypass
3535

36-
By default the network hashes ECDSA payloads for you using the canonical function for each chain (Ethereum → keccak256, Bitcoin/Cosmos → SHA-256/SHA-384) before the nodes sign anything. Schnorr/EdDSA schemes receive the raw bytes exactly as you provided them. If you already computed a digest (for example when signing EIP-712 typed data) you can pass it directly and opt out of the SDK hashing step by setting `bypassAutoHashing: true`:
36+
By default the SDK hashes ECDSA payloads for you using the canonical function for each chain (Ethereum → keccak256, Bitcoin/Cosmos → SHA-256/SHA-384) before sending to the nodes for signing. Schnorr/EdDSA schemes receive the raw bytes exactly as you provided them. If you already computed a digest (for example when signing EIP-712 typed data) you can pass it directly and opt out of the SDK hashing step by setting `bypassAutoHashing: true`:
3737

3838
```ts
3939
const digestBytes = hexToBytes(hashTypedData(typedData));

0 commit comments

Comments
 (0)