コード例 #1
0
    def register(self):
        """Register block in the bitcoin blockchain
        """

        # Calculate Merkle root
        root_hash = self.calculate_root_hash()

        # Create tx with root_hash as output
        self.header = BlockHeader("", root_hash)
        forge.send_root_hash(root_hash, self._registered)
コード例 #2
0
ファイル: identity.py プロジェクト: Goutte/OpenBazaar
    def register(self):

        """Register block in the bitcoin blockchain
        """

        # Calculate Merkle root
        root_hash = self.calculate_root_hash()

        # Create tx with root_hash as output
        self.header = BlockHeader("", root_hash)
        forge.send_root_hash(root_hash, self._registered)
コード例 #3
0
 def register(self):
     # register block in the bitcoin blockchain
     root_hash = self.calculate_root_hash()
     # create tx with root_hash as output
     self.header = BlockHeader("", root_hash)
     forge.send_root_hash(root_hash, self._registered)
コード例 #4
0
 def register(self):
     # register block in the bitcoin blockchain
     root_hash = self.calculate_root_hash()
     # create tx with root_hash as output
     self.header = BlockHeader("", root_hash)
     forge.send_root_hash(root_hash, self._registered)