agustind/ethsignature
最新稳定版本:v1.0.2
Composer 安装命令:
composer require agustind/ethsignature
包简介
无描述信息
README 文档
README
If you want to authenticate a user via an Ethereum wallet from PHP, or restrict certain server-side functionalities to only allowed wallets, you can request for a signed message on the frontend using a library like Ethers.js or Web3.js and pass the wallet address and signature as parameters to the server. This library will verify the signature is valid and was indeed created by the specified wallet.
Usage
composer require agustind/ethsignature
<?php use Agustind\Ethsignature; $signature = new Ethsignature(); // from the frontend (via Ethers.js or Web3.js) // the wallet 0x123456789 signs the message 'hello world' // and generates the signature string 'xxxxyyyyzzzz' $is_valid = $signature->verify('hello world', 'xxxxyyyyzzzz', '0x123456789'); // true
Donate with eth ????
统计信息
- 总下载量: 9.43k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04
0x8cA54b378C177db1cfde63231f9eA32fa7943036