Re: [push-api] Message encryption (#130)

getPublicKey ? Is the parameter optional ( since enum can have only one
possible value anyways ) ?

Also it should document very clearly what's in the ArrayBuffer - the DER
encoding ? And how do we expect
apps to send it to the app server ?


On Mon, Jul 27, 2015 at 8:15 AM, Peter Beverloo <notifications@github.com>
wrote:

> Agreed.
>
> Having a method raises an interesting question for the serializer - it'd
> expose a property that otherwise wouldn't exist. However, since it's not a
> client-side concern there's a good reason for
> JSON.stringify(pushSubscription) to include anything the server needs.
>
> It could either include the escaped hex sequence of the ArrayBuffer's
> contents, or the base64 representation. I'm not sure what would be
> idiomatic - there's little precedence.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/w3c/push-api/pull/130#issuecomment-125241540>.
>


---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/push-api/pull/130#issuecomment-125419883

Received on Tuesday, 28 July 2015 03:09:25 UTC