account_verify_signature
Verify the authenticity of signed data using a NEAR account's public key with this cryptographic validation tool. Ensure integrity and trust in blockchain interactions.
Instructions
Cryptographically verify a signed piece of data against a NEAR account's public key.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
accountId | Yes | The account id to verify the signature against and search for a valid public key. | |
data | Yes | The data to verify. | |
networkId | No | mainnet | |
signatureArgs | Yes | The signature arguments to verify. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"accountId": {
"description": "The account id to verify the signature against and search for a valid public key.",
"type": "string"
},
"data": {
"description": "The data to verify.",
"type": "string"
},
"networkId": {
"default": "mainnet",
"enum": [
"testnet",
"mainnet"
],
"type": "string"
},
"signatureArgs": {
"additionalProperties": false,
"description": "The signature arguments to verify.",
"properties": {
"curve": {
"description": "The curve used on the signature.",
"type": "string"
},
"encoding": {
"default": "base58",
"description": "The encoding used on the signature.",
"enum": [
"base58",
"base64"
],
"type": "string"
},
"signatureData": {
"description": "The signature data to verify. Only the encoded signature data is required.",
"type": "string"
}
},
"required": [
"curve",
"signatureData"
],
"type": "object"
}
},
"required": [
"accountId",
"data",
"signatureArgs"
],
"type": "object"
}