668
edits
| Line 36: | Line 36: | ||
Before this is exposed as a content API, BrowserID exposes secret wrapping as an internal API: | Before this is exposed as a content API, BrowserID exposes secret wrapping as an internal API: | ||
IDService.wrapSecret(origin, plainKey, cb) | |||
IDService.unwrapSecret(origin, wrappedKey, cb); | |||
In this internal API, the <tt>origin</tt> has to be explicitly specified. | In this internal API, the <tt>origin</tt> has to be explicitly specified. | ||
The single callback is done in a node style: first parameter is error, second parameter is result. | |||
== Architecture == | == Architecture == | ||
edits