Skip to main content

index/functions/signChainDtoNative.md

signChainDtoNative(privateKey, serializedDto): string

GalaChain NATIVE signature over an already-serialized DTO: keccak256 of the exact bytes with no prefix and no envelope (wallet signChainDtoNative). The caller owns serialization, so the bytes a user reviewed and the bytes signed cannot diverge.

Parameters​

ParameterType
privateKeyPrivateKeyInput
serializedDtostring

Returns​

string

130 lowercase hex characters, r || s || v with v = 1b/1c, no 0x.