deoxxa / xml-dsig

XML digital signatures
Other
7 stars 4 forks source link

TypeError: dsig.createSignature is not a function. #5

Open iamnewspecies opened 8 years ago

iamnewspecies commented 8 years ago

I am using the code given in the Readme.txt. But I am getting TypeError: dsig.createSignature is not a function. What am I missing.

deoxxa commented 8 years ago

Looks like the readme is out of date. You might have luck with:

var DigitalSignature = require('xml-dsig');

var dsig = new DigitalSignature();

dsig.createSignature(...);

I haven't touched this code for ages though, and I have no use for it anymore, so you might have to go digging around in the source (like I just did) to figure out any other problems.