Comparing version 1.1.2 to 1.1.3
@@ -0,1 +1,10 @@ | ||
## [1.1.3](https://github.com/multiformats/js-cid/compare/v1.1.2...v1.1.3) (2020-12-11) | ||
### Bug Fixes | ||
* use latest multicodec release ([6cc387f](https://github.com/multiformats/js-cid/commit/6cc387ffe12bf29b243eb593545629200a3b5be1)) | ||
## [1.1.2](https://github.com/multiformats/js-cid/compare/v1.1.1...v1.1.2) (2020-12-11) | ||
@@ -2,0 +11,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.Cids=n():e.Cids=n()}(self,(function(){return function(e){var n={};function s(i){if(n[i])return n[i].exports;var t=n[i]={i:i,l:!1,exports:{}};return e[i].call(t.exports,t,t.exports,s),t.l=!0,t.exports}return s.m=e,s.c=n,s.d=function(e,n,i){s.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,n){if(1&n&&(e=s(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)s.d(i,t,function(n){return e[n]}.bind(null,t));return i},s.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(n,"a",n),n},s.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},s.p="",s(s.s=11)}([function(e){e.exports=JSON.parse('{"identity":0,"cidv1":1,"cidv2":2,"cidv3":3,"ip4":4,"tcp":6,"sha1":17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"blake3":30,"dccp":33,"murmur3-128":34,"murmur3-32":35,"ip6":41,"ip6zone":42,"path":47,"multicodec":48,"multihash":49,"multiaddr":50,"multibase":51,"dns":53,"dns4":54,"dns6":55,"dnsaddr":56,"protobuf":80,"cbor":81,"raw":85,"dbl-sha2-256":86,"rlp":96,"bencode":99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,"sctp":132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"docid":206,"stellar-block":208,"stellar-tx":209,"md4":212,"md5":213,"bmt":214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,"zeronet":230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,"udp":273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,"udt":301,"utp":302,"unix":400,"p2p":421,"ipfs":421,"https":443,"onion":444,"onion3":445,"garlic64":446,"garlic32":447,"tls":448,"quic":460,"ws":477,"wss":478,"p2p-websocket-star":479,"http":480,"json":512,"messagepack":513,"libp2p-peer-record":769,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,"x11":4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,"kangarootwelve":7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46000,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056}')},function(e,n,s){"use strict";const i=s(13),t=s(14),{rfc4648:r}=s(15),{decodeText:o,encodeText:k}=s(2),a=[["identity","\0",()=>({encode:o,decode:k}),""],["base2","0",r(1),"01"],["base8","7",r(3),"01234567"],["base10","9",i,"0123456789"],["base16","f",r(4),"0123456789abcdef"],["base16upper","F",r(4),"0123456789ABCDEF"],["base32hex","v",r(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",r(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",r(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",r(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",r(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",r(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",r(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",r(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",r(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",i,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",i,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",i,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",i,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",r(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",r(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",r(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",r(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],c=a.reduce((e,n)=>(e[n[0]]=new t(n[0],n[1],n[2],n[3]),e),{}),b=a.reduce((e,n)=>(e[n[1]]=c[n[0]],e),{});e.exports={names:c,codes:b}},function(e,n,s){"use strict";const{TextEncoder:i,TextDecoder:t}=s(3),r=new t,o=new i;e.exports={decodeText:e=>r.decode(e),encodeText:e=>o.encode(e),concat:function(e,n){const s=new Uint8Array(n);let i=0;for(const t of e)s.set(t,i),i+=t.length;return s}}},function(e,n,s){"use strict";n.TextEncoder=TextEncoder,n.TextDecoder=TextDecoder},function(e,n,s){"use strict";e.exports={encode:s(16),decode:s(17),encodingLength:s(18)}},function(e,n,s){"use strict";const{names:i}=s(1),{TextDecoder:t}=s(3),r=new t("utf8");e.exports=function(e,n="utf8"){if("utf8"===n||"utf-8"===n)return r.decode(e);if("ascii"===n)return function(e){let n="";for(let s=0;s<e.length;s++)n+=String.fromCharCode(e[s]);return n}(e);const s=i[n];if(!s)throw new Error("Unknown base");return s.encode(e)}},function(e,n,s){"use strict";e.exports=function(e,n){n||(n=e.reduce((e,n)=>e+n.length,0));const s=new Uint8Array(n);let i=0;for(const t of e)s.set(t,i),i+=t.length;return s}},function(e,n,s){"use strict";const i=s(8),t=s(4),{names:r}=s(19),o=s(5),k=s(9),a=s(6),c={};for(const f in r)c[r[f]]=f;function b(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");const n=t.decode(e);if(!d(n))throw new Error("multihash unknown function code: 0x"+n.toString(16));e=e.slice(t.decode.bytes);const s=t.decode(e);if(s<0)throw new Error("multihash invalid length: "+s);if((e=e.slice(t.decode.bytes)).length!==s)throw new Error("multihash length inconsistent: 0x"+o(e,"base16"));return{code:n,name:c[n],length:s,digest:e}}function l(e){let n=e;if("string"==typeof e){if(void 0===r[e])throw new Error("Unrecognized hash function named: "+e);n=r[e]}if("number"!=typeof n)throw new Error("Hash function code should be a number. Got: "+n);if(void 0===c[n]&&!u(n))throw new Error("Unrecognized function code: "+n);return n}function u(e){return e>0&&e<16}function d(e){return!!u(e)||!!c[e]}function h(e){b(e)}e.exports={names:r,codes:Object.freeze(c),toHexString:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return o(e,"base16")},fromHexString:function(e){return k(e,"base16")},toB58String:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return o(i.encode("base58btc",e)).slice(1)},fromB58String:function(e){const n=e instanceof Uint8Array?o(e):e;return i.decode("z"+n)},decode:b,encode:function(e,n,s){if(!e||void 0===n)throw new Error("multihash encode requires at least two args: digest, code");const i=l(n);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==s&&(s=e.length),s&&e.length!==s)throw new Error("digest length should be equal to specified length.");const r=t.encode(i),o=t.encode(s);return a([r,o,e],r.length+o.length+e.length)},coerceCode:l,isAppCode:u,validate:h,prefix:function(e){return h(e),e.subarray(0,2)},isValidCode:d}},function(e,n,s){"use strict";const i=s(1),{encodeText:t,decodeText:r,concat:o}=s(2);function k(e){if(i.names[e])return i.names[e];if(i.codes[e])return i.codes[e];throw new Error("Unsupported encoding: "+e)}(n=e.exports=function(e,n){if(!n)throw new Error("requires an encoded Uint8Array");const{name:s,codeBuf:i}=k(e);return function(e,n){k(e).decode(r(n))}(s,n),o([i,n],i.length+n.length)}).encode=function(e,n){const s=k(e),i=t(s.encode(n));return o([s.codeBuf,i],s.codeBuf.length+i.length)},n.decode=function(e){e instanceof Uint8Array&&(e=r(e));const n=e[0];return["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(n)&&(e=e.toLowerCase()),k(e[0]).decode(e.substring(1))},n.isEncoded=function(e){if(e instanceof Uint8Array&&(e=r(e)),"[object String]"!==Object.prototype.toString.call(e))return!1;try{return k(e[0]).name}catch(n){return!1}},n.encoding=k,n.encodingFromData=function(e){return e instanceof Uint8Array&&(e=r(e)),k(e[0])},n.names=Object.freeze(i.names),n.codes=Object.freeze(i.codes)},function(e,n,s){"use strict";const{names:i}=s(1),{TextEncoder:t}=s(3),r=new t;e.exports=function(e,n="utf8"){if("utf8"===n||"utf-8"===n)return r.encode(e);if("ascii"===n)return function(e){const n=new Uint8Array(e.length);for(let s=0;s<e.length;s++)n[s]=e.charCodeAt(s);return n}(e);const s=i[n];if(!s)throw new Error("Unknown base");return s.decode(e)}},function(e,n,s){"use strict";const i=s(4),t=s(5),r=s(9);function o(e){return parseInt(t(e,"base16"),16)}e.exports={numberToUint8Array:function(e){let n=e.toString(16);n.length%2==1&&(n="0"+n);return r(n,"base16")},uint8ArrayToNumber:o,varintUint8ArrayEncode:function(e){return Uint8Array.from(i.encode(o(e)))},varintEncode:function(e){return Uint8Array.from(i.encode(e))}}},function(e,n,s){e.exports=s(12)},function(e,n,s){"use strict";const i=s(7),t=s(8),r=s(20),o=s(0),k=s(25),a=s(6),c=s(5),b=s(26),l=Object.keys(o).reduce((e,n)=>(e[o[n]]=n,e),{}),u=Symbol.for("@ipld/js-cid/CID");class d{constructor(e,n,s,o){if(Object.defineProperty(this,u,{value:!0}),d.isCID(e)){const n=e;return this.version=n.version,this.codec=n.codec,this.multihash=n.multihash,void(this.multibaseName=n.multibaseName||(0===n.version?"base58btc":"base32"))}if("string"==typeof e){const n=t.isEncoded(e);if(n){const s=t.decode(e);this.version=parseInt(s[0].toString(),16),this.codec=r.getCodec(s.slice(1)),this.multihash=r.rmPrefix(s.slice(1)),this.multibaseName=n}else this.version=0,this.codec="dag-pb",this.multihash=i.fromB58String(e),this.multibaseName="base58btc";return d.validateCID(this),void Object.defineProperty(this,"string",{value:e})}if(e instanceof Uint8Array){const n=parseInt(e[0].toString(),16);if(1===n){const s=e;this.version=n,this.codec=r.getCodec(s.slice(1)),this.multihash=r.rmPrefix(s.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";d.validateCID(this)}else this.version=e,"number"==typeof n&&(n=l[n]),this.codec=n,this.multihash=s,this.multibaseName=o||(0===e?"base58btc":"base32"),d.validateCID(this)}get bytes(){let e=this._bytes;if(!e){if(0===this.version)e=this.multihash;else{if(1!==this.version)throw new Error("unsupported version");{const n=r.getCodeVarint(this.codec);e=a([[1],n,this.multihash],1+n.byteLength+this.multihash.byteLength)}}Object.defineProperty(this,"_bytes",{value:e})}return e}get prefix(){const e=r.getCodeVarint(this.codec),n=i.prefix(this.multihash);return a([[this.version],e,n],1+e.byteLength+n.byteLength)}get code(){return o[this.codec]}toV0(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");const{name:e,length:n}=i.decode(this.multihash);if("sha2-256"!==e)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==n)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new d(0,this.codec,this.multihash)}toV1(){return new d(1,this.codec,this.multihash)}toBaseEncodedString(e=this.multibaseName){if(this.string&&0!==this.string.length&&e===this.multibaseName)return this.string;let n;if(0===this.version){if("base58btc"!==e)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");n=i.toB58String(this.multihash)}else{if(1!==this.version)throw new Error("unsupported version");n=c(t.encode(e,this.bytes))}return e===this.multibaseName&&Object.defineProperty(this,"string",{value:n}),n}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}toString(e){return this.toBaseEncodedString(e)}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(e){return this.codec===e.codec&&this.version===e.version&&b(this.multihash,e.multihash)}static validateCID(e){const n=k.checkCIDComponents(e);if(n)throw new Error(n)}static isCID(e){return e instanceof d||Boolean(e&&e[u])}}d.codecs=o,e.exports=d},function(e,n,s){"use strict";e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),s=0;s<n.length;s++)n[s]=255;for(var i=0;i<e.length;i++){var t=e.charAt(i),r=t.charCodeAt(0);if(255!==n[r])throw new TypeError(t+" is ambiguous");n[r]=i}var o=e.length,k=e.charAt(0),a=Math.log(o)/Math.log(256),c=Math.log(256)/Math.log(o);function b(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return new Uint8Array;var s=0;if(" "!==e[s]){for(var i=0,t=0;e[s]===k;)i++,s++;for(var r=(e.length-s)*a+1>>>0,c=new Uint8Array(r);e[s];){var b=n[e.charCodeAt(s)];if(255===b)return;for(var l=0,u=r-1;(0!==b||l<t)&&-1!==u;u--,l++)b+=o*c[u]>>>0,c[u]=b%256>>>0,b=b/256>>>0;if(0!==b)throw new Error("Non-zero carry");t=l,s++}if(" "!==e[s]){for(var d=r-t;d!==r&&0===c[d];)d++;for(var h=new Uint8Array(i+(r-d)),f=i;d!==r;)h[f++]=c[d++];return h}}}return{encode:function(n){if(n instanceof Uint8Array||(ArrayBuffer.isView(n)?n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength):Array.isArray(n)&&(n=Uint8Array.from(n))),!(n instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===n.length)return"";for(var s=0,i=0,t=0,r=n.length;t!==r&&0===n[t];)t++,s++;for(var a=(r-t)*c+1>>>0,b=new Uint8Array(a);t!==r;){for(var l=n[t],u=0,d=a-1;(0!==l||u<i)&&-1!==d;d--,u++)l+=256*b[d]>>>0,b[d]=l%o>>>0,l=l/o>>>0;if(0!==l)throw new Error("Non-zero carry");i=u,t++}for(var h=a-i;h!==a&&0===b[h];)h++;for(var f=k.repeat(s);h<a;++h)f+=e.charAt(b[h]);return f},decodeUnsafe:b,decode:function(e){var n=b(e);if(n)return n;throw new Error("Non-base"+o+" character")}}}},function(e,n,s){"use strict";const{encodeText:i}=s(2);e.exports=class{constructor(e,n,s,t){this.name=e,this.code=n,this.codeBuf=i(this.code),this.alphabet=t,this.codec=s(t)}encode(e){return this.codec.encode(e)}decode(e){for(const n of e)if(this.alphabet&&this.alphabet.indexOf(n)<0)throw new Error(`invalid character '${n}' in '${e}'`);return this.codec.decode(e)}}},function(e,n,s){"use strict";e.exports={rfc4648:e=>n=>({encode:s=>((e,n,s)=>{const i="="===n[n.length-1],t=(1<<s)-1;let r="",o=0,k=0;for(let a=0;a<e.length;++a)for(k=k<<8|e[a],o+=8;o>s;)o-=s,r+=n[t&k>>o];if(o&&(r+=n[t&k<<s-o]),i)for(;r.length*s&7;)r+="=";return r})(s,n,e),decode:s=>((e,n,s)=>{const i={};for(let c=0;c<n.length;++c)i[n[c]]=c;let t=e.length;for(;"="===e[t-1];)--t;const r=new Uint8Array(t*s/8|0);let o=0,k=0,a=0;for(let c=0;c<t;++c){const n=i[e[c]];if(void 0===n)throw new SyntaxError("Invalid character "+e[c]);k=k<<s|n,o+=s,o>=8&&(o-=8,r[a++]=255&k>>o)}if(o>=s||255&k<<8-o)throw new SyntaxError("Unexpected end of data");return r})(s,n,e)})}},function(e,n,s){"use strict";e.exports=function e(n,s,t){if(Number.MAX_SAFE_INTEGER&&n>Number.MAX_SAFE_INTEGER)throw e.bytes=0,new RangeError("Could not encode varint");s=s||[];var r=t=t||0;for(;n>=i;)s[t++]=255&n|128,n/=128;for(;-128&n;)s[t++]=255&n|128,n>>>=7;return s[t]=0|n,e.bytes=t-r+1,s};var i=Math.pow(2,31)},function(e,n,s){"use strict";e.exports=function e(n,s){var i,t=0,r=0,o=s=s||0,k=n.length;do{if(o>=k||r>49)throw e.bytes=0,new RangeError("Could not decode varint");i=n[o++],t+=r<28?(127&i)<<r:(127&i)*Math.pow(2,r),r+=7}while(i>=128);return e.bytes=o-s,t}},function(e,n,s){"use strict";var i=Math.pow(2,7),t=Math.pow(2,14),r=Math.pow(2,21),o=Math.pow(2,28),k=Math.pow(2,35),a=Math.pow(2,42),c=Math.pow(2,49),b=Math.pow(2,56),l=Math.pow(2,63);e.exports=function(e){return e<i?1:e<t?2:e<r?3:e<o?4:e<k?5:e<a?6:e<c?7:e<b?8:e<l?9:10}},function(e,n,s){"use strict";const i=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});e.exports={names:i}},function(e,n,s){"use strict";const i=s(4),t=s(21),r=s(22),o=s(10),k=s(6);(n=e.exports).addPrefix=(e,n)=>{let s;if(e instanceof Uint8Array)s=o.varintUint8ArrayEncode(e);else{if(!r[e])throw new Error("multicodec not recognized");s=r[e]}return k([s,n],s.length+n.length)},n.rmPrefix=e=>(i.decode(e),e.slice(i.decode.bytes)),n.getCodec=e=>{const n=i.decode(e),s=t.get(n);if(void 0===s)throw new Error(`Code ${n} not found`);return s},n.getName=e=>t.get(e),n.getNumber=e=>{const n=r[e];if(void 0===n)throw new Error("Codec `"+e+"` not found");return i.decode(n)},n.getCode=e=>i.decode(e),n.getCodeVarint=e=>{const n=r[e];if(void 0===n)throw new Error("Codec `"+e+"` not found");return n},n.getVarint=e=>i.encode(e);const a=s(23);Object.assign(n,a),n.print=s(24)},function(e,n,s){"use strict";const i=s(0),t=new Map;for(const r in i){const e=i[r];t.set(e,r)}e.exports=Object.freeze(t)},function(e,n,s){"use strict";const i=s(0),t=s(10).varintEncode,r={};for(const o in i){const e=i[o];r[o]=t(e)}e.exports=Object.freeze(r)},function(e,n,s){"use strict";const i=s(0),t={};for(const[r,o]of Object.entries(i))t[r.toUpperCase().replace(/-/g,"_")]=o;e.exports=Object.freeze(t)},function(e,n,s){"use strict";const i=s(0),t={};for(const[r,o]of Object.entries(i))void 0===t[o]&&(t[o]=r);e.exports=Object.freeze(t)},function(e,n,s){"use strict";const i=s(7),t={checkCIDComponents:function(e){if(null==e)return"null values are not valid CIDs";if(0!==e.version&&1!==e.version)return"Invalid version, must be a number equal to 1 or 0";if("string"!=typeof e.codec)return"codec must be string";if(0===e.version){if("dag-pb"!==e.codec)return"codec must be 'dag-pb' for CIDv0";if("base58btc"!==e.multibaseName)return"multibaseName must be 'base58btc' for CIDv0"}if(!(e.multihash instanceof Uint8Array))return"multihash must be a Uint8Array";try{i.validate(e.multihash)}catch(n){let e=n.message;return e||(e="Multihash validation failed"),e}}};e.exports=t},function(e,n,s){"use strict";e.exports=function(e,n){if(e===n)return!0;if(e.byteLength!==n.byteLength)return!1;for(let s=0;s<e.byteLength;s++)if(e[s]!==n[s])return!1;return!0}}])})); | ||
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.Cids=n():e.Cids=n()}(self,(function(){return function(e){var n={};function s(i){if(n[i])return n[i].exports;var t=n[i]={i:i,l:!1,exports:{}};return e[i].call(t.exports,t,t.exports,s),t.l=!0,t.exports}return s.m=e,s.c=n,s.d=function(e,n,i){s.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,n){if(1&n&&(e=s(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)s.d(i,t,function(n){return e[n]}.bind(null,t));return i},s.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(n,"a",n),n},s.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},s.p="",s(s.s=11)}([function(e,n,s){"use strict";const i=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,docid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,json:512,messagepack:513,"libp2p-peer-record":769,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056});e.exports={baseTable:i}},function(e,n,s){"use strict";const i=s(13),t=s(14),{rfc4648:r}=s(15),{decodeText:o,encodeText:k}=s(2),a=[["identity","\0",()=>({encode:o,decode:k}),""],["base2","0",r(1),"01"],["base8","7",r(3),"01234567"],["base10","9",i,"0123456789"],["base16","f",r(4),"0123456789abcdef"],["base16upper","F",r(4),"0123456789ABCDEF"],["base32hex","v",r(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",r(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",r(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",r(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",r(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",r(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",r(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",r(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",r(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",i,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",i,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",i,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",i,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",r(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",r(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",r(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",r(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],b=a.reduce((e,n)=>(e[n[0]]=new t(n[0],n[1],n[2],n[3]),e),{}),c=a.reduce((e,n)=>(e[n[1]]=b[n[0]],e),{});e.exports={names:b,codes:c}},function(e,n,s){"use strict";const{TextEncoder:i,TextDecoder:t}=s(3),r=new t,o=new i;e.exports={decodeText:e=>r.decode(e),encodeText:e=>o.encode(e),concat:function(e,n){const s=new Uint8Array(n);let i=0;for(const t of e)s.set(t,i),i+=t.length;return s}}},function(e,n,s){"use strict";n.TextEncoder=TextEncoder,n.TextDecoder=TextDecoder},function(e,n,s){"use strict";e.exports={encode:s(16),decode:s(17),encodingLength:s(18)}},function(e,n,s){"use strict";const{names:i}=s(1),{TextDecoder:t}=s(3),r=new t("utf8");e.exports=function(e,n="utf8"){if("utf8"===n||"utf-8"===n)return r.decode(e);if("ascii"===n)return function(e){let n="";for(let s=0;s<e.length;s++)n+=String.fromCharCode(e[s]);return n}(e);const s=i[n];if(!s)throw new Error("Unknown base");return s.encode(e)}},function(e,n,s){"use strict";e.exports=function(e,n){n||(n=e.reduce((e,n)=>e+n.length,0));const s=new Uint8Array(n);let i=0;for(const t of e)s.set(t,i),i+=t.length;return s}},function(e,n,s){"use strict";const i=s(8),t=s(4),{names:r}=s(19),o=s(5),k=s(9),a=s(6),b={};for(const f in r)b[r[f]]=f;function c(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");const n=t.decode(e);if(!d(n))throw new Error("multihash unknown function code: 0x"+n.toString(16));e=e.slice(t.decode.bytes);const s=t.decode(e);if(s<0)throw new Error("multihash invalid length: "+s);if((e=e.slice(t.decode.bytes)).length!==s)throw new Error("multihash length inconsistent: 0x"+o(e,"base16"));return{code:n,name:b[n],length:s,digest:e}}function l(e){let n=e;if("string"==typeof e){if(void 0===r[e])throw new Error("Unrecognized hash function named: "+e);n=r[e]}if("number"!=typeof n)throw new Error("Hash function code should be a number. Got: "+n);if(void 0===b[n]&&!u(n))throw new Error("Unrecognized function code: "+n);return n}function u(e){return e>0&&e<16}function d(e){return!!u(e)||!!b[e]}function h(e){c(e)}e.exports={names:r,codes:Object.freeze(b),toHexString:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return o(e,"base16")},fromHexString:function(e){return k(e,"base16")},toB58String:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return o(i.encode("base58btc",e)).slice(1)},fromB58String:function(e){const n=e instanceof Uint8Array?o(e):e;return i.decode("z"+n)},decode:c,encode:function(e,n,s){if(!e||void 0===n)throw new Error("multihash encode requires at least two args: digest, code");const i=l(n);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==s&&(s=e.length),s&&e.length!==s)throw new Error("digest length should be equal to specified length.");const r=t.encode(i),o=t.encode(s);return a([r,o,e],r.length+o.length+e.length)},coerceCode:l,isAppCode:u,validate:h,prefix:function(e){return h(e),e.subarray(0,2)},isValidCode:d}},function(e,n,s){"use strict";const i=s(1),{encodeText:t,decodeText:r,concat:o}=s(2);function k(e){if(i.names[e])return i.names[e];if(i.codes[e])return i.codes[e];throw new Error("Unsupported encoding: "+e)}(n=e.exports=function(e,n){if(!n)throw new Error("requires an encoded Uint8Array");const{name:s,codeBuf:i}=k(e);return function(e,n){k(e).decode(r(n))}(s,n),o([i,n],i.length+n.length)}).encode=function(e,n){const s=k(e),i=t(s.encode(n));return o([s.codeBuf,i],s.codeBuf.length+i.length)},n.decode=function(e){e instanceof Uint8Array&&(e=r(e));const n=e[0];return["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(n)&&(e=e.toLowerCase()),k(e[0]).decode(e.substring(1))},n.isEncoded=function(e){if(e instanceof Uint8Array&&(e=r(e)),"[object String]"!==Object.prototype.toString.call(e))return!1;try{return k(e[0]).name}catch(n){return!1}},n.encoding=k,n.encodingFromData=function(e){return e instanceof Uint8Array&&(e=r(e)),k(e[0])},n.names=Object.freeze(i.names),n.codes=Object.freeze(i.codes)},function(e,n,s){"use strict";const{names:i}=s(1),{TextEncoder:t}=s(3),r=new t;e.exports=function(e,n="utf8"){if("utf8"===n||"utf-8"===n)return r.encode(e);if("ascii"===n)return function(e){const n=new Uint8Array(e.length);for(let s=0;s<e.length;s++)n[s]=e.charCodeAt(s);return n}(e);const s=i[n];if(!s)throw new Error("Unknown base");return s.decode(e)}},function(e,n,s){"use strict";const i=s(4),t=s(5),r=s(9);function o(e){return parseInt(t(e,"base16"),16)}e.exports={numberToUint8Array:function(e){let n=e.toString(16);n.length%2==1&&(n="0"+n);return r(n,"base16")},uint8ArrayToNumber:o,varintUint8ArrayEncode:function(e){return Uint8Array.from(i.encode(o(e)))},varintEncode:function(e){return Uint8Array.from(i.encode(e))}}},function(e,n,s){e.exports=s(12)},function(e,n,s){"use strict";const i=s(7),t=s(8),r=s(20),{baseTable:o}=s(0),k=s(25),a=s(6),b=s(5),c=s(26),l=Object.keys(o).reduce((e,n)=>(e[o[n]]=n,e),{}),u=Symbol.for("@ipld/js-cid/CID");class d{constructor(e,n,s,o){if(Object.defineProperty(this,u,{value:!0}),d.isCID(e)){const n=e;return this.version=n.version,this.codec=n.codec,this.multihash=n.multihash,void(this.multibaseName=n.multibaseName||(0===n.version?"base58btc":"base32"))}if("string"==typeof e){const n=t.isEncoded(e);if(n){const s=t.decode(e);this.version=parseInt(s[0].toString(),16),this.codec=r.getCodec(s.slice(1)),this.multihash=r.rmPrefix(s.slice(1)),this.multibaseName=n}else this.version=0,this.codec="dag-pb",this.multihash=i.fromB58String(e),this.multibaseName="base58btc";return d.validateCID(this),void Object.defineProperty(this,"string",{value:e})}if(e instanceof Uint8Array){const n=parseInt(e[0].toString(),16);if(1===n){const s=e;this.version=n,this.codec=r.getCodec(s.slice(1)),this.multihash=r.rmPrefix(s.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";d.validateCID(this)}else this.version=e,"number"==typeof n&&(n=l[n]),this.codec=n,this.multihash=s,this.multibaseName=o||(0===e?"base58btc":"base32"),d.validateCID(this)}get bytes(){let e=this._bytes;if(!e){if(0===this.version)e=this.multihash;else{if(1!==this.version)throw new Error("unsupported version");{const n=r.getCodeVarint(this.codec);e=a([[1],n,this.multihash],1+n.byteLength+this.multihash.byteLength)}}Object.defineProperty(this,"_bytes",{value:e})}return e}get prefix(){const e=r.getCodeVarint(this.codec),n=i.prefix(this.multihash);return a([[this.version],e,n],1+e.byteLength+n.byteLength)}get code(){return o[this.codec]}toV0(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");const{name:e,length:n}=i.decode(this.multihash);if("sha2-256"!==e)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==n)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new d(0,this.codec,this.multihash)}toV1(){return new d(1,this.codec,this.multihash)}toBaseEncodedString(e=this.multibaseName){if(this.string&&0!==this.string.length&&e===this.multibaseName)return this.string;let n;if(0===this.version){if("base58btc"!==e)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");n=i.toB58String(this.multihash)}else{if(1!==this.version)throw new Error("unsupported version");n=b(t.encode(e,this.bytes))}return e===this.multibaseName&&Object.defineProperty(this,"string",{value:n}),n}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}toString(e){return this.toBaseEncodedString(e)}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(e){return this.codec===e.codec&&this.version===e.version&&c(this.multihash,e.multihash)}static validateCID(e){const n=k.checkCIDComponents(e);if(n)throw new Error(n)}static isCID(e){return e instanceof d||Boolean(e&&e[u])}}d.codecs=o,e.exports=d},function(e,n,s){"use strict";e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),s=0;s<n.length;s++)n[s]=255;for(var i=0;i<e.length;i++){var t=e.charAt(i),r=t.charCodeAt(0);if(255!==n[r])throw new TypeError(t+" is ambiguous");n[r]=i}var o=e.length,k=e.charAt(0),a=Math.log(o)/Math.log(256),b=Math.log(256)/Math.log(o);function c(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return new Uint8Array;var s=0;if(" "!==e[s]){for(var i=0,t=0;e[s]===k;)i++,s++;for(var r=(e.length-s)*a+1>>>0,b=new Uint8Array(r);e[s];){var c=n[e.charCodeAt(s)];if(255===c)return;for(var l=0,u=r-1;(0!==c||l<t)&&-1!==u;u--,l++)c+=o*b[u]>>>0,b[u]=c%256>>>0,c=c/256>>>0;if(0!==c)throw new Error("Non-zero carry");t=l,s++}if(" "!==e[s]){for(var d=r-t;d!==r&&0===b[d];)d++;for(var h=new Uint8Array(i+(r-d)),f=i;d!==r;)h[f++]=b[d++];return h}}}return{encode:function(n){if(n instanceof Uint8Array||(ArrayBuffer.isView(n)?n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength):Array.isArray(n)&&(n=Uint8Array.from(n))),!(n instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===n.length)return"";for(var s=0,i=0,t=0,r=n.length;t!==r&&0===n[t];)t++,s++;for(var a=(r-t)*b+1>>>0,c=new Uint8Array(a);t!==r;){for(var l=n[t],u=0,d=a-1;(0!==l||u<i)&&-1!==d;d--,u++)l+=256*c[d]>>>0,c[d]=l%o>>>0,l=l/o>>>0;if(0!==l)throw new Error("Non-zero carry");i=u,t++}for(var h=a-i;h!==a&&0===c[h];)h++;for(var f=k.repeat(s);h<a;++h)f+=e.charAt(c[h]);return f},decodeUnsafe:c,decode:function(e){var n=c(e);if(n)return n;throw new Error("Non-base"+o+" character")}}}},function(e,n,s){"use strict";const{encodeText:i}=s(2);e.exports=class{constructor(e,n,s,t){this.name=e,this.code=n,this.codeBuf=i(this.code),this.alphabet=t,this.codec=s(t)}encode(e){return this.codec.encode(e)}decode(e){for(const n of e)if(this.alphabet&&this.alphabet.indexOf(n)<0)throw new Error(`invalid character '${n}' in '${e}'`);return this.codec.decode(e)}}},function(e,n,s){"use strict";e.exports={rfc4648:e=>n=>({encode:s=>((e,n,s)=>{const i="="===n[n.length-1],t=(1<<s)-1;let r="",o=0,k=0;for(let a=0;a<e.length;++a)for(k=k<<8|e[a],o+=8;o>s;)o-=s,r+=n[t&k>>o];if(o&&(r+=n[t&k<<s-o]),i)for(;r.length*s&7;)r+="=";return r})(s,n,e),decode:s=>((e,n,s)=>{const i={};for(let b=0;b<n.length;++b)i[n[b]]=b;let t=e.length;for(;"="===e[t-1];)--t;const r=new Uint8Array(t*s/8|0);let o=0,k=0,a=0;for(let b=0;b<t;++b){const n=i[e[b]];if(void 0===n)throw new SyntaxError("Invalid character "+e[b]);k=k<<s|n,o+=s,o>=8&&(o-=8,r[a++]=255&k>>o)}if(o>=s||255&k<<8-o)throw new SyntaxError("Unexpected end of data");return r})(s,n,e)})}},function(e,n,s){"use strict";e.exports=function e(n,s,t){if(Number.MAX_SAFE_INTEGER&&n>Number.MAX_SAFE_INTEGER)throw e.bytes=0,new RangeError("Could not encode varint");s=s||[];var r=t=t||0;for(;n>=i;)s[t++]=255&n|128,n/=128;for(;-128&n;)s[t++]=255&n|128,n>>>=7;return s[t]=0|n,e.bytes=t-r+1,s};var i=Math.pow(2,31)},function(e,n,s){"use strict";e.exports=function e(n,s){var i,t=0,r=0,o=s=s||0,k=n.length;do{if(o>=k||r>49)throw e.bytes=0,new RangeError("Could not decode varint");i=n[o++],t+=r<28?(127&i)<<r:(127&i)*Math.pow(2,r),r+=7}while(i>=128);return e.bytes=o-s,t}},function(e,n,s){"use strict";var i=Math.pow(2,7),t=Math.pow(2,14),r=Math.pow(2,21),o=Math.pow(2,28),k=Math.pow(2,35),a=Math.pow(2,42),b=Math.pow(2,49),c=Math.pow(2,56),l=Math.pow(2,63);e.exports=function(e){return e<i?1:e<t?2:e<r?3:e<o?4:e<k?5:e<a?6:e<b?7:e<c?8:e<l?9:10}},function(e,n,s){"use strict";const i=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});e.exports={names:i}},function(e,n,s){"use strict";const i=s(4),t=s(21),r=s(22),o=s(10),k=s(6);const a=s(23),b=s(24);e.exports={addPrefix:function(e,n){let s;if(e instanceof Uint8Array)s=o.varintUint8ArrayEncode(e);else{if(!r[e])throw new Error("multicodec not recognized");s=r[e]}return k([s,n],s.length+n.length)},rmPrefix:function(e){return i.decode(e),e.slice(i.decode.bytes)},getCodec:function(e){const n=i.decode(e),s=t.get(n);if(void 0===s)throw new Error(`Code ${n} not found`);return s},getName:function(e){return t.get(e)},getNumber:function(e){const n=r[e];if(void 0===n)throw new Error("Codec `"+e+"` not found");return i.decode(n)},getCode:function(e){return i.decode(e)},getCodeVarint:function(e){const n=r[e];if(void 0===n)throw new Error("Codec `"+e+"` not found");return n},getVarint:function(e){return i.encode(e)},print:b,...a}},function(e,n,s){"use strict";const{baseTable:i}=s(0),t=new Map;for(const r in i){const e=i[r];t.set(e,r)}e.exports=Object.freeze(t)},function(e,n,s){"use strict";const{baseTable:i}=s(0),t=s(10).varintEncode,r={};for(const o in i){const e=i[o];r[o]=t(e)}e.exports=Object.freeze(r)},function(e,n,s){"use strict";const{baseTable:i}=s(0),t={};for(const[r,o]of Object.entries(i)){t[r.toUpperCase().replace(/-/g,"_")]=o}e.exports=Object.freeze(t)},function(e,n,s){"use strict";const{baseTable:i}=s(0),t={};for(const[r,o]of Object.entries(i))void 0===t[o]&&(t[o]=r);e.exports=Object.freeze(t)},function(e,n,s){"use strict";const i=s(7),t={checkCIDComponents:function(e){if(null==e)return"null values are not valid CIDs";if(0!==e.version&&1!==e.version)return"Invalid version, must be a number equal to 1 or 0";if("string"!=typeof e.codec)return"codec must be string";if(0===e.version){if("dag-pb"!==e.codec)return"codec must be 'dag-pb' for CIDv0";if("base58btc"!==e.multibaseName)return"multibaseName must be 'base58btc' for CIDv0"}if(!(e.multihash instanceof Uint8Array))return"multihash must be a Uint8Array";try{i.validate(e.multihash)}catch(n){let e=n.message;return e||(e="Multihash validation failed"),e}}};e.exports=t},function(e,n,s){"use strict";e.exports=function(e,n){if(e===n)return!0;if(e.byteLength!==n.byteLength)return!1;for(let s=0;s<e.byteLength;s++)if(e[s]!==n[s])return!1;return!0}}])})); |
@@ -106,3 +106,3 @@ export = CID; | ||
*/ | ||
toBaseEncodedString(base?: "base58btc" | "\0" | "0" | "7" | "9" | "f" | "F" | "v" | "V" | "t" | "T" | "b" | "B" | "c" | "C" | "h" | "k" | "K" | "z" | "Z" | "m" | "M" | "u" | "U" | "identity" | "base2" | "base8" | "base10" | "base16" | "base16upper" | "base32hex" | "base32hexupper" | "base32hexpad" | "base32hexpadupper" | "base32" | "base32upper" | "base32pad" | "base32padupper" | "base32z" | "base36" | "base36upper" | "base58flickr" | "base64" | "base64pad" | "base64url" | "base64urlpad" | undefined): string; | ||
toBaseEncodedString(base?: "base58btc" | "identity" | "\0" | "0" | "7" | "9" | "f" | "F" | "v" | "V" | "t" | "T" | "b" | "B" | "c" | "C" | "h" | "k" | "K" | "z" | "Z" | "m" | "M" | "u" | "U" | "base2" | "base8" | "base10" | "base16" | "base16upper" | "base32hex" | "base32hexupper" | "base32hexpad" | "base32hexpadupper" | "base32" | "base32upper" | "base32pad" | "base32padupper" | "base32z" | "base36" | "base36upper" | "base58flickr" | "base64" | "base64pad" | "base64url" | "base64urlpad" | undefined): string; | ||
/** | ||
@@ -114,3 +114,3 @@ * Encode the CID into a string. | ||
*/ | ||
toString(base?: "base58btc" | "\0" | "0" | "7" | "9" | "f" | "F" | "v" | "V" | "t" | "T" | "b" | "B" | "c" | "C" | "h" | "k" | "K" | "z" | "Z" | "m" | "M" | "u" | "U" | "identity" | "base2" | "base8" | "base10" | "base16" | "base16upper" | "base32hex" | "base32hexupper" | "base32hexpad" | "base32hexpadupper" | "base32" | "base32upper" | "base32pad" | "base32padupper" | "base32z" | "base36" | "base36upper" | "base58flickr" | "base64" | "base64pad" | "base64url" | "base64urlpad" | undefined): string; | ||
toString(base?: "base58btc" | "identity" | "\0" | "0" | "7" | "9" | "f" | "F" | "v" | "V" | "t" | "T" | "b" | "B" | "c" | "C" | "h" | "k" | "K" | "z" | "Z" | "m" | "M" | "u" | "U" | "base2" | "base8" | "base10" | "base16" | "base16upper" | "base32hex" | "base32hexupper" | "base32hexpad" | "base32hexpadupper" | "base32" | "base32upper" | "base32pad" | "base32padupper" | "base32z" | "base36" | "base36upper" | "base58flickr" | "base64" | "base64pad" | "base64url" | "base64urlpad" | undefined): string; | ||
/** | ||
@@ -139,505 +139,4 @@ * Serialize to a plain object. | ||
type CIDVersion = 0 | 1; | ||
declare const codecs: { | ||
identity: number; | ||
cidv1: number; | ||
cidv2: number; | ||
cidv3: number; | ||
ip4: number; | ||
tcp: number; | ||
sha1: number; | ||
"sha2-256": number; | ||
"sha2-512": number; | ||
"sha3-512": number; | ||
"sha3-384": number; | ||
"sha3-256": number; | ||
"sha3-224": number; | ||
"shake-128": number; | ||
"shake-256": number; | ||
"keccak-224": number; | ||
"keccak-256": number; | ||
"keccak-384": number; | ||
"keccak-512": number; | ||
blake3: number; | ||
dccp: number; | ||
"murmur3-128": number; | ||
"murmur3-32": number; | ||
ip6: number; | ||
ip6zone: number; | ||
path: number; | ||
multicodec: number; | ||
multihash: number; | ||
multiaddr: number; | ||
multibase: number; | ||
dns: number; | ||
dns4: number; | ||
/** | ||
* @typedef {Object} SerializedCID | ||
* @property {string} codec | ||
* @property {number} version | ||
* @property {Uint8Array} hash | ||
*/ | ||
/** | ||
* @typedef {0|1} CIDVersion | ||
* @typedef {import('multibase').BaseNameOrCode} BaseNameOrCode | ||
*/ | ||
/** | ||
* Class representing a CID `<mbase><version><mcodec><mhash>` | ||
* , as defined in [ipld/cid](https://github.com/multiformats/cid). | ||
* | ||
* @class CID | ||
*/ | ||
dns6: number; | ||
dnsaddr: number; | ||
protobuf: number; | ||
cbor: number; | ||
raw: number; | ||
"dbl-sha2-256": number; | ||
rlp: number; | ||
bencode: number; | ||
"dag-pb": number; | ||
"dag-cbor": number; | ||
"libp2p-key": number; | ||
"git-raw": number; | ||
"torrent-info": number; | ||
"torrent-file": number; | ||
"leofcoin-block": number; | ||
"leofcoin-tx": number; | ||
"leofcoin-pr": number; | ||
sctp: number; | ||
"dag-jose": number; | ||
"dag-cose": number; | ||
"eth-block": number; | ||
"eth-block-list": number; | ||
"eth-tx-trie": number; | ||
"eth-tx": number; | ||
"eth-tx-receipt-trie": number; | ||
"eth-tx-receipt": number; | ||
"eth-state-trie": number; | ||
"eth-account-snapshot": number; | ||
"eth-storage-trie": number; | ||
"bitcoin-block": number; | ||
"bitcoin-tx": number; | ||
"bitcoin-witness-commitment": number; | ||
"zcash-block": number; | ||
"zcash-tx": number; | ||
docid: number; | ||
"stellar-block": number; | ||
"stellar-tx": number; | ||
md4: number; | ||
md5: number; | ||
bmt: number; | ||
"decred-block": number; | ||
"decred-tx": number; | ||
"ipld-ns": number; | ||
"ipfs-ns": number; | ||
"swarm-ns": number; | ||
"ipns-ns": number; | ||
zeronet: number; | ||
"secp256k1-pub": number; | ||
"bls12_381-g1-pub": number; | ||
"bls12_381-g2-pub": number; | ||
"x25519-pub": number; | ||
"ed25519-pub": number; | ||
"bls12_381-g1g2-pub": number; | ||
"dash-block": number; | ||
"dash-tx": number; | ||
"swarm-manifest": number; | ||
"swarm-feed": number; | ||
udp: number; | ||
"p2p-webrtc-star": number; | ||
"p2p-webrtc-direct": number; | ||
"p2p-stardust": number; | ||
"p2p-circuit": number; | ||
"dag-json": number; | ||
udt: number; | ||
utp: number; | ||
unix: number; | ||
p2p: number; | ||
ipfs: number; | ||
https: number; /** @type {CID} */ | ||
onion: number; | ||
onion3: number; | ||
garlic64: number; | ||
garlic32: number; | ||
tls: number; | ||
quic: number; | ||
ws: number; | ||
wss: number; | ||
"p2p-websocket-star": number; | ||
http: number; | ||
json: number; | ||
messagepack: number; | ||
"libp2p-peer-record": number; | ||
"sha2-256-trunc254-padded": number; | ||
"ripemd-128": number; | ||
"ripemd-160": number; | ||
"ripemd-256": number; | ||
"ripemd-320": number; | ||
x11: number; | ||
"p256-pub": number; | ||
"p384-pub": number; | ||
"p521-pub": number; | ||
"ed448-pub": number; | ||
"x448-pub": number; | ||
"ed25519-priv": number; | ||
kangarootwelve: number; | ||
"sm3-256": number; | ||
"blake2b-8": number; | ||
"blake2b-16": number; | ||
"blake2b-24": number; | ||
"blake2b-32": number; | ||
"blake2b-40": number; | ||
"blake2b-48": number; | ||
"blake2b-56": number; | ||
"blake2b-64": number; | ||
"blake2b-72": number; | ||
"blake2b-80": number; | ||
"blake2b-88": number; | ||
"blake2b-96": number; | ||
"blake2b-104": number; | ||
"blake2b-112": number; | ||
"blake2b-120": number; | ||
"blake2b-128": number; | ||
"blake2b-136": number; | ||
"blake2b-144": number; | ||
"blake2b-152": number; | ||
"blake2b-160": number; | ||
"blake2b-168": number; | ||
"blake2b-176": number; | ||
"blake2b-184": number; | ||
"blake2b-192": number; | ||
"blake2b-200": number; | ||
"blake2b-208": number; | ||
"blake2b-216": number; | ||
"blake2b-224": number; | ||
"blake2b-232": number; | ||
"blake2b-240": number; | ||
"blake2b-248": number; | ||
"blake2b-256": number; | ||
"blake2b-264": number; | ||
"blake2b-272": number; | ||
"blake2b-280": number; | ||
"blake2b-288": number; | ||
"blake2b-296": number; | ||
"blake2b-304": number; | ||
"blake2b-312": number; | ||
"blake2b-320": number; | ||
"blake2b-328": number; | ||
"blake2b-336": number; | ||
"blake2b-344": number; | ||
"blake2b-352": number; | ||
"blake2b-360": number; | ||
"blake2b-368": number; | ||
"blake2b-376": number; | ||
"blake2b-384": number; | ||
"blake2b-392": number; | ||
"blake2b-400": number; | ||
/** | ||
* The version of the CID. | ||
* | ||
* @type {CIDVersion} | ||
*/ | ||
"blake2b-408": number; | ||
"blake2b-416": number; | ||
"blake2b-424": number; | ||
"blake2b-432": number; | ||
"blake2b-440": number; | ||
"blake2b-448": number; | ||
"blake2b-456": number; | ||
"blake2b-464": number; | ||
"blake2b-472": number; | ||
"blake2b-480": number; /** | ||
* The codec of the CID. | ||
* | ||
* @type {string} | ||
*/ | ||
"blake2b-488": number; | ||
"blake2b-496": number; | ||
"blake2b-504": number; | ||
"blake2b-512": number; /** | ||
* The multihash of the CID. | ||
* | ||
* @type {Uint8Array} | ||
*/ | ||
"blake2s-8": number; | ||
"blake2s-16": number; | ||
"blake2s-24": number; | ||
"blake2s-32": number; | ||
"blake2s-40": number; /** | ||
* Multibase name as string. | ||
* | ||
* @deprecated | ||
* @type {string} | ||
*/ | ||
"blake2s-48": number; | ||
"blake2s-56": number; | ||
"blake2s-64": number; | ||
"blake2s-72": number; | ||
"blake2s-80": number; | ||
"blake2s-88": number; | ||
"blake2s-96": number; | ||
"blake2s-104": number; | ||
"blake2s-112": number; | ||
/** | ||
* The CID as a `Uint8Array` | ||
* | ||
* @returns {Uint8Array} | ||
* | ||
*/ | ||
"blake2s-120": number; | ||
"blake2s-128": number; | ||
"blake2s-136": number; | ||
"blake2s-144": number; | ||
"blake2s-152": number; | ||
"blake2s-160": number; | ||
"blake2s-168": number; | ||
"blake2s-176": number; | ||
"blake2s-184": number; | ||
"blake2s-192": number; | ||
"blake2s-200": number; | ||
"blake2s-208": number; | ||
"blake2s-216": number; | ||
"blake2s-224": number; | ||
"blake2s-232": number; | ||
"blake2s-240": number; | ||
"blake2s-248": number; | ||
"blake2s-256": number; | ||
"skein256-8": number; | ||
"skein256-16": number; | ||
"skein256-24": number; | ||
"skein256-32": number; | ||
"skein256-40": number; | ||
"skein256-48": number; | ||
"skein256-56": number; | ||
"skein256-64": number; | ||
"skein256-72": number; | ||
"skein256-80": number; | ||
"skein256-88": number; | ||
"skein256-96": number; | ||
"skein256-104": number; | ||
"skein256-112": number; | ||
"skein256-120": number; | ||
"skein256-128": number; | ||
"skein256-136": number; | ||
"skein256-144": number; | ||
"skein256-152": number; | ||
"skein256-160": number; | ||
"skein256-168": number; | ||
"skein256-176": number; | ||
"skein256-184": number; | ||
"skein256-192": number; | ||
"skein256-200": number; | ||
"skein256-208": number; | ||
"skein256-216": number; | ||
"skein256-224": number; | ||
"skein256-232": number; | ||
"skein256-240": number; | ||
"skein256-248": number; | ||
"skein256-256": number; | ||
"skein512-8": number; | ||
"skein512-16": number; | ||
"skein512-24": number; | ||
"skein512-32": number; | ||
"skein512-40": number; | ||
"skein512-48": number; | ||
"skein512-56": number; | ||
"skein512-64": number; | ||
"skein512-72": number; | ||
"skein512-80": number; | ||
"skein512-88": number; | ||
"skein512-96": number; | ||
"skein512-104": number; | ||
"skein512-112": number; | ||
"skein512-120": number; | ||
"skein512-128": number; | ||
"skein512-136": number; | ||
"skein512-144": number; | ||
"skein512-152": number; | ||
"skein512-160": number; | ||
"skein512-168": number; | ||
"skein512-176": number; | ||
"skein512-184": number; | ||
"skein512-192": number; | ||
"skein512-200": number; | ||
"skein512-208": number; | ||
"skein512-216": number; | ||
"skein512-224": number; | ||
"skein512-232": number; | ||
"skein512-240": number; | ||
"skein512-248": number; | ||
"skein512-256": number; | ||
"skein512-264": number; | ||
"skein512-272": number; | ||
"skein512-280": number; | ||
"skein512-288": number; | ||
"skein512-296": number; | ||
"skein512-304": number; | ||
"skein512-312": number; | ||
"skein512-320": number; | ||
"skein512-328": number; | ||
"skein512-336": number; | ||
"skein512-344": number; | ||
"skein512-352": number; | ||
"skein512-360": number; | ||
"skein512-368": number; | ||
"skein512-376": number; | ||
"skein512-384": number; | ||
"skein512-392": number; | ||
"skein512-400": number; | ||
"skein512-408": number; | ||
"skein512-416": number; | ||
"skein512-424": number; | ||
"skein512-432": number; | ||
"skein512-440": number; | ||
"skein512-448": number; | ||
"skein512-456": number; | ||
"skein512-464": number; | ||
"skein512-472": number; | ||
"skein512-480": number; | ||
"skein512-488": number; | ||
"skein512-496": number; | ||
"skein512-504": number; | ||
"skein512-512": number; | ||
"skein1024-8": number; | ||
"skein1024-16": number; | ||
"skein1024-24": number; | ||
"skein1024-32": number; | ||
"skein1024-40": number; | ||
"skein1024-48": number; | ||
"skein1024-56": number; | ||
"skein1024-64": number; | ||
"skein1024-72": number; | ||
"skein1024-80": number; | ||
"skein1024-88": number; | ||
"skein1024-96": number; | ||
"skein1024-104": number; | ||
"skein1024-112": number; | ||
"skein1024-120": number; | ||
"skein1024-128": number; | ||
"skein1024-136": number; | ||
"skein1024-144": number; | ||
"skein1024-152": number; | ||
"skein1024-160": number; | ||
"skein1024-168": number; | ||
"skein1024-176": number; | ||
"skein1024-184": number; | ||
"skein1024-192": number; | ||
"skein1024-200": number; | ||
"skein1024-208": number; | ||
"skein1024-216": number; | ||
"skein1024-224": number; | ||
"skein1024-232": number; | ||
"skein1024-240": number; | ||
"skein1024-248": number; | ||
"skein1024-256": number; | ||
"skein1024-264": number; | ||
"skein1024-272": number; | ||
"skein1024-280": number; | ||
"skein1024-288": number; | ||
"skein1024-296": number; | ||
"skein1024-304": number; | ||
"skein1024-312": number; | ||
"skein1024-320": number; | ||
"skein1024-328": number; | ||
"skein1024-336": number; | ||
"skein1024-344": number; | ||
"skein1024-352": number; | ||
"skein1024-360": number; | ||
"skein1024-368": number; | ||
"skein1024-376": number; | ||
"skein1024-384": number; | ||
"skein1024-392": number; | ||
"skein1024-400": number; | ||
"skein1024-408": number; | ||
"skein1024-416": number; | ||
"skein1024-424": number; | ||
"skein1024-432": number; | ||
"skein1024-440": number; | ||
"skein1024-448": number; | ||
"skein1024-456": number; | ||
"skein1024-464": number; | ||
"skein1024-472": number; | ||
"skein1024-480": number; | ||
"skein1024-488": number; | ||
"skein1024-496": number; | ||
"skein1024-504": number; | ||
"skein1024-512": number; | ||
"skein1024-520": number; | ||
"skein1024-528": number; | ||
"skein1024-536": number; | ||
"skein1024-544": number; | ||
"skein1024-552": number; | ||
"skein1024-560": number; | ||
"skein1024-568": number; | ||
"skein1024-576": number; | ||
"skein1024-584": number; | ||
"skein1024-592": number; | ||
"skein1024-600": number; | ||
"skein1024-608": number; | ||
"skein1024-616": number; | ||
"skein1024-624": number; | ||
"skein1024-632": number; | ||
"skein1024-640": number; | ||
"skein1024-648": number; | ||
"skein1024-656": number; | ||
"skein1024-664": number; | ||
"skein1024-672": number; | ||
"skein1024-680": number; | ||
"skein1024-688": number; | ||
"skein1024-696": number; | ||
"skein1024-704": number; | ||
"skein1024-712": number; | ||
"skein1024-720": number; | ||
"skein1024-728": number; | ||
"skein1024-736": number; | ||
"skein1024-744": number; | ||
"skein1024-752": number; | ||
"skein1024-760": number; | ||
"skein1024-768": number; | ||
"skein1024-776": number; | ||
"skein1024-784": number; | ||
"skein1024-792": number; | ||
"skein1024-800": number; | ||
"skein1024-808": number; | ||
"skein1024-816": number; | ||
"skein1024-824": number; | ||
"skein1024-832": number; | ||
"skein1024-840": number; | ||
"skein1024-848": number; | ||
"skein1024-856": number; | ||
"skein1024-864": number; | ||
"skein1024-872": number; | ||
"skein1024-880": number; | ||
"skein1024-888": number; | ||
"skein1024-896": number; | ||
"skein1024-904": number; | ||
"skein1024-912": number; | ||
"skein1024-920": number; | ||
"skein1024-928": number; | ||
"skein1024-936": number; | ||
"skein1024-944": number; | ||
"skein1024-952": number; | ||
"skein1024-960": number; | ||
"skein1024-968": number; | ||
"skein1024-976": number; | ||
"skein1024-984": number; | ||
"skein1024-992": number; | ||
"skein1024-1000": number; | ||
"skein1024-1008": number; | ||
"skein1024-1016": number; | ||
"skein1024-1024": number; | ||
"poseidon-bls12_381-a2-fc1": number; | ||
"poseidon-bls12_381-a2-fc1-sc": number; | ||
"zeroxcert-imprint-256": number; | ||
"fil-commitment-unsealed": number; | ||
"fil-commitment-sealed": number; | ||
"holochain-adr-v0": number; | ||
"holochain-adr-v1": number; | ||
"holochain-key-v0": number; | ||
"holochain-key-v1": number; | ||
"holochain-sig-v0": number; | ||
"holochain-sig-v1": number; | ||
"skynet-ns": number; | ||
}; | ||
type BaseNameOrCode = "base58btc" | "\0" | "0" | "7" | "9" | "f" | "F" | "v" | "V" | "t" | "T" | "b" | "B" | "c" | "C" | "h" | "k" | "K" | "z" | "Z" | "m" | "M" | "u" | "U" | "identity" | "base2" | "base8" | "base10" | "base16" | "base16upper" | "base32hex" | "base32hexupper" | "base32hexpad" | "base32hexpadupper" | "base32" | "base32upper" | "base32pad" | "base32padupper" | "base32z" | "base36" | "base36upper" | "base58flickr" | "base64" | "base64pad" | "base64url" | "base64urlpad"; | ||
declare const codecs: Record<import("multicodec/src/generated-types").CodecName, import("multicodec/src/generated-types").CodecNumber>; | ||
type BaseNameOrCode = "base58btc" | "identity" | "\0" | "0" | "7" | "9" | "f" | "F" | "v" | "V" | "t" | "T" | "b" | "B" | "c" | "C" | "h" | "k" | "K" | "z" | "Z" | "m" | "M" | "u" | "U" | "base2" | "base8" | "base10" | "base16" | "base16upper" | "base32hex" | "base32hexupper" | "base32hexpad" | "base32hexpadupper" | "base32" | "base32upper" | "base32pad" | "base32padupper" | "base32z" | "base36" | "base36upper" | "base58flickr" | "base64" | "base64pad" | "base64url" | "base64urlpad"; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "cids", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "CID Implementation in JavaScript", | ||
@@ -18,3 +18,4 @@ "leadMaintainer": "Volker Mische <volker.mische@gmail.com>", | ||
"coverage": "aegir coverage", | ||
"docs": "aegir docs" | ||
"docs": "aegir docs", | ||
"prepare": "aegir ts -p types" | ||
}, | ||
@@ -44,3 +45,3 @@ "files": [ | ||
"multibase": "^3.0.1", | ||
"multicodec": "=2.0.4", | ||
"multicodec": "^2.1.0", | ||
"multihashes": "^3.0.1", | ||
@@ -47,0 +48,0 @@ "uint8arrays": "^1.1.0" |
@@ -6,3 +6,3 @@ 'use strict' | ||
const multicodec = require('multicodec') | ||
const codecs = require('multicodec/src/base-table.json') | ||
const { baseTable: codecs } = require('multicodec/src/base-table.js') | ||
const CIDUtil = require('./cid-util') | ||
@@ -9,0 +9,0 @@ const uint8ArrayConcat = require('uint8arrays/concat') |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72470
496
1
+ Addedmulticodec@2.1.3(transitive)
Updatedmulticodec@^2.1.0