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
- React Native
- iOS
- Android
createRemoteTrustEntity(request: CreateRemoteTrustEntityRequest): Promise<TrustEntity["id"]>
func createRemoteTrustEntity(request: CreateRemoteTrustEntityRequestBindingDto) throws -> String
fun `createRemoteTrustEntity`(`request`: CreateRemoteTrustEntityRequestBindingDto): kotlin.String
Parameters
- React Native
- iOS
- Android
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;
}
public struct CreateRemoteTrustEntityRequestBindingDto {
public var didId: String
public var trustAnchorId: String?
public var name: String
public var logo: String?
public var termsUrl: String?
public var privacyUrl: String?
public var website: String?
public var role: TrustEntityRoleBindingEnum
}
data class CreateRemoteTrustEntityRequestBindingDto (
var `didId`: kotlin.String,
var `trustAnchorId`: kotlin.String?,
var `name`: kotlin.String,
var `logo`: kotlin.String?,
var `termsUrl`: kotlin.String?,
var `privacyUrl`: kotlin.String?,
var `website`: kotlin.String?,
var `role`: TrustEntityRoleBindingEnum
)
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.