I can not figure out how to encode a message with multiple keys

I read:
/**
  * Reads an OpenPGP armored text and returns one or multiple key objects
  * @param {String} armoredText text to be parsed
  * @return {{keys: Array<module:key~Key>, err: (Array<Error>|null)}} 
result object with key and error arrays
  * @static
  */
function readArmored(armoredText) {
   var result = {};
   result.keys = [];
   try {
     var input = armor.decode(armoredText); <======== This one

ends up in
/encoding/armor.js
function dearmor(text) {
..//
     result = {
       data: base64.decode(msg_sum.body),
       headers: msg.headers,
       type: type
     };
..//
   And is not pushed to an array
.//
    return result;
}
Looks to me like only one key is used (the first) and returned

Am I missing something or is this something that should be implemented?

Regards and thank you for all the work already done!


_______________________________________________

http://openpgpjs.org
Subscribe/unsubscribe: http://list.openpgpjs.org

Reply via email to