Skip to main content

Function: calculatePersonalSignPrefix()

GalaChain core SDK 1.0.0-rc.8


GalaChain core SDK 1.0.0-rc.8 / index / calculatePersonalSignPrefix

Function: calculatePersonalSignPrefix()

calculatePersonalSignPrefix(message): string

Defined in: packages/gala-core-sdk/dist/index.d.ts:1538

The EIP-191 header for message: "\x19Ethereum Signed Message:\n" + the message's UTF-8 BYTE length. This is what a wallet's personal_sign prepends, and what the chain recomputes when it recovers a personal-signed DTO.

Parameters​

message​

string

Returns​

string