Skip to content

Commit

Permalink
Fix typo with utf-8 -> utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
Braydon Fuller committed Nov 13, 2015
1 parent de6e429 commit 9144166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bitauth-common.js
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 9144166

Please sign in to comment.