View Issue Details

IDProjectCategoryView StatusLast Update
0004185Talerwallet (WebExtension)public2017-06-06 12:18
ReporterFlorian Dold Assigned ToFlorian Dold Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritynormalSeveritytweakReproducibilityhave not tried
Status closedResolutionfixed 
Product Versiongit (master) 
Target Version0.3Fixed in Version0.3 
Summary0004185: abstract over RPC in the wallet
DescriptionThe WebEx wallet does a lot of RPC (popup and content script calls things from the wallet living in the background page; wallet should call crypto code living in a web worker).

In some places this is done rather ad-hoc (construct JSON, use chrome.runtime.sendMessage and chrome.runtime.onMessage on the other end).

We should abstract over this a bit, so we don't have to write as much boilerplate code.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Florian Dold

2016-11-14 03:10

manager   ~0011491

In most places we use wrappers now, to translate from type-unsafe chrome callback APIs to our typesafe async/await APIs.

Still, we're using strings in many places for RPCs.

We can make our RPCs more typesafe with the "keyof T" type, which allows us to check that a string constant is a valid index into a namespace [1].

IMHO we should wait until this feature hits TypeScript stable, which is about by the end of this year.

https://github.com/Microsoft/TypeScript/pull/11929

Florian Dold

2017-05-31 15:08

manager   ~0012198

Fixed in 613a14c1

Issue History

Date ModifiedUsernameFieldChange
2016-02-18 17:07Florian DoldNew Issue
2016-02-18 17:07Florian DoldStatusnew => assigned
2016-02-18 17:07Florian DoldAssigned To => Florian Dold
2016-02-19 20:41Christian GrothoffProduct Version => 0.0
2016-02-19 20:41Christian GrothoffTarget Version => 0.1
2016-02-19 20:41Christian GrothoffDescription Updated
2016-02-20 01:11Christian GrothoffSeverityminor => tweak
2016-03-20 20:53Torsten GrothoffIssue cloned: 0004292
2016-09-27 20:26Christian GrothoffTarget Version0.1 => 0.2
2016-11-14 03:10Florian DoldNote Added: 0011491
2016-11-14 03:10Florian DoldTarget Version0.2 => 0.3
2017-04-08 22:28Christian GrothoffTarget Version0.3 =>
2017-05-30 15:02Florian DoldProduct Version0.0 => 0.3
2017-05-31 15:08Florian DoldNote Added: 0012198
2017-05-31 15:08Florian DoldStatusassigned => informing
2017-05-31 15:08Florian DoldResolutionopen => fixed
2017-06-02 07:35Christian GrothoffProduct Version0.3 => git (master)
2017-06-02 07:35Christian GrothoffFixed in Version => 0.3
2017-06-02 07:35Christian GrothoffTarget Version => 0.3
2017-06-06 12:18Christian GrothoffStatusinforming => closed
2023-04-13 18:37Florian DoldCategorywallet (WebExtensions) => wallet (WebExtension)