Pay2Pub Key Hash Destination
Parameters
_ secret
You MUST construct this with a valid secret.
idx
The secret index, which should be some kind of unique number that indicates what secret this is
_ pubkey
If you pass null for the _pubkey we will get it from the secret, so that will only work for UnsecuredSecrets or unlocked wallets