core tetra: refactor toSalt conversion to merge context data type