PHPackages                             cardano-php/cip8-verifier - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. cardano-php/cip8-verifier

ActiveLibrary[Security](/categories/security)

cardano-php/cip8-verifier
=========================

A PHP library to verify Cardano CIP-8 signed messages.

v1.0.0(9mo ago)045MITPHPPHP &gt;=8.0

Since Jul 31Pushed 8mo agoCompare

[ Source](https://github.com/cardano-php/cip8-verifier)[ Packagist](https://packagist.org/packages/cardano-php/cip8-verifier)[ RSS](/packages/cardano-php-cip8-verifier/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

CIP8 Verifier
=============

[](#cip8-verifier)

[![PHP Version](https://camo.githubusercontent.com/7663c9d53dc13cedaf0660a8745a7e77d2dd711257f36aa86ebce12a0600ef42/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e312d626c75652e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/5b6c74ce2448e569eaaf51529abfaa4aec041703faf636d4734331272b050773/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f63617264616e6f2d7068702f636970382d7665726966696572)](LICENSE)

A robust, production-ready PHP library for verifying Cardano CIP-8 signed messages. This library provides a clean, type-safe API for validating cryptographic signatures from Cardano wallets.

Features
--------

[](#features)

- ✅ **Full CIP-8 Compliance** - Complete implementation of Cardano's CIP-8 message verification standard
- 🔒 **Cryptographically Secure** - Uses Ed25519 signature verification with proper validation
- 🏗️ **Clean Architecture** - Built following SOLID principles with dependency injection
- 🛡️ **Type Safe** - Full PHP 8.1+ type hints and readonly classes
- ⚡ **High Performance** - Optimized CBOR parsing and efficient algorithms
- 🧪 **Thoroughly Tested** - Comprehensive test suite ensuring reliability
- 📖 **Well Documented** - Clear API documentation and usage examples

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- `ext-sodium` extension (for cryptographic operations)
- `spomky-labs/cbor-php` package (for CBOR encoding/decoding)

Installation
------------

[](#installation)

Install via Composer:

```
composer require cardano-php/cip8-verifier
```

Quick Start
-----------

[](#quick-start)

*Please refer to the [frontend example](demo/frontend.html) code to see how to obtain the `signatureCbor`, `signatureKey`, `challengeHex`, `expectedSignerStakeAddress` and `networkMode` values.*

```
