func NewTxWithNonce(id msp.SigningIdentity) (string, []byte, error) {
	if nonce, err := crypto.RandomBytes(24); err != nil {
		return ``, nil, errors.Wrap(err, `failed to get nonce`)
	} else {
		if creator, err := id.Serialize(); err != nil {
			return ``, nil, errors.Wrap(err, `failed to get creator`)
		} else {
			return generateTxId(nonce, creator), nonce, nil
		}
	}
}
// NewTxWithNonce generates new transaction id with crypto nonce
NewTxWithNonce generates new transaction id with crypto nonce
// NewTxWithNonce generates new transaction id with crypto nonce
func NewTxWithNonce(id msp.SigningIdentity) (string, []byte, error) {
	if nonce, err := crypto.RandomBytes(24); err != nil {
		return ``, nil, errors.Wrap(err, `failed to get nonce`)
	} else {
		if creator, err := id.Serialize(); err != nil {
			return ``, nil, errors.Wrap(err, `failed to get creator`)
		} else {
			return generateTxId(nonce, creator), nonce, nil
		}
	}
}
func NewTxWithNonce ( id msp . SigningIdentity ) ( string , [ ] byte , error ) { if nonce , err := crypto . RandomBytes ( 24 ) ; err != nil { return `` , nil , errors . Wrap ( err , `failed to get nonce` ) } else { if creator , err := id . Serialize ( ) ; err != nil { return `` , nil , errors . Wrap ( err , `failed to get creator` ) } else { return generateTxId ( nonce , creator ) , nonce , nil } } }
NewTxWithNonce generates new transaction id with crypto nonce
NewTxWithNonce generates new transaction id with crypto nonce