Verify
Verifies a specified string.
Method: verify
Input parameters:
Parameter | Type | Required | Description |
---|---|---|---|
message or hash | String | Yes | Message or hash to be verified. |
publicKey | String | Yes | Public Key as Hex String. |
signature | String | Yes | Signature as Hex String. |
Errors:
Error | Description |
---|---|
RPC_INVALID_PARAMS | Invalid Parameters are used. |
RPC_INTERNAL_ERROR | An unknown error occurred in the node. Please check the node log for details. |
Output:
- a JSON object with “OK” or “FAIL” string in result field.
Example:
GET http://localhost:8081/verify?message=test&publicKey=010000000000020000ec677464d9091f151bbd5d7ac9bc65e37925e3265a89e0e0e211cda42ca1c9ae0271ac114bd4776c6e5924923f17e81583c090893f64a631df03249319d475e27093352b574cd645309d31ccebc1ed1118ca5443e8f8c96fff07e4832490e1790c6d66a630636c79e2a14b45c0ca202692203d4ee3dcfce74cd5adae413e4db52f02b71ea254697295ec03440e5b312f0e2ab3dce1f3317078837912e505729c86db8f9c6629e8037dfe96570087d536e875d8c44b01e808690383e8ae34e70df20aa97b277158ff0b013e453bdb5f591dad1c9442980067d2769fe801486a48a17c87b30fab828aa4ae9af495d0a436df8da8ad786bfac4e20ad98e36b06814cc4c45f806c5ebcfacd686bd9b2614be7420204202ef22bd05410a45fd130b7ce9cf1bf8d7aecf6efdbefe4135161fc00330be211a4b36c550dd633f52fb93acc0b5a805cfc9508a9a22b7aa562747260bfbe05df40d68e7eebc59b9b706e75d83dca9ff18c59756f3d6c304e6e4e861db546fcad35c8856b82614fe90e9ab4a66309ac7086528a0eb808e41bf487c714ad5637f4ab99ad667619d7871dc6e16a1340c07e01f11b80b16b6faed7d028922c69453e5c7d767b2932279aa126edc06b7c79cc1b7bbe913812b02eeea384511a94faef637a4f97e841f324b84d73929ccea9f7051970a9efd93150b5f9080be13b7285809e2bd59dbbbc3fbace76903000000010001&signature=5237481874cdf80b43ae5bee7a3e5003b1919c1991f8de841d2f309e4f42b9a36aa290dc452b20702d3f96e30575007299b7ae89773bd924af0f18b31ffa13be0b13d0a1c7c078b72a9ca0319c0c6c7a441c420d9945feb9ec60a437152c9406ac592d1cc3723933f5ff5a65dbf7d58bd53173508b3207ee7305b7157a39c6b3af25122236acf81a94c4446ef8fa1a46ac16b6d0bb2ac86c15571a21da32c6f0b4b362142d68bf9ad17934061a2e601d574a126f48ae7109f27c42af6a22645c47e590b99b86f7925ae2911232307530eb33280671acadfd64494ba783a9ff1374895f85896e9ba60b7f2039782e82c5752ec01dc89640702644ec938bbcea00ea5217cf2c60d7fe23e7744b68a5fb7a3eccdd26304a24a8d7e1bf9ab7d0a52aab9639fa5895e18819a57733176c4a3d08bdeb3c8c0b9347428cb79e9f36fe285973d709d98819de3d0514d77717aef22dd1e413e8938bbe7ce30b60688e93c0f7a48bf4dcc901bf6a20188c0031322452b8c3c005d50baef1b78e8b75068e8034e0553f773d66a9a7ee99d3e80f4541476ae1564d392682d259e4229eb76a1dbd2221d2e044909693c9b41658d3b531d322062a3679f86fbe6dc74b0f4c0d9a95ce8cb3bfae65efa5a726098c8242998789d09cc7d63227105e5931fa5b248bc17f6063da02d9e27a7f9e49752dbfef99e3a3b89fce20f735b749eda9fb2cc6
{
"result": "OK",
"error": null,
"id": null
}