badger_record now generates the correct public key