I am experiencing some major issues which I honestly can't understand.
When I am generating a wallet from Electrum the public key looks like this: xpub661MyMwAqRbcG8Zah6TcX3QpP5yJApaXcyLK8CJcZkuYjczivsHxVL5qm9cw8BYLYehgFeddK5WrxhntpcvqJKTVg96dUVL9P7hZ7Kcvqvd
When I am generating a wallet address from bitcoin core rpc, the public key looks like this: 037acd3408dfb612a69204c5f5bafe2a326646398cdd16c85fedd65a4e96a28278
When I am trying to create a multisig address in the core using this type of public keys, I get errror: xpub661MyMwAqRbcG8Zah6TcX3QpP5yJApaXcyLK8CJcZkuYjczivsHxVL5qm9cw8BYLYehgFeddK5WrxhntpcvqJKTVg96dUVL9P7hZ7Kcvqvd
When I am trying to create a multisig address in the core ( via PHP ) using this type of public keys, it works: 037acd3408dfb612a69204c5f5bafe2a326646398cdd16c85fedd65a4e96a28278
I am super confused.
I am developing a multisig system for bitcoin, but it seems that I can't do it, since the clients will almost always use this type of public key generated from Electrum: xpub661MyMwAqRbcG8Zah6TcX3QpP5yJApaXcyLK8CJcZkuYjczivsHxVL5qm9cw8BYLYehgFeddK5WrxhntpcvqJKTVg96dUVL9P7hZ7Kcvqvd
Is there any type of conversion way in PHP from this type of public key: xpub661MyMwAqRbcG8Zah6TcX3QpP5yJApaXcyLK8CJcZkuYjczivsHxVL5qm9cw8BYLYehgFeddK5WrxhntpcvqJKTVg96dUVL9P7hZ7Kcvqvd
to this type: 037acd3408dfb612a69204c5f5bafe2a326646398cdd16c85fedd65a4e96a28278
?
I am trying to understand what I am doing wrong
Thank you for your time, and hope to get an answer!