- From: Mike Jones <Michael.Jones@microsoft.com>
- Date: Fri, 18 Jan 2013 23:11:05 +0000
- To: Richard Barnes <rbarnes@bbn.com>, "public-webcrypto@w3.org Group" <public-webcrypto@w3.org>
+1 -----Original Message----- From: Richard Barnes [mailto:rbarnes@bbn.com] Sent: Friday, January 18, 2013 3:03 PM To: public-webcrypto@w3.org Group Subject: Get rid of "params"? While we're on the topic of algorithm identifiers: Could we please get rid of "params"? Is there a reason to have the parameters in a separate dictionary, as opposed to within the main algorithm dictionary? OLD: { name: "HMAC", params: { hash: "SHA-256" } } NEW: { name: "HMAC", hash: "SHA-256" } It seems like the only reason to isolate params is if there's a risk of collision. But the only other thing that ever shows up at the top level is "name", so unless you want to have params.name as well, flattening should be OK. And that seems like an easy enough problem to avoid. I know it's just syntactic sugar, but sometimes it's nice to have some sugar :) --Richard
Received on Friday, 18 January 2013 23:11:58 UTC