Feature: Implement Digital Signatures (Public/Private Key Cryptography) for Transactions
メンテナーはふだん 2 日以内に返信
@sohanjadyal がすでに取り組んでいます。
2026年10月9日 から。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- java
- 領域
- blockchain, security
調査の方向性
Start by reading Transaction.java, Blockchain.java, and BlockchainTest.java to understand transaction creation, validation, and existing test patterns. Then check how chain.dat is serialized and how its compatibility is handled. Done means wallets can generate key pairs, transactions can be signed and verified, invalid or unsigned transactions are rejected, and tests cover valid and forged transactions.
索引モデルが issue の本文から書いたものです。
説明
Description:
Currently, our mini-chain relies entirely on a trust-based system where users manually type in the sender's name when creating a transaction. This means there is no concept of ownership or authentication, and anyone can easily spend someone else's coins by simply typing in their name.
To make this project behave like a real-world blockchain, I believe we should introduce cryptographic authentication to verify the sender of every transaction.
Proposed Solution:
Implement Public/Private key cryptography (e.g., using Java's built-in java.security.KeyPairGenerator with RSA or ECDSA).
- Wallets: Create a
Walletconcept where every user generates aPrivateKey(used for signing) and aPublicKey(which acts as their network address). - Transaction Signing: When sending coins, the
Transactionclass should include a new method to generate a digital signature using the sender'sPrivateKey. - Transaction Verification: The
Transactionclass should include a method to verify the signature using the sender'sPublicKey. - Validation Logic: Update
Blockchain.javaso thataddTransaction()andisValid()refuse any transactions that do not contain a valid cryptographic signature. - (Optional) Update
Main.javato simulate creating a wallet on startup if one doesn't exist.
Acceptance Criteria:
- A
Walletclass (or similar logic) exists to generate KeyPairs. -
Transactionclass stores a digital signature and the sender's Public Key. -
TransactionhassignTransaction(PrivateKey)andverifySignature()methods. -
Blockchain.javarejects unsigned or improperly signed transactions. -
BlockchainTest.javaincludes tests verifying that forged transactions are rejected and valid signatures are accepted.
Additional Context:
This will require a minor change to the Transaction model, which will likely break backward compatibility with older chain.dat files. We should increment the serialVersionUID or warn users to delete their existing .dat files when this is merged.
- 主要言語
- Java
- スター
- 0
- フォーク
- 3
- 平均マージ
- 2日 5時間
- マージ済み PR(30日)
- 15
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
techcsispit/mini-chain のほかの issue
-
Blockchain.isValid() does not verify sender balance, allowing blocks with negative balances to pass validation対応中かも @aadiitya2007 が 5 日前に担当しました。 オープンbug good first issue
難易度 4/5 1〜2日 初心者へのやさしさ 20/100
techcsispit/mini-chain#37 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
README says changing Block or Transaction makes chain.dat stop loading, but adding a field or method still loads it対応中かも @tanujb03 が 24 日前に担当しました。 オープンdocumentation good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 25/100
techcsispit/mini-chain#21 ·
メンテナーはふだん 2 日以内に返信
techcsispit/mini-chain の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
objectionary/lints#1640 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
openhab/openhab-addons#22168 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
wildfly/wildfly-channel#446 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
5.0.x backport enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
spring-cloud/spring-cloud-function#1507 ·
メンテナーはふだん 1 日以内に返信