func signBytes(client *benchclient.BenchClient, bytes []byte) (signature []byte, err error) {

	sha := sha3.New256()
	sha.Write(bytes)
	e := sha.Sum(nil)

	if signature, err = koblitz.SignCompact(koblitz.S256(), client.PrivKey, e, false); err != nil {
		err = fmt.Errorf("Failed to sign bytes : \n%s", err)
		return
	}

	return
}
// signBytes is used in the register method because that's an interactive process.
// BenchClient shouldn't be responsible for interactive stuff, just providing a good
// Go API for the RPC methods the exchange offers.
signBytes is used in the register method because that's an interactive process.
BenchClient shouldn't be responsible for interactive stuff, just providing a good
Go API for the RPC methods the exchange offers.
// signBytes is used in the register method because that ' s an interactive process . // BenchClient shouldn ' t be responsible for interactive stuff just providing a good // Go API for the RPC methods the exchange offers .
func signBytes(client *benchclient.BenchClient, bytes []byte) (signature []byte, err error) {
	sha := sha3.New256()
	sha.Write(bytes)
	e := sha.Sum(nil)
	if signature, err = koblitz.SignCompact(koblitz.S256(), client.PrivKey, e, false); err != nil {
		err = fmt.Errorf("Failed to sign bytes : \n%s", err)
		return
	}
	return
}
func signBytes ( client * benchclient . BenchClient , bytes [ ] byte ) ( signature [ ] byte , err error ) { sha := sha3 . New256 ( ) sha . Write ( bytes ) e := sha . Sum ( nil ) if signature , err = koblitz . SignCompact ( koblitz . S256 ( ) , client . PrivKey , e , false ) ; err != nil { err = fmt . Errorf ( " \n " , err ) return } return }
signBytes is used in the register method because that's an interactive process.
signBytes is used in the register method because that ' s an interactive process .