import { CreateUserDetailsRequest , pubkeyOf , toSolanaKeyMaterial , } from '../../lib/util' ; import { createUserDetails } from '../../service/userDetails' ; import { didFromKey } from './util' ; param request export const create = async ( request ) : Promise < void > => { const payer = toSolanaKeyMaterial ( request . payer ) ; const owner = request . owner ? toSolanaKeyMaterial ( request . owner ) : pubkeyOf ( payer ) ; const ownerDID = await didFromKey ( request ) ; await createUserDetails ( ownerDID , owner , payer , request . alias , request . size , request . signCallback , request . cluster ) ; } ;