
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
wttp-gateway
Advanced tools
The on chain gateway to make complex resource fetching tasks simpler in fewer calls.
A Web3 Transfer Protocol (WTTP) gateway implementation for decentralized web resource access. This project provides the core gateway contract for the WTTP ecosystem.
The WTTP Gateway serves as a protocol gateway for accessing resources from WTTP sites. It implements the core WTTP methods (OPTIONS, HEAD, GET, LOCATE) to enable decentralized web functionality through Ethereum smart contracts.
The main gateway contract (WTTPGateway.sol) implements the following core functionalities:
# Clone the repository
git clone <repository-url>
cd wttp-gateway
# Install dependencies
npm install
# Compile contracts
npx hardhat compile
# Run all tests
npx hardhat test
# Run specific test suite
npx hardhat test test/WTTPGateway.test.ts
# Run with gas reporting
REPORT_GAS=true npx hardhat test
The project includes a comprehensive test suite covering all contract functionality:
WTTPGateway.test.ts)Tests the main WTTPGateway contract functionality:
The test suite provides comprehensive coverage of the contract functionality:
✅ Method Accessibility - All public contract methods are callable
✅ Error Handling - Proper error handling for invalid inputs
✅ Range Processing - Byte range request handling and validation
✅ Data Point Processing - Size calculation and data concatenation
✅ Method Validation - Pre-flight checks and method availability
✅ Response Format - Standardized response structure validation
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the GNU Affero General Public License v3.0 - see the LICENSE file for details.
If you discover a security vulnerability, please follow our Security Policy for responsible disclosure.
FAQs
The on chain gateway to make complex resource fetching tasks simpler in fewer calls.
We found that wttp-gateway demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.