RE: RE: Little lost bees - Reveal Public/Private keys from Password
You are viewing a single comment's thread from:

RE: Little lost bees - Reveal Public/Private keys from Password

thecrazygm(75)
Published in
#dev
Words
36
Reading
1 min
Listen
Play
6y

lightproject@lightproject, It's actually rather short and to the point:

        """ Derive private key from the brain key and the current sequence
            number
        """
        a = py23_bytes(self.account + self.role + self.password, 'utf8')
        s = hashlib.sha256(a).digest()
        return PrivateKey(hexlify(s).decode('ascii'), prefix=self.prefix)

specifically, that's get_private from the method other than that it just sets the public function

Unless you meant you wanted me to step through that too :)

@thecrazygm: @lightproject, | Ecency