Add Stellar address link to README - #120
Conversation
Added a link to a Stellar address in the README.
|
🤖 Automated message from Kaan's Automated Triage Bot. 👀 Picked this up — a review will follow shortly. |
There was a problem hiding this comment.
Pull request overview
Adds a Stellar account link to the repository documentation.
Changes:
- Adds a Blockchair URL for a Stellar address.
- The address conflicts with the public key in the PR description.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| --- | ||
|
|
||
| > **Note:** This repository is not in scope for the Stellar Development Foundation bug bounty program. Vulnerabilities found in this repo are not eligible for rewards. | ||
| https://blockchair.com/stellar/address/GCWZQFFE2PU76RPJQ6HU3Z7N5TAPLKQCL6TELGB7USQUQTFGSQSOIVML |
|
🤖 Automated message from Kaan's Automated Triage Bot. Thanks for the PR. The key handling in your description is good practice: you read the secret from an environment variable and check it against the expected public key. This PR has the same one-line diff as #119 and #118. I cannot merge it, and a maintainer must decide it. My findings:
Please also close two of the three PRs and keep one. If you want a donation or funding address here, tell us in the README text whose account it is and what it is for. A @kaankacar this one needs your call. |
Added a link to a Stellar address in the README.import os
from stellar_sdk import Keypair
PUBLIC_KEY = "GDBJKQVLJFJJY2M4OUX563X5FSOOI3FS7DDPDM7TISC3ZBDRE67CFTWG"
Store the secret key in an environment variable instead of source code.
SECRET_KEY = os.environ.get("STELLAR_SECRET_KEY")
if not SECRET_KEY:
raise RuntimeError("STELLAR_SECRET_KEY is not set")
keypair = Keypair.from_secret(SECRET_KEY)
Verify that the secret corresponds to the expected public account.
if keypair.public_key != PUBLIC_KEY:
raise ValueError("Secret key does not match the expected Stellar public key")
print("Stellar account:", keypair.public_key)
print("Key verified successfully.")