I want to integrate stellar with a Salesforce application. and I am stuck at generating a public key and secret key. I am a little confused regarding SDKs, how can I use an SDK in the apex? Can I store in static resources?
Since there is no existing SDK for Apex, by far the easiest way to get this to work is to use an external service that can create keys and perform the work you want to be triggered by Salesforce via an Apex Callout.
For an example:
Create a web service in Python that uses the Python SDK and exposes an HTTP endpoint called
/generate-keythat returns a new public and private key in a JSON response.
Make a call from Apex for that, and store those keys where makes sense.
It is noteworthy that storing private keys on SFDC's cloud does mean they'll have access to your account, and it might be better for your web service to handle the Stellar side of things, and just use SFDC for various triggers when it makes sense to do so in order to be more secure.