{"_id":"@bowstave/meta-writer","_rev":"3-eded41c96ffc26da1ebba054affd9c4e","name":"@bowstave/meta-writer","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@bowstave/meta-writer","version":"0.1.0","description":"Basic utility to write data to Metanet.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"meta-writer":"./index.js"},"keywords":[],"author":{"name":"bowstave"},"contributors":[{"name":"Simon Ordish","email":"simon.ordish@masagi.co.uk"},{"name":"Liam Missin","email":"liam.missin@gmail.com"},{"name":"Jack Davies","email":"j.davies@nchain.com"}],"license":"ISC","dependencies":{"bitcore-explorers":"^1.0.1","bsv":"^0.27.1","command-line-args":"^5.1.1","request":"^2.88.0","request-promise":"^4.2.4"},"devDependencies":{"standard":"^12.0.1"},"repository":{"type":"git","url":"git+https://github.com/bowstave/meta-writer.git"},"bugs":{"url":"https://github.com/bowstave/meta-writer/issues"},"homepage":"https://github.com/bowstave/meta-writer#readme","gitHead":"d987926cd5997c14ee0ed6315f13e40d79dc69f9","_id":"@bowstave/meta-writer@0.1.0","_nodeVersion":"10.13.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-L2JmUyLK+CuYxUVkc7yuLcp+B32ztO6GMzhKUzrlpXmYT03eWADPNcFAEKQz91avLAqO4QvYTwnJxm+TkenFFw==","shasum":"27705e0be8caa79526ac44aec444f1e0cf2e44f4","tarball":"https://registry.npmjs.org/@bowstave/meta-writer/-/meta-writer-0.1.0.tgz","fileCount":9,"unpackedSize":134353,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdEfGiCRA9TVsSAnZWagAA92IP/0L0PND0gN7G8EU9fcd5\nOoGS7hF8SL0Qv5kJdNfSGIdCUM4QtRr0r3fdpous9ErwqyZnbn/v5QmJN/8m\nbouK2gVn8/X9LoyGzEKx1UzRXcJUbRqqKYrXILKJgYMdhI/vyV2Q/M4BhE2t\nWO+tw0FrJvzReYb9mKo6Ao8T/mwBlig0F76v9Dqch9ad4mdsvYEYvJ3SeRiX\n/K5wUfBY+rqtXLffBMVUkavPC1UYSLCUiZpmWolLumss2S/7LAj0u70NPpSI\nLqYdnM3rpRLrN9GGfJ8bh/EhVWcTsHxFNyTeiO0nU0aJr3aBAzthIwZDdy7k\n+vFFC/iVyAA/cxXELKZ0XIFZNoLfUYhaSgdobCWqJ9aDgCWi5noSWI1FgO3E\nnA22XJimPvJd7vlrQXdi5yusAZy/7QmAzZb5P2KU1B+mo6QpQVm8T+l+WJHY\nQZWzdjpxr8daUyZ0bOFPJovwbXJXB6Ay4AEl9UfebJzBGbNRdPFDiPLTcLcl\nkL06VEJpywSC8Xoymki1kCJQRnLiJ2pt+qpvx+a9UUpYvWP8mLzWzBvjqGFA\nft8oioQNKD8ldHz8vQPcNM7gM6Ob7nn3Z/yPPWXfXFn6M5FVLXSiCeWRqHwu\nZxpIkkzaIVRddYMMjuU7d6MYZ6B3rAzykYTY7iJ+V1pMvKroK455+ZZn17jX\nsxQN\r\n=JU0c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEHkycTZ/PAKqB4a3HajmJRdk59uB0awx/0uNWNYuk+BAiEAzytxIdEpEqwaMKZhm6uxH3zfx1fXw+fX6C+FZwKSzS4="}]},"maintainers":[{"name":"ordishs","email":"simon.ordish@me.com"}],"_npmUser":{"name":"ordishs","email":"simon.ordish@me.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/meta-writer_0.1.0_1561457057418_0.9317639107100024"},"_hasShrinkwrap":false},"0.1.1":{"name":"@bowstave/meta-writer","version":"0.1.1","description":"Basic utility to write data to Metanet.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"meta-writer":"./index.js"},"keywords":[],"author":{"name":"bowstave"},"contributors":[{"name":"Simon Ordish","email":"simon.ordish@masagi.co.uk"},{"name":"Liam Missin","email":"liam.missin@gmail.com"},{"name":"Jack Davies","email":"j.davies@nchain.com"}],"license":"SEE LICENSE IN LICENSE","dependencies":{"bitcore-explorers":"^1.0.1","bsv":"^0.27.1","command-line-args":"^5.1.1","request":"^2.88.0","request-promise":"^4.2.4"},"devDependencies":{"standard":"^12.0.1"},"repository":{"type":"git","url":"git+https://github.com/bowstave/meta-writer.git"},"bugs":{"url":"https://github.com/bowstave/meta-writer/issues"},"homepage":"https://github.com/bowstave/meta-writer#readme","gitHead":"1898b63047e655512a9e79e138decd111fc96b08","_id":"@bowstave/meta-writer@0.1.1","_nodeVersion":"10.13.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-GMzyKCZhzJkqaAoBCD2SKET/04HPXJ/7FRvkDpcCOMbLfvlgOYmX9tJAtQdrJb8Jvnwe9woaqYFZA3kjU2sNbQ==","shasum":"684e5cb8a2b9cf6a67c4ec0524ea219b631820b5","tarball":"https://registry.npmjs.org/@bowstave/meta-writer/-/meta-writer-0.1.1.tgz","fileCount":10,"unpackedSize":137315,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdEh+VCRA9TVsSAnZWagAA5EAP/3kYY95laHXqsANpYQrx\nlGpOoPU5QG95B9kaJBaPH9vj+pXmp6+gXoJTveWIJsZrwFAdGrcRkNSt82mw\n1IorqqG4dLhCQPEvecZbObNdctYgT2GXaBsLCyo2BqQkAw/hZVK9a+o/wJG6\nvy3j3cRHZxbc6xFYGZt41BXnwhoZvCa5m3g3AITb4SqRuJMUo2G2pC7yY1bu\nSs+RvhRwNTjsHgXdl3Jw1yqf0n55ureqUJ4zRX/CcrfOwINZcVpsXn8LHqMh\nFVhWJZIUagI4GoMygmQQEvCtoVzKQeQ2jyBaJhtz+IUDFTKTPzgP11n3GUQm\n+zZU2sdwoR9rrFEcg/QvouIuYNSYuA7e4sODw6ztp4yzTJu9bW7Zn0U5U4T4\n5EyxnoFW1MMC07J51lUbgfFq51cUnjQJlY+qPm7FZoXyN6im+Yp8BBxNQmNy\negQiR1WLKTBiYJg2L+HHTs5J8ZuGRjyqsIdPhuo0caQu5l2IU1mRv6TP0B28\nr99bWRhY1g24t9LsFd+XZUtHP0T+CSQ1VmN6FO6tcQcfG3Hp3SjEe8eArMAc\n60RW932E5qbwe4BPg7JR+T/g0CLxjp0WC1Qilr63e15VKI+q2dJdLXf0gE0z\nnp7r7ckk95koVTL8Oow9XiFAYvM4TvG4Ibxi6CHYdLAfcpExVtBdwbueNaxF\nPOXt\r\n=WKfW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCS6PK3dv1OSIXzdyJRS1A/E2FYOeyWT3yNKaRC/bQa3QIhAO4xJGaKYcl/NjqsxnfTLbOqAOqMF10786usMsirX/cT"}]},"maintainers":[{"name":"ordishs","email":"simon.ordish@me.com"}],"_npmUser":{"name":"ordishs","email":"simon.ordish@me.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/meta-writer_0.1.1_1561468820440_0.0716692221109958"},"_hasShrinkwrap":false},"0.1.2":{"name":"@bowstave/meta-writer","version":"0.1.2","description":"Basic utility to write data to Metanet.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"meta-writer":"./index.js"},"keywords":[],"author":{"name":"bowstave"},"contributors":[{"name":"Simon Ordish","email":"simon.ordish@masagi.co.uk"},{"name":"Liam Missin","email":"liam.missin@gmail.com"},{"name":"Jack Davies","email":"j.davies@nchain.com"}],"license":"Open BSV","dependencies":{"bitcore-explorers":"^1.0.1","bsv":"^0.27.1","command-line-args":"^5.1.1","request":"^2.88.0","request-promise":"^4.2.4"},"devDependencies":{"standard":"^12.0.1"},"repository":{"type":"git","url":"git+https://github.com/bowstave/meta-writer.git"},"bugs":{"url":"https://github.com/bowstave/meta-writer/issues"},"homepage":"https://github.com/bowstave/meta-writer#readme","gitHead":"c827649b6b5626b32e554752b2d9a1bbcb20d922","_id":"@bowstave/meta-writer@0.1.2","_nodeVersion":"10.13.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-+hal2S8AXslqFzEqzY98Z6LOgP9xR8BxKWyU2qpo20u+FqPr4PTdXMJJDTvaykkBgWmrnghGY63WUoLOGhqz5A==","shasum":"774b3dd44034e8304219ce2a5054d59ffc01b9db","tarball":"https://registry.npmjs.org/@bowstave/meta-writer/-/meta-writer-0.1.2.tgz","fileCount":10,"unpackedSize":137301,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdEiBbCRA9TVsSAnZWagAAL1cP/ifg70uUK1ymRWWnOEHg\nVz/r0urGKy6xOI4OAA1XyeeXjJRYnwId0/3WsXn6S80Zx/pEJ9+hU+wGgdwN\nqVJE0IULpz4jreGr9BVs0umUBCwQqWLx3NmIKBfhsKAV/NqoG8mzv3KAFXFK\nrK5t2xf7VAntDOdZDT+9Va4ViNeNb7ueIuxD8sRdzVcN0vqWMi1tIqSD4ZhG\npq89ig/WrzHG82F0kIrLBDlZ6PZ9BcRc7EcoBqZtq8b+Tk1MAAbLfde/cdkq\nb3f03ajgegb6jiSGB5vmKOGzuI8izk9lbMosf2gRn4p7x6cTgcw9RDzVWqmt\njAJ9F1irv2C+57z3KTq5w8l3CMug0BvRGbzPtRNAG2vq8qiTxq3bTxQnx2kI\nsWcQKoklafFCXnPpDcfHQ8VmBejMr2hmFtcFFlC76RAH+XdVXwxKzhyGMu+L\nxh/C/t9epWFv+JVY7oS6zRUjDfD5eROvCi2opNu88NIVqGcp0nWgt7Ic8kr3\n7i7/PSEST7ucVGnFh8/gxWoAkZ6GVHzxmo3zWT0LotHSMX5p1wTyT7/RUVzl\nsxwR7F3J7KWV1tZqn+0O3HFNdn3u6wn2FSSoFsHu48ZbTcCdWRlDsUNfqKIv\n3TmDcHqmmHTVQZy0SzIIaMQiMqa+CXCoTtoEBh2vzw3tqJB0F8hQIdtqLxV1\ncPfk\r\n=sXEM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAmpx79rVkIAxszmqtZvCg0Uwvfv+6+6buDHfYKBN0m2AiEAhmDAeik+VWup3iByXFT+CmFuqhObsY09HqD+tQpgvvs="}]},"maintainers":[{"name":"ordishs","email":"simon.ordish@me.com"}],"_npmUser":{"name":"ordishs","email":"simon.ordish@me.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/meta-writer_0.1.2_1561469018899_0.706448005191658"},"_hasShrinkwrap":false}},"time":{"created":"2019-06-25T10:04:17.214Z","0.1.0":"2019-06-25T10:04:17.628Z","modified":"2022-04-04T20:16:31.401Z","0.1.1":"2019-06-25T13:20:20.568Z","0.1.2":"2019-06-25T13:23:38.996Z"},"maintainers":[{"name":"ordishs","email":"simon.ordish@me.com"}],"description":"Basic utility to write data to Metanet.","homepage":"https://github.com/bowstave/meta-writer#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/bowstave/meta-writer.git"},"contributors":[{"name":"Simon Ordish","email":"simon.ordish@masagi.co.uk"},{"name":"Liam Missin","email":"liam.missin@gmail.com"},{"name":"Jack Davies","email":"j.davies@nchain.com"}],"author":{"name":"bowstave"},"bugs":{"url":"https://github.com/bowstave/meta-writer/issues"},"license":"Open BSV","readme":"# MetaWriter\n\nSimple command-line tool that let's you upload metanet nodes.\n\n## Installation instructions\n`npm install -g @bowstave/meta-writer`\n\n\n## Developer instructions\n\n1. Clone this repo: `git clone git@github.com:bowstave/meta-writer.git`\n2. `cd meta-writer`\n3. `npm install`\n4. For all the examples below, replace `meta-writer` with `node index`\n\n(There is also a send_all.sh script that sends the included photos to the blockchain.)\n\n## Setup\n\nIn order to use this tool, you will need access to some BSV for funding your transactions.  We suggest creating a new, independent wallet, fund it will a small amount of BSV and use this for your Metanet nodes.\n\nYou will need to place the master private key (xprv) in a file:\n\n`$HOME/.meta-writer/funding_key`\n\nThis is a json formatted file that should contain your xprv and the derivation path of the address you have funds in.\n\n```\n{\n  \"xprv\": \"xprv9s21Z...........\",\n  \"derivationPath\": \"m/0/0\"\n}\n```\n\nThis derivation path should work for a standard ElectrumSV wallet for the address at index 0.\n\n## Usage\n\nNodes are created hierarchically using a name and a path.  Let's say we want to create a Metanet tree for a photo album called myalbum.  We would first create the root node:\n\n`meta-writer --path /myalbum/0 \"My first album\"`\n\nThen let's create a second level of the tree with a couple of chapters:\n\n`meta-writer --path /myalbum/0/0 \"Family Photos\"`\n`meta-writer --path /myalbum/0/1 \"Wildlife\"`\n\nFinally, let's publish some family photos in to the Family Photos chapter:\n\n`meta-writer --path /myalbum/0/0/0 --file ./mum.png --type \"image/png\"`\n`meta-writer --path /myalbum/0/0/1 --file ./dad.jpg --type \"image/jpeg\"`\n\nand some animal photos in to the Wildlife chapter:\n\n`meta-writer --path /myalbum/0/1/0 --file ./deer.png --type \"image/png\"`\n\nPlease note that any valid mime-type is allowed.\n\nAll the transaction IDs that were created are stored in a file in `$HOME/.meta-writer/myalbum.dat`, something like:\n\n```\n{\n  \"xprv\":  \"xprv9s21Z...........\",\n  \"0\":     \"45a72b01c0a31a17a1eb82b32e1faf0175079fa2269a23cd659f6ce67afee67a\",\n  \"0/0\":   \"ec307b4977d82a3056800926158537a14eb0ecf100febf3d757fb494ff2e4ace\",\n  \"0/1\":   \"a6e06deac9fe38660420a3c160c175baf8af4ca62d3fc5bf6d0f865bfa759154\",\n  \"0/0/0\": \"7788ddefabe821879d32de19a405ad2f375a39b54a52232c6bbd27c865d56421\",\n  \"0/0/1\": \"4a61857838b348541c613ec09d99e1ddd7481841e6045d14c9b59761e7218335\",\n  \"0/1/0\": \"66d88f71bfb97b559920f35e9e81e7a04fb81916fcb604f204d097a35e3239ed\",\n  \"0/1/1\": \"4458ca278fd66354174fd1105b7c9045acdf26ccb1682f697e29982d161fd217\"\n}\n```\n\nPlease note that the xprv in this file is the master private key of your Metanet node and is NOT the same as the funding key.  The addresses derived from it will contain funds as nodes are created, and having access to this key allows you to add more nodes to this Metanet tree.  **Please keep this secure.**\n\n\n\n\n\n","readmeFilename":"README.md"}