Signs the Resource using the specified BearerDid
The DID (Decentralized Identifier) used for signing.
if the signing operation fails.