Skip to main content

Create remote trust entity

Creates a trust entity on a published trust anchor.

This method makes an HTTP call to the publisher.

Related guide: Trust management

Function

createRemoteTrustEntity(request: CreateRemoteTrustEntityRequest): Promise<TrustEntity["id"]>

Parameters

export interface CreateRemoteTrustEntityRequest extends Omit<CreateTrustEntityRequest, "trustAnchorId" | "state"> {
trustAnchorId?: string;
}
export interface CreateTrustEntityRequest {
name: string;
logo?: string;
website?: string;
termsUrl?: string;
privacyUrl?: string;
role: TrustEntityRoleEnum;
state: TrustEntityStateEnum;
trustAnchorId: string;
didId: string;
}

Fields

  • didId - Specify the id of the DID to be used as the trust entity.

  • trustAnchorId - Specify the id of the trust anchor.

  • name - Must be unique in the Core instance.

  • role - [ISSUER, VERIFIER, BOTH]

Return value

The id of the trust entity is returned.