mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-03-30 15:08:32 +00:00
Helper method: get Keyid object from hex keyid.
This commit is contained in:
parent
c9b4f7532e
commit
de0a6d1259
@ -71,3 +71,9 @@ module.exports.fromClone = function (clone) {
|
||||
keyid.bytes = clone.bytes;
|
||||
return keyid;
|
||||
};
|
||||
|
||||
module.exports.fromId = function (hex) {
|
||||
var keyid = new Keyid();
|
||||
keyid.read(util.hex2bin(hex));
|
||||
return keyid;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user