signature/gen_sign library