diff --git a/src/index.ts b/src/index.ts index bcfcb36..4e970fe 100644 --- a/src/index.ts +++ b/src/index.ts @@ -175,12 +175,17 @@ export class WalletPluginAnchor extends AbstractWalletPlugin { } } + const resolvedResponse = await ResolvedSigningRequest.fromPayload(callbackResponse, context.esrOptions) + + const identityProof = resolvedResponse.getIdentityProof(callbackResponse.sig) + return { chain: Checksum256.from(callbackResponse.cid), permissionLevel: PermissionLevel.from({ actor: callbackResponse.sa, permission: callbackResponse.sp, }), + identityProof, } }