Package com.privatechain.wallet


package com.privatechain.wallet
Wallet and key management — secp256k1 key pairs, transaction signing, balance computation, and encrypted keystore serialisation (FR-WALLET-01–04).

Classes in this package:

  • Wallet — holds an ECKeyPair, derives a Bitcoin-style Base58Check address, signs Transaction instances via ECDSA secp256k1, and computes a balance by scanning all confirmed transactions in a given Blockchain (FR-WALLET-01, FR-WALLET-04).
  • WalletManager — creates wallets from fresh key pairs, imports wallets from a private-key hex string, and persists wallets to AES-256-GCM encrypted keystore JSON files with PBKDF2 key derivation (FR-WALLET-02, FR-WALLET-03).

Security: Private key material is never written to logs or exposed via toString() in any class in this package (NFR-SEC-01). All random number generation uses SecureRandom (NFR-SEC-05).

Since:
1.0.0
  • Classes
    Class
    Description
    Immutable wallet holding an EC key pair, a derived blockchain address, and performing transaction signing and balance queries.
    Manager for creating, importing, and persisting wallets with encrypted keystores.