go-macaroon / js-macaroon

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

use simpler buffer grow logic in ByteBuffer #47

Closed rogpeppe closed 4 years ago

rogpeppe commented 4 years ago

Growing by a factor of two is good when the buffer is small, which it invariably is with macaroons. This makes the logic a bit more understandable IMHO.