Your mail provider holds the private key and signs each message. You only add the public key it gives you as a TXT or CNAME record.

DKIM survives forwarding better than SPF, because the signature travels with the message. That makes it the more important of the two for DMARC to pass.

Related