sc/deposit.js
function createDepositAddress(my_address, callback) {
	var arrDefinition = [
		'or', 
		[
			['address', constants.FOUNDATION_SAFE_ADDRESS],
			['address', my_address],
		]
	];
	
	var shared_address = objectHash.getChash160(arrDefinition)

	if(isDepositDefinition(arrDefinition)){
        return callback.ifOk(shared_address)
    } else {
        return callback.ifError(JSON.stringify(arrDefinition) + ' is not a valid deposit definiton')
    }
}
function createDepositAddress(my_address, callback) {
	var arrDefinition = [
		'or', 
		[
			['address', constants.FOUNDATION_SAFE_ADDRESS],
			['address', my_address],
		]
	];
	
	var shared_address = objectHash.getChash160(arrDefinition)

	if(isDepositDefinition(arrDefinition)){
        return callback.ifOk(shared_address)
    } else {
        return callback.ifError(JSON.stringify(arrDefinition) + ' is not a valid deposit definiton')
    }
}
function createDepositAddress ( my_address , callback ) { var arrDefinition = [ 'or' , [ [ 'address' , constants . FOUNDATION_SAFE_ADDRESS ] , [ 'address' , my_address ] , ] ] ; var shared_address = objectHash . getChash160 ( arrDefinition ) if ( isDepositDefinition ( arrDefinition ) ) { return callback . ifOk ( shared_address ) } else { return callback . ifError ( JSON . stringify ( arrDefinition ) + ' is not a valid deposit definiton' ) } }
Create Deposit Address
@param {String} my_address - address that use to generate deposit address
@param {Array} arrDefinition - definiton of miner shared address
@param {Object} assocSignersByPath - address paths of shared address
@param {Function} callback - callback(deposit_address)
Create Deposit Address