@@ -95,6 +95,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
9595
9696## Raw Transaction
9797
98+ The sample private key below is a public test-only readonly key. Never fund it.
99+
98100``` rust
99101use aelf_sdk :: proto :: token :: TransferInput ;
100102use aelf_sdk :: {AElfClient , ClientConfig , Wallet , decode_address};
@@ -103,6 +105,7 @@ use prost::Message;
103105#[tokio:: main]
104106async fn main () -> Result <(), Box <dyn std :: error :: Error >> {
105107 let client = AElfClient :: new (ClientConfig :: new (" http://127.0.0.1:8000" ))? ;
108+ // Public test-only readonly key. Never fund it.
106109 let wallet = Wallet :: from_private_key (
107110 " 0000000000000000000000000000000000000000000000000000000000000001" ,
108111 )? ;
@@ -138,13 +141,16 @@ Public-node note:
138141
139142## Typed Contracts
140143
144+ The sample private key below is a public test-only readonly key. Never fund it.
145+
141146``` rust
142147use aelf_sdk :: proto :: token :: GetBalanceInput ;
143148use aelf_sdk :: {AElfClient , ClientConfig , Wallet , address_to_pb};
144149
145150#[tokio:: main]
146151async fn main () -> Result <(), Box <dyn std :: error :: Error >> {
147152 let client = AElfClient :: new (ClientConfig :: new (" http://127.0.0.1:8000" ))? ;
153+ // Public test-only readonly key. Never fund it.
148154 let wallet = Wallet :: from_private_key (
149155 " 0000000000000000000000000000000000000000000000000000000000000001" ,
150156 )? ;
@@ -164,13 +170,16 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
164170
165171## Dynamic Contracts
166172
173+ The sample private key below is a public test-only readonly key. Never fund it.
174+
167175``` rust
168176use aelf_sdk :: {AElfClient , ClientConfig , Wallet };
169177use serde_json :: json;
170178
171179#[tokio:: main]
172180async fn main () -> Result <(), Box <dyn std :: error :: Error >> {
173181 let client = AElfClient :: new (ClientConfig :: new (" http://127.0.0.1:8000" ))? ;
182+ // Public test-only readonly key. Never fund it.
174183 let wallet = Wallet :: from_private_key (
175184 " 0000000000000000000000000000000000000000000000000000000000000001" ,
176185 )? ;
@@ -214,6 +223,8 @@ Useful environment variables:
214223- ` AELF_AMOUNT `
215224- ` AELF_SEND `
216225
226+ ` public_balance ` and ` dynamic_contract_get_balance ` fall back to a public test-only readonly key when ` AELF_PRIVATE_KEY ` is omitted. Never fund it.
227+
217228## Feature Flags
218229
219230v0.1 alpha exposes one transport feature:
@@ -430,6 +441,10 @@ MSRV:
430441- The workspace MSRV is Rust ` 1.85 ` .
431442- CI enforces it with ` cargo +1.85.0 check --workspace --all-targets --all-features --locked ` .
432443
444+ ## Security
445+
446+ See [ SECURITY.md] ( SECURITY.md ) for private vulnerability disclosure instructions.
447+
433448## License
434449
435450MIT
0 commit comments