CryptoKeySafe CK bracket markCRYPTOKEYSAFE

免费阅读英文预览

模块 1:加密货币安全如何运作

全文以英语提供。

Before you can make intelligent decisions about hardware wallets, seed phrase storage, or DeFi security, you need to understand what you're actually protecting and why the math makes it worth protecting.

Public and Private Key Cryptography

Bitcoin and Ethereum wallets use private keys to sign transactions. A secp256k1 private key is an integer from 1 up to, but excluding, the order of the curve. Wallets generate keys through secure randomness or derive them from a securely generated seed.

A wallet derives a public key from the private key using elliptic curve multiplication. Deriving the public key is straightforward. Recovering the private key from that public key is computationally infeasible with known classical methods.

Common Bitcoin public-key-hash addresses use SHA-256 and RIPEMD-160. Bitcoin also supports other address types, including script-hash and Taproot. An Ethereum externally owned account uses the last 20 bytes of the Keccak-256 hash of its public key. Smart contract accounts have their own address derivation rules.

Key derivation chain

1
Private key: Secret integer generated or derived by the wallet
2
Public key: Derived from the private key using elliptic curve multiplication
3
Address: Public identifier formatted according to the network and address type

Public-key cryptography lets the network check signatures without seeing the private key. The strength of that math is one part of wallet security. Key generation, custody, transaction review and backups matter too.

Share a public address when needed to receive funds. Anyone who can link an address to you may be able to see its public transaction history. Keep your private keys and recovery information offline and private. Enter recovery information only through the verified recovery procedure for your wallet.

Seed Phrases and HD Wallets

BIP-39 represents computer-generated entropy and a checksum as a mnemonic phrase. A wallet uses the phrase and any optional passphrase to derive a binary seed, which can then derive many private keys.

How BIP-39 Works

The English BIP-39 word list contains 2,048 words. Each word represents 11 bits of the combined entropy and checksum. BIP-39 also defines other language word lists.

12 words

128 bits of entropy + 4-bit checksum

24 words

256 bits of entropy + 8-bit checksum

The checksum uses the first bits of the SHA-256 hash of the entropy. It can catch some entry mistakes.

A randomly generated 12-word BIP-39 phrase encodes 128 bits of entropy. A 24-word phrase encodes 256 bits. Wallet backup formats and default word counts vary by device.

A recovery phrase backs up the information used to derive wallet keys. Anyone with the complete recovery information can restore those keys on compatible software or hardware. If you set a separate BIP-39 passphrase, you will need that exact passphrase as well. Back it up securely and separately.

HD Wallets and Derivation Paths

BIP-32 defines hierarchical deterministic wallets and BIP-44 describes one way to organize accounts and addresses. One seed can derive a tree of keys. Different networks and wallets may use different standards and derivation paths.

The derivation path encodes which address you're using:

BIP-44 derivation path structure

m / purpose' / coin_type' / account' / change / address_index

m/44'/0'/0'/0/0First Bitcoin account, first receiving address
m/44'/60'/0'/0/0First Ethereum account, first receiving address
m/44'/60'/0'/0/1Second Ethereum address, same account
m/44'/60'/1'/0/0Second Ethereum account entirely

To restore an account, use a wallet that supports the original backup format, networks and derivation paths. Supply the original passphrase if you used one. The backup restores the keys that control the assets recorded on the network.

What the Blockchain Secures vs What It Doesn't

A blockchain records transactions that meet its rules. Wallet software, devices and the people approving transactions govern how keys are used.

Bitcoin confirmations make a reversal less likely as more blocks are added. Ethereum proof of stake uses validators to finalize checkpoints. Consult the network or service confirmation requirements before treating a payment as settled.

Blockchain DOES protect

  • A shared history that becomes harder to reverse
  • Double-spend prevention
  • The record of who owns what
  • Smart contract execution as written

Blockchain DOES NOT protect

  • Your private keys or seed phrase
  • Your decision to approve a malicious contract
  • Your browser session or clipboard
  • Your choice to send funds to a scammer
  • Bugs in the smart contract code

The FBI reported that approximately $1.5 billion in virtual assets was stolen from Bybit in February 2025. The attack compromised the transaction approval workflow. The network still recorded the transactions according to its rules.

Phishing, SIM swaps, clipboard malware and malicious approvals target the tools and decisions that control wallet access or transactions. Network validation cannot tell whether you intended to approve a request.

Custodial vs Self-Custody

With a custodial exchange account, the provider controls the keys for the assets it custodies. You depend on the provider for withdrawals and account access. Custody terms, safeguards and legal protections vary by provider and jurisdiction.

In a self-custody setup, you control the signing keys. If the hardware fails, a compatible wallet can restore access with the original recovery information. Check compatibility with your backup format, networks and derivation paths.

Custodial (exchange)

  • Pros: account recovery options and convenient trading access
  • Cons: provider insolvency, withdrawal restrictions and exposure of account information
  • Use cases: trading or converting between fiat and digital assets

Self-custody (hardware wallet)

  • Pros: direct control of signing keys and independent recovery
  • Cons: losing all recovery information and access to the signing device can permanently lock you out
  • Use cases: direct custody and signing transactions with your own device

Compare the provider risk of custody with the backup and operational responsibility of self-custody. Review the custody terms and withdrawal policy for your provider.

Encryption, Hashing and Digital Signatures

These algorithms serve different purposes in wallets and blockchain systems.

AES

AES-256

Advanced Encryption Standard, 256-bit key

What it does: Symmetric encryption algorithm. The same key encrypts and decrypts.

Where it's used: Encrypting data at rest, including some software wallet files and backups.

Protection also depends on the implementation and how you safeguard the encryption key.

SHA

SHA-256

Secure Hash Algorithm, 256-bit output

What it does: One-way hash function. Any input produces a fixed 256-bit output. Reversing it is computationally infeasible.

Where it's used: Bitcoin address generation, Bitcoin mining (proof-of-work), transaction ID generation, BIP-39 checksum calculation.

Bitcoin uses two successive SHA-256 hashes for block hashing and transaction IDs.

ECDSA

ECDSA

Elliptic Curve Digital Signature Algorithm

What it does: Uses the private key to produce a cryptographic signature on a transaction. The signature proves you authorized the transaction without revealing the private key.

Where it's used: Ethereum externally owned accounts and many Bitcoin outputs use ECDSA. Bitcoin Taproot signatures use Schnorr, and other networks can use other signature schemes.

A hardware wallet signs on the device using a protected key. The hardware architecture varies by model.

Encryption protects the confidentiality of data, hashes produce fingerprints, and signatures let others verify authorization by a key. These are separate roles. Ledger directs customers to enter a Ledger recovery phrase only on the hardware device during recovery, never into an app or website.

The Trust Chain: How Firmware Verification Works

Firmware is the software that runs on the signing device. Verifying firmware signatures helps confirm that the device is running code authorized by a trusted signing key.

In a typical secure boot process, the bootloader checks the signature on firmware against a trusted public key. A failed check may block startup or produce a warning, depending on the device. Follow the manufacturer’s verification instructions for your model.

Firmware trust chain

1
Manufacturer signing key: Private key used to sign authorized firmware
2
Firmware binary: Release binary signed by the manufacturer
3
Bootloader public key: Trusted key used to check the signature
4
Signature verification: Bootloader checks signature before executing firmware
5
Running firmware: Device-specific handling after the check

Trezor publishes firmware reproducibility instructions so users can compare independently built firmware with a release using the documented procedure. Ledger publishes a separate Genuine Check process to verify device authenticity.

A reproducible build helps verify the relationship between published source and a release. Device attestation checks a device identity. These controls answer different questions, and neither replaces choosing a verified seller and checking the device during setup.

Counterfeit Devices and Supply Chain Attacks

A wallet delivered with a pre-supplied recovery phrase creates a direct risk. Whoever supplied the phrase could restore the same keys independently and take any funds you send to it.

Packaging and branding are easy to imitate. Buy through the manufacturer or a seller it lists as authorized. Use the official companion app when required and complete the authenticity checks for your model before sending funds.

Two checks before funding a new wallet

1

Use a verified seller

Buy from the manufacturer or an authorized retailer you can verify on the manufacturer’s official website.

2

Never accept a pre-existing seed

Follow the official new-wallet setup to generate your recovery backup. If a device arrives with a pre-filled phrase, an existing PIN or instructions to enter a supplied phrase, stop and contact official support before using it.

Check the device and the recovery procedure before sending funds. Ledger Genuine Check and the Trezor Suite checks can provide additional assurance. A pre-supplied recovery phrase is unsafe even if the device passes an authenticity check.

Knowledge Check

Module 1 - 8 questions

1

What is secp256k1, and why does it matter for Bitcoin and Ethereum?

2

A 12-word BIP-39 seed phrase provides how many bits of entropy?

3

What security does blockchain consensus provide?

4

What is one common BIP-44 path for the first Ethereum address?

5

What is the main security trade-off of using a custodial exchange account versus taking self-custody with a hardware wallet?

6

What is the difference between SHA-256 and AES-256?

7

How can a secure bootloader verify firmware authenticity?

8

What should you do if a new hardware wallet arrives with a recovery phrase?

References