unit/composer.js
function composePowJoint(from_address, round_index, seed, deposit, solution, signer, callbacks){
	var payload = {seed: seed, deposit:deposit, solution: solution};
	var objMessage = {
		app: "pow_equihash",
		payload_location: "inline",
		payload_hash: objectHash.getBase64Hash(payload),
		payload: payload
	};
	composeJoint({
		paying_addresses: [from_address],
		outputs: [{address: from_address, amount: 0}],
		messages: [objMessage],
		round_index: round_index,
		pow_type: constants.POW_TYPE_POW_EQUHASH,
		signer: signer,
		callbacks: callbacks
	});
}
function composePowJoint(from_address, round_index, seed, deposit, solution, signer, callbacks){
	var payload = {seed: seed, deposit:deposit, solution: solution};
	var objMessage = {
		app: "pow_equihash",
		payload_location: "inline",
		payload_hash: objectHash.getBase64Hash(payload),
		payload: payload
	};
	composeJoint({
		paying_addresses: [from_address],
		outputs: [{address: from_address, amount: 0}],
		messages: [objMessage],
		round_index: round_index,
		pow_type: constants.POW_TYPE_POW_EQUHASH,
		signer: signer,
		callbacks: callbacks
	});
}
function composePowJoint ( from_address , round_index , seed , deposit , solution , signer , callbacks ) { var payload = { seed : seed , deposit : deposit , solution : solution } ; var objMessage = { app : "pow_equihash" , payload_location : "inline" , payload_hash : objectHash . getBase64Hash ( payload ) , payload : payload } ; composeJoint ( { paying_addresses : [ from_address ] , outputs : [ { address : from_address , amount : 0 } ] , messages : [ objMessage ] , round_index : round_index , pow_type : constants . POW_TYPE_POW_EQUHASH , signer : signer , callbacks : callbacks } ) ; }
pow add pow joint
pow add pow joint