Universal Wallet uses 3ID Protocol and IPLD to manage decentralized content and uses DID to sign content
Example
// get existing accountlet acct =awaitwallet.getAccount()// add wallet with auto generated mnemonicconstwalletId=awaitwallet.addWallet()// get keypairconstresult=awaitwallet.createEd25519({ rpcUrl: url, walletId, registry:'',})// init IPLD managerconstipfsManager=newIPLDManager(result.did)awaitipfsManager.start()// create documentconstfil=Buffer.from('fffffffffffffffffffffff')// authenticationawaitresult.did.authenticate()// addSignedObject add a Buffer with props using a File-like interfaceconstcid=awaitipfsManager.addSignedObject(fil, { name:'UnitTest.txt', contentType:'text/text', lastModified:newDate(),})expect(cid.length).toBeGreaterThan(0)// Get recent objectconstres=awaitipfsManager.getObject(cid)expect(res.value.name).toEqual('UnitTest.txt')