go-macaroon / js-macaroon

Javascript implementation of macaroons
BSD 3-Clause "New" or "Revised" License
41 stars 22 forks source link

binary serialization changes #16

Closed rogpeppe closed 7 years ago

rogpeppe commented 7 years ago

We avoid the use of Buffer (because it's Node-specific) and use our own varint implementation which is will probably be a little faster because it doesn't need to work with >32bit numbers.

There's still some use of Buffer in the JSON serialization code, but leaving that for a subsequent PR.