Sample for signing initiated in a browser?
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 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.