export function getPrincipal()

in package/src/principal.ts [22:30]


export function getPrincipal(principal_id: string): PrincipalResponse | IdentityResponse {
    if (idMap.has(principal_id)) {
        const result = idMap.get(principal_id);
        if (result !== undefined) {
            return { id: principal_id, name: result };
        }
    }
    return { message: "Principal id has not be proposed." }
};