cosign and cosigned API