{"_id":"@albedo-link/signature-verification","_rev":"2-828fed96a1283510fef06b26bf78c126","name":"@albedo-link/signature-verification","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.1":{"name":"@albedo-link/signature-verification","version":"0.1.1","description":"Utility for the verification of ED25519 message signatures generated by Albedo signer app.","author":{"name":"StellarExpertTeam","email":"info@stellar.expert"},"license":"MIT","homepage":"https://github.com/stellar-expert/albedo","bugs":{"url":"https://github.com/stellar-expert/albedo/issues","email":"info@stellar.expert"},"repository":{"type":"git","url":"git+https://github.com/stellar-expert/albedo.git"},"scripts":{"build":"webpack --mode=production --config ./webpack.config.js","test":"jest"},"main":"./lib/albedo.signature.verification.js","module":"./src/index.js","types":"./src/index.d.ts","keywords":["albedo","stellar","ed25519","signature"],"dependencies":{"sha.js":">=2.x","tweetnacl":"^1.0.3"},"devDependencies":{"@babel/core":"^7.14.5","@babel/preset-env":"^7.14.5","@babel/register":"^7.14.5","babel-loader":"^8.2.2","jest":"^27.0.4","terser-webpack-plugin":"^5.1.3","webpack":"^5.38.1","webpack-cli":"^4.7.2"},"jest":{"transform":{"^.+\\.jsx?$":"babel-jest"}},"_id":"@albedo-link/signature-verification@0.1.1","_nodeVersion":"14.16.1","_npmVersion":"7.12.0","dist":{"integrity":"sha512-4EnxqbDA+OeTKmziuhvU3NEfIlZhX/KuenWB0zJZgTEJEGJGVd9EylXuRb5qc9QlnefeQ7k2K8LCX9QsrcTOHg==","shasum":"8d2b5d4e7176e6f1a11478f1e0a14bb99bbc195e","tarball":"https://registry.npmjs.org/@albedo-link/signature-verification/-/signature-verification-0.1.1.tgz","fileCount":8,"unpackedSize":342105,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyHKUCRA9TVsSAnZWagAAEPAQAJaN/KGweeooAloqxTOW\nw/Xd21IvKAq/A6z+7kxnYfAZIBZHMgVrdva+3fiyX/+3RbkFw2+j1oMrvjSU\nTKpkOoB1ARMATC4SS3Q6MBqd1zviG5lzfTln5zgdRuAR4fZqf6KmG0KqPCWi\nxRDPDVYX6111HzS+aj5Cf4WMrwPqVC4zrx/IIrJhc2GhjZaFDRE0fJgIjtmT\ntHGMQl/lE7D3Fllgv8SPraHPVta/kidr8s/B8o0EzPfYGeiN0TcGgML/vazN\nSgN0ObcOuv6ABqhVvo73zOK7e1VnkOZsZotCUDCqyTqGbdrvkLGog41PsjeG\nPXhbOKbKYVpz39HW+1WiHkwTGMEGNxZUdU35YZuhwoNXMpAKskSRry3LvIS1\n4e/Bqqyby3S1oP69/OMeSMvpSERBxIL5wwx2l+1x3tKwWFkH/lJpm1xGsG1h\nR2RWdPC7/7FYXtqfIqTpuT1dG4C8oEUl4x9oX6vnkNrCJzl8HJJmhP5bDYEt\njqP473BX1WmGiNcLwYKcyXi6ipPDlbsnnU+j3ZaU1iZQjPgN8S/r0+zY3BZY\nepDy2lgDQLQnBlEE7wiuN8ZxKW8NHwIKRf9y8O5ORHBliipa33bfjhdlQo4Y\ngoFeMEDzKD5L6fpPh4wOAdeN4yyiGJvW2ArWK0+N2NbRhvZn3oR/oVELh6gE\nP1jQ\r\n=Qely\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHWFWrUZlK2Mcp2yUMqQg0HOKX5Zn1sPxK4CmODFi+UcAiEA70A3wDtu0Yi9mQBAJzSPjCh2+lRwKlvDPWByA/T/TtM="}]},"_npmUser":{"name":"orbitlens","email":"orbit.lens@gmail.com"},"directories":{},"maintainers":[{"name":"orbitlens","email":"orbit.lens@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/signature-verification_0.1.1_1623749268209_0.43499400288109036"},"_hasShrinkwrap":false},"0.1.2":{"name":"@albedo-link/signature-verification","version":"0.1.2","description":"Utility for the verification of ED25519 message signatures generated by Albedo signer app.","author":{"name":"StellarExpertTeam","email":"info@stellar.expert"},"license":"MIT","homepage":"https://github.com/stellar-expert/albedo","bugs":{"url":"https://github.com/stellar-expert/albedo/issues","email":"info@stellar.expert"},"repository":{"type":"git","url":"git+https://github.com/stellar-expert/albedo.git"},"scripts":{"build":"webpack --mode=production --config ./webpack.config.js","test":"jest"},"main":"./lib/albedo.signature.verification.js","module":"./src/index.js","types":"./src/index.d.ts","keywords":["albedo","stellar","ed25519","signature"],"dependencies":{"sha.js":">=2.x","tweetnacl":"^1.0.3"},"devDependencies":{"@babel/core":"^7.14.5","@babel/preset-env":"^7.14.5","@babel/register":"^7.14.5","babel-loader":"^8.2.2","jest":"^27.0.4","terser-webpack-plugin":"^5.1.3","webpack":"^5.38.1","webpack-cli":"^4.7.2"},"jest":{"transform":{"^.+\\.jsx?$":"babel-jest"}},"_id":"@albedo-link/signature-verification@0.1.2","_nodeVersion":"14.16.1","_npmVersion":"7.12.0","dist":{"integrity":"sha512-sIH+5FskulnqyQ5MfEcR1jMt7XLao9L0HvLYud6+hDcyeo/+0R8iK6XjFHT9fmHsy7HIWPiqD6vex4GZrk2sKA==","shasum":"f6c1c1205f7a728143e88e0a092ed26c9bdc7375","tarball":"https://registry.npmjs.org/@albedo-link/signature-verification/-/signature-verification-0.1.2.tgz","fileCount":8,"unpackedSize":342331,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhGcwQCRA9TVsSAnZWagAAun8P/RMjZbX6pni2O8WK7M8y\nwADJuaoeE6lde1cZQjR06r53FkwLgNcB6IAtS3p982SIlaSuqflGF5+1xgI9\nTNDBPWL2OhKZ7Iu9MbQ6c75la+jJu36zTTkkBzta7C6E3fSVKgch8lueng51\nMPJJggERmgQHnPefmTkC8cEmC56k5tXa8gooCWdL+jmFZ7siueygQwdoWDKM\nnl6dSvmXD+dNA1UQYrp0OliP/iQtxYlU1l5owxaqacJY2kAFnYQAwhs4JIQI\na+EpP0BuU1C9hsVDSCigLTkfWT31QD0C0d73K9sTHDXB2jA1x7RIpY4dkvQc\nY5v/lIHsGuzbtmGSueAGPfeg0YcmV9M5B/zsiHeu4tOEeoLBhA0qm8YK0OBi\nw28MvJKUfnb6G1okECUtMiwaiM5313BxrjPCcf4H97g9Qrtz28H5weXdzXuJ\nKKXID9WKiBfAa4MnZeM0nsufNLMHik4rDFoy3AUMdu9Nfo0Lxj0rqfe7amKQ\nY7hE0posfKlpUKczPZWA+r3+29cbzU4erPSoYKBAt5rgTtTiebjkPQwKfOBu\nkYu/5z8J7Z8pbq8yaciJvV8JZx6p3CKAypfFqO5KPtCeZ9Tgu1Z1ajgvZHMX\n60huZIdLi3mXHrJ6ckFDQ+5rbl1LkD8a6uiOglu0LTceJlx8DLtgeRwGmFGm\nQBi2\r\n=/oc2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC1+sTbGVgtI2A7/+6RnBp2Mb5Vcw3nUuqEwjder5nqdAiBcAWj2seINmVJ8JZinftKapE9Lgjgd6ZElwkOWUx3PKA=="}]},"_npmUser":{"name":"orbitlens","email":"orbit.lens@gmail.com"},"directories":{},"maintainers":[{"name":"orbitlens","email":"orbit.lens@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/signature-verification_0.1.2_1629080592781_0.9612523869462364"},"_hasShrinkwrap":false}},"time":{"created":"2021-06-15T09:27:47.934Z","0.1.1":"2021-06-15T09:27:48.399Z","modified":"2022-04-04T12:34:28.040Z","0.1.2":"2021-08-16T02:23:12.928Z"},"maintainers":[{"name":"orbitlens","email":"orbit.lens@gmail.com"}],"description":"Utility for the verification of ED25519 message signatures generated by Albedo signer app.","homepage":"https://github.com/stellar-expert/albedo","keywords":["albedo","stellar","ed25519","signature"],"repository":{"type":"git","url":"git+https://github.com/stellar-expert/albedo.git"},"author":{"name":"StellarExpertTeam","email":"info@stellar.expert"},"bugs":{"url":"https://github.com/stellar-expert/albedo/issues","email":"info@stellar.expert"},"license":"MIT","readme":"# Signature verification\r\n\r\nUtility for the verification of ED25519 message signatures generated by \r\n[Albedo](https://github.com/stellar-expert/albedo) signer app.    \r\n\r\n## Installation\r\n\r\n```\r\nnpm i -S @albedo-link/signature-verification\r\n```\r\n\r\n## Usage\r\n\r\n```js\r\nimport {verifyMessageSignature} from '@albedo-link/signature-verification'\r\n\r\nconst isValid = verifyMessageSignature(\r\n    'GDWPMRQSLXNEHCXC7RTISZAHULB7FDDIOPR6CF5B5IUWOQXN2CUWN4LO',\r\n    'DGmk7s8gkhXMqRNsiCBanwL76Kt+5+WUzAOlWoh0nDs=',\r\n    '049a26b40c1a30be1cef3ef7a64af8ae305e7567ee2cac57e5a494e0036860b81dc417c005e4f4dff6ad6bc52f56f0e61e9d084c2718638bc4f78130fc14d20e'\r\n)\r\n```\r\n\r\n**Parameters**\r\n\r\n- `publicKey` *(string)* - Ed25519 public key in StrKey encoding (e.g. \"GDWP...N4LO\").\r\n- `message` *(string)* - Arbitrary text message signed by the given public key.\r\n- `signature` *(string|Buffer|Uint8Array)* - Hex-encoded message signature.\r\n\r\n**Returns**\r\n\r\n*(boolean)* - Returns `true` if a signature is valid and `false` otherwise.\r\n\r\n## Direct usage without bundler\r\n\r\nThe library can be also used directly in the browser without a package bundler:\r\n\r\n```html\r\n<script src=\"https://unpkg.com/@albedo-link/signature-verification/lib/albedo.signature.verification.js\"></script>\r\n```\r\n\r\n```js\r\nalbedoSignatureVerification.verifyMessageSignature(\r\n    'GDWPMRQSLXNEHCXC7RTISZAHULB7FDDIOPR6CF5B5IUWOQXN2CUWN4LO',\r\n    'DGmk7s8gkhXMqRNsiCBanwL76Kt+5+WUzAOlWoh0nDs=',\r\n    '049a26b40c1a30be1cef3ef7a64af8ae305e7567ee2cac57e5a494e0036860b81dc417c005e4f4dff6ad6bc52f56f0e61e9d084c2718638bc4f78130fc14d20e'\r\n)\r\n```\r\n\r\n## Development\r\n\r\nTo create UMD library bundle, run the following NPM script:\r\n\r\n```\r\nnpm run build\r\n```\r\n\r\nRunning tests:\r\n\r\n```\r\nnpm run test\r\n```\r\n","readmeFilename":"README.MD"}