For the complete documentation index, see llms.txt. This page is also available as Markdown.

Share KYC Attributes

This guide shows how to use the Anchor SDK to share KYC attributes with an Anchor that requires KYC using an existing on-chain KYC certificate.

1

Identify Share KYC Is Required

When an Anchor requires KYC it will return an error of type KeetaAssetMovementAnchorKYCShareNeededError and will include the required KYC attributes and which Keeta account they should be shared with. Sharing KYC attributes uses encrypted containers that only grant the specific principals access to decrypt the container so it remains encrypted in transit. KeetaAssetMovementAnchorKYCShareNeededError members shown below.

2

Select KYC Certificate

Full example below shows more in depth details on identifying a KYC certificate on the users account, for example an Anchor may require a certificate from a specific issuer. At a high level it follows these steps to get the certificates for the account from the network and build the Certificate.

3

Build the Sharable Certificate Attributes

Create the encrypted container to share certificate attributes, this selects only the attributes requested by the Anchor.

4

Grant Access for the Anchor

Granting access to the encrypted container allows the principal to decrypt the attributes. This enables the sensitive attributes to be encrypted in transit and only viewable by the recipient.

5

Share the Attributes with the Anchor

Anchor providers that require KYC have an endpoint to share the attributes. The Anchor Client SDK handles the request details.

6

Handle Additional Onboarding Steps

An Anchor may require some additional onboarding steps. Like adding it's own certificate to the account or granting permissions. These will be identified with an error of type KeetaAssetMovementAnchorUserActionNeededError

The actionsNeeded attribute of the error can be used to complete the actions and the UserClientBuilder can be used to construct a Keeta block to publish the actions.

Full Code Example

https://github.com/KeetaNetwork/keetanet-examples/blob/main/src/anchor/kyc-client-sharekyc.ts

Last updated