commit
787a0115d6
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue