func (cl *BenchClient) GetDepositAddress(asset string) (getDepositAddressReply *cxrpc.GetDepositAddressReply, err error) {

	if cl.PrivKey == nil {
		err = fmt.Errorf("Private key nonexistent, set or specify private key so the client can sign commands")
		return
	}

	getDepositAddressReply = new(cxrpc.GetDepositAddressReply)
	getDepositAddressArgs := &cxrpc.GetDepositAddressArgs{
		Asset: asset,
	}

	// create e = hash(m)
	sha3 := sha3.New256()
	sha3.Write([]byte(asset))
	e := sha3.Sum(nil)

	// Sign order
	compactSig, err := koblitz.SignCompact(koblitz.S256(), cl.PrivKey, e, false)

	// set signature in args
	getDepositAddressArgs.Signature = compactSig

	if err = cl.Call("OpencxRPC.GetDepositAddress", getDepositAddressArgs, getDepositAddressReply); err != nil {
		return
	}

	return
}
// GetDepositAddress calls the getdepositaddress rpc command
GetDepositAddress calls the getdepositaddress rpc command
// GetDepositAddress calls the getdepositaddress rpc command
func (cl *BenchClient) GetDepositAddress(asset string) (getDepositAddressReply *cxrpc.GetDepositAddressReply, err error) {
	if cl.PrivKey == nil {
		err = fmt.Errorf("Private key nonexistent, set or specify private key so the client can sign commands")
		return
	}
	getDepositAddressReply = new(cxrpc.GetDepositAddressReply)
	getDepositAddressArgs := &cxrpc.GetDepositAddressArgs{
		Asset: asset,
	}
	sha3 := sha3.New256()
	sha3.Write([]byte(asset))
	e := sha3.Sum(nil)
	compactSig, err := koblitz.SignCompact(koblitz.S256(), cl.PrivKey, e, false)
	getDepositAddressArgs.Signature = compactSig
	if err = cl.Call("OpencxRPC.GetDepositAddress", getDepositAddressArgs, getDepositAddressReply); err != nil {
		return
	}
	return
}
func ( cl * BenchClient ) GetDepositAddress ( asset string ) ( getDepositAddressReply * cxrpc . GetDepositAddressReply , err error ) { if cl . PrivKey == nil { err = fmt . Errorf ( " " ) return } getDepositAddressReply = new ( cxrpc . GetDepositAddressReply ) getDepositAddressArgs := & cxrpc . GetDepositAddressArgs { Asset : asset , } sha3 := sha3 . New256 ( ) sha3 . Write ( [ ] byte ( asset ) ) e := sha3 . Sum ( nil ) compactSig , err := koblitz . SignCompact ( koblitz . S256 ( ) , cl . PrivKey , e , false ) getDepositAddressArgs . Signature = compactSig if err = cl . Call ( " " , getDepositAddressArgs , getDepositAddressReply ) ; err != nil { return } return }
GetDepositAddress calls the getdepositaddress rpc command
GetDepositAddress calls the getdepositaddress rpc command
// create e = hash(m) // Sign order // set signature in args