stellar-lib icon indicating copy to clipboard operation
stellar-lib copied to clipboard

Sample for signing initiated in a browser?

Open DaveAppleton opened this issue 11 years ago • 1 comments

According to the description and all the API notes, it should be trivial to use a web page to sign a transaction without sending ANYTHING to a server using stellar-lib.

However, it is made non trivial because we really don't have a clue where to start.

Is it possible to create a demonstration of this with notes as to how to use it, for example, in a mobile app?

DaveAppleton avatar Nov 13 '14 15:11 DaveAppleton

@DaveAppleton The root readme contains Quickstart sample that shows an example of explicitly configuring stellar-lib to sign locally: https://github.com/stellar/stellar-lib#quickstart

Sending secrets to a remote server is generally not recommended unless it is your own server and you are doing it securely (local network, encrypted tunnel).

The options actually default local_signing to true and trusted to false, so you won't actually send your secret unless you explicitly change both of these values: https://github.com/stellar/stellar-lib/blob/master/src/js/ripple/remote.js#L87

Documentation for submitting a payment to the network: https://github.com/stellar/stellar-lib/blob/master/docs/GUIDES.md#3-submitting-a-payment-to-the-network

Let me know if you have any questions.

deckar01 avatar Nov 18 '14 01:11 deckar01