Bitcoin key implementation for NodeJS and browsers