{"_id":"@aidpproject/aidpcoin-message","_rev":"5-8be0eb088516839d12c516ddacf2b7c8","name":"@aidpproject/aidpcoin-message","dist-tags":{"latest":"0.7.5"},"versions":{"0.7.0":{"name":"@aidpproject/aidpcoin-message","version":"0.7.0","keywords":["Aidpcoin","AIDP"],"author":{"name":"Dick Henrik Larsson / Raven Rebels"},"license":"ISC","_id":"@aidpproject/aidpcoin-message@0.7.0","maintainers":[{"name":"loloadsl","email":"loloadsl@hotmail.fr"}],"homepage":"https://github.com/aidpproject/aidpcoin-message#readme","bugs":{"url":"https://github.com/aidpproject/aidpcoin-message/issues"},"dist":{"shasum":"dd7225c0465831b34e2cad2baac5799c116c1820","tarball":"https://registry.npmjs.org/@aidpproject/aidpcoin-message/-/aidpcoin-message-0.7.0.tgz","fileCount":5,"integrity":"sha512-P+aiWDjc13J0vUusP0y9DFRw2NbGyg1m71XPNSq8gwIlj1crWSyEPBoI26UAyZQskT50jpgd/vymlXOgAgMLtA==","signatures":[{"sig":"MEQCIBvuYqyQjU2Hiks/6GdXFsV4VTKjFFqAjV6/iTaoUzzwAiBRvH2cE1yOw0tzD+dl3OfwRzX7FM47PvqcEZe9T+Rg2g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4641},"main":"dist/main.js","types":"dist/types.d.ts","module":"dist/module.js","source":"index.ts","gitHead":"4d151e2ba687b8ab423213e483389cb2b4e6d222","scripts":{"test":"jest","build":"npx parcel build"},"_npmUser":{"name":"loloadsl","email":"loloadsl@hotmail.fr"},"repository":{"url":"git+https://github.com/aidpproject/aidpcoin-message.git","type":"git"},"_npmVersion":"10.2.4","description":"Sign and Verify messages in Aidpcoin","directories":{},"_nodeVersion":"20.11.1","dependencies":{"bitcoinjs-message":"^2.2.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.4.0","parcel":"^2.8.3","typescript":"^4.9.4","@types/jest":"^28.1.4","@types/node":"^18.0.0","@parcel/packager-ts":"^2.8.3","@parcel/transformer-typescript-types":"^2.8.3"},"_npmOperationalInternal":{"tmp":"tmp/aidpcoin-message_0.7.0_1709949250105_0.44469768344704796","host":"s3://npm-registry-packages"}},"0.7.1":{"name":"@aidpproject/aidpcoin-message","version":"0.7.1","keywords":["Aidpcoin","AIDP"],"author":{"name":"Dick Henrik Larsson / Raven Rebels"},"license":"ISC","_id":"@aidpproject/aidpcoin-message@0.7.1","maintainers":[{"name":"loloadsl","email":"loloadsl@hotmail.fr"}],"homepage":"https://github.com/aidpproject/aidpcoin-message#readme","bugs":{"url":"https://github.com/aidpproject/aidpcoin-message/issues"},"dist":{"shasum":"4c942b5a80abfe0246fc1db5e83192e146af6903","tarball":"https://registry.npmjs.org/@aidpproject/aidpcoin-message/-/aidpcoin-message-0.7.1.tgz","fileCount":5,"integrity":"sha512-jDxviZn6q9D2Hbxiuyp8hsXa0G89c+xZumKpKgOk+SUueX+TVAWzyUfNjlH7TB5JsOZhCrTULxahsqIxIhWHgg==","signatures":[{"sig":"MEUCIQDJ5zPGIBg5/Y2k7tmvHcA4l38XXP7iesF2MLad8mwSdQIgTz5ZwdOBHA6T0+BbISK6QTPRNB8391N2xu5lzVcxriM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4641},"main":"dist/main.js","types":"dist/types.d.ts","module":"dist/module.js","source":"index.ts","gitHead":"4d151e2ba687b8ab423213e483389cb2b4e6d222","scripts":{"test":"jest","build":"npx parcel build"},"_npmUser":{"name":"loloadsl","email":"loloadsl@hotmail.fr"},"repository":{"url":"git+https://github.com/aidpproject/aidpcoin-message.git","type":"git"},"_npmVersion":"10.2.4","description":"Sign and Verify messages in Aidpcoin","directories":{},"_nodeVersion":"20.11.1","dependencies":{"bitcoinjs-message":"^2.2.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.4.0","parcel":"^2.8.3","typescript":"^4.9.4","@types/jest":"^28.1.4","@types/node":"^18.0.0","@parcel/packager-ts":"^2.8.3","@parcel/transformer-typescript-types":"^2.8.3"},"_npmOperationalInternal":{"tmp":"tmp/aidpcoin-message_0.7.1_1709993806555_0.3090702680725512","host":"s3://npm-registry-packages"}},"0.7.2":{"name":"@aidpproject/aidpcoin-message","version":"0.7.2","keywords":["Aidpcoin","AIDP"],"author":{"name":"Dick Henrik Larsson / Raven Rebels"},"license":"ISC","_id":"@aidpproject/aidpcoin-message@0.7.2","maintainers":[{"name":"loloadsl","email":"loloadsl@hotmail.fr"}],"homepage":"https://github.com/aidpproject/aidpcoin-message#readme","bugs":{"url":"https://github.com/aidpproject/aidpcoin-message/issues"},"dist":{"shasum":"b17a6cbf004120d4bfc5c08a30b2b147511bd31f","tarball":"https://registry.npmjs.org/@aidpproject/aidpcoin-message/-/aidpcoin-message-0.7.2.tgz","fileCount":11,"integrity":"sha512-ddZqJe6c0iRDobZF3sltaGvTQGnhYviBMj+HUZHj+ssTWRxWM6+PnMyhpjYkFbpfvGfaxYOMu4yEqqoOsqVnAw==","signatures":[{"sig":"MEQCIGRAAZPRFIEyqd4oUwIgEQlj4RaD+JpYxAV1x3pW6pnIAiAbIM/QbFh9vvMIWrXhGCLc6nMZPSUgNF4mnoiu6qbq6w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10504},"main":"dist/main.js","types":"dist/types.d.ts","module":"dist/module.js","source":"index.ts","gitHead":"4d151e2ba687b8ab423213e483389cb2b4e6d222","scripts":{"test":"jest","build":"npx parcel build"},"_npmUser":{"name":"loloadsl","email":"loloadsl@hotmail.fr"},"repository":{"url":"git+https://github.com/aidpproject/aidpcoin-message.git","type":"git"},"_npmVersion":"10.2.4","description":"Sign and Verify messages in Aidpcoin","directories":{},"_nodeVersion":"20.11.1","dependencies":{"bitcoinjs-message":"^2.2.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.4.0","parcel":"^2.8.3","typescript":"^4.9.4","@types/jest":"^28.1.4","@types/node":"^18.0.0","@parcel/packager-ts":"^2.8.3","@parcel/transformer-typescript-types":"^2.8.3"},"_npmOperationalInternal":{"tmp":"tmp/aidpcoin-message_0.7.2_1710035085293_0.019411930136987943","host":"s3://npm-registry-packages"}},"0.7.3":{"name":"@aidpproject/aidpcoin-message","version":"0.7.3","keywords":["Aidpcoin","AIDP"],"author":{"name":"Dick Henrik Larsson / Raven Rebels"},"license":"ISC","_id":"@aidpproject/aidpcoin-message@0.7.3","maintainers":[{"name":"loloadsl","email":"loloadsl@hotmail.fr"}],"homepage":"https://github.com/aidpproject/aidpcoin-message#readme","bugs":{"url":"https://github.com/aidpproject/aidpcoin-message/issues"},"dist":{"shasum":"4a50358a77e58caef265798c5f468ec7f03bdb0c","tarball":"https://registry.npmjs.org/@aidpproject/aidpcoin-message/-/aidpcoin-message-0.7.3.tgz","fileCount":11,"integrity":"sha512-ss5OR+LXptuSngE0bKAsq9ZRGvMswnUMiJZyYfqJcXi6bW4z0ES2gb99Pn2eN47eDoWbow/9+Rgecl1phYwlvg==","signatures":[{"sig":"MEQCIB/EA0atwSAxDCvpPr7Q9k987v8QTl4pQkIW+xpt9XGJAiBUzupbU3gCl112rbhlEJMWvUSrYACTCQmicd/mJ5ogXw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10504},"main":"dist/main.js","types":"dist/types.d.ts","module":"dist/module.js","source":"index.ts","gitHead":"4d151e2ba687b8ab423213e483389cb2b4e6d222","scripts":{"test":"jest","build":"npx parcel build"},"_npmUser":{"name":"loloadsl","email":"loloadsl@hotmail.fr"},"repository":{"url":"git+https://github.com/aidpproject/aidpcoin-message.git","type":"git"},"_npmVersion":"10.2.4","description":"Sign and Verify messages in Aidpcoin","directories":{},"_nodeVersion":"20.11.1","dependencies":{"bitcoinjs-message":"^2.2.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.4.0","parcel":"^2.8.3","typescript":"^4.9.4","@types/jest":"^28.1.4","@types/node":"^18.0.0","@parcel/packager-ts":"^2.8.3","@parcel/transformer-typescript-types":"^2.8.3"},"_npmOperationalInternal":{"tmp":"tmp/aidpcoin-message_0.7.3_1710102125495_0.6091569118370286","host":"s3://npm-registry-packages"}},"0.7.4":{"name":"@aidpproject/aidpcoin-message","version":"0.7.4","keywords":["aidpcoin","AIDP"],"author":{"name":"Dick Henrik Larsson / Raven Rebels"},"license":"ISC","_id":"@aidpproject/aidpcoin-message@0.7.4","maintainers":[{"name":"loloadsl","email":"loloadsl@hotmail.fr"}],"homepage":"https://github.com/aidpproject/aidpcoin-message#readme","bugs":{"url":"https://github.com/aidpproject/aidpcoin-message/issues"},"dist":{"shasum":"ccaf7d0778dec330fe178acbef482ed7eab0b48b","tarball":"https://registry.npmjs.org/@aidpproject/aidpcoin-message/-/aidpcoin-message-0.7.4.tgz","fileCount":5,"integrity":"sha512-Cstbwkrc4wQCvJCpMYwDs6K6PfQ9j+ry9yJp39FLXUnpdo0+EZksek+tgHesamKkrd8N876rBZnDOrdl/Viwfg==","signatures":[{"sig":"MEUCIGXuDxdXbGSt1AHjhkCMQkXEvJSf0cNqeWrhoxgmQ1SgAiEA+dL4vR/oIXTFVjMpmyrVAYpc61qi4x6n/+JrkdZq7uc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4640},"main":"dist/main.js","types":"dist/types.d.ts","module":"dist/module.js","source":"index.ts","gitHead":"2a85ada80fd4281cb0df0935abe94b533098fdcd","scripts":{"test":"jest","build":"npx parcel build"},"_npmUser":{"name":"loloadsl","email":"loloadsl@hotmail.fr"},"repository":{"url":"git+https://github.com/aidpproject/aidpcoin-message.git","type":"git"},"_npmVersion":"10.8.2","description":"Sign and Verify messages in Aidpcoin","directories":{},"_nodeVersion":"20.17.0","dependencies":{"bitcoinjs-message":"^2.2.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.4.0","parcel":"^2.8.3","typescript":"^4.9.4","@types/jest":"^28.1.4","@types/node":"^18.0.0","@parcel/packager-ts":"^2.8.3","@parcel/transformer-typescript-types":"^2.8.3"},"_npmOperationalInternal":{"tmp":"tmp/aidpcoin-message_0.7.4_1726411964226_0.6619215988553449","host":"s3://npm-registry-packages"}},"0.7.5":{"name":"@aidpproject/aidpcoin-message","version":"0.7.5","description":"Sign and Verify messages in Aidpcoin","source":"index.ts","main":"dist/main.js","module":"dist/module.js","types":"dist/types.d.ts","scripts":{"test":"jest","build":"npx parcel build"},"repository":{"type":"git","url":"git+https://github.com/aidpproject/aidpcoin-message.git"},"keywords":["aidpcoin","AIDP"],"author":{"name":"Dick Henrik Larsson / Raven Rebels"},"license":"ISC","bugs":{"url":"https://github.com/aidpproject/aidpcoin-message/issues"},"homepage":"https://github.com/aidpproject/aidpcoin-message#readme","dependencies":{"bitcoinjs-message":"^2.2.0"},"devDependencies":{"@parcel/packager-ts":"^2.8.3","@parcel/transformer-typescript-types":"^2.8.3","@types/jest":"^28.1.4","@types/node":"^18.0.0","jest":"^29.4.0","parcel":"^2.8.3","typescript":"^4.9.4"},"_id":"@aidpproject/aidpcoin-message@0.7.5","gitHead":"2a85ada80fd4281cb0df0935abe94b533098fdcd","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-c6Q7DZMquXLJg8NWctasu+KjPz8NDoMYeswjy3ZcnFUu07rvAelTtk3cSNGzkGJu86eyTRjtbMvzCMz97jrWRA==","shasum":"124eedb7e9ddfc9fad335b44107ae1df866f2aa8","tarball":"https://registry.npmjs.org/@aidpproject/aidpcoin-message/-/aidpcoin-message-0.7.5.tgz","fileCount":11,"unpackedSize":10338,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5/bH/PDqzLjGN0aum7gjH/cpbBLCcaApkCxAGcaE8GAIhANkM7l2QLcM/uTcEkgivRElFAwVgud3/jSn1cGUFz57l"}]},"_npmUser":{"name":"loloadsl","email":"loloadsl@hotmail.fr"},"directories":{},"maintainers":[{"name":"loloadsl","email":"loloadsl@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aidpcoin-message_0.7.5_1726412255365_0.2301085489257757"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-09T01:54:09.993Z","modified":"2024-09-15T14:57:35.716Z","0.7.0":"2024-03-09T01:54:10.256Z","0.7.1":"2024-03-09T14:16:46.708Z","0.7.2":"2024-03-10T01:44:45.452Z","0.7.3":"2024-03-10T20:22:05.692Z","0.7.4":"2024-09-15T14:52:44.375Z","0.7.5":"2024-09-15T14:57:35.505Z"},"bugs":{"url":"https://github.com/aidpproject/aidpcoin-message/issues"},"author":{"name":"Dick Henrik Larsson / Raven Rebels"},"license":"ISC","homepage":"https://github.com/aidpproject/aidpcoin-message#readme","keywords":["aidpcoin","AIDP"],"repository":{"type":"git","url":"git+https://github.com/aidpproject/aidpcoin-message.git"},"description":"Sign and Verify messages in Aidpcoin","maintainers":[{"name":"loloadsl","email":"loloadsl@hotmail.fr"}],"readme":"# aidpcoin-message\n\nSign and Verify messages in Aidpcoin in JavaScript, primarly for Node.js\n\n## If you want to use it in the browser, use Browserify\n\n@aidpproject/aidpcoin-message is based on 'bitcoinjs-lib' which uses tons of Node stuff.\n\nTo make that work in the browser you need to use Browserify\n\n## install\n\n```\nnpm install @aidpproject/aidpcoin-message\n\n//If you need to sign messages,  install CoinKey\nnpm install coinkey\n```\n\n## How to use\n\n```\nconst { sign, verifyMessage } = require(\"@aidpproject/aidpcoin-message\");\n\n//coinkey helps us convert from WIF to privatekey\nconst CoinKey = require(\"coinkey\");\n\n//Sign\n{\n  //Address RVDUQTULaceEudDsgqCQBT6bfcdqUSvJPV\n  //Public Key 031c5142f11f629bad27dd567c41e189ee23eccd9b57561fd0ff7c96b2cc9a0a0f\n  const privateKeyWIF = \"L1JHsDosNU9FeUYB24Pixwkxs56pwCrj5rdtuKHXTcWBJTDLGNa7\";\n\n  //Convert WIF to private key\n  const privateKey = CoinKey.fromWif(privateKeyWIF).privateKey;\n  const message = \"Hello world\";\n\n  const signature = sign(message, privateKey);\n  console.log(\"Signature\", signature);\n}\n\n//Verify\n{\n  const address = \"RS4EYELZhxMtDAuyrQimVrcSnaeaLCXeo6\";\n  const message = \"Hello world\";\n  const signature =\n    \"H2zo48+tI/KT9eJrHt7PLiEBMaRn1A1Eh49IFu0MbfhAFBxVc0FG2UE5E79PCbhd9KexijsQxYvNM6AsVn9EAEo=\";\n\n  console.log(\"Verify\", verifyMessage(message, address, signature));\n}\n\n```\n","readmeFilename":"README.md"}