getParams method
Get address parameters with optional chain code inclusion. If 'chain_code' is specified in 'addrParams', it will be replaced with the chain code from the provided 'pubKey'.
Implementation
Map<String, dynamic> getParams(Bip32PublicKey pubKey) {
if (addrParams["chain_code"] == true) {
final params = {...addrParams};
params["chain_code"] = pubKey.chainCode.toBytes();
return params;
}
return addrParams;
}