{"_id":"@blitslabs/filecoin-js-signer","_rev":"7-a5d5ccc81b9dc07bd15c0fdb60bb81a3","name":"@blitslabs/filecoin-js-signer","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.0":{"name":"@blitslabs/filecoin-js-signer","version":"1.0.0","main":"lib/index.js","module":"lib/index.esm.js","types":"lib/index.d.ts","scripts":{"test":"nodemon tests/index.ts","format":"prettier --write \"./src/**/*.ts\" \"./test/**/*.ts\"","build":"rollup -c"},"author":{"name":"Blits Labs"},"license":"MIT","dependencies":{"@nodefactory/filecoin-address":"^1.0.1","base32-decode":"^1.0.0","base32-encode":"^1.2.0","bignumber.js":"^9.0.1","blake2b":"^2.1.3","blakejs":"^1.1.0","bn.js":"^5.2.0","filecoin.js":"^0.0.5-alpha","ipld-dag-cbor":"github:blitslabs/js-ipld-dag-cbor","leb128":"^0.0.5","lowercase-keys":"^1.0.1","multihashing-async":"^2.1.2","prettier":"^2.2.1","secp256k1":"^4.0.2"},"devDependencies":{"@blits-labs/filecoin-signing-tools":"^0.2.4","@types/jest":"^26.0.23","@types/node":"^15.0.1","jest":"^26.6.3","rollup":"^2.48.0","rollup-plugin-typescript2":"^0.30.0","ts-jest":"^26.5.6","ts-node":"^9.1.1","typescript":"^4.2.4"},"directories":{"lib":"lib","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/blitslabs/filecoin-js-signer.git"},"keywords":["filecoin","fil","signer","filecoin","signer"],"bugs":{"url":"https://github.com/blitslabs/filecoin-js-signer/issues"},"homepage":"https://github.com/blitslabs/filecoin-js-signer#readme","description":"","gitHead":"ca5c93b4264780bb47c38f62b1f899b6cd1a5e6f","_id":"@blitslabs/filecoin-js-signer@1.0.0","_nodeVersion":"14.16.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-zb59naEybQsixaxhpn5oGPc5Vkc2nRgKTg5krV1jtLpFJqYpsiaeYFdl3/JrDwm2W1TSWZIOmih3QQ0LI19wSQ==","shasum":"7bfb96be88ec3a705bdffd26d80abbc393fdb2b9","tarball":"https://registry.npmjs.org/@blitslabs/filecoin-js-signer/-/filecoin-js-signer-1.0.0.tgz","fileCount":15,"unpackedSize":273602,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgn/pLCRA9TVsSAnZWagAAzIoP/3Gsra42hEc3uJssWi2g\nel3qaRXk9TzBNJ806T1BsxUU//pgZlis372oGZytVqNYzRAdc1RAgRvpMtey\nkV4L4rn1/stDOiwnIm3Xd991oX8779y083P3rCB6poe8sQKAAOtgiZEBJr/L\n5kGHyl0H1shTDljOrWLprHctVlKkGuZDuLkMyQn/fL8CtjmmUSYY4CgjeZ0K\ntQg8a3L4fnxnR3HGnB+WDj42zbeb3xvo/8SYKgFs7DB0ltbcb8JuQIKKDB++\nMruyLKYsOeQI7FUB1vGEKEQCumeYPT2ebVLaGx7vd2L2uNDOimi3Dx2OhaQ1\nYQbFmK3ppWGggqr+MdZnhzOS1G1wce6xy3/geKfifPEb0jh353EkR87Vh80Y\nxZ9rgmAEmeFqKyi5eo66R+Xy8xiH0SIfRzV7djCKMDYk2dLZO3xfcDYZ+Jdx\nd8iViI0a5VAXWqwcuy9MNG2+TUpr5uQT/nF4fFlsx/lLZvHrGj+QpyFBn9L0\n/QC9XELilwNuA30hqNGvjf6YQbIq1BG74nivXUjdhhBcGv8zT5VLBDrOYtBR\nKiKFNWo1PCwmlAWuPqkoTMhFIiveBv3Q5YJhITuezkhU2kW+dHvVF2nasjva\nrim6EQ/pgrl7jnOAf/pYNbvWmXeprHcXit1T6eHQKEUc+lys1By5ZR9B2dev\nqIqi\r\n=VvCF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8uhnv0QcuPq17YBvWuLVUBbUVNTHYdPT35vxF8f9BsAIhAIgH0qX2CrlvkwlF3w+bMiz8peG8JS/8gvGayNF4E2pw"}]},"_npmUser":{"name":"blitslabs","email":"defi@blits.net"},"maintainers":[{"name":"blitslabs","email":"defi@blits.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filecoin-js-signer_1.0.0_1621097035482_0.2868722006899971"},"_hasShrinkwrap":false},"1.0.1":{"name":"@blitslabs/filecoin-js-signer","version":"1.0.1","main":"dist/index.js","module":"dist/index.esm.js","types":"dist/index.d.ts","scripts":{"test":"nodemon tests/index.ts","format":"prettier --write \"./src/**/*.ts\" \"./test/**/*.ts\"","build":"tsc"},"author":{"name":"Blits Labs"},"license":"MIT","dependencies":{"@nodefactory/filecoin-address":"^1.0.1","base32-decode":"^1.0.0","base32-encode":"^1.2.0","bignumber.js":"^9.0.1","blake2b":"^2.1.3","blakejs":"^1.1.0","bn.js":"^5.2.0","filecoin.js":"^0.0.5-alpha","ipld-dag-cbor":"github:blitslabs/js-ipld-dag-cbor","leb128":"^0.0.5","lowercase-keys":"^1.0.1","multihashing-async":"^2.1.2","prettier":"^2.2.1","secp256k1":"^4.0.2"},"devDependencies":{"@blits-labs/filecoin-signing-tools":"^0.2.4","@types/jest":"^26.0.23","@types/node":"^15.0.1","jest":"^26.6.3","rollup":"^2.48.0","rollup-plugin-typescript2":"^0.30.0","ts-jest":"^26.5.6","ts-node":"^9.1.1","typescript":"^4.2.4"},"directories":{"lib":"lib","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/blitslabs/filecoin-js-signer.git"},"keywords":["filecoin","fil","signer","blits","blitslabs"],"bugs":{"url":"https://github.com/blitslabs/filecoin-js-signer/issues"},"homepage":"https://github.com/blitslabs/filecoin-js-signer#readme","description":"","gitHead":"ca5c93b4264780bb47c38f62b1f899b6cd1a5e6f","_id":"@blitslabs/filecoin-js-signer@1.0.1","_nodeVersion":"14.16.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-q+7jRAdIq2W7Ix4KZQfFOYJPFOj5yBsf03muL1TUcThzCWTXvYG+qpDMqMsJJJaG6uyK3CCh/aVQ1aHqWV/2Ag==","shasum":"a621b9a009d8511e173cf7a20e55011434ae49e3","tarball":"https://registry.npmjs.org/@blitslabs/filecoin-js-signer/-/filecoin-js-signer-1.0.1.tgz","fileCount":37,"unpackedSize":68772,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgoBI8CRA9TVsSAnZWagAARTcQAI1k4RPmL1maYiHuj57T\nfDclHsUALcFIV8ISp6XBXRJc653AhHFHUmgfCnDs0B7rQ9DA3wxvzVxO0CEn\narIQEg/fAW7mOoTtIpep5SYnnb3Qy/gmEwycEeAv+DC0j8M0Gn2/ExOkxsb+\nSZAih59c4YIh1F2W3A9fW0skdKPdp/uUiXkD17ioDDI625Os8ncxfdu3TT4P\n/aDzHODbWU2AdITV451Z499ElUwulBLIWpPxkxcKON+n1aDDYHuNz22yc19/\nfA4a+NfsstJXA28e08+kQ82fYGCxlWJ8vw5cMcsUJuX27oVKxtH7EbT9MIXe\nrz+cRXG6DP6kC87Co1gcv6/6TQ08kgasKrpXelEd+WIoKOzWJbqPelpu+Lq5\nSjFiflpobyySBRzWFyV/6qTPt67XA7Imf8oaju5PwSrq+EAP9vVBzLJ2KUoi\nJVrggtQxus6Ng7ZhoW9gLrBx8OH7gWMV4M/apiwDq/c3En9EzLeX1+XwahU+\nKrRJ6uOQ/8/vT/dpF6H7KhvK9QHH3IwT7JS5sojgKH6Yq9UJ5wAW55lb7Ueh\nH2V8m32uf7HkDelBjPr6Gz2txUpOWGClPwKtgTWZ7Otn26od0P3Z4yOqEbTl\nGXyuIPyF8bnsn3BQCEyAOvKPcX9RYpxRuroyAs98nOutUBV8khGroZiDjvQl\nU+nZ\r\n=UdcY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJ4vKHMBp//R7J+vhin/0C8413wBCoN5IQ7o0cgtTOvAIhANbnKyrrNGQUeNlMSV782Ycqpr466+zM0l2ltq4RDQTH"}]},"_npmUser":{"name":"blitslabs","email":"defi@blits.net"},"maintainers":[{"name":"blitslabs","email":"defi@blits.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filecoin-js-signer_1.0.1_1621103163970_0.31361158718144866"},"_hasShrinkwrap":false},"1.0.2":{"name":"@blitslabs/filecoin-js-signer","version":"1.0.2","main":"dist/index.js","module":"dist/index.esm.js","types":"dist/index.d.ts","scripts":{"test":"nodemon tests/index.ts","format":"prettier --write \"./src/**/*.ts\" \"./test/**/*.ts\"","build":"tsc"},"author":{"name":"Blits Labs"},"license":"MIT","dependencies":{"@nodefactory/filecoin-address":"^1.0.1","base32-decode":"^1.0.0","base32-encode":"^1.2.0","bignumber.js":"^9.0.1","bip32":"^2.0.6","blake2b":"^2.1.3","blakejs":"^1.1.0","bn.js":"^5.2.0","filecoin.js":"^0.0.5-alpha","ipld-dag-cbor":"github:blitslabs/js-ipld-dag-cbor","leb128":"^0.0.5","lowercase-keys":"^1.0.1","multihashing-async":"^2.1.2","prettier":"^2.2.1","secp256k1":"^4.0.2"},"devDependencies":{"@blits-labs/filecoin-signing-tools":"^0.2.4","@types/jest":"^26.0.23","@types/node":"^15.0.1","jest":"^26.6.3","ts-jest":"^26.5.6","ts-node":"^9.1.1","typescript":"^4.2.4"},"directories":{"lib":"lib","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/blitslabs/filecoin-js-signer.git"},"keywords":["filecoin","fil","signer","blits","blitslabs"],"bugs":{"url":"https://github.com/blitslabs/filecoin-js-signer/issues"},"homepage":"https://github.com/blitslabs/filecoin-js-signer#readme","description":"","gitHead":"2d31264ec0be5f6fb5722981e81227fe34628fb1","_id":"@blitslabs/filecoin-js-signer@1.0.2","_nodeVersion":"14.16.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-YX5LSLK0cm1w9go/QHKLJzPLIIk1Dv6eJQb4UjXTCGC9RhjLsAm8R1BH4j9tZNEVdi3k03Xb3b7FftdZCU1REQ==","shasum":"e81ab396aba83b2bb0cc4fe10f8406d5526d03a1","tarball":"https://registry.npmjs.org/@blitslabs/filecoin-js-signer/-/filecoin-js-signer-1.0.2.tgz","fileCount":37,"unpackedSize":68726,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgoCvaCRA9TVsSAnZWagAAv0kP/RHhhpyPu1RURP26sKbX\nQ8l5ugG5kLO5MH0XW5EE6AGrY6JkHpNHywv/ltzaaVfszjSD6gmsatQqpBlV\n9rxXv8aryih4HfY2Xdjr2Hu0in3qStUDB3UetOIr+6E6em62FJ7Leo80aR2o\nKkBvjTnuMVstECCje8aGi3SPl8LevLyAUqAG6YZevD7s5vP5Zm3lDm28q9w0\nFuKBtYoUHdpHaDqsSC97bG4f98xF5aOzPh2z4OL94Y0FpdWSJFaeMQ9nad6z\nTQUE0HG45d+PKV1WNh54ecGf7QbOxRuuqmZk6VFSzUKb0FwowyLXOMgAXgzH\ndlHIUcyAwhX40hl0hIcdasnMaVxPiAnK9r5C8H9s2yvSTQm1kJoNwCUA1QPP\nSNdgVht9t5MI3VlqGACN22WV7iAsBOO4MmrFuRKrcRAehFjKF9jogKoSsvA2\ngp+e0NXMfYSBNLmdYhOKATC8FCRC0AugQJ9JibgEMkt+RerVA/mjwxWeS0h7\nj5IQNKcJ26OFB/gQ9pfxDNlHbfoeLQKCtHXedndv7XfFkcImmhjFct7OgKYa\nhLogztNvDCQwNKnHbnXx5YTOWb8JJGkEnzYSZP+q+z1zVclrRgaPq9ksLAgn\n11CTRxeL3Hmr+f3lVaqiR3h/C9MafY2lqbdKpgVtrRufAbyK8CkabL/azHNe\nLcFI\r\n=6eje\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBdoSwJJPtd8jgo1+s6iSpYvKChowozgoNDjKgO0Vk+fAiAdYsa9oU4eJCj60/PGOw3Bywt05Y0tTECWuhqvpWSIqw=="}]},"_npmUser":{"name":"blitslabs","email":"defi@blits.net"},"maintainers":[{"name":"blitslabs","email":"defi@blits.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filecoin-js-signer_1.0.2_1621109721783_0.8295623798360037"},"_hasShrinkwrap":false},"1.0.3":{"name":"@blitslabs/filecoin-js-signer","version":"1.0.3","main":"dist/index.js","module":"dist/index.esm.js","types":"dist/index.d.ts","scripts":{"test":"nodemon tests/index.ts","format":"prettier --write \"./src/**/*.ts\" \"./test/**/*.ts\"","build":"tsc"},"author":{"name":"Blits Labs"},"license":"MIT","dependencies":{"@nodefactory/filecoin-address":"^1.0.1","base32-decode":"^1.0.0","base32-encode":"^1.2.0","bignumber.js":"^9.0.1","bip32":"^2.0.6","blake2b":"^2.1.3","blakejs":"^1.1.0","bn.js":"^5.2.0","filecoin.js":"^0.0.5-alpha","ipld-dag-cbor":"github:blitslabs/js-ipld-dag-cbor","leb128":"^0.0.5","lowercase-keys":"^1.0.1","multihashing-async":"^2.1.2","prettier":"^2.2.1","secp256k1":"^4.0.2"},"devDependencies":{"@blits-labs/filecoin-signing-tools":"^0.2.4","@types/jest":"^26.0.23","@types/node":"^15.0.1","jest":"^26.6.3","ts-jest":"^26.5.6","ts-node":"^9.1.1","typescript":"^4.2.4"},"directories":{"lib":"lib","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/blitslabs/filecoin-js-signer.git"},"keywords":["filecoin","fil","signer","blits","blitslabs"],"bugs":{"url":"https://github.com/blitslabs/filecoin-js-signer/issues"},"homepage":"https://github.com/blitslabs/filecoin-js-signer#readme","description":"","gitHead":"2d31264ec0be5f6fb5722981e81227fe34628fb1","_id":"@blitslabs/filecoin-js-signer@1.0.3","_nodeVersion":"14.16.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-QiH651VnXio+Wnf5RnwuGX59GqRsCks2Xn7kgyZXJJMdcci+c8fZj+tLzgJeAtbzPLP4sesK6ZXDMfTSoVeoCg==","shasum":"e9f015f9bcf7b86bc69f0d99b5e5b022195660b4","tarball":"https://registry.npmjs.org/@blitslabs/filecoin-js-signer/-/filecoin-js-signer-1.0.3.tgz","fileCount":37,"unpackedSize":69845,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgoCv6CRA9TVsSAnZWagAAPZAP/ixN4IKh1/L1Us5iEPAg\n3wps6n8abXA4TES8ORohKWtQbCF2Cm8hMaqy3h0IXA6hl37ILSJKUjGxON10\nIRFYNSBcW/FPPSVecWndYfqC9a65i7UuncOxhKrbd15uTNrwinLu5g4uYcsM\n5tmeTWHd1HsKuNGWZrKmTDsAITDdIEo5VJagt69qg7JL87xaN4v5gD79p2ox\n9X+Z6IqKGU9WrKOIjsUaRW9KB088glPO75D2cr5vbIfPzjmHjA0zdm5GLEIU\nmS0rzPnaK5nJLb8HbXNPFPQPOLqxcjsRfB7kekPg+nkAVbM3C+blB4VZjzZD\nOscXetWuluThf+e40xaeaK6ef5e5ilVTlxdgd9ZgINhQifxAaZ7nrowHc+Kx\nidJVQO7DxiwHGzqTMvbb0zpLGQ6K9meHU9RjNxhCW8OvEAnutfnhJUXKXaND\n61AhIpeOusi+8gm+7Z7A4fAiiCho6LoSN5jhu4q/4r8RCaTlVCqQXZYO5X8G\nXfwdUzmkWcjfEWcEz+qkEIf5pipKANrs9+x+yUia9Wc5EC4rHVo4xYW6g4Vj\njiMkbZzRKi4om1zJm4uIhfque1jsVaalHbvqfAyz0WGAo71KSkRZ20b7ogN0\nhmawRKeDKfNuIh64DhdZvM69jsTocwfQyKqJEtcHVlR97r0CdTBPmK0y7+Si\n9XhJ\r\n=tsHI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCs4ATVIKRv1BG6RsAtgxvFC37R0KGtKMq/JRQFhSvW+gIhANHRP7xj/L285nvH5A/yGIUPDglErivA7BGhEB9vtEHA"}]},"_npmUser":{"name":"blitslabs","email":"defi@blits.net"},"maintainers":[{"name":"blitslabs","email":"defi@blits.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filecoin-js-signer_1.0.3_1621109753626_0.11396583526385129"},"_hasShrinkwrap":false},"1.0.4":{"name":"@blitslabs/filecoin-js-signer","version":"1.0.4","main":"dist/index.js","module":"dist/index.esm.js","types":"dist/index.d.ts","scripts":{"test":"jest","format":"prettier --write \"./src/**/*.ts\" \"./test/**/*.ts\" \"./**/*{.json,.md,.yaml}\"","lint":"tslint -p tsconfig.json -c tslint.json","build":"tsc"},"author":{"name":"Blits Labs"},"license":"MIT","dependencies":{"@nodefactory/filecoin-address":"^1.0.1","base32-decode":"^1.0.0","base32-encode":"^1.2.0","bignumber.js":"^9.0.1","bip32":"^2.0.6","blake2b":"^2.1.3","blakejs":"^1.1.0","bn.js":"^5.2.0","filecoin.js":"^0.0.5-alpha","ipld-dag-cbor":"github:blitslabs/js-ipld-dag-cbor","leb128":"^0.0.5","lowercase-keys":"^1.0.1","multihashing-async":"^2.1.2","secp256k1":"^4.0.2"},"devDependencies":{"@blits-labs/filecoin-signing-tools":"^0.2.4","@types/jest":"^26.0.23","@types/node":"^15.0.1","dotenv":"^9.0.2","jest":"^26.6.3","ts-jest":"^26.5.6","ts-node":"^9.1.1","tslint":"^6.1.3","prettier":"^2.2.1","typescript":"^4.2.4"},"directories":{"lib":"lib","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/blitslabs/filecoin-js-signer.git"},"keywords":["filecoin","fil","signer","blits","blitslabs"],"bugs":{"url":"https://github.com/blitslabs/filecoin-js-signer/issues"},"homepage":"https://github.com/blitslabs/filecoin-js-signer#readme","description":"Filecoin signing library and RPC client.","gitHead":"402ad87709760189cfd5be8df0c4d9a9be357ca5","_id":"@blitslabs/filecoin-js-signer@1.0.4","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-JHiq9tewvudr487+G3fAMgzruiCzbm15zaUkHlu3/BBYcYUYvAWOoTBc6V3e1nn0RlpIplhMvn0rUFg21HgC9g==","shasum":"4255f684472f30a96c67c472bbb0ad6db0a9d13c","tarball":"https://registry.npmjs.org/@blitslabs/filecoin-js-signer/-/filecoin-js-signer-1.0.4.tgz","fileCount":4,"unpackedSize":3374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgtsnwCRA9TVsSAnZWagAAoL0P/jtg33mTCwmuVm7aWvd1\n7MGUc3KIfT66sRqgjFTlcSLsRaX3vIHI/H1EDUWWxvo8NYkwngFJnKEPRsuP\nDr/wko7RpL+EqOlzRfnuCzKBO18LTk40Nt4Dnhvw4baEdffE5+XT1MafAzjX\n2YWy28xI4T7EXRAm5NTWq4nnUoL+Io4Jcc4vw9QT9/zvevq6wL0ugazIC5QU\nfFppCf0CKZgm+ID11UWuZKIBj9T8lc15UdYUzIaVh2jqcvjng20tsDfpWLtg\nl9LUX+7gsxnUYuGYaIGBSQbUoaF1i5HqvX/TfeQGX8gGDNfZbDXLtIczrf/K\n2pCGHi5kG2Li+4/kw1dnv7CjYNwWtVYRu6VHtzmaWNuhrLKuv1VXknKDlNpp\nkSWfI09JM1iIhCawltdYvvOEzb6BbZ8CZcEjsOg4ng0VIjeWrMiDfKfGYY+L\nMvgMiL7AzBe+JUoBpaL833ZdaoDSlbUGY6PgJ3wqc3yjUvAAGzFkFWPlOGBC\n5u3Liq+0JVIacZysYd/AS4+Ndvr7Q7Eg/dxNW4q+guyFDurzU+TIuF6ihFyC\nJzkqUJzemVOwcrNtJFu3gJGrtXc5yCwl+YMsLqNdG9rLraUE1ePomFuoe8yi\nh4W/3QxdUzMtz4kezNpHmooFEfoNs/EDdIN83Ct0q1JDgnzjWv8GTJS0qI+p\nzrlw\r\n=VDK0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSYs0AxznsZ0WFmshBdRridbUHhb2AhmfutFgHUO0UvwIhALuJyiykVivuRpx1BdeP1obWt6yiagDx+8K7oRVUfc13"}]},"_npmUser":{"name":"blitslabs","email":"defi@blits.net"},"maintainers":[{"name":"blitslabs","email":"defi@blits.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filecoin-js-signer_1.0.4_1622591983577_0.6328137289695703"},"_hasShrinkwrap":false},"1.0.5":{"name":"@blitslabs/filecoin-js-signer","version":"1.0.5","main":"dist/index.js","module":"dist/index.esm.js","types":"dist/index.d.ts","scripts":{"test":"jest","format":"prettier --write \"./src/**/*.ts\" \"./test/**/*.ts\" \"./**/*{.json,.md,.yaml}\"","lint":"tslint -p tsconfig.json -c tslint.json","build":"tsc"},"author":{"name":"Blits Labs"},"license":"MIT","dependencies":{"@nodefactory/filecoin-address":"^1.0.1","base32-decode":"^1.0.0","base32-encode":"^1.2.0","bignumber.js":"^9.0.1","bip32":"^2.0.6","blake2b":"^2.1.3","blakejs":"^1.1.0","bn.js":"^5.2.0","filecoin.js":"^0.0.5-alpha","ipld-dag-cbor":"github:blitslabs/js-ipld-dag-cbor","leb128":"^0.0.5","lowercase-keys":"^1.0.1","multihashing-async":"^2.1.2","secp256k1":"^4.0.2"},"devDependencies":{"@blits-labs/filecoin-signing-tools":"^0.2.4","@types/jest":"^26.0.23","@types/node":"^15.0.1","dotenv":"^9.0.2","jest":"^26.6.3","ts-jest":"^26.5.6","ts-node":"^9.1.1","tslint":"^6.1.3","prettier":"^2.2.1","typescript":"^4.2.4"},"directories":{"lib":"lib","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/blitslabs/filecoin-js-signer.git"},"keywords":["filecoin","fil","signer","blits","blitslabs"],"bugs":{"url":"https://github.com/blitslabs/filecoin-js-signer/issues"},"homepage":"https://github.com/blitslabs/filecoin-js-signer#readme","description":"Filecoin signing library and RPC client.","gitHead":"402ad87709760189cfd5be8df0c4d9a9be357ca5","_id":"@blitslabs/filecoin-js-signer@1.0.5","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-JYzMrNjZehV5yyRZdsrUxGpgldQ9uaZERtxgFvGEbdY0VAqFK+8mSeDSV4UIooxUwVJa3crN5ywgPttbtjWKlg==","shasum":"9255f890ad90703a2910f5dc644952619928621a","tarball":"https://registry.npmjs.org/@blitslabs/filecoin-js-signer/-/filecoin-js-signer-1.0.5.tgz","fileCount":61,"unpackedSize":92949,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgtsp9CRA9TVsSAnZWagAAIjsQAKDfKiUYW9MU8Rbe23ct\nunW/smEbfFIQqOekyrh3jfFEbXuOR5Oiz/R+8t1haXSp8FVbEEI+mi+MJmsU\nVLfbyuU/s9tuUsLUn1KNIq4dupaP+FSIb51w1R6hlR4PaZ0Olb16KELQclZI\ncf5/Vfv73ao1A3XlDL+vsXTSIisFWT4R9lHcj+wzOQqM+cNZt5aprf10gR7h\nikym3jocIK0uqhD/p9OsmMRuv9f9PUEde5BiuqRtNqDqPO4bAmf/wNZNFlJJ\nTL8xIO24dthlRJN1vZr2l83R6fMbppi3QOy/eSfnFkZyR6desZ52wn2cult5\n6lnGfDplBGzKDy/SknAgDzGPj5WC2kSJ3kxIybtNWWovRk7avROm+05tszJj\n5yWu6Uam2X4ua3ql1ATe7WoqYbZp2SWUnFZtjx464HHHuF/guxNqyz1EUcFT\nzOhMDhmRXBsInPIt15GEcLtMiI4A6d/ztfqDfgo/VqLUwVN9+f+hj4AM+s57\nDMIb6kmpZZZrsVbgV0MsMKWSe55pFnWx/BprNPTjsXsVxAsS3JqoNLA+d+7O\nfRPdFR6mqRwU+3HTbwkiM3BD4hu8epLX2rVho2dXNct1Ezry9qk18jncjR8X\n5Im6cNnhjto4BDK8TYcbX4YS57ShHAEQUighTUGwBG/NtPx+q4OKyEC8/xU/\ni4p6\r\n=EdyY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5zB93x5M0bNLhcX6VDzu85F/Owk99PjPahseIVxHO6QIhAMGdLfmRxwAhgFMUBaCrgQPGWzmMa1tgGrJMsV3Z6O33"}]},"_npmUser":{"name":"blitslabs","email":"defi@blits.net"},"maintainers":[{"name":"blitslabs","email":"defi@blits.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filecoin-js-signer_1.0.5_1622592125328_0.7061741587759816"},"_hasShrinkwrap":false},"1.0.6":{"name":"@blitslabs/filecoin-js-signer","version":"1.0.6","main":"dist/index.js","module":"dist/index.esm.js","types":"dist/index.d.ts","scripts":{"test":"jest","format":"prettier --write \"./src/**/*.ts\" \"./test/**/*.ts\" \"./**/*{.json,.md,.yaml}\"","lint":"tslint -p tsconfig.json -c tslint.json","build":"tsc"},"author":{"name":"Blits Labs"},"license":"MIT","dependencies":{"@nodefactory/filecoin-address":"^1.0.1","base32-decode":"^1.0.0","base32-encode":"^1.2.0","bignumber.js":"^9.0.1","bip32":"^2.0.6","blake2b":"^2.1.3","blakejs":"^1.1.0","bn.js":"^5.2.0","filecoin.js":"^0.0.5-alpha","ipld-dag-cbor":"github:blitslabs/js-ipld-dag-cbor","leb128":"^0.0.5","lowercase-keys":"^1.0.1","multihashing-async":"^2.1.2","secp256k1":"^4.0.2"},"devDependencies":{"@blits-labs/filecoin-signing-tools":"^0.2.4","@types/jest":"^26.0.23","@types/node":"^15.0.1","dotenv":"^9.0.2","jest":"^26.6.3","ts-jest":"^26.5.6","ts-node":"^9.1.1","tslint":"^6.1.3","prettier":"^2.2.1","typescript":"^4.2.4"},"directories":{"lib":"lib","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/blitslabs/filecoin-js-signer.git"},"keywords":["filecoin","fil","signer","blits","blitslabs"],"bugs":{"url":"https://github.com/blitslabs/filecoin-js-signer/issues"},"homepage":"https://github.com/blitslabs/filecoin-js-signer#readme","description":"Filecoin signing library and RPC client in pure Typescript / Javascript with the necessary methods to create, sign and broadcast messages to send FIL, and interact with Filecoin's built-in actors (like Payment Channel and Multisig).","gitHead":"60e4cd789e96e86f44de7759a4fa5bfd464983f3","_id":"@blitslabs/filecoin-js-signer@1.0.6","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-Rf+7RgJrPEElovt9QrKP+A0fWzChsXa20pTFC6XOjNOaeJbzdbPpQmNoExGt1smwOnzVfxXcVn6nS5ng1jiwWg==","shasum":"e61ea95f92a34783efb250a9c2851d5755dc8166","tarball":"https://registry.npmjs.org/@blitslabs/filecoin-js-signer/-/filecoin-js-signer-1.0.6.tgz","fileCount":61,"unpackedSize":114031,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgw3+aCRA9TVsSAnZWagAAnegP/3Du1epGdauerXE7mZvm\nAbFQngwmLR7lG0Fd2QR9ViN4AH0uyIrJfA0SuP3v2Bu+DiZ75tSs9TTNI2MY\ns7KXuWtBVnjdU7U19dmWl7G25YSAkZY+3z76wBwGTGELeOeL3GsRnA9DfCuw\ne4kVP2MH9xv+haTrLQMFUSqD957YJn6KeP4ahVfSgpReKyYmdfQ1ci2/fX4z\nfzu7CSHaFzODrWHr1MxtMyS1N6vhk3WSXKIsGQDyBNTR7rAIr0PKakH1QTup\n+U0Nf1TqzsdXiyNsDv6H6k+IRaWoGvL1T+LMBUrjcPh78vrdk9pWTwS/OJz/\nEm9Y9n+x6m/+DpAaEdmx2Gy/z/Ugxkwnw2KT8PyPnSEePS1J48HLocW5qUVX\n6g908ojT6nYfahY2u38jRJi/zwO5IxxJbTb7I2O3Q/+QNFRfUABeDMIyVyay\nn28Zm3TLEGmWBkLf44npih8Zwc1rp8sI+jNP9s1YmL/plRLtDHWwSagWflth\nzfTAHyVbtMgrqJOsPaKcF1ojcuvsP2ilkaYw7WtJp631qFLmhAyZv6TQdwV2\n1eL/I0gBLtHvcOgeL1DFTuoyb4E4eWf5d+jjvRlSbAMGuCMMAaRmxDQMGzq8\ncAu7459cSsuuSPes1pj8c8b8pFmTW74CWsoKEDJAkYYnli9+C3lfQ63ismdX\nQ2Ng\r\n=yorL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGjmCa5l2A83q/4i6J35yxPxDPAia8ykpqbH3tMl9IKwIhAOp0DQNnqhqS4v95BKWgXOs626P1sA1rBYM1jRYHING0"}]},"_npmUser":{"name":"blitslabs","email":"defi@blits.net"},"maintainers":[{"name":"blitslabs","email":"defi@blits.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/filecoin-js-signer_1.0.6_1623424922346_0.970761483380534"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-15T16:43:55.400Z","1.0.0":"2021-05-15T16:43:55.634Z","modified":"2022-04-04T19:35:13.215Z","1.0.1":"2021-05-15T18:26:04.093Z","1.0.2":"2021-05-15T20:15:21.942Z","1.0.3":"2021-05-15T20:15:53.774Z","1.0.4":"2021-06-01T23:59:43.700Z","1.0.5":"2021-06-02T00:02:05.492Z","1.0.6":"2021-06-11T15:22:02.572Z"},"maintainers":[{"name":"blitslabs","email":"defi@blits.net"}],"homepage":"https://github.com/blitslabs/filecoin-js-signer#readme","keywords":["filecoin","fil","signer","blits","blitslabs"],"repository":{"type":"git","url":"git+https://github.com/blitslabs/filecoin-js-signer.git"},"author":{"name":"Blits Labs"},"bugs":{"url":"https://github.com/blitslabs/filecoin-js-signer/issues"},"license":"MIT","readme":"# filecoin-js-signer\n\nFilecoin signing library and RPC client in pure Typescript / Javascript with the necessary methods to create, sign and broadcast messages to send FIL, and interact with Filecoin's built-in actors (like Payment Channel and Multisig).\n\n## Motivation\nThis library was created as part of the Filecoin Loans Grant awarded by the Filecoin Foundation. At the time of its creation (April 2021), there were no functional signing libraries written in pure Javascript or that had a complete implementation of the Payment Channel actor's methods (i.e. passing a hash/secret to create and redeem vouchers, necessary to create Atomic Swaps / Atomic Loans). A pure Javascript implementation of these methods can also facilitate, or simplify, the usage from React Native or web applications that interact with the Filecoin network.\n\n## Installing\n\n\n```bash\nnpm install --save @blitslabs/filecoin-js-signer\n```\n\n\n## API Reference\n\nGo to [reference guide](https://app.gitbook.com/@blitslabs/s/filecoin-loans/tools/filecoin-js-signer/api-reference).\n\n## Filecoin Signer\nCollection of methods to create and sign messages to send funds and interact with Filecoin's built-in actors (Payment Channel & Multisig).\n\n### wallet.generateMnemonic\nGenerate a seed phrase (mnemonic).\n\n```javascript\nimport { FilecoinSigner } from '@blitslabs/filecoin-signing-tools'\nconst filecoin_signer = new FilecoinSigner()\n\nconst strength = 128 // 128 => 12 words | 256 => 24 words\nconst mnemonic = await filecoin_signer.wallet.generateMnemonic(strength)\n\nconsole.log(unsignedMessage)\n// floor electric fitness someone escape achieve mixture alley obey main funny kingdom\n```\n\n### wallet.keyDerive\nDerive (public/private) keys from a mnemonic.\n\n```javascript\nimport { FilecoinSigner } from '@blitslabs/filecoin-signing-tools'\nconst filecoin_signer = new FilecoinSigner()\n\nconst strength = 128 // 128 => 12 words | 256 => 24 words\nconst mnemonic = await filecoin_signer.wallet.generateMnemonic(strength)\nconst i = 0\nconst network = 'testnet'\n\nconst keys = await filecoin_signer.wallet.keyDerive(mnemonic, `m/44'/461'/0'/0/${i}`, network)\nconsole.log(keys)\n\n// KeyPair {\n//     _publicKey: '049333be94a4dfe65e7b2142870186f7deb9e82cf4c1790c55ef6bfa767ecd187fb2615a203cf61d76a24029f118e74705cc7c6304e4808e4c87a608a7dadedc41',\n//     _privateKey: '6f093e7932838e7d5c0b01a3c6b7be1c4d96afff9431af9b53d42cc2d0bf3e3c',\n//     _address: 't124h7myx7vyydjrwt4t456jlctx6ssbqj6wccsui'\n// }\n```\n\n### wallet.keyRecover\nRecover (public/private) keys from a private key. \n\n```javascript\nimport { FilecoinSigner } from '@blitslabs/filecoin-signing-tools'\nconst filecoin_signer = new FilecoinSigner()\n\nconst privateKey = '6f093e7932838e7d5c0b01a3c6b7be1c4d96afff9431af9b53d42cc2d0bf3e3c'\nconst keys = await filecoin_signer.wallet.keyRecover(privateKey, 'testnet')\nconsole.log(keys)\n\n// KeyPair {\n//     _publicKey: '049333be94a4dfe65e7b2142870186f7deb9e82cf4c1790c55ef6bfa767ecd187fb2615a203cf61d76a24029f118e74705cc7c6304e4808e4c87a608a7dadedc41',\n//     _privateKey: '6f093e7932838e7d5c0b01a3c6b7be1c4d96afff9431af9b53d42cc2d0bf3e3c',\n//     _address: 't124h7myx7vyydjrwt4t456jlctx6ssbqj6wccsui'\n// }\n```\n\n### paych.createPaymentChannelMsg\nCreate create the unsigned message required to create a payment channel.\n\n\n```javascript\nimport { FilecoinSigner } from '@blitslabs/filecoin-signing-tools'\nconst filecoin_signer = new FilecoinSigner()\n\nconst from = 'f1wnhjmfj2qubzfgt3isx4vsofhfejdwkeqgqzr4y'\nconst to = 'f1wnhjmfj2qubzfgt3isx4vsofhfejdwkeqgqzr4y'\nconst amount = new BigNumber(1e18)\nconst nonce = 0\nconst network = 'mainnet'\n\nconst unsignedMessage = await filecoin_signer.paych.createPaymentChannelMsg(from, to, amount, nonce, network)\n\nconsole.log(unsignedMessage)\n//{\n//  From: 'f1wnhjmfj2qubzfgt3isx4vsofhfejdwkeqgqzr4y',\n//  To: 'f01',\n//  Nonce: 0,\n//  Value: BigNumber { s: 1, e: 19, c: [ 100000 ] },\n//  GasLimit: 10000000,\n//  GasFeeCap: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//  GasPremium: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//  Method: 2,\n//  Params: 'gtgqWBkAAVUAFGZpbC80L3BheW1lbnRjaGFubmVsWC2CVQGzTpYVOoUDkpp7RK/KycU5SJHZRFUBs06WFTqFA5Kae0SvysnFOUiR2UQ='\n//}\n```\n\n### paych.createVoucher\nCreate an unsigned voucher to enable the voucher recipient to redeem funds from the payment channel.\n\n```javascript\nimport { FilecoinSigner } from '@blitslabs/filecoin-signing-tools'\nconst filecoin_signer = new FilecoinSigner()\n\nconst unsignedVoucher = await filecoin_signer.paych.createVoucher(\n    paymentChannelAddress, // paymentChannelAddress\n    0, // timeLockMin\n    0, // timeLockMax\n    '', // secretHash\n    new BigNumber(1e18), // amount\n    0, // lane\n    0, // voucherNonce\n    0, // minSettleHeight\n)\n\nconsole.log(unsignedVoucher)\n// i1UBs06WFTqFA5Kae0SvysnFOUiR2UQAAED2AABJAA3gtrOnZAAAAID2\n```\n\n### paych.signVoucher\nSign a voucher with private key.\n\n```javascript\nimport { FilecoinSigner } from '@blitslabs/filecoin-signing-tools'\nconst filecoin_signer = new FilecoinSigner()\n\nconst unsignedVoucher = 'i1UBs06WFTqFA5Kae0SvysnFOUiR2UQAAED2AABJAA3gtrOnZAAAAID2'\n\nconst signedVoucher = await filecoin_signer.paych.signVoucher(unsignedVoucher, privateKey)\nconsole.log(signedVoucher)\n// i1UBs06WFTqFA5Kae0SvysnFOUiR2UQAAED2AABJAA3gtrOnZAAAAIBYQgE/WULVPYSydr0CsaqHkEaH9FYawRtgDOjtpubcWGdpul9lQYFsr6hOoK8anmylhGwB9p3BbGJVaTmAt2z2+srzAQ==\n```\n\n### paych.verifyVoucherSignature\nVerify the signature of a voucher\n\n```javascript\nimport { FilecoinSigner } from '@blitslabs/filecoin-signing-tools'\nconst filecoin_signer = new FilecoinSigner()\n\nconst signedVoucher = 'i1UBs06WFTqFA5Kae0SvysnFOUiR2UQAAED2AABJAA3gtrOnZAAAAIBYQgE/WULVPYSydr0CsaqHkEaH9FYawRtgDOjtpubcWGdpul9lQYFsr6hOoK8anmylhGwB9p3BbGJVaTmAt2z2+srzAQ=='\nconst signerAddress = 't1xgb73oc3s3sengf5ghvb5jzty5ftokodkibtmfa'\n\nconst signatureIsValid = await filecoin_signer.paych.verifyVoucherSignature(unsignedVoucher, signerAddress)\nconsole.log(signatureIsValid)\n// true\n```\n\n### paych.updatePaymentChannelMsg\nCreate the unsigned message required to redeem a voucher from a payment channel\n\n```javascript\nimport { FilecoinSigner } from '@blitslabs/filecoin-signing-tools'\nconst filecoin_signer = new FilecoinSigner()\n\nconst paymentChannelAddress = 'f1wnhjmfj2qubzfgt3isx4vsofhfejdwkeqgqzr4y'\nconst from = 'f1wnhjmfj2qubzfgt3isx4vsofhfejdwkeqgqzr4y'\nconst signedVoucher = 'i1UBs06WFTqFA5Kae0SvysnFOUiR2UQAAED2AABJAA3gtrOnZAAAAIBYQgE/WULVPYSydr0CsaqHkEaH9FYawRtgDOjtpubcWGdpul9lQYFsr6hOoK8anmylhGwB9p3BbGJVaTmAt2z2+srzAQ=='\nconst secret = ''\nconst nonce = 0\n\nconst redeemVoucherMsg = await filecoin_signer.paych.updatePaymentChannelMsg(\n    paymentChannelAddress,\n    from,\n    signedVoucher,\n    secret,\n    nonce,\n)\n\nconsole.log(redeemVoucherMsg)\n\n// {\n//     From: 'f1wnhjmfj2qubzfgt3isx4vsofhfejdwkeqgqzr4y',\n//     To: 'f1wnhjmfj2qubzfgt3isx4vsofhfejdwkeqgqzr4y',\n//     Nonce: 0,\n//     Value: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//     GasLimit: 5000000,\n//     GasFeeCap: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//     GasPremium: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//     Method: 2,\n//     Params: 'gotVAbNOlhU6hQOSmntEr8rJxTlIkdlEAABA9gAASQAN4Lazp2QAAACAWEIBP1lC1T2Esna9ArGqh5BGh/RWGsEbYAzo7abm3FhnabpfZUGBbK+oTqCvGp5spYRsAfadwWxiVWk5gLds9vrK8wFA'\n// }\n```\n\n### paych.settlePaymentChannelMsg\nCreate the unsigned message required to start the settling process of a payment channel.\n\n```javascript\nimport { FilecoinSigner } from '@blitslabs/filecoin-signing-tools'\nconst filecoin_signer = new FilecoinSigner()\n\nconst paymentChannelAddress = 'f1wnhjmfj2qubzfgt3isx4vsofhfejdwkeqgqzr4y'\nconst from = 'f1wnhjmfj2qubzfgt3isx4vsofhfejdwkeqgqzr4y'\nconst nonce = 0\n\nconst settleMsg = await filecoin_signer.paych.settlePaymentChannelMsg(\n    paymentChannelAddress,\n    from,\n    nonce,\n)\n\nconsole.log(settleMsg)\n\n// {\n//     From: 'f1wnhjmfj2qubzfgt3isx4vsofhfejdwkeqgqzr4y',\n//     To: 'f1wnhjmfj2qubzfgt3isx4vsofhfejdwkeqgqzr4y',\n//     Nonce: 0,\n//     Value: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//     GasLimit: 0,\n//     GasFeeCap: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//     GasPremium: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//     Method: 3,\n//     Params: ''\n// }\n```\n\n### paych.collectPaymentChannelMsg\nCreate the unsigned message required to collect the funds in a payment channel, once the settling process has ended.\n\n```javascript\nimport { FilecoinSigner } from '@blitslabs/filecoin-signing-tools'\nconst filecoin_signer = new FilecoinSigner()\n\nconst paymentChannelAddress = 'f1wnhjmfj2qubzfgt3isx4vsofhfejdwkeqgqzr4y'\nconst from = 'f1wnhjmfj2qubzfgt3isx4vsofhfejdwkeqgqzr4y'\nconst nonce = 0\n\nconst collectMsg = await filecoin_signer.paych.collectPaymentChannelMsg(\n    paymentChannelAddress,\n    from,\n    nonce,\n)\n\nconsole.log(collectMsg)\n\n// {\n//     From: 'f1wnhjmfj2qubzfgt3isx4vsofhfejdwkeqgqzr4y',\n//     To: 'f1wnhjmfj2qubzfgt3isx4vsofhfejdwkeqgqzr4y',\n//     Nonce: 0,\n//     Value: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//     GasLimit: 0,\n//     GasFeeCap: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//     GasPremium: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//     Method: 4,\n//     Params: ''\n// }\n```\n\n### msig.createMultisigMsg\nReturns an unsigned message to create multi-signature wallet\n\n```javascript\nimport { FilecoinSigner } from '@blitslabs/filecoin-signing-tools'\nconst filecoin_signer = new FilecoinSigner()\n\nconst unsignedMessage = await filecoin_signer.msig.createMultisigMsg(\n    from,\n    addresses,\n    amount,\n    requiredNumberOfApprovals,\n    nonce,\n    unlockDuration,\n    startEpoch,\n)\n\n// {\n//     From: 't1xgb73oc3s3sengf5ghvb5jzty5ftokodkibtmfa',\n//     To: 'f01',\n//     Nonce: 0,\n//     Value: BigNumber { s: 1, e: 19, c: [ 100000 ] },\n//     GasLimit: 0,\n//     GasFeeCap: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//     GasPremium: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//     Method: 2,\n//     Params: 'gtgqUwABVQAOZmlsLzQvbXVsdGlzaWdYMYSCVQG5g/24W5bkRpi9MeoepzPHSzcpw1UBuYP9uFuW5EaYvTHqHqczx0s3KcMCAAA='\n// }\n```\n\n### msig.proposeMultisigMsg\nReturns an unsigned message to propose a multisig message\n\n```javascript\nimport { FilecoinSigner } from '@blitslabs/filecoin-signing-tools'\nconst filecoin_signer = new FilecoinSigner()\n\nconst unsignedMessage = await filecoin_signer.msig.proposeMultisigMsg(\n    multisigAddress,        \n    from,\n    to,\n    amount,        \n    nonce,        \n)\n\n// {\n//     From: 't1xgb73oc3s3sengf5ghvb5jzty5ftokodkibtmfa',\n//     To: 't1xgb73oc3s3sengf5ghvb5jzty5ftokodkibtmfa',\n//     Nonce: 0,\n//     Value: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//     GasLimit: 0,\n//     GasFeeCap: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//     GasPremium: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//     Method: 2,\n//     Params: 'hFUBuYP9uFuW5EaYvTHqHqczx0s3KcNJAIrHIwSJ6AAAAEA='\n// }\n```\n\n### msig.approveMultisigMsg\nReturns an unsigned message to approve a multisig message\n\n```javascript\nimport { FilecoinSigner } from '@blitslabs/filecoin-signing-tools'\nconst filecoin_signer = new FilecoinSigner()\n\nconst unsignedMessage = await filecoin_signer.msig.approveMultisigMsg(\n    multisigAddress,\n    messageId,\n    requester,\n    from,\n    to,\n    amount,        \n    nonce,        \n)\n\n// {\n//     From: 't1xgb73oc3s3sengf5ghvb5jzty5ftokodkibtmfa',\n//     To: 't1xgb73oc3s3sengf5ghvb5jzty5ftokodkibtmfa',\n//     Nonce: 0,\n//     Value: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//     GasLimit: 0,\n//     GasFeeCap: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//     GasPremium: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//     Method: 3,\n//     Params: 'ggBYIM39f3E1eS5YseC0v+YNCsL99ieU5FWmS1RZgRcDnzBB'\n// }\n```\n\n### msig.cancelMultisigMsg\nReturns an unsigned message to cancel a multisig message\n\n```javascript\nimport { FilecoinSigner } from '@blitslabs/filecoin-signing-tools'\nconst filecoin_signer = new FilecoinSigner()\n\nconst unsignedMessage = await filecoin_signer.msig.cancelMultisigMsg(\n    multisigAddress,        \n    messageId,\n    requester,\n    from,\n    to,\n    amount,        \n    nonce,        \n)\n\n// {\n//     From: 't1xgb73oc3s3sengf5ghvb5jzty5ftokodkibtmfa',\n//     To: 't1xgb73oc3s3sengf5ghvb5jzty5ftokodkibtmfa',\n//     Nonce: 0,\n//     Value: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//     GasLimit: 0,\n//     GasFeeCap: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//     GasPremium: BigNumber { s: 1, e: 0, c: [ 0 ] },\n//     Method: 4,\n//     Params: 'ggBYIM39f3E1eS5YseC0v+YNCsL99ieU5FWmS1RZgRcDnzBB'\n// }\n```\n\n### tx.transactionSignLotus\nSign an unsigned message with a given private key\n\n```javascript\nimport { FilecoinSigner } from '@blitslabs/filecoin-signing-tools'\nconst filecoin_signer = new FilecoinSigner()\n\nconst unsignedMessage = await filecoin_signer.paych.createPaymentChannelMsg(\n    from, to, amount, nonce, network\n)   \n\nconst signedMessage = await filecoin_signer.tx.transactionSignLotus(unsignedMessage, privateKey)\nconsole.log(signedMessage)\n\n// {\"Message\":{\"From\":\"t1xgb73oc3s3sengf5ghvb5jzty5ftokodkibtmfa\",\"GasLimit\":10000000,\"GasFeeCap\":\"0\",\"GasPremium\":\"0\",\"Method\":2,\"Nonce\":0,\"Params\":\"gtgqWBkAAVUAFGZpbC80L3BheW1lbnRjaGFubmVsWC2CVQG5g/24W5bkRpi9MeoepzPHSzcpw1UBuYP9uFuW5EaYvTHqHqczx0s3KcM=\",\"To\":\"f01\",\"Value\":\"10000000000000000000\"},\"Signature\":{\"Data\":\"jqoMlz82/zUTAWkuzvylRNJ8e7qjDtla35CZA8cCU0F68M366lUORzIBrcKnB3FMyHqXptOicE+0GxDe/V1vDgA=\",\"Type\":1}}\n```\n\n### tx.transactionVerifyLotus\nVerify the signature of a signed message.\n\n```javascript\nimport { FilecoinSigner } from '@blitslabs/filecoin-signing-tools'\nconst filecoin_signer = new FilecoinSigner()\n\nconst signatureIsValid = await filecoin_signer.tx.transactionVerifyLotus(signedMessage)\n\nconsole.log(signatureIsValid)\n// true\n```\n\n### utils.signMessage\nUtilitary function to sign a message with a given private key.\n\n```javascript\nimport { FilecoinSigner } from '@blitslabs/filecoin-signing-tools'\nconst filecoin_signer = new FilecoinSigner()\n\nconst message = 'message'\nconst privateKey = '6f093e7932838e7d5c0b01a3c6b7be1c4d96afff9431af9b53d42cc2d0bf3e3c'\nconst signedMessage = await filecoin_signer.utils.signMessage(message, privateKey)\nconsole.log(signedMessage)\n\n// a18a1c3f4fd55fd1842746e40dea9d26e7a24511c3f809b20b6d2254e607c8e9562d82f02ba7d72321be64049b8ee10141c7b86793bf686634a331fef75f54f800\n```\n\n### utils.verifySignature\nUtilitary function to verify a signature.\n\n```javascript\nimport { FilecoinSigner } from '@blitslabs/filecoin-signing-tools'\nconst filecoin_signer = new FilecoinSigner()\n\nconst message = 'message'\nconst privateKey = '6f093e7932838e7d5c0b01a3c6b7be1c4d96afff9431af9b53d42cc2d0bf3e3c'\nconst signer = 't124h7myx7vyydjrwt4t456jlctx6ssbqj6wccsui'\nconst signature = await filecoin_signer.utils.signMessage(message, privateKey)\n\nconst signatureIsValid = await filecoin_signer.utils.verifySignature(message, signature, signer)\nconsole.log(signatureIsValid)\n\n// true\n```\n\n<br />\n\n## Filecoin Client\nCollection of methods to create, sign and broadcast messages to send funds and interact with Filecoin's built-in actors (Payment Channel & Multisig).\n\n*The difference with FilecoinSigner is that FilecoinClient broadcasts the messages to the network.\n\n### paych.createPaymentChannel\nCreate, sign and broadcast a message to create a payment channel.\n```javascript\nimport { FilecoinClient } from '@blitslabs/filecoin-signing-tools'\nconst endpoint = 'https://calibration.node.glif.io'\nconst token = ''\nconst filecoin_client = new FilecoinClient(endpoint, token)\n\nconst from = 't124h7myx7vyydjrwt4t456jlctx6ssbqj6wccsui'\nconst to = 't1xgb73oc3s3sengf5ghvb5jzty5ftokodkibtmfa'\nconst amount = new BigNumber(1e18)    \nconst privateKey = '6f093e7932838e7d5c0b01a3c6b7be1c4d96afff9431af9b53d42cc2d0bf3e3c'\nconst network = 'testnet'\nconst waitMsg = false // false => return CID || true => wait for tx to confirm and return tx details\n\nconst response = await filecoin_client.paych.createPaymentChannel(from, to, amount, privateKey, network, waitMsg)\nconsole.log(response)\n// {\n//   '/': 'bafy2bzacec3byj5vt5jlxssuv5idccgsag526j4x272vmm4nsqcix5luq4zrs'\n// }\n```\n\n### paych.updatePaymentChannel\nCreate, sign and broadcast a message to redeem a payment channel's  voucher.\n\n```javascript\nimport { FilecoinClient } from '@blitslabs/filecoin-signing-tools'\nconst endpoint = 'https://calibration.node.glif.io'\nconst token = ''\nconst filecoin_client = new FilecoinClient(endpoint, token)\n\nconst response = await filecoin_client.paych.updatePaymentChannel(\n    paymentChannelAddress,\n    from,\n    signedVoucher,\n    secret,\n    privateKey,        \n    waitMsg\n)\nconsole.log(response)\n\n// {\n//   '/': 'bafy2bzacec3byj5vt5jlxssuv5idccgsag526j4x272vmm4nsqcix5luq4zrs'\n// }\n```\n\n### paych.settlePaymentChannel\nCreate, sign and broadcast a message to settle a payment channel.\n\n```javascript\nimport { FilecoinClient } from '@blitslabs/filecoin-signing-tools'\nconst endpoint = 'https://calibration.node.glif.io'\nconst token = ''\nconst filecoin_client = new FilecoinClient(endpoint, token)\n\nconst response = await filecoin_client.paych.settlePaymentChannel(\n    paymentChannelAddress,\n    from,        \n    privateKey,        \n    waitMsg\n)\nconsole.log(response)\n\n// {\n//   '/': 'bafy2bzacec3byj5vt5jlxssuv5idccgsag526j4x272vmm4nsqcix5luq4zrs'\n// }\n```\n\n### paych.collectPaymentChannel\nCreate, sign and broadcast a message to collect a payment channel.\n\n```javascript\nimport { FilecoinClient } from '@blitslabs/filecoin-signing-tools'\nconst endpoint = 'https://calibration.node.glif.io'\nconst token = ''\nconst filecoin_client = new FilecoinClient(endpoint, token)\n\nconst response = await filecoin_client.paych.collectPaymentChannel(\n    paymentChannelAddress,\n    from,        \n    privateKey,        \n    waitMsg\n)\nconsole.log(response)\n\n// {\n//   '/': 'bafy2bzacec3byj5vt5jlxssuv5idccgsag526j4x272vmm4nsqcix5luq4zrs'\n// }\n```\n\n### msig.createMultisig\nCreate, sign and broadcast a message to create a multisig.\n\n```javascript\nimport { FilecoinClient } from '@blitslabs/filecoin-signing-tools'\nconst endpoint = 'https://calibration.node.glif.io'\nconst token = ''\nconst filecoin_client = new FilecoinClient(endpoint, token)\n\nconst response = await filecoin_client.msig.createMultisig(\n    from,\n    addresses,\n    amount,\n    requiredNumberOfApprovals,\n    nonce,\n    unlockDuration,\n    startEpoch,\n    \"fil/4/multisig\",\n    privateKey,\n    network,\n    waitMsg\n)\nconsole.log(response)\n\n// {\n//   '/': 'bafy2bzacec3byj5vt5jlxssuv5idccgsag526j4x272vmm4nsqcix5luq4zrs'\n// }\n```\n\n### msig.proposeMultisig\nCreate, sign and broadcast a message to propose a multisig message.\n\n```javascript\nimport { FilecoinClient } from '@blitslabs/filecoin-signing-tools'\nconst endpoint = 'https://calibration.node.glif.io'\nconst token = ''\nconst filecoin_client = new FilecoinClient(endpoint, token)\n\nconst response = await filecoin_client.msig.proposeMultisig(\n    multisigAddress,        \n    from,\n    to,\n    amount,        \n    nonce,\n    privateKey,\n    network,\n    waitMsg\n)\nconsole.log(response)\n\n// {\n//   '/': 'bafy2bzacec3byj5vt5jlxssuv5idccgsag526j4x272vmm4nsqcix5luq4zrs'\n// }\n```\n\n### msig.approveMultisig\nCreate, sign and broadcast a message to approve a multisig message.\n\n```javascript\nimport { FilecoinClient } from '@blitslabs/filecoin-signing-tools'\nconst endpoint = 'https://calibration.node.glif.io'\nconst token = ''\nconst filecoin_client = new FilecoinClient(endpoint, token)\n\nconst response = await filecoin_client.msig.approveMultisig(\n    multisigAddress,\n    messageId,\n    requester,\n    from,\n    to,\n    amount,\n    nonce,\n    privateKey,\n    network,\n    waitMsg\n)\nconsole.log(response)\n\n// {\n//   '/': 'bafy2bzacec3byj5vt5jlxssuv5idccgsag526j4x272vmm4nsqcix5luq4zrs'\n// }\n```\n\n### msig.cancelMultisig\nCreate, sign and broadcast a message to approve a multisig message.\n\n```javascript\nimport { FilecoinClient } from '@blitslabs/filecoin-signing-tools'\nconst endpoint = 'https://calibration.node.glif.io'\nconst token = ''\nconst filecoin_client = new FilecoinClient(endpoint, token)\n\nconst response = await filecoin_client.msig.cancelMultisig(\n    multisigAddress,\n    messageId,\n    requester,\n    from,\n    to,\n    amount,\n    nonce,\n    privateKey,\n    network,\n    waitMsg\n)\nconsole.log(response)\n\n// {\n//   '/': 'bafy2bzacec3byj5vt5jlxssuv5idccgsag526j4x272vmm4nsqcix5luq4zrs'\n// }\n```\n\n### tx.send\nCreate, sign and broadcast a message send FIL.\n\n```javascript\nimport { FilecoinClient } from '@blitslabs/filecoin-signing-tools'\nconst endpoint = 'https://calibration.node.glif.io'\nconst token = ''\nconst filecoin_client = new FilecoinClient(endpoint, token)\n\nconst response = await filecoin_client.tx.send(\n    to,\n    amount,\n    gasLimit,\n    privateKey,\n    network,\n    waitMsg\n)\nconsole.log(response)\n\n// {\n//   '/': 'bafy2bzacec3byj5vt5jlxssuv5idccgsag526j4x272vmm4nsqcix5luq4zrs'\n// }\n```\n\n### tx.sendMessage\nSign and broadcast a custome message.\n\n```javascript\nimport { FilecoinClient } from '@blitslabs/filecoin-signing-tools'\nconst endpoint = 'https://calibration.node.glif.io'\nconst token = ''\nconst filecoin_client = new FilecoinClient(endpoint, token)\n\nconst response = await filecoin_client.tx.sendMessage(\n    message,\n    privateKey,\n    updateMsgNonce,\n    waitMsg\n)\nconsole.log(response)\n\n// {\n//   '/': 'bafy2bzacec3byj5vt5jlxssuv5idccgsag526j4x272vmm4nsqcix5luq4zrs'\n// }\n```\n\n## Develop\n\nHow to install, test and contribute can be found [here](docs/DEVELOP.md).\n\n## References\n\n1. [filecoin-signing-tools](https://github.com/Zondax/filecoin-signing-tools)\n2. [filecoin.js](https://github.com/filecoin-shipyard/filecoin.js)\n","readmeFilename":"README.md","description":"Filecoin signing library and RPC client in pure Typescript / Javascript with the necessary methods to create, sign and broadcast messages to send FIL, and interact with Filecoin's built-in actors (like Payment Channel and Multisig)."}