> For the complete documentation index, see [llms.txt](https://timechain.gitbook.io/neucron-mcp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://timechain.gitbook.io/neucron-mcp/tools/data-integrity.md).

# data integrity

Tools for creating immutable on-chain proofs, cryptographically signing data, and encrypting sensitive information.

These tools cover the **Data Integrity** section of the Neucron Console — verifiable, tamper-proof records and secure data handling.

## `neucron_inscribe_document`

**Inscribe a document on-chain for immutable proof of existence.**

Uploads a document and records its hash on the blockchain, creating a permanent, timestamped proof that the document existed at a specific point in time. Useful for contracts, certificates, and legal records.

| Parameter    | Type   | Description                                 |
| ------------ | ------ | ------------------------------------------- |
| `businessId` | string | Business ID (optional)                      |
| `walletID`   | string | Wallet used for the inscription transaction |
| `filePath`   | string | Absolute path to the document on disk       |
| `fileBase64` | string | Base64-encoded document content             |
| `fileName`   | string | Filename                                    |
| `mimeType`   | string | MIME type of the document                   |

Provide either `filePath` or `fileBase64`.

**Returns:** Inscription transaction ID and on-chain proof reference.

## `neucron_inscribe_text`

**Inscribe plain text on-chain for immutable proof of existence.**

Records a text string on the blockchain as a permanent, timestamped proof. Useful for attestations, declarations, and short-form records that do not require a file upload.

| Parameter          | Type    | Description                                 |
| ------------------ | ------- | ------------------------------------------- |
| `text`             | string  | Text content to inscribe                    |
| `walletID`         | string  | Wallet used for the inscription transaction |
| Additional options | various | Inscription configuration                   |

**Returns:** Inscription transaction ID and on-chain proof reference.

## `neucron_sign_data`

**Cryptographically sign data using your wallet keys.**

Produces a digital signature for a given data string using the private keys associated with a specified wallet. The signature can be verified by anyone with your public key.

| Parameter   | Type   | Description                          |
| ----------- | ------ | ------------------------------------ |
| `data`      | string | Data to sign                         |
| `walletID`  | string | Wallet whose keys will sign the data |
| `algorithm` | string | Signing algorithm (optional)         |

**Returns:** Signature and signing metadata.

## `neucron_encrypt_data`

**Encrypt or decrypt data for secure storage or transmission.**

Encrypts a data string using wallet-associated keys, or decrypts a previously encrypted payload. Supports optional recipient public key for asymmetric encryption.

| Parameter            | Type    | Description                                                   |
| -------------------- | ------- | ------------------------------------------------------------- |
| `data`               | string  | Plaintext data to encrypt                                     |
| `walletID`           | string  | Wallet whose keys are used for encryption                     |
| `recipientPublicKey` | string  | Public key of the intended recipient (optional)               |
| `decrypt`            | boolean | Set to `true` to decrypt instead of encrypt                   |
| `encryptedPayload`   | string  | Encrypted data to decrypt (required when `decrypt` is `true`) |

**Returns:** Encrypted or decrypted data.
