evm_signextend
Implements EVM SIGNEXTEND. Byte k is indexed from the least significant byte; bit 8*k+7 is copied through all higher bits. SQL BIGINT k values below 0 or at least 31 return the unchanged UINT256 word. NULL input propagates to NULL.
Example
Runs locally
{"id":"sample_t36qny","title":"Sample"}
API reference
evm_signextend(BIGINT, UINT256) #
Sign-extends the low k+1 bytes of a UINT256 EVM word.