ブロックに加える新しいトランザクションを作る
def new_transaction(self, sender, recipient, amount): """ Creates a new transaction to go into the next mined Block :param sender: Address of the Sender(送信者のアドレス) :param recipient: Address of the Recipient(受信者のアドレス) :param amount: Amount(量) :return: The index of the Block that will hold this transaction(このトランザクションを含むブロックのアドレス) """ self.current_transactions.append({ 'sender': sender, 'recipient': recipient, 'amount': amount, }) # 追加したトランザクションのindex return self.last_block['index'] + 1@property def last_block(self): return self.chain[-1] #追加されるブロック
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
										
2008年11月、metzdowd.comにナカモトサトシにより投稿された論文
ブロックチェーン
ビットコインは送信アドレス(Tx)に対するデジタル署名によって保護されており、一定時間(10分)ごとに、すべての取引記録を分散台帳に追加します。