I have created a wallet on the bitgo platform and in response I get the private and public keys.
I wanted to use them for signing some data in node.js using the private key and verify it using the public key that we got from above.
I see that we can use crypto.createSign method for creating the signature and crypto.createVerify to verify the signature using the respective keys. I was able to perform signing and verifying using -
Test keys that I created using Bitgo -
Bitgo Keys:
Private key:
xprv9s21ZrQH143K2SiPk3UYw24a2d5ZVey4g9mKB58at9vuXbsPmGxzQWzFJQRcaTHhbyNzyt33uRaXmuXopv1Faep4rrL1qHdmWGrwfj2sUHr
Public key:
xpub661MyMwAqRbcEvnrr51ZJA1Jaev3u7gv3NguyTYCSVTtQQCYJpHExKJj9fiPM9EELJcGaxV8vFiwJTJuM4F5HoSJXVM4nrVFcWDki7gzmcr
I want to use the bitgo private and public keys to do the same.
My knowledge is very limited in cryptography but I am guessing that I have to convert bitgo keys in some format that I can use for signing and verification.
Can someone please help me?
Thanks!