small changes to mnemonic, use hexdigest where appropriate