In EOS a signature consists of the 'SIG' prefix, follwing the part that defines which curve algorithm was used (R1 or K1), follwing the SHA256 hash encoded with base58.
Take a look at https://github.com/EOSIO/eosjs-ecc, it contains all the neccessary cryptographic functions you need.