{"_id":"@scure/base","_rev":"4579023","name":"@scure/base","description":"Secure, audited & 0-dep implementation of base64, bech32, base58, base32 & base16","dist-tags":{"beta":"2.0.0-beta.1","latest":"2.0.0"},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"time":{"modified":"2026-04-10T15:52:45.000Z","created":"2022-01-17T23:19:06.067Z","2.0.0":"2025-08-25T15:05:17.732Z","2.0.0-beta.1":"2025-08-17T12:15:09.018Z","1.2.6":"2025-05-29T19:44:58.974Z","1.2.5":"2025-04-24T15:22:35.449Z","1.2.4":"2025-01-18T10:19:20.875Z","1.2.3":"2025-01-18T10:00:56.636Z","1.2.2":"2025-01-18T09:08:07.286Z","1.2.1":"2024-11-23T07:21:04.034Z","1.2.0":"2024-11-22T21:58:13.040Z","1.1.9":"2024-09-18T05:06:38.540Z","1.1.8":"2024-09-03T23:19:30.197Z","1.1.7":"2024-06-13T21:12:15.377Z","1.1.6":"2024-03-20T14:34:22.690Z","1.1.5":"2023-12-13T09:15:58.758Z","1.1.4":"2023-12-11T23:59:49.388Z","1.1.3":"2023-08-31T01:25:08.638Z","1.1.2":"2023-08-25T22:35:28.811Z","1.1.1":"2022-06-15T10:20:05.565Z","1.1.0":"2022-06-11T23:09:39.272Z","1.0.0":"2022-01-26T14:37:24.726Z","1.0.0-rc1":"2022-01-17T23:19:06.067Z"},"users":{},"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"versions":{"2.0.0":{"name":"@scure/base","version":"2.0.0","description":"Secure, audited & 0-dep implementation of base64, bech32, base58, base32 & base16","devDependencies":{"@noble/hashes":"2.0.0","@paulmillr/jsbt":"0.4.4","@types/node":"24.2.1","fast-check":"4.2.0","prettier":"3.6.2","typescript":"5.9.2"},"scripts":{"bench":"node test/benchmark/index.ts","build":"tsc","build:release":"npx --no @paulmillr/jsbt esbuild test/build","format":"prettier --write index.ts test/*.test.ts","test":"node test/index.ts","test:bun":"bun test/index.ts","test:deno":"deno --allow-env --allow-read test/index.ts && deno test/deno.ts","test:node20":"cd test; npx tsc; node compiled/test/index.js"},"keywords":["bech32","bech32m","base64","base58","base32","base16","rfc4648","rfc3548","crockford","encode","encoder","base-x","base"],"homepage":"https://paulmillr.com/noble/#scure","funding":"https://paulmillr.com/funding/","repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"type":"module","main":"index.js","module":"index.js","types":"index.d.ts","sideEffects":false,"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"license":"MIT","_id":"@scure/base@2.0.0","gitHead":"d765626b9793879d2c28fb77e5be5a233ba8c453","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"_nodeVersion":"24.6.0","_npmVersion":"11.5.1","dist":{"shasum":"ba6371fddf92c2727e88ad6ab485db6e624f9a98","size":24866,"noattachment":false,"key":"/@scure/base/-/@scure/base-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@scure/base/download/@scure/base-2.0.0.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/base_2.0.0_1756134317543_0.5409879925253547"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-25T15:05:17.732Z","publish_time":1756134317732,"_source_registry_name":"default","_cnpm_publish_time":1756134317732},"2.0.0-beta.1":{"name":"@scure/base","version":"2.0.0-beta.1","description":"Secure, audited & 0-dep implementation of base64, bech32, base58, base32 & base16","devDependencies":{"@noble/hashes":"2.0.0-beta.5","@paulmillr/jsbt":"0.4.2","@types/node":"24.2.1","fast-check":"4.2.0","micro-bmark":"0.4.2","micro-should":"0.5.3","prettier":"3.6.2","typescript":"5.9.2"},"scripts":{"bench":"node test/benchmark/index.js","build":"tsc","build:release":"npx --no @paulmillr/jsbt esbuild test/build","format":"prettier --write index.ts test/*.test.ts","test":"node test/index.ts","test:bun":"bun test/index.ts","test:deno":"deno --allow-env --allow-read test/index.ts && deno test/deno.ts","test:node20":"cd test; npx tsc; node compiled/test/index.js"},"keywords":["bech32","bech32m","base64","base58","base32","base16","rfc4648","rfc3548","crockford","encode","encoder","base-x","base"],"homepage":"https://paulmillr.com/noble/#scure","funding":"https://paulmillr.com/funding/","repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"type":"module","main":"index.js","module":"index.js","types":"index.d.ts","sideEffects":false,"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"license":"MIT","_id":"@scure/base@2.0.0-beta.1","readmeFilename":"README.md","gitHead":"389662d2521876af4be07b55172576e7377828ac","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"_nodeVersion":"24.4.1","_npmVersion":"11.4.2","dist":{"shasum":"6ce69e404ee9a1a52784e92d62b230f3a9e7dbf6","size":25100,"noattachment":false,"key":"/@scure/base/-/@scure/base-2.0.0-beta.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@scure/base/download/@scure/base-2.0.0-beta.1.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/base_2.0.0-beta.1_1755432908826_0.4943521738774259"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-17T12:15:09.018Z","publish_time":1755432909018,"_source_registry_name":"default","_cnpm_publish_time":1755432909018},"1.2.6":{"name":"@scure/base","version":"1.2.6","description":"Secure, audited & 0-dep implementation of base64, bech32, base58, base32 & base16","main":"./lib/index.js","module":"./lib/esm/index.js","types":"./lib/index.d.ts","exports":{".":{"import":"./lib/esm/index.js","require":"./lib/index.js"}},"scripts":{"bench":"node test/benchmark/index.js","build":"tsc && tsc -p tsconfig.cjs.json","build:release":"npx jsbt esbuild test/build","lint":"prettier --check index.ts","format":"prettier --write index.ts","test":"node test/index.js","test:bun":"bun test/index.js","test:deno":"deno --allow-env --allow-read test/index.js && deno test/deno.ts"},"sideEffects":false,"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"license":"MIT","homepage":"https://paulmillr.com/noble/#scure","repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"devDependencies":{"@noble/hashes":"1.8.0","@paulmillr/jsbt":"0.3.3","@types/node":"22.15.23","fast-check":"4.1.1","micro-bmark":"0.4.2","micro-should":"0.5.3","prettier":"3.5.3","typescript":"5.8.3"},"keywords":["bech32","bech32m","base64","base58","base32","base16","rfc4648","rfc3548","crockford","encode","encoder","base-x","base"],"funding":"https://paulmillr.com/funding/","_id":"@scure/base@1.2.6","gitHead":"ffaad85318b400399965e8d73e1f936d78989308","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"_nodeVersion":"22.13.0","_npmVersion":"10.9.2","dist":{"shasum":"ca917184b8231394dd8847509c67a0be522e59f6","size":26735,"noattachment":false,"key":"/@scure/base/-/@scure/base-1.2.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/@scure/base/download/@scure/base-1.2.6.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/base_1.2.6_1748547898782_0.43821663845105263"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-05-29T19:44:58.974Z","publish_time":1748547898974,"_source_registry_name":"default","_cnpm_publish_time":1748547898974},"1.2.5":{"name":"@scure/base","version":"1.2.5","description":"Secure, audited & 0-dep implementation of base64, bech32, base58, base32 & base16","main":"./lib/index.js","module":"./lib/esm/index.js","types":"./lib/index.d.ts","exports":{".":{"import":"./lib/esm/index.js","require":"./lib/index.js"}},"scripts":{"bench":"node test/benchmark/index.js","build":"tsc && tsc -p tsconfig.cjs.json","build:release":"npx jsbt esbuild test/build","lint":"prettier --check index.ts","format":"prettier --write index.ts","test":"node test/index.js","test:bun":"bun test/index.js","test:deno":"deno --allow-env --allow-read test/index.js && deno test/deno.ts"},"sideEffects":false,"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"license":"MIT","homepage":"https://paulmillr.com/noble/#scure","repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"devDependencies":{"@noble/hashes":"1.8.0","@paulmillr/jsbt":"0.3.3","fast-check":"3.0.0","micro-bmark":"0.4.1","micro-should":"0.5.2","prettier":"3.5.3","typescript":"5.8.3"},"keywords":["bech32","bech32m","base64","base58","base32","base16","rfc4648","rfc3548","crockford","encode","encoder","base-x","base"],"funding":"https://paulmillr.com/funding/","_id":"@scure/base@1.2.5","gitHead":"69870a8a7367ba83169102c32418a8481f7d194c","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"_nodeVersion":"22.13.0","_npmVersion":"10.9.2","dist":{"shasum":"f9d1b232425b367d0dcb81c96611dcc651d58671","size":26482,"noattachment":false,"key":"/@scure/base/-/@scure/base-1.2.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@scure/base/download/@scure/base-1.2.5.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/base_1.2.5_1745508155273_0.41108588232165677"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-24T15:22:35.449Z","publish_time":1745508155449,"_source_registry_name":"default","_cnpm_publish_time":1745508155449},"1.2.4":{"name":"@scure/base","version":"1.2.4","description":"Secure, audited & 0-dep implementation of base64, bech32, base58, base32 & base16","main":"./lib/index.js","module":"./lib/esm/index.js","types":"./lib/index.d.ts","exports":{".":{"import":"./lib/esm/index.js","require":"./lib/index.js"}},"scripts":{"bench":"node test/benchmark/index.js","build":"tsc && tsc -p tsconfig.cjs.json","build:release":"npx jsbt esbuild test/build","lint":"prettier --check index.ts","format":"prettier --write index.ts","test":"node test/index.js","test:bun":"bun test/index.js","test:deno":"deno --allow-env --allow-read test/index.js && deno test/deno.ts"},"sideEffects":false,"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"license":"MIT","homepage":"https://paulmillr.com/noble/#scure","repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"devDependencies":{"@noble/hashes":"1.7.1","@paulmillr/jsbt":"0.3.1","fast-check":"3.0.0","micro-bmark":"0.4.0","micro-should":"0.5.1","prettier":"3.3.2","typescript":"5.5.2"},"keywords":["bech32","bech32m","base64","base58","base32","base16","rfc4648","rfc3548","crockford","encode","encoder","base-x","base"],"funding":"https://paulmillr.com/funding/","_id":"@scure/base@1.2.4","gitHead":"75f2e63d3e3aabf920c214c3fc8dcd608ff73bb3","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"_nodeVersion":"22.13.0","_npmVersion":"10.9.2","dist":{"shasum":"002eb571a35d69bdb4c214d0995dff76a8dcd2a9","size":23688,"noattachment":false,"key":"/@scure/base/-/@scure/base-1.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@scure/base/download/@scure/base-1.2.4.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/base_1.2.4_1737195560674_0.38923960763746934"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-18T10:19:20.875Z","publish_time":1737195560875,"_source_registry_name":"default","_cnpm_publish_time":1737195560875},"1.2.3":{"name":"@scure/base","version":"1.2.3","description":"Secure, audited & 0-dep implementation of base64, bech32, base58, base32 & base16","main":"./lib/index.js","module":"./lib/esm/index.js","types":"./lib/index.d.ts","exports":{".":{"import":"./lib/esm/index.js","require":"./lib/index.js"}},"scripts":{"bench":"node test/benchmark/index.js","build":"tsc && tsc -p tsconfig.cjs.json","build:release":"npx jsbt esbuild test/build","lint":"prettier --check index.ts","format":"prettier --write index.ts","test":"node test/index.js","test:bun":"bun test/index.js","test:deno":"deno --allow-env --allow-read test/index.js && deno test/deno.ts"},"sideEffects":false,"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"license":"MIT","homepage":"https://paulmillr.com/noble/#scure","repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"devDependencies":{"@noble/hashes":"1.7.1","@paulmillr/jsbt":"0.3.1","fast-check":"3.0.0","micro-bmark":"0.4.0","micro-should":"0.5.1","prettier":"3.3.2","typescript":"5.5.2"},"keywords":["bech32","bech32m","base64","base58","base32","base16","rfc4648","rfc3548","crockford","encode","encoder","base-x","base"],"funding":"https://paulmillr.com/funding/","_id":"@scure/base@1.2.3","gitHead":"951e9a9fc8cc8372cf8f1681c55d5dbf4fc099d2","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"_nodeVersion":"22.13.0","_npmVersion":"10.9.2","dist":{"shasum":"cf00f3333b17bef05bc88bfb6ba8539014292060","size":23098,"noattachment":false,"key":"/@scure/base/-/@scure/base-1.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@scure/base/download/@scure/base-1.2.3.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/base_1.2.3_1737194456463_0.97769235278492"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-18T10:00:56.636Z","publish_time":1737194456636,"_source_registry_name":"default","_cnpm_publish_time":1737194456636},"1.2.2":{"name":"@scure/base","version":"1.2.2","description":"Secure, audited & 0-dep implementation of base64, bech32, base58, base32 & base16","main":"./lib/index.js","module":"./lib/esm/index.js","types":"./lib/index.d.ts","exports":{".":{"import":"./lib/esm/index.js","require":"./lib/index.js"}},"scripts":{"bench":"node test/benchmark/index.js","build":"tsc && tsc -p tsconfig.cjs.json","build:release":"npx jsbt esbuild test/build","lint":"prettier --check index.ts","format":"prettier --write index.ts","test":"node test/index.js","test:bun":"bun test/index.js","test:deno":"deno --allow-env --allow-read test/index.js && deno test/deno.ts"},"sideEffects":false,"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"license":"MIT","homepage":"https://paulmillr.com/noble/#scure","repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"devDependencies":{"@noble/hashes":"1.7.1","@paulmillr/jsbt":"0.3.1","fast-check":"3.0.0","micro-bmark":"0.4.0","micro-should":"0.5.1","prettier":"3.3.2","typescript":"5.5.2"},"keywords":["bech32","bech32m","base64","base58","base32","base16","rfc4648","rfc3548","crockford","encode","encoder","base-x","base"],"funding":"https://paulmillr.com/funding/","_id":"@scure/base@1.2.2","gitHead":"66a0837d7ab33930fadc603873f6db7f53d58c3b","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"_nodeVersion":"22.13.0","_npmVersion":"10.9.2","dist":{"shasum":"cd57c80992e47305e240f508dbabc67510e493e2","size":22270,"noattachment":false,"key":"/@scure/base/-/@scure/base-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@scure/base/download/@scure/base-1.2.2.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/base_1.2.2_1737191287069_0.027667294203398196"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-18T09:08:07.286Z","publish_time":1737191287286,"_source_registry_name":"default","_cnpm_publish_time":1737191287286},"1.2.1":{"name":"@scure/base","version":"1.2.1","description":"Secure, audited & 0-dep implementation of base64, bech32, base58, base32 & base16","main":"lib/index.js","module":"lib/esm/index.js","types":"lib/index.d.ts","exports":{".":{"import":"./lib/esm/index.js","require":"./lib/index.js"}},"scripts":{"bench":"node test/benchmark/index.js","build":"tsc && tsc -p tsconfig.esm.json","lint":"prettier --check index.ts","format":"prettier --write index.ts","test":"node test/index.js","test:deno":"deno test test/deno.ts"},"sideEffects":false,"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"license":"MIT","homepage":"https://paulmillr.com/noble/#scure","repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"devDependencies":{"@paulmillr/jsbt":"0.2.1","fast-check":"3.0.0","micro-should":"0.4.0","prettier":"3.3.2","typescript":"5.5.2"},"keywords":["bech32","bech32m","base64","base58","base32","base16","rfc4648","rfc3548","crockford","encode","encoder","base-x","base"],"funding":"https://paulmillr.com/funding/","_id":"@scure/base@1.2.1","gitHead":"19591712872157176ac780a0f1602833c9e07950","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"_nodeVersion":"20.18.0","_npmVersion":"10.9.1","dist":{"shasum":"dd0b2a533063ca612c17aa9ad26424a2ff5aa865","size":23420,"noattachment":false,"key":"/@scure/base/-/@scure/base-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@scure/base/download/@scure/base-1.2.1.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base_1.2.1_1732346463831_0.4781237142409993"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-11-23T07:21:04.034Z","publish_time":1732346464034,"_source_registry_name":"default","_cnpm_publish_time":1732346464034},"1.2.0":{"name":"@scure/base","version":"1.2.0","description":"Secure, audited & 0-dep implementation of base64, bech32, base58, base32 & base16","main":"lib/index.js","module":"lib/esm/index.js","types":"lib/index.d.ts","exports":{".":{"import":"./lib/esm/index.js","require":"./lib/index.js"}},"scripts":{"bench":"node test/benchmark/index.js","build":"tsc && tsc -p tsconfig.esm.json","lint":"prettier --check index.ts","format":"prettier --write index.ts","test":"node test/index.js","test:deno":"deno test test/deno.ts"},"sideEffects":false,"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"license":"MIT","homepage":"https://paulmillr.com/noble/#scure","repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"devDependencies":{"@paulmillr/jsbt":"0.2.1","fast-check":"3.0.0","micro-should":"0.4.0","prettier":"3.3.2","typescript":"5.5.2"},"keywords":["bech32","bech32m","base64","base58","base32","base16","rfc4648","rfc3548","crockford","encode","encoder","base-x","base"],"funding":"https://paulmillr.com/funding/","_id":"@scure/base@1.2.0","gitHead":"cf6b87f95bb16ae155cdb49a2e536d9145d33807","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"_nodeVersion":"20.18.0","_npmVersion":"10.9.1","dist":{"shasum":"4014b0ff4250417f77590cf502a223cda1bd8e24","size":23439,"noattachment":false,"key":"/@scure/base/-/@scure/base-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@scure/base/download/@scure/base-1.2.0.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base_1.2.0_1732312692882_0.7752044671580078"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-11-22T21:58:13.040Z","publish_time":1732312693040,"_source_registry_name":"default","_cnpm_publish_time":1732312693040},"1.1.9":{"name":"@scure/base","version":"1.1.9","description":"Secure, audited & 0-dep implementation of base64, bech32, base58, base32 & base16","main":"lib/index.js","module":"lib/esm/index.js","types":"lib/index.d.ts","exports":{".":{"import":"./lib/esm/index.js","require":"./lib/index.js"}},"scripts":{"bench":"node test/benchmark/index.js","build":"tsc && tsc -p tsconfig.esm.json","lint":"prettier --check index.ts","format":"prettier --write index.ts","test":"node test/index.js","test:deno":"deno test test/deno.ts"},"sideEffects":false,"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"license":"MIT","homepage":"https://paulmillr.com/noble/#scure","repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"devDependencies":{"@paulmillr/jsbt":"0.2.1","micro-should":"0.4.0","prettier":"3.3.2","typescript":"5.5.2"},"keywords":["bech32","bech32m","base64","base58","base32","base16","rfc4648","rfc3548","crockford","encode","encoder","base-x","base"],"funding":"https://paulmillr.com/funding/","_id":"@scure/base@1.1.9","gitHead":"282378c801eb07ddabedc9e419dba5f6f8650c1c","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"_nodeVersion":"20.17.0","_npmVersion":"10.8.3","dist":{"shasum":"e5e142fbbfe251091f9c5f1dd4c834ac04c3dbd1","size":22196,"noattachment":false,"key":"/@scure/base/-/@scure/base-1.1.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/@scure/base/download/@scure/base-1.1.9.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base_1.1.9_1726635998381_0.3895769161559828"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-18T05:06:38.540Z","publish_time":1726635998540,"_source_registry_name":"default","_cnpm_publish_time":1726635998540},"1.1.8":{"name":"@scure/base","version":"1.1.8","description":"Secure, audited & 0-dep implementation of base64, bech32, base58, base32 & base16","main":"lib/index.js","module":"lib/esm/index.js","types":"lib/index.d.ts","exports":{".":{"import":"./lib/esm/index.js","require":"./lib/index.js"}},"scripts":{"bench":"node test/benchmark/index.js","build":"tsc && tsc -p tsconfig.esm.json","lint":"prettier --check index.ts","format":"prettier --write index.ts","test":"node test/index.js","test:deno":"deno test test/deno.ts"},"sideEffects":false,"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"license":"MIT","homepage":"https://paulmillr.com/noble/#scure","repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"devDependencies":{"@paulmillr/jsbt":"0.2.1","micro-should":"0.4.0","prettier":"3.3.2","typescript":"5.5.2"},"keywords":["bech32","bech32m","base64","base58","base32","base16","rfc4648","rfc3548","crockford","encode","encoder","base-x","base"],"funding":"https://paulmillr.com/funding/","_id":"@scure/base@1.1.8","gitHead":"aebc8bee9f92d2b039e19d74a0d7ee3284140c84","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"_nodeVersion":"20.17.0","_npmVersion":"10.8.3","dist":{"shasum":"8f23646c352f020c83bca750a82789e246d42b50","size":22012,"noattachment":false,"key":"/@scure/base/-/@scure/base-1.1.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/@scure/base/download/@scure/base-1.1.8.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base_1.1.8_1725405570008_0.869748406040544"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-03T23:19:30.197Z","publish_time":1725405570197,"_source_registry_name":"default","_cnpm_publish_time":1725405570197},"1.1.7":{"name":"@scure/base","version":"1.1.7","description":"Secure, audited & 0-dep implementation of base64, bech32, base58, base32 & base16","main":"lib/index.js","module":"lib/esm/index.js","types":"lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","import":"./lib/esm/index.js","default":"./lib/index.js"}},"scripts":{"bench":"node test/benchmark/index.js","build":"tsc && tsc -p tsconfig.esm.json","lint":"prettier --check index.ts","format":"prettier --write index.ts","test":"node test/index.js","test:deno":"deno test test/deno.ts"},"sideEffects":false,"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"license":"MIT","homepage":"https://paulmillr.com/noble/#scure","repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"devDependencies":{"@paulmillr/jsbt":"0.1.0","micro-should":"0.4.0","prettier":"3.1.1","typescript":"5.3.2"},"keywords":["bech32","bech32m","base64","base58","base32","base16","rfc4648","rfc3548","crockford","encode","encoder","base-x","base"],"funding":"https://paulmillr.com/funding/","_id":"@scure/base@1.1.7","gitHead":"3648fd9d8f62f540b15617e124f13ac76ec4f075","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"_nodeVersion":"20.14.0","_npmVersion":"10.8.1","dist":{"shasum":"fe973311a5c6267846aa131bc72e96c5d40d2b30","size":21813,"noattachment":false,"key":"/@scure/base/-/@scure/base-1.1.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/@scure/base/download/@scure/base-1.1.7.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base_1.1.7_1718313135189_0.17644726968116298"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-13T21:12:15.377Z","publish_time":1718313135377,"_source_registry_name":"default","_cnpm_publish_time":1718313135377},"1.1.6":{"name":"@scure/base","version":"1.1.6","description":"Secure, audited & 0-dep implementation of base64, bech32, base58, base32 & base16","main":"lib/index.js","module":"lib/esm/index.js","types":"lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","import":"./lib/esm/index.js","default":"./lib/index.js"}},"scripts":{"bench":"node test/benchmark/index.js","build":"tsc && tsc -p tsconfig.esm.json","lint":"prettier --check index.ts","format":"prettier --write index.ts","test":"node test/index.js","test:deno":"deno test test/deno.ts"},"sideEffects":false,"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"license":"MIT","homepage":"https://paulmillr.com/noble/#scure","repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"devDependencies":{"@paulmillr/jsbt":"0.1.0","micro-should":"0.4.0","prettier":"3.1.1","typescript":"5.3.2"},"keywords":["bech32","bech32m","base64","base58","base32","base16","rfc4648","rfc3548","crockford","encode","encoder","base-x","base"],"funding":"https://paulmillr.com/funding/","_id":"@scure/base@1.1.6","gitHead":"713480919ce9643cdf1a89ddbfb8e0f40dea87e4","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"_nodeVersion":"20.11.1","_npmVersion":"10.5.0","dist":{"shasum":"8ce5d304b436e4c84f896e0550c83e4d88cb917d","size":17165,"noattachment":false,"key":"/@scure/base/-/@scure/base-1.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/@scure/base/download/@scure/base-1.1.6.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base_1.1.6_1710945262353_0.6840565536583303"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-20T14:34:22.690Z","publish_time":1710945262690,"_source_registry_name":"default","_cnpm_publish_time":1710945262690},"1.1.5":{"name":"@scure/base","version":"1.1.5","description":"Secure, audited & 0-dep implementation of base64, bech32, base58, base32 & base16","main":"lib/index.js","module":"lib/esm/index.js","types":"lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","import":"./lib/esm/index.js","default":"./lib/index.js"}},"scripts":{"bench":"node test/benchmark/index.js","build":"tsc && tsc -p tsconfig.esm.json","lint":"prettier --check index.ts","format":"prettier --write index.ts","test":"node test/index.js","test:deno":"deno test test/deno.ts"},"sideEffects":false,"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"license":"MIT","homepage":"https://paulmillr.com/noble/#scure","repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"devDependencies":{"micro-should":"0.4.0","prettier":"3.1.1","typescript":"5.3.2"},"keywords":["bech32","bech32m","base64","base58","base32","base16","rfc4648","rfc3548","crockford","encode","encoder","base-x","base"],"funding":"https://paulmillr.com/funding/","_id":"@scure/base@1.1.5","gitHead":"b66f8da55517fc128f082eae71983ba8b3e89e6c","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"_nodeVersion":"20.10.0","_npmVersion":"10.2.5","dist":{"shasum":"1d85d17269fe97694b9c592552dd9e5e33552157","size":17084,"noattachment":false,"key":"/@scure/base/-/@scure/base-1.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@scure/base/download/@scure/base-1.1.5.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base_1.1.5_1702458958543_0.47048184514958424"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-13T09:15:58.758Z","publish_time":1702458958758,"_source_registry_name":"default","_cnpm_publish_time":1702458958758},"1.1.4":{"name":"@scure/base","version":"1.1.4","description":"Secure, audited & 0-dep implementation of base64, bech32, base58, base32 & base16","main":"lib/index.js","module":"lib/esm/index.js","types":"lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","import":"./lib/esm/index.js","default":"./lib/index.js"}},"scripts":{"bench":"node test/benchmark/index.js","build":"tsc && tsc -p tsconfig.esm.json","lint":"prettier --check index.ts","format":"prettier --write index.ts","test":"node test/index.js","test:deno":"deno test test/deno.ts"},"sideEffects":false,"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"license":"MIT","homepage":"https://paulmillr.com/noble/#scure","repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"devDependencies":{"micro-should":"0.4.0","prettier":"3.1.1","typescript":"5.3.2"},"keywords":["bech32","bech32m","base64","base58","base32","base16","rfc4648","rfc3548","crockford","encode","encoder","base-x","base"],"funding":"https://paulmillr.com/funding/","_id":"@scure/base@1.1.4","gitHead":"14f905993aad35031df74297ab865260c465eea6","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"_nodeVersion":"20.10.0","_npmVersion":"10.2.5","dist":{"shasum":"cb6a3552ee15595d9864a0a4e89ffcd21ebe8c39","size":16930,"noattachment":false,"key":"/@scure/base/-/@scure/base-1.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@scure/base/download/@scure/base-1.1.4.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base_1.1.4_1702339189184_0.26166251128617013"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-11T23:59:49.388Z","publish_time":1702339189388,"_source_registry_name":"default","_cnpm_publish_time":1702339189388},"1.1.3":{"name":"@scure/base","version":"1.1.3","description":"Secure, audited & 0-dep implementation of base64, bech32, base58, base32 & base16","main":"lib/index.js","module":"lib/esm/index.js","types":"lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","import":"./lib/esm/index.js","default":"./lib/index.js"}},"scripts":{"bench":"node test/benchmark/index.js","build":"tsc && tsc -p tsconfig.esm.json","lint":"prettier --check index.ts","format":"prettier --write index.ts","test":"node test/index.js","test:deno":"deno test test/deno.ts"},"sideEffects":false,"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"license":"MIT","homepage":"https://paulmillr.com/noble/#scure","repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"devDependencies":{"micro-should":"0.4.0","prettier":"2.8.4","typescript":"5.0.2"},"keywords":["bech32","bech32m","base64","base58","base32","base16","rfc4648","rfc3548","crockford","encode","encoder","base-x","base"],"funding":"https://paulmillr.com/funding/","_id":"@scure/base@1.1.3","gitHead":"4d9f31ba57071f85a39411a7b0e892c54ca9f17f","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"_nodeVersion":"20.5.1","_npmVersion":"9.8.1","dist":{"shasum":"8584115565228290a6c6c4961973e0903bb3df2f","size":16611,"noattachment":false,"key":"/@scure/base/-/@scure/base-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@scure/base/download/@scure/base-1.1.3.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base_1.1.3_1693445108417_0.7004492486867198"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-31T01:25:08.638Z","publish_time":1693445108638,"_source_registry_name":"default","_cnpm_publish_time":1693445108638},"1.1.2":{"name":"@scure/base","version":"1.1.2","description":"Secure, audited & 0-dep implementation of base64, bech32, base58, base32 & base16","main":"lib/index.js","module":"lib/esm/index.js","types":"lib/index.d.ts","exports":{".":{"types":"./lib/index.d.ts","import":"./lib/esm/index.js","default":"./lib/index.js"}},"scripts":{"bench":"node test/benchmark/index.js","build":"tsc && tsc -p tsconfig.esm.json","lint":"prettier --check index.ts","format":"prettier --write index.ts","test":"node test/index.js","test:deno":"deno test test/deno.ts"},"sideEffects":false,"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"license":"MIT","homepage":"https://paulmillr.com/noble/#scure","repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"devDependencies":{"micro-should":"0.4.0","prettier":"2.8.4","typescript":"5.0.2"},"keywords":["bech32","bech32m","base64","base58","base32","base16","rfc4648","rfc3548","crockford","encode","encoder","base-x","base"],"funding":"https://paulmillr.com/funding/","_id":"@scure/base@1.1.2","gitHead":"7b937a16faf94bf0889351360b2fe2ef201efed9","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"_nodeVersion":"20.5.1","_npmVersion":"9.8.1","dist":{"shasum":"ff0cf51874aaf176490c9cb46e4df807a2e581d2","size":16531,"noattachment":false,"key":"/@scure/base/-/@scure/base-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@scure/base/download/@scure/base-1.1.2.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base_1.1.2_1693002928577_0.8204924766841513"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-25T22:35:28.811Z","publish_time":1693002928811,"_source_registry_name":"default","_cnpm_publish_time":1693002928811},"1.1.1":{"name":"@scure/base","version":"1.1.1","description":"Secure, audited & 0-dep implementation of bech32, base64, base58, base32 & base16","main":"lib/index.js","module":"lib/esm/index.js","types":"lib/index.d.ts","exports":{".":{"import":"./lib/esm/index.js","default":"./lib/index.js"},"./index.d.ts":"./lib/index.d.ts"},"scripts":{"bench":"node test/benchmark/index.js","build":"tsc -d && tsc -p tsconfig.esm.json","lint":"prettier --check index.ts","test":"node test/index.js"},"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"license":"MIT","homepage":"https://github.com/paulmillr/scure-base","repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"devDependencies":{"micro-should":"0.2.0","prettier":"2.6.2","typescript":"4.7.3"},"keywords":["bech32","bech32m","base64","base58","base32","base16","rfc4648","rfc3548","crockford","encode","encoder","base-x","base"],"funding":[{"type":"individual","url":"https://paulmillr.com/funding/"}],"gitHead":"22227b05dc0fc0bb64f3bda40128eb793f68c72c","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"_id":"@scure/base@1.1.1","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"shasum":"ebb651ee52ff84f420097055f4bf46cfba403938","size":9236,"noattachment":false,"key":"/@scure/base/-/@scure/base-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@scure/base/download/@scure/base-1.1.1.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base_1.1.1_1655288405450_0.24532510927626694"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-15T11:43:43.785Z","publish_time":1655288405565,"_cnpm_publish_time":1655288405565},"1.1.0":{"name":"@scure/base","version":"1.1.0","description":"Secure, audited & 0-dep implementation of bech32, base64, base58, base32 & base16","main":"lib/index.js","module":"lib/esm/index.js","types":"lib/index.d.ts","exports":{".":{"import":"./lib/esm/index.js","default":"./lib/index.js"},"./index.d.ts":"./lib/index.d.ts"},"scripts":{"bench":"node test/benchmark/index.js","build":"tsc -d && tsc -p tsconfig.esm.json","lint":"prettier --check index.ts","test":"node test/index.js"},"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"license":"MIT","homepage":"https://github.com/paulmillr/scure-base","repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"devDependencies":{"micro-should":"0.2.0","prettier":"2.6.2","typescript":"4.7.3"},"keywords":["bech32","bech32m","base64","base58","base32","base16","rfc4648","rfc3548","crockford","encode","encoder","base-x","base"],"funding":[{"type":"individual","url":"https://paulmillr.com/funding/"}],"gitHead":"80597c55d6e374e5b28fe9ddc84a6c3f8ff3a029","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"_id":"@scure/base@1.1.0","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"shasum":"f57b24ea3b69fc37ba96906358fb29806415aaa0","size":9003,"noattachment":false,"key":"/@scure/base/-/@scure/base-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@scure/base/download/@scure/base-1.1.0.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base_1.1.0_1654988979049_0.6568862223667353"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-11T23:09:53.503Z","publish_time":1654988979272,"_cnpm_publish_time":1654988979272},"1.0.0":{"name":"@scure/base","version":"1.0.0","description":"Secure, audited & 0-dep implementation of bech32, base64, base58, base32 & base16","main":"index.js","types":"index.d.ts","scripts":{"bench":"node test/benchmark/index.js","build":"tsc -d","lint":"prettier --check index.ts","test":"node test/index.js"},"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"license":"MIT","homepage":"https://github.com/paulmillr/scure-base","repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"devDependencies":{"micro-should":"0.2.0","prettier":"2.4.1","typescript":"4.5.4"},"keywords":["bech32","bech32m","base64","base58","base32","base16","rfc4648","rfc3548","crockford","encode","encoder","base-x","base"],"funding":[{"type":"individual","url":"https://paulmillr.com/funding/"}],"gitHead":"1bb211ce338e83293eee4b828842ed3ce735ea27","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"_id":"@scure/base@1.0.0","_nodeVersion":"16.13.2","_npmVersion":"8.3.2","dist":{"shasum":"109fb595021de285f05a7db6806f2f48296fcee7","size":8500,"noattachment":false,"key":"/@scure/base/-/@scure/base-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@scure/base/download/@scure/base-1.0.0.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base_1.0.0_1643207844526_0.174717639744157"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-26T14:37:49.729Z","publish_time":1643207844726,"_cnpm_publish_time":1643207844726},"1.0.0-rc1":{"name":"@scure/base","version":"1.0.0-rc1","description":"Secure, audited & 0-dep implementation of bech32, base64, base58, base32 & base16","main":"index.js","types":"index.d.ts","scripts":{"bench":"node test/benchmark/index.js","build":"tsc -d","lint":"prettier --print-width 100 --single-quote --check index.ts","test":"node test/index.js"},"author":{"name":"Paul Miller","url":"https://paulmillr.com"},"license":"MIT","homepage":"https://github.com/paulmillr/scure-base","repository":{"type":"git","url":"git+https://github.com/paulmillr/scure-base.git"},"devDependencies":{"micro-should":"^0.2.0","prettier":"^2.3.2","typescript":"4.5.4"},"keywords":["bech32","bech32m","base64","base58","base32","base16","rfc4648","rfc3548","crockford","encode","encoder","base-x","base"],"gitHead":"63d3007619763f98d5632679f0ded0746dbf459c","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"_id":"@scure/base@1.0.0-rc1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"shasum":"b45ddc88d49b13950f149fbc8d6f9c27ad594d97","size":8490,"noattachment":false,"key":"/@scure/base/-/@scure/base-1.0.0-rc1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@scure/base/download/@scure/base-1.0.0-rc1.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base_1.0.0-rc1_1642461545881_0.5527630551340144"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-17T23:19:15.597Z","publish_time":1642461546067,"_cnpm_publish_time":1642461546067}},"readme":"# scure-base\n\nAudited & minimal implementation of bech32, base64, base58, base32 & base16.\n\n- ???? [Audited](#security) by an independent security firm\n- ???? Tree-shakeable: unused code is excluded from your builds\n- ✍️ Written in [functional style](#design-rationale), easily composable\n- ???? Matches specs\n  - [BIP173](https://en.bitcoin.it/wiki/BIP_0173), [BIP350](https://en.bitcoin.it/wiki/BIP_0350) for bech32 / bech32m\n  - [RFC 4648](https://datatracker.ietf.org/doc/html/rfc4648) (aka RFC 3548) for Base16, Base32, Base32Hex, Base64, Base64Url\n  - [Base58](https://www.ietf.org/archive/id/draft-msporny-base58-03.txt),\n    [Base58check](https://en.bitcoin.it/wiki/Base58Check_encoding),\n    [Base32 Crockford](https://www.crockford.com/base32.html)\n- ???? 4KB (gzipped)\n\nCheck out [Projects using scure-base](#projects-using-scure-base).\n\n### This library belongs to _scure_\n\n> **scure** — audited micro-libraries.\n\n- Zero or minimal dependencies\n- Highly readable TypeScript / JS code\n- PGP-signed releases and transparent NPM builds\n- Check out [homepage](https://paulmillr.com/noble/#scure) & all libraries:\n  [base](https://github.com/paulmillr/scure-base),\n  [bip32](https://github.com/paulmillr/scure-bip32),\n  [bip39](https://github.com/paulmillr/scure-bip39),\n  [btc-signer](https://github.com/paulmillr/scure-btc-signer),\n  [sr25519](https://github.com/paulmillr/scure-sr25519),\n  [starknet](https://github.com/paulmillr/scure-starknet)\n\n## Usage\n\n> `npm install @scure/base`\n\n> `deno add jsr:@scure/base`\n\nWe support all major platforms and runtimes. The library is hybrid ESM / Common.js package.\n\n```js\nimport { base16, base32, base64, base58 } from '@scure/base';\n// Flavors\nimport {\n  base58xmr,\n  base58xrp,\n  base32nopad,\n  base32hex,\n  base32hexnopad,\n  base32crockford,\n  base64nopad,\n  base64url,\n  base64urlnopad,\n} from '@scure/base';\n\nconst data = Uint8Array.from([1, 2, 3]);\nbase64.decode(base64.encode(data));\n\n// Convert utf8 string to Uint8Array\nconst data2 = new TextEncoder().encode('hello');\nbase58.encode(data2);\n\n// Everything has the same API except for bech32 and base58check\nbase32.encode(data);\nbase16.encode(data);\nbase32hex.encode(data);\n```\n\nbase58check is a special case: you need to pass `sha256()` function:\n\n```js\nimport { createBase58check } from '@scure/base';\ncreateBase58check(sha256).encode(data);\n```\n\n## Bech32, Bech32m and Bitcoin\n\nWe provide low-level bech32 operations.\nIf you need high-level methods for BTC (addresses, and others), use\n[scure-btc-signer](https://github.com/paulmillr/scure-btc-signer) instead.\n\nBitcoin addresses use both 5-bit words and bytes representations.\nThey can't be parsed using `bech32.decodeToBytes`.\n\nSame applies to Lightning Invoice Protocol\n[BOLT-11](https://github.com/lightning/bolts/blob/master/11-payment-encoding.md).\nWe have many tests in `./test/bip173.test.js` that serve as minimal examples of\nBitcoin address and Lightning Invoice Protocol parsers.\nKeep in mind that you'll need to verify the examples before using them in your code.\n\nDo something like this:\n\n```ts\nconst decoded = bech32.decode(address);\n// NOTE: words in bitcoin addresses contain version as first element,\n// with actual witness program words in rest\n// BIP-141: The value of the first push is called the \"version byte\".\n// The following byte vector pushed is called the \"witness program\".\nconst [version, ...dataW] = decoded.words;\nconst program = bech32.fromWords(dataW); // actual witness program\n```\n\n## Design rationale\n\nThe code may feel unnecessarily complicated; but actually it's much easier to reason about.\nAny encoding library consists of two functions:\n\n```\nencode(A) -> B\ndecode(B) -> A\n  where X = decode(encode(X))\n  # encode(decode(X)) can be !== X!\n  # because decoding can normalize input\n\ne.g.\nbase58checksum = {\n  encode(): {\n    // checksum\n    // radix conversion\n    // alphabet\n  },\n  decode(): {\n    // alphabet\n    // radix conversion\n    // checksum\n  }\n}\n```\n\nBut instead of creating two big functions for each specific case,\nwe create them from tiny composable building blocks:\n\n```\nbase58checksum = chain(checksum(), radix(), alphabet())\n```\n\nWhich is the same as chain/pipe/sequence function in Functional Programming,\nbut significantly more useful since it enforces same order of execution of encode/decode.\nBasically you only define encode (in declarative way) and get correct decode for free.\nSo, instead of reasoning about two big functions you need only reason about primitives and encode chain.\nThe design revealed obvious bug in older version of the lib,\nwhere xmr version of base58 had errors in decode's block processing.\n\nBesides base-encodings, we can reuse the same approach with any encode/decode function\n(`bytes2number`, `bytes2u32`, etc).\nFor example, you can easily encode entropy to mnemonic (BIP-39):\n\n```ts\nexport function getCoder(wordlist: string[]) {\n  if (!Array.isArray(wordlist) || wordlist.length !== 2 ** 11 || typeof wordlist[0] !== 'string') {\n    throw new Error('Wordlist: expected array of 2048 strings');\n  }\n  return mbc.chain(mbu.checksum(1, checksum), mbu.radix2(11, true), mbu.alphabet(wordlist));\n}\n```\n\n### base58 is O(n^2) and radixes\n\n`Uint8Array` is represented as big-endian number:\n\n```\n[1, 2, 3, 4, 5] -> 1*(256**4) + 2*(256**3) 3*(256**2) + 4*(256**1) + 5*(256**0)\nwhere 256 = 2**8 (8 bits per byte)\n```\n\nwhich is then converted to a number in another radix/base (16/32/58/64, etc).\n\nHowever, generic conversion between bases has [quadratic O(n^2) time complexity](https://cs.stackexchange.com/q/21799).\n\nWhich means base58 has quadratic time complexity too. Use base58 only when you have small\nconstant sized input, because variable length sized input from user can cause DoS.\n\nOn the other hand, if both bases are power of same number (like `2**8 <-> 2**64`),\nthere is linear algorithm. For now we have implementation for power-of-two bases only (radix2).\n\n## Security\n\nThe library has been independently audited:\n\n- at version 1.0.0, in Jan 2022, by [cure53](https://cure53.de)\n  - PDFs: [online](https://cure53.de/pentest-report_hashing-libs.pdf), [offline](./audit/2022-01-05-cure53-audit-nbl2.pdf)\n  - [Changes since audit](https://github.com/paulmillr/scure-base/compare/1.0.0..main).\n  - The audit has been funded by [Ethereum Foundation](https://ethereum.org/en/) with help of [Nomic Labs](https://nomiclabs.io)\n\nThe library was initially developed for [js-ethereum-cryptography](https://github.com/ethereum/js-ethereum-cryptography).\nAt commit [ae00e6d7](https://github.com/ethereum/js-ethereum-cryptography/commit/ae00e6d7d24fb3c76a1c7fe10039f6ecd120b77e),\nit was extracted to a separate package called `micro-base`.\nAfter the audit we've decided to use `@scure` NPM namespace for security.\n\n### Supply chain security\n\n- **Commits** are signed with PGP keys, to prevent forgery. Make sure to verify commit signatures\n- **Releases** are transparent and built on GitHub CI. Make sure to verify [provenance](https://docs.npmjs.com/generating-provenance-statements) logs\n  - Use GitHub CLI to verify single-file builds:\n    `gh attestation verify --owner paulmillr scure-base.js`\n- **Rare releasing** is followed to ensure less re-audit need for end-users\n- **Dependencies** are minimized and locked-down: any dependency could get hacked and users will be downloading malware with every install.\n  - We make sure to use as few dependencies as possible\n  - Automatic dep updates are prevented by locking-down version ranges; diffs are checked with `npm-diff`\n- **Dev Dependencies** are disabled for end-users; they are only used to develop / build the source code\n\nFor this package, there are 0 dependencies; and a few dev dependencies:\n\n- micro-bmark, micro-should and jsbt are used for benchmarking / testing / build tooling and developed by the same author\n- prettier, fast-check and typescript are used for code quality / test generation / ts compilation. It's hard to audit their source code thoroughly and fully because of their size\n\n## Contributing & testing\n\n- `npm install && npm run build && npm test` will build the code and run tests.\n- `npm run lint` / `npm run format` will run linter / fix linter issues.\n- `npm run build:release` will build single file\n\n### Projects using scure-base\n\n- [scure-btc-signer](https://github.com/paulmillr/scure-btc-signer)\n- [prefixed-api-key](https://github.com/truestamp/prefixed-api-key)\n- [coinspace](https://github.com/CoinSpace/CoinSpace) wallet and its modules:\n  [ada](https://github.com/CoinSpace/cs-cardano-wallet),\n  [btc](https://github.com/CoinSpace/cs-bitcoin-wallet)\n  [eos](https://github.com/CoinSpace/cs-eos-wallet),\n  [sol](https://github.com/CoinSpace/cs-solana-wallet),\n  [xmr](https://github.com/CoinSpace/cs-monero-wallet)\n\n## License\n\nMIT (c) Paul Miller [(https://paulmillr.com)](https://paulmillr.com), see LICENSE file.\n","_attachments":{},"homepage":"https://paulmillr.com/noble/#scure","bugs":{"url":"https://github.com/paulmillr/scure-base/issues"},"license":"MIT"}