Fix const/ptr warnings
add signing operations