Pay2PubKeyHashDestination

constructor(chainSelector: ChainSelector, stream: BCHserialized)


constructor(chainSelector: ChainSelector, _secret: Secret, idx: Long)

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