indutny / bn.js

BigNum in pure javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Base64 encoding

ryanc414 opened this issue · comments

I see that there is an option for hex encoding via .toJSON() or .toString(16), but how about base64 encoding - is that supported at all? Is it possible to extract the bytes in a form that may be passed to btoa()?