src/api.js
/**
     * Instantiates a new multi signature identity.
     * 
     * @param   {String}                 identityId                                           An arbitrary index to identify the Identity   
     * @param   {String[]}               owners                                               multi sig owners list  
     * @param   {Integer}                required                                             the required number of signatures   
     * @param   {Object[]}               [profileDataNodes=[]]                                Profile's tree nodes for insertion on IPFS
     * @param   {String}                 [publicKey=null]                                     User's public key. Used to encrypt his data  
     * @param   {Object}                 [opt={ from: null, gas: null, gasPrice: null }]      transaction options
     * @param   {String}                 opt.from                                             set the tx sender
     * @param   {Number}                 opt.gas                                              set the tx gas limit
     * @param   {String}                 opt.gasPrice                                         set the tx gas price in gwei 
     * @returns {Promise<Object, Error>}                                                      A promise that resolves with the transaction object or rejects with an error 
     * @memberof Api
     */
Instantiates a new multi signature identity.


Instantiates a new multi signature identity .
async createMultiSigIdentity(identityId, owners, required, profileHash, opt = { from: null, gas: null, gasPrice: null }) {
        const from = opt.from ? opt.from : this.defaultOptions.from
        const gas = opt.gas ? opt.gas : this.defaultOptions.gas
        const gasPrice = opt.gasPrice ? opt.gasPrice : this.defaultOptions.gasPrice
        return this.IdentityProtocolContract.methods
        .createMultiSigIdentity(this.utils.asciiToHex(identityId),this.utils.asciiToHex(profileHash), owners, required)
        .send({ from, gas, gasPrice })
    }
async createMultiSigIdentity ( identityId , owners , required , profileHash , opt = { from : null , gas : null , gasPrice : null } ) { const from = opt . from ? opt . from : this . defaultOptions . from const gas = opt . gas ? opt . gas : this . defaultOptions . gas const gasPrice = opt . gasPrice ? opt . gasPrice : this . defaultOptions . gasPrice return this . IdentityProtocolContract . methods . createMultiSigIdentity ( this . utils . asciiToHex ( identityId ) , this . utils . asciiToHex ( profileHash ) , owners , required ) . send ( { from , gas , gasPrice } ) }
Instantiates a new multi signature identity.
Instantiates a new multi signature identity .