bigint-browserify
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -28,6 +28,4 @@ var jsbn = require('jsbn'); | ||
toBuffer: function() { | ||
var ba = this._jsbn.toByteArray(); | ||
// jsbn byte arrays has a zereod byte on front (always?) | ||
ba.shift(); | ||
return new Buffer(ba); | ||
var hex = this._jsbn.toString(16); | ||
return new Buffer(hex, 'hex'); | ||
}, | ||
@@ -34,0 +32,0 @@ toString: function(base) { |
{ | ||
"name": "bigint-browserify", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "bigint api for browser javascript", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3514
103