src/IpfsService.js
/**
    * Inititializes a tree 
    *
    * @param   {Object[]}       insertions             array with initial tree insertions       
    * @param   {String}         insertion.parentLabel  insertion parent label  
    * @param   {String}         insertion.hash         insertion hash or   
    * @param   {Object[]}       insertion.childrens    insertion childrens. Same structure of "insertion"
    * @returns {String}                                The location of the saved tree on IPFS
    */
Inititializes a tree
@param   {Object[]}       insertions             array with initial tree insertions
@param   {String}         insertion.parentLabel  insertion parent label
@param   {String}         insertion.hash         insertion hash or
@param   {Object[]}       insertion.childrens    insertion childrens. Same structure of "insertion"
@returns {String}                                The location of the saved tree on IPFS
Inititializes a tree @param { Object [] } insertions array with initial tree insertions @param { String } insertion . parentLabel insertion parent label @param { String } insertion . hash insertion hash or @param { Object [] } insertion . childrens insertion childrens . Same structure of " insertion " @returns { String } The location of the saved tree on IPFS
async initTree(insertions = null, publicKey = null) {
        const tree = IdentityDag.initTree()
        if(insertions) await this.handleInsertions(tree, insertions, publicKey)
        const ipfsHash = await this.saveObject(tree)
        return ipfsHash
    }
async initTree ( insertions = null , publicKey = null ) { const tree = IdentityDag . initTree ( ) if ( insertions ) await this . handleInsertions ( tree , insertions , publicKey ) const ipfsHash = await this . saveObject ( tree ) return ipfsHash }
Inititializes a tree
 @param   {Object[]}       insertions             array with initial tree insertions
 @param   {String}         insertion.parentLabel  insertion parent label
 @param   {String}         insertion.hash         insertion hash or
 @param   {Object[]}       insertion.childrens    insertion childrens.
Inititializes a tree @param { Object [] } insertions array with initial tree insertions @param { String } insertion . parentLabel insertion parent label @param { String } insertion . hash insertion hash or @param { Object [] } insertion . childrens insertion childrens .