@@ -55,7 +55,7 @@ class Account:
5555 Load existing account::
5656
5757 # From hex private key
58- hex_key = "***1234567890abcdef ..."
58+ hex_key = "0x1234567890abcdef ..."
5959 imported_account = Account.load_key(hex_key)
6060
6161 # From JSON file
@@ -292,7 +292,7 @@ def load_key(key: str) -> Account:
292292
293293 Args:
294294 key: Hex-encoded Ed25519 private key string (64 characters, 32 bytes).
295- Can be with or without '*** ' prefix.
295+ Can be with or without '0x ' prefix.
296296
297297 Returns:
298298 Account: An account instance created from the given private key.
@@ -307,8 +307,8 @@ def load_key(key: str) -> Account:
307307 private_key_hex = "1a2b3c4d5e6f789..." # 64 hex chars
308308 account = Account.load_key(private_key_hex)
309309
310- # With '*** ' prefix
311- prefixed_key = "***1a2b3c4d5e6f789 ..."
310+ # With '0x ' prefix
311+ prefixed_key = "0x1a2b3c4d5e6f789 ..."
312312 account = Account.load_key(prefixed_key)
313313
314314 Restore from backup::
@@ -328,7 +328,7 @@ def load_key(key: str) -> Account:
328328 # Import from Aptos CLI output
329329 # aptos init --profile my-account
330330 # aptos account list --profile my-account
331- cli_private_key = "***a1b2c3d4e5f6 ..."
331+ cli_private_key = "0xa1b2c3d4e5f6 ..."
332332 account = Account.load_key(cli_private_key)
333333
334334 Security Considerations:
@@ -371,8 +371,8 @@ def load(path: str) -> Account:
371371 Expected JSON structure::
372372
373373 {
374- "account_address": "***1234567890abcdef ...",
375- "private_key": "***abcdef1234567890 ..."
374+ "account_address": "0x1234567890abcdef ...",
375+ "private_key": "0xabcdef1234567890 ..."
376376 }
377377
378378 Examples:
@@ -492,8 +492,8 @@ def store(self, path: str):
492492 Creates JSON with structure::
493493
494494 {
495- "account_address": "*** <hex_address>",
496- "private_key": "*** <hex_private_key>"
495+ "account_address": "0x <hex_address>",
496+ "private_key": "0x <hex_private_key>"
497497 }
498498
499499 Note:
@@ -524,7 +524,7 @@ def address(self) -> AccountAddress:
524524 account = Account.generate()
525525 address = account.address()
526526 print(f"Account address: {address}")
527- # Output: Account address: ***a1b2c3d4e5f67890 ...
527+ # Output: Account address: 0xa1b2c3d4e5f67890 ...
528528
529529 Use address in transactions::
530530
@@ -555,7 +555,7 @@ async def check_balance():
555555 - **Deterministic**: Same private key always produces same address
556556 - **Unique**: Each private key produces a unique address
557557 - **Immutable**: Address cannot change without changing the private key
558- - **Format**: 32-byte hex string with '*** ' prefix
558+ - **Format**: 32-byte hex string with '0x ' prefix
559559
560560 Note:
561561 The address is computed from the public key, not stored separately.
@@ -572,7 +572,7 @@ def auth_key(self) -> str:
572572 change through key rotation operations.
573573
574574 Returns:
575- str: The authentication key as a hex string with '*** ' prefix.
575+ str: The authentication key as a hex string with '0x ' prefix.
576576
577577 Examples:
578578 Check initial auth key::
@@ -662,7 +662,7 @@ def sign(self, data: bytes) -> asymmetric_crypto.Signature:
662662 data_dict = {
663663 "action": "transfer",
664664 "amount": 1000,
665- "recipient": "***abc123 ..."
665+ "recipient": "0xabc123 ..."
666666 }
667667 data_bytes = json.dumps(data_dict, sort_keys=True).encode()
668668 signature = account.sign(data_bytes)
0 commit comments