code: func New(local *Params, pm Payment, proto Protocol) (swap *Swap, err error) {
  
  	swap = &Swap{
  		local:   local,
  		Payment: pm,
  		proto:   proto,
  	}
  
  	swap.SetParams(local)
  
  	return
  }
docs: // New - swap constructor