How is minting working? I can't find function that unlocks wallet

who gave you the suggestion to lock it.
Well, I prefer encrypted wallets for security issues, I hope you do too. It's not like you leave your money
on a table in a club giving everybody access to take it from you, do you?