Create a new empty ZswapLocalState.
Restore ZswapLocalState from serialized hex string.
Free a native state pointer directly (for ZswapTransferBuilder cleanup).