PocketIC/piCJS Configuration for Canister Signature Testing

Hello everyone!

I’m using picJS for testing canister logic. When using canister signatures, I’m getting the following error:

32.537000004 UTC: [Canister 7uieb-cx777-77776-qaaaq-cai] Failed to generate canister signature for tag verification_tag: Failed to generate canister signature: Unable to route management canister request sign_with_ecdsa: ChainKeyError("Requested unknown or disabled threshold key: ecdsa:Secp256k1:dfx_test_key, existing enabled keys: []")

I saw in one of the PocketIC releases that there’s support for canister signatures: link

Could you please tell me how to deploy PocketIC or configure picJS to enable testing of canister signatures?

To avoid this error, the PocketIC instance must be created with the II or fiduciary subnet enabled in the instance options
.

2 Likes