Skip to content

Commit

Permalink
Merge pull request #59 from braydonf/utf8
Browse files Browse the repository at this point in the history
Fix typo with utf-8 -> utf8
  • Loading branch information
pnagurny committed Nov 18, 2015
2 parents de6e429 + 9144166 commit 787a011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bitauth-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ BitAuth.getSinFromPublicKey = function(pubkey) {
BitAuth.sign = function(data, privkey) {
var dataBuffer;
if (!Buffer.isBuffer(data)) {
dataBuffer = new Buffer(data, 'utf-8');
dataBuffer = new Buffer(data, 'utf8');
} else {
dataBuffer = data;
}
Expand All @@ -105,7 +105,7 @@ BitAuth.sign = function(data, privkey) {
BitAuth.verifySignature = function(data, pubkey, hexsignature, callback) {
var dataBuffer;
if (!Buffer.isBuffer(data)) {
dataBuffer = new Buffer(data, 'utf-8');
dataBuffer = new Buffer(data, 'utf8');
} else {
dataBuffer = data;
}
Expand Down

0 comments on commit 787a011

Please sign in to comment.