func (s *Store) Propose(trans Transaction) error {
	if !trans.IsVerified() {
		return fmt.Errorf("provided signature does not match the public key")
	}

	var buf bytes.Buffer
	if err := gob.NewEncoder(&buf).Encode(trans); err != nil {
		return err
	}

	s.proposeC <- buf.String()
	return nil
}
// Propose when provided a destination wallet, a decimalAmount,
// a currency, and a valid signature on the transaction,
// requests a transfer from the src to the dest of the
// requested decimalAmount.
//
// Performs a simple crypto check to make sure the transaction is
// signed by the src address.
Propose when provided a destination wallet, a decimalAmount,
a currency, and a valid signature on the transaction,
requests a transfer from the src to the dest of the
requested decimalAmount.

Performs a simple crypto check to make sure the transaction is
signed by the src address.
// Propose when provided a destination wallet a decimalAmount // a currency and a valid signature on the transaction // requests a transfer from the src to the dest of the // requested decimalAmount . // // Performs a simple crypto check to make sure the transaction is // signed by the src address .
func (s *Store) Propose(trans Transaction) error {
	if !trans.IsVerified() {
		return fmt.Errorf("provided signature does not match the public key")
	}
	var buf bytes.Buffer
	if err := gob.NewEncoder(&buf).Encode(trans); err != nil {
		return err
	}
	s.proposeC <- buf.String()
	return nil
}
func ( s * Store ) Propose ( trans Transaction ) error { if ! trans . IsVerified ( ) { return fmt . Errorf ( " " ) } var buf bytes . Buffer if err := gob . NewEncoder ( & buf ) . Encode ( trans ) ; err != nil { return err } s . proposeC <- buf . String ( ) return nil }
Propose when provided a destination wallet, a decimalAmount,
a currency, and a valid signature on the transaction,
requests a transfer from the src to the dest of the
requested decimalAmount.
Propose when provided a destination wallet a decimalAmount a currency and a valid signature on the transaction requests a transfer from the src to the dest of the requested decimalAmount .