both creating DER signature from the r and s values, and parsing a DER signature into the r, s, and other properties.
10 lines
204 B
JavaScript
10 lines
204 B
JavaScript
var Key = require('bindings')('KeyModule').Key;
|
|
var CommonKey = require('./common/Key');
|
|
|
|
for (var i in CommonKey) {
|
|
if (CommonKey.hasOwnProperty(i))
|
|
Key[i] = CommonKey[i];
|
|
}
|
|
|
|
module.exports = Key;
|