Skip to content

Commit

Permalink
enhancement: returning identityProof on login
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Feb 16, 2024
1 parent 7d4f935 commit 5dee04e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

Expand Down

0 comments on commit 5dee04e

Please sign in to comment.