-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add backend server for sep-10 client attribution
- Loading branch information
Showing
22 changed files
with
482 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Stellar Demo Wallet Server | ||
|
||
This Stellar Demo Wallet is the backend to the demo wallet, currently it is only used to host | ||
the stellar.toml file and also sign requests to enable ([SEP-10]) client attribution. During | ||
the signing phase of the SEP-10 flow, the wallet client will make a request to the backend server | ||
to have the backend server sign the challenge that was issued by the anchor server. The wallet client | ||
will then sign the same request with the user's key before sending the challenge back to the anchor | ||
server for verification. | ||
|
||
|
||
### Running the Demo Wallet Server | ||
1. Create a keypair on the Stellar network (you can use the demo wallet for this). | ||
Thekeypair will be used for the Demo Wallet Server | ||
This comment has been minimized.
Sorry, something went wrong. |
||
2. Create a .env file in the package/demo-wallet-server directory. | ||
``` | ||
SERVER_PORT = 7000 | ||
SERVER_SIGNING_KEY = <private signing key generated in step 1> | ||
``` | ||
3. Modify the *stellar.toml* file in *package/demo-wallet-server/src/static/well_known* | ||
Replace the **SIGNING_KEY** with the public key that was generated in step 1 | ||
4. Run the server | ||
``` | ||
yarn start:server | ||
``` | ||
|
||
### Helpful links | ||
|
||
- [https://www.stellar.org/developers](https://www.stellar.org/developers) | ||
- [https://stellar.github.io/js-stellar-sdk/](https://stellar.github.io/js-stellar-sdk/) | ||
- [https://github.com/stellar/js-stellar-sdk](https://github.com/stellar/js-stellar-sdk) | ||
|
||
[sep-10]: | ||
https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0010.md | ||
|
||
|
Oops, something went wrong.
Typo in
thats