shadow$provide.module$node_modules$minimalistic_crypto_utils$lib$utils=function(global,process,require,module,exports,shadow$shims){function zero2(word){return 1===word.length?"0"+word:word}function toHex(msg){for(var res="",i=0;i<msg.length;i++)res+=zero2(msg[i].toString(16));return res}exports.toArray=function(msg,enc){if(Array.isArray(msg))return msg.slice();if(!msg)return[];var res=[];if("string"!==typeof msg){for(enc=0;enc<msg.length;enc++)res[enc]=msg[enc]|0;return res}if("hex"===enc)for(msg=
msg.replace(/[^a-z0-9]+/ig,""),0!==msg.length%2&&(msg="0"+msg),enc=0;enc<msg.length;enc+=2)res.push(parseInt(msg[enc]+msg[enc+1],16));else for(enc=0;enc<msg.length;enc++){var c=msg.charCodeAt(enc),hi=c>>8;c&=255;hi?res.push(hi,c):res.push(c)}return res};exports.zero2=zero2;exports.toHex=toHex;exports.encode=function(arr,enc){return"hex"===enc?toHex(arr):arr}}
//# sourceMappingURL=module$node_modules$minimalistic_crypto_utils$lib$utils.js.map
