tfchain/TFChainWallet.py
def _key_pair_new(self, integrate=True, offset=0):
        """
        Create a new key pair,
        and integrate it by default as well into the wallet's key pair dictionary.
        """
        # if we have unused key pairs in-memory, use them first,
        # only used when integrating is True,
        # as we do not wish to use this feature when scanning
        if integrate and len(self._unused_key_pairs) > 0:
            key_pair = self._unused_key_pairs.pop(0)
            self._key_pair_add(key_pair, add_count=False)
            return key_pair

        # otherwise create a new one
        e = encoder_sia_get()
        e.add_array(self.seed)
        e.add(self.key_count+offset)
        seed_hash = blake2(e.data)
        private_key = SigningKey(seed_hash)
        public_key = private_key.get_verifying_key()

        key_pair = SpendableKey(
            public_key = PublicKey(specifier=PublicKeySpecifier.ED25519, hash=public_key.to_bytes()),
            private_key = private_key)

        # if we wish to integrate (mostly when we're not scanning),
        # we also add it to our wallets known key pairs
        if integrate:
            self._key_pair_add(key_pair, add_count=True, offset=offset)

        return key_pair

        Create a new key pair,
        and integrate it by default as well into the wallet's key pair dictionary.
        
Create a new key pair,
and integrate it by default as well into the wallet's key pair dictionary.
Create a new key pair and integrate it by default as well into the wallet ' s key pair dictionary .
def _key_pair_new(self, integrate=True, offset=0):
        if integrate and len(self._unused_key_pairs) > 0:
            key_pair = self._unused_key_pairs.pop(0)
            self._key_pair_add(key_pair, add_count=False)
            return key_pair
        e = encoder_sia_get()
        e.add_array(self.seed)
        e.add(self.key_count+offset)
        seed_hash = blake2(e.data)
        private_key = SigningKey(seed_hash)
        public_key = private_key.get_verifying_key()
        key_pair = SpendableKey(
            public_key = PublicKey(specifier=PublicKeySpecifier.ED25519, hash=public_key.to_bytes()),
            private_key = private_key)
        if integrate:
            self._key_pair_add(key_pair, add_count=True, offset=offset)
        return key_pair
def _key_pair_new ( self , integrate = True , offset = 0 ) : if integrate and len ( self . _unused_key_pairs ) > 0 : key_pair = self . _unused_key_pairs . pop ( 0 ) self . _key_pair_add ( key_pair , add_count = False ) return key_pair e = encoder_sia_get ( ) e . add_array ( self . seed ) e . add ( self . key_count + offset ) seed_hash = blake2 ( e . data ) private_key = SigningKey ( seed_hash ) public_key = private_key . get_verifying_key ( ) key_pair = SpendableKey ( public_key = PublicKey ( specifier = PublicKeySpecifier . ED25519 , hash = public_key . to_bytes ( ) ) , private_key = private_key ) if integrate : self . _key_pair_add ( key_pair , add_count = True , offset = offset ) return key_pair
Create a new key pair,
and integrate it by default as well into the wallet's key pair dictionary.
Create a new key pair and integrate it by default as well into the wallet ' s key pair dictionary .
"""
        Create a new key pair,
        and integrate it by default as well into the wallet's key pair dictionary.
        """ # if we have unused key pairs in-memory, use them first, # only used when integrating is True, # as we do not wish to use this feature when scanning # otherwise create a new one # if we wish to integrate (mostly when we're not scanning), # we also add it to our wallets known key pairs
self
integrate
offset