@@ -89,7 +89,7 @@
|
|||||||
},
|
},
|
||||||
sign: function(privKey, message) {
|
sign: function(privKey, message) {
|
||||||
// Where to store the result
|
// Where to store the result
|
||||||
var signature_ptr = Module._malloc(32);
|
var signature_ptr = Module._malloc(64);
|
||||||
|
|
||||||
// Get a pointer to our private key
|
// Get a pointer to our private key
|
||||||
var privateKey_ptr = _allocate(new Uint8Array(privKey));
|
var privateKey_ptr = _allocate(new Uint8Array(privKey));
|
||||||
|
Reference in New Issue
Block a user