aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2016-04-01 19:42:48 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2016-04-01 19:42:48 +0800
commitbe44651523bc44bff6a31064eb3917e4682eb866 (patch)
tree20bbb57100d4f7563cf83f4c56be099fd8804cd9 /eth
parentc58079461bafe508bea9233e2b81852df5188f57 (diff)
parent916fe112417cae924557646ba9afeb6b517e11b4 (diff)
downloaddexon-be44651523bc44bff6a31064eb3917e4682eb866.tar.gz
dexon-be44651523bc44bff6a31064eb3917e4682eb866.tar.zst
dexon-be44651523bc44bff6a31064eb3917e4682eb866.zip
Merge pull request #2402 from obscuren/eth-sign-fix
eth: enforce signing hashes using eth_sign instead of arbitrary data
Diffstat (limited to 'eth')
-rw-r--r--eth/api.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/eth/api.go b/eth/api.go
index af03c096d..a257639ba 100644
--- a/eth/api.go
+++ b/eth/api.go
@@ -1103,10 +1103,10 @@ func (s *PublicTransactionPoolAPI) SendRawTransaction(encodedTx string) (string,
return tx.Hash().Hex(), nil
}
-// Sign will sign the given data string with the given address. The account corresponding with the address needs to
-// be unlocked.
-func (s *PublicTransactionPoolAPI) Sign(address common.Address, data string) (string, error) {
- signature, error := s.am.Sign(accounts.Account{Address: address}, common.HexToHash(data).Bytes())
+// Sign signs the given hash using the key that matches the address. The key must be unlocked in order to sign the
+// hash.
+func (s *PublicTransactionPoolAPI) Sign(address common.Address, hash common.Hash) (string, error) {
+ signature, error := s.am.Sign(accounts.Account{Address: address}, hash[:])
return common.ToHex(signature), error
}
_calendar_new): hook upSeth Alves2000-04-212-13/+32 * create fullday's gcs even if pixmap_bell has already been created. thisSeth Alves2000-04-212-1/+45 * changed the order around a bit to avoid a Gtk-CRITICAL crashSeth Alves2000-04-202-5/+12 * fixed code to populate the todo clistSeth Alves2000-04-206-42/+47 * don't call save from here because in all cases the caller of remove_objectSeth Alves2000-04-202-1/+4 * calls gnome_calendar_open instead of checking on disk and calling load orSeth Alves2000-04-205-52/+92 * fixed to use cal_client_update_object -- editing and dragging events worksSeth Alves2000-04-191-6/+5 * set calendar's uri with a property bagSeth Alves2000-04-196-47/+156 * Fix include path.Federico Mena Quintero2000-04-192-3/+6 * Added Danish strings to desktop/menu filePablo Saratxaga2000-04-194-0/+8 * We have a new "last_calendar_gone" signal that Wombat can use to terminateFederico Mena Quintero2000-04-184-3/+40 * *** empty log message ***Seth Alves2000-04-181-1/+8 * removed implicit save, since we don't want to save as we load from disk.Seth Alves2000-04-181-1/+2 * Renamed library from libcalutil to libcal-util, to be consistent withFederico Mena Quintero2000-04-1733-308/+110 * use HAVE_TIMEZONE to switch between linux's timezone variable and *bsd'sChris Toshok2000-04-123-4/+32 * *** empty log message ***Seth Alves2000-04-111-0/+5 * create and save an actual vcalendar instead of a list of vcal objects.Seth Alves2000-04-111-40/+56 * moved srcdir directories to the top so we search headers in the evolutionDamon Chaplin2000-04-112-3/+11 * nat told me to do itSeth Alves2000-04-101-2/+2 * catch cal_loaded signal on the cal client. (gnome_calendar_load_cb):Seth Alves2000-04-105-41/+155 * pixmap_DATA isn't defined so don't use it as a variable.Christopher James Lahey2000-04-092-2/+5 * new function: friendly wrapper for cal_client_create_calendarSeth Alves2000-04-097-72/+104 * calendar is a frame instead of a window, now.Seth Alves2000-04-084-7/+24 * i always forget to commit the ChangeLog. Dain BramageSeth Alves2000-04-071-0/+7 * removed uih from the argument list, added cal. use cal as user_data inSeth Alves2000-04-074-163/+92 * forgot to commitSeth Alves2000-04-061-0/+7 * removed (setup_appbar): removed (calendar_control_activate): new functionSeth Alves2000-04-063-9/+111 * build test-calendar-widget and evolution-calendar, common stuff is in aSeth Alves2000-04-0626-889/+1219 * + + * tests/.cvsignore: Added test-movemail. + + * art/.cvsignore: NewMatthew Loper2000-04-012-0/+5 * cal_client_get_events_in_range returns a list of CalObjInstance *, not aSeth Alves2000-03-311-3/+4 * readded the gui directorySeth Alves2000-03-303-2/+16 * + * Makefile.am: add calendar compilation back in.Matthew Loper2000-03-302-1/+5 * + * wombat/wombat.gnorba: new file.Matthew Loper2000-03-293-0/+24 * added libeutil.la and libetext.aSeth Alves2000-03-283-16/+68 * Use ical_object_to_string().Federico Mena Quintero2000-03-2810-184/+116 * Fix includes. (e_day_view_on_delete_occurance): Do not callFederico Mena Quintero2000-03-234-13/+30 * Fix for srcdir != builddir.Elliot Lee2000-03-184-19/+18 * New widget for Day/Work-Week views. Unfinished.Damon Chaplin2000-03-149-0/+6749 * Removed function now that it is no CORBA server in the GUI.Federico Mena Quintero2000-03-1216-83/+85 * Do not pass the INIT_SERVER flag to gnome_CORBA_init_with_popt_table().Federico Mena Quintero2000-03-112-22/+51 * Initialize the alarm types here. Do not call default_alarm() anymore,Federico Mena Quintero2000-03-113-45/+15 * Removed the corba-cal stuff. Commented out the Pilot conduit stuff forFederico Mena Quintero2000-03-102-109/+78 * Random #ifdefs to make it build, although this file is going away.Federico Mena Quintero2000-03-107-67/+41 * replaced "Calendar *cal" with "CalClient *calc" in the GnomeCalendarSeth Alves2000-03-0929-128/+478 * track movement of calobj.[ch]Seth Alves2000-03-089-15/+10 * ignore *.lo instead of a list of .lo filesSeth Alves2000-03-081-2/+1 * calobj.[ch] has moved into cal-util/Seth Alves2000-03-081-2/+0 * back out recent commit, and remove calendar.[ch] from Makefile.amSeth Alves2000-03-087-112/+62 * back out recent commitSeth Alves2000-03-082-97/+0 * calobj.[ch] live in cal-util nowSeth Alves2000-03-081-0/+2 * More file moving - FedericoFederico Mena Quintero2000-03-084-1873/+5 * track moveSeth Alves2000-03-062-14/+18 * move all but the subdir line into gui/Makefile.am, since the codeSeth Alves2000-03-061-236/+1 * stubs for client side access to alarm structures. this will probablySeth Alves2000-03-0617-79/+269 * More file moving action - FedericoFederico Mena Quintero2000-03-0666-20102/+0 * this is not right, but it gets this closer to building.Seth Alves2000-03-043-3/+3 * added some .cvsignore filesSeth Alves2000-03-044-0/+33 * new file -- things shared between the client and server go in thisSeth Alves2000-03-0447-1951/+806 * I always forget to add the stupid files - FedericoFederico Mena Quintero2000-03-041-0/+66 * At this point the calendar client and personal calendar server files wereFederico Mena Quintero2000-03-026-12/+23 * More reorganization - FedericoFederico Mena Quintero2000-03-026-247/+11 * Moved to the pcs/ directory - FedericoFederico Mena Quintero2000-03-0212-2776/+21 * At this point the calendar client and personal calendar server files wereFederico Mena Quintero2000-03-026-204/+61 * Moved to cal-client/ - FedericoFederico Mena Quintero2000-03-026-1514/+0 * Moved to idl/evolution-calendar.idlFederico Mena Quintero2000-03-021-127/+0 * Use the gnome-config flags for orbit-idl. Create a libcal-client libraryFederico Mena Quintero2000-03-025-6/+59 * Removed stale rule for the conduit.Federico Mena Quintero2000-03-013-18/+18 * don't put .libs in the link command, let libtool do itSeth Alves2000-02-232-2/+2 * + * calendar/.cvsignore: Added *.lo.Matthew Loper2000-02-222-1/+6 * trying to link libicalSeth Alves2000-02-212-2/+2 * + * widgets/e-minicard/.cvsignore: Added minicard-label-test,Matthew Loper2000-02-202-0/+6 * DOHSeth Alves2000-02-191-0/+6 * Use BONOBO_VFS_GNOME_CFLAGS instead of GNOMEUI_INCLUDES, as we use BonoboMiguel de Icaza2000-02-193-2/+7 * moved CalendarFormat type def hereSeth Alves2000-02-1812-115/+307 * Implemented.Federico Mena Quintero2000-02-1713-14/+282 * added skel and stub filesSeth Alves2000-02-161-0/+5 * forgot this oneSeth Alves2000-02-161-0/+722 * Change iCalObject.organizer from char* to iCalPerson*Russell Steinthal2000-02-1621-61/+418 * Implemented.Federico Mena Quintero2000-02-1227-188/+769 * Connect to the Cal's destroy signal. (cal_backend_remove_cal): KilledFederico Mena Quintero2000-02-1133-356/+1696 * Added inline documentation comment - FedericoArturo Espinosa2000-02-092-0/+20 * Added get_uids() method to get a list of UIDs based on object types.Federico Mena Quintero2000-02-0944-358/+1040 * Add the files, stupid me - FedericoArturo Espinosa2000-02-084-0/+200 * New struct to wrap instances of calendar objects for recurrencies andFederico Mena Quintero2000-02-0817-26/+567 * New function to create the base VObject for a calendar.Federico Mena Quintero2000-02-0413-38/+149 * Sync to laptop - FedericoArturo Espinosa2000-02-035-50/+141 * Added the get_object() method.Federico Mena Quintero2000-02-0219-158/+410 * Handle the cal_loaded signal from the listener. Store the calendar clientFederico Mena Quintero2000-02-017-0/+288 * Sync to desktop - FedericoArturo Espinosa2000-01-317-10/+29 * Changed the namespace from GNOME::Calendar to Evolution::Calendar.Federico Mena Quintero2000-01-2927-250/+267 * Make Evolution compile with the latest Bonobo changes.Arturo Espinosa2000-01-2626-138/+140 * Calendar client side work - FedericoArturo Espinosa2000-01-255-0/+731 * Check that the listener is not nil and emit and exception if it is.Federico Mena Quintero2000-01-257-18/+147 * When will I ever learn to add the files... - FedericoArturo Espinosa2000-01-254-0/+206 * Added the gnome-pilot and capplet checks; they will likely be reworked forFederico Mena Quintero2000-01-2517-84/+207 * New function to remove a calendar client interface object from a backend.Federico Mena Quintero2000-01-249-84/+342 * Take in a GnomeVFSURI, not a string.Federico Mena Quintero2000-01-2213-120/+308 * Moved the calendar backend here. This is the actual calendar-handlingFederico Mena Quintero2000-01-1915-222/+1147 * Sync, take two - FedericoArturo Espinosa2000-01-182-0/+2 * Forgot these - FedericoArturo Espinosa2000-01-184-0/+262 * Sync - FedericoArturo Espinosa2000-01-1811-28/+251 * Removed the CORBA listener methods, adjusted for the new IDL.Federico Mena Quintero2000-01-128-91/+241 * New IDL for the personal calendar server.Federico Mena Quintero2000-01-1215-0/+2408 * Removed todo capplet stuff.Eskil Heyn Olsen2000-01-093-6/+14 * Update to use gpilotd_get_pilot_basedir and gnome_pilot_conduit_standard_abs...Vadim Strizhevsky2000-01-084-9/+9 * Added an argument to the corba get_number_of_objects, so you can decideEskil Heyn Olsen2000-01-058-162/+192 * Committed fixes for the end-on-day recurrence bug where the lastEskil Heyn Olsen1999-12-3115-26/+71 * Added Galician translationJesus Bravo Alvarez1999-12-312-0/+4 * Minor unmiportant changes, but my laptop is acting up, so IEskil Heyn Olsen1999-12-303-9/+24 * Fix sensitivity bug when used to create default alarm box (widgets in thatRussell Steinthal1999-12-113-2/+15 * Capplets now sets first_sync on enable, this should make the conduit copyEskil Heyn Olsen1999-12-084-3/+18 * Check if local store is empty. If, force slow sync.Eskil Heyn Olsen1999-12-0714-84/+193 * Added a sub package to the .spec file, it now generatesEskil Heyn Olsen1999-12-063-0/+11 * Removed intlEskil Heyn Olsen1999-12-053-0/+8 * Sigh. Get this oneArturo Espinosa1999-12-042-0/+4 * 1.1.0Arturo Espinosa1999-12-031-0/+20 * The long-awaited and much-needed (IMNSHO) snooze button for gnomecal alarms.Russell Steinthal1999-12-039-16/+168 * undef DEBUG_CALCONDUT, suppresses debug output.Eskil Heyn Olsen1999-12-034-6/+10 * Debugging enhancements: report alarms not added (because they have alreadyRussell Steinthal1999-12-034-30/+131 * Fixed compare bug. Also neated up some of the if's in set_status.Eskil Heyn Olsen1999-11-304-33/+44 * <self_serving> Add myself to AUTHORS, about box </self_serving>Russell Steinthal1999-11-234-1/+5 * Merged Rusty's last todo list coloring patch from stable to HEAD.Russell Steinthal1999-11-229-124/+640 * Writes some warning messages when pre_sync fails.Eskil Heyn Olsen1999-11-224-0/+11 * added greek descriptionsPablo Saratxaga1999-11-172-0/+4 * Stupid misplaced endif cause gncal to depend on an install gnome-pilot...Eskil Heyn Olsen1999-11-143-14/+21 * The long-awaited audio alarm timeout patch. Implements wishlist bug #3089.Russell Steinthal1999-11-1311-20/+212 * Schedule a new day_change_alarm in the day_change_alarm callback, so that theRussell Steinthal1999-11-113-2/+9 * Forgot my changelog yesterday.Eskil Heyn Olsen1999-11-101-0/+6 * Enabled debug output. Sets a g_log_domain, now version 0.8.5. ConsistentEskil Heyn Olsen1999-11-103-288/+948 * Fixed an unwanted conditional on libcalendar_conduit_la_LDFLAGSEskil Heyn Olsen1999-11-093-2/+7 * Commented the code out, thus the capplet works again.Eskil Heyn Olsen1999-11-054-0/+11 * Uses the PISOCK_LIBDIR, for people with odd install dirs for theirEskil Olsen1999-11-0419-251/+606 * Add default alarm support, Beep on display alarms optionRussell Steinthal1999-11-0314-65/+466 * Fix calendar_day_begin/calendar_day_end initialization bug on HEAD. For fullRussell Steinthal1999-10-243-0/+13 * Style fix.Russell Steinthal1999-10-223-3/+6 * Commit debugging support to HEAD as well; there's no good reason to have debu...Russell Steinthal1999-10-226-5/+135 * now it doesn't build todo conduit anymore. Since the conduit is just aEskil Heyn Olsen1999-10-2217-893/+1116 * Fix bug #1818 on HEAD.Russell Steinthal1999-10-223-8/+37 * Fix bug #2561 in HEADRussell Steinthal1999-10-203-2/+7 * Add paned windows to Day View so user can adjust relative size of dailyRussell Steinthal1999-10-203-50/+53 * Added swedish desktop entryMartin Norback1999-10-183-0/+8 * Fixed the much-hated gnome-pilot dependencyEskil Heyn Olsen1999-10-143-2/+9 * moved the pilot_status = MOD up, so even a CHANGE_SUMMARY will set theEskil Heyn Olsen1999-10-086-216/+312 * checks return values from gpilotd_init/connect.Eskil Heyn Olsen1999-10-0613-90/+150 * Now has correct return values wrt the conduit api ref.Eskil Heyn Olsen1999-09-293-165/+261 * Use tm.gmtoff or timezone to get correct offset from UTC, according toTimur Bakeyev1999-09-282-3/+15 * added pt_BR translationsJorge Godoy1999-09-282-0/+4 * Small fix -miguelArturo Espinosa1999-09-2831-238/+270 * Fix #2340 on HEAD -miguelArturo Espinosa1999-09-284-8/+8 * the g_free that was commented out since glib said was a duplicate free,Eskil Heyn Olsen1999-09-2511-146/+531 * better merge of summary/description when doing ical_from_remoteEskil Heyn Olsen1999-09-2314-19/+45 * better merge of summary/description when doing ical_from_remoteEskil Heyn Olsen1999-09-234-302/+457 * commented out a g_free that glib reported as being a duplicate free. gotEskil Heyn Olsen1999-09-236-23/+64 * - fix which allow "make insytall DESTDIR=</install/prefix>".Tomasz Kłoczko1999-09-231-3/+3 * lot of rework, implemented various set_* functions, transmit andEskil Heyn Olsen1999-09-218-514/+1206 * added Estonian tranlationsLauris Kaplinski1999-09-203-0/+8 * About to rehash conduit.Eskil Heyn Olsen1999-09-196-15/+117 * changed to be a .la file instead of .a, this allows lib*_conduit to useEskil Heyn Olsen1999-09-1910-155/+578 * fixed the exception throwing. The conduit can now actually insertEskil Heyn Olsen1999-09-152-10/+50 * added sources to calendar-conduitEskil Heyn Olsen1999-09-15