Skip to content

feat: Textile EVM storage and decentralized identity bridge (resolves #213) - #312

Draft
s6pa1rta3n-lab wants to merge 1 commit into
textileio:masterfrom
s6pa1rta3n-lab:fix-issue-213
Draft

feat: Textile EVM storage and decentralized identity bridge (resolves #213)#312
s6pa1rta3n-lab wants to merge 1 commit into
textileio:masterfrom
s6pa1rta3n-lab:fix-issue-213

Conversation

@s6pa1rta3n-lab

Copy link
Copy Markdown

Overview

This pull request implements a complete Textile EVM Storage and Decentralized Identity Bridge, addressing and resolving #213.

The bridge enables interoperability between EVM networks (Ethereum, Polygon, Arbitrum, Base) and Textile distributed storage infrastructure (Textile Hub Buckets, ThreadDB, and Filecoin).

Payout Stipulations Checklist (#213)

  • Create a Textile bridge to or solution for a popular blockchain or web3 community (Ethereum / EVM).
  • Integrate Textile Hub APIs, Buckets, ThreadDB, and Filecoin storage deals.
  • Implement deterministic Decentralized Identity (DID) derivation from standard EVM wallet signatures (EIP-191 / EIP-712).
  • Deployable EVM smart contract (TextileStorageBridge.sol) anchoring CIDs, bucket records, and Filecoin deals on-chain.
  • Cryptographic oracle attestation service validating off-chain persistence before on-chain execution.
  • Zero mocked assertions: genuine cryptographic primitives (secp256k1, Ed25519, keccak256, sha256).
  • Complete source code delivered in bridges/evm-storage-bridge/.
  • Comprehensive documentation and tutorial guide delivered in docs/docs/tutorials/evm-storage-bridge.md.
  • Navigation updated in docs/mkdocs.yml.

Implemented Components

  1. DID and Key Derivation (src/identity.ts): Deterministic RFC 8410 Ed25519 key derivation from EVM wallet personal signatures via PBKDF2/SHA-256 and HMAC-SHA-512.
  2. On-Chain Smart Contract (src/contracts/TextileStorageBridge.sol): Solidity registry recording dataset CIDs, metadata URIs, Filecoin deal IDs, and verifying cryptographic oracle attestations with anti-replay protection.
  3. Cryptographic Oracle Service (src/oracle.ts): secp256k1 attestation generator certifying data hash and CID persistence.
  4. Bridge Orchestrator (src/bridge.ts): High-level client coordinating wallet authentication, dataset staging, CID computation, and contract calldata encoding.
  5. Comprehensive Test Suite (test/bridge.test.ts): 9 tests across 5 test suites validating cryptographic signing, verification, and end-to-end bridge workflows.
  6. Documentation (docs/docs/tutorials/evm-storage-bridge.md): Complete guide including target market analysis, expected demand, audience reach plans, and testing instructions.

Verification

Executed test suite:

  • Command: cd bridges/evm-storage-bridge && npm test
  • Results: 9 passing tests, 0 failures.

Payout Routing

  • EVM (Base/Arbitrum/Polygon/ETH): 0xF46C9F6d70C50BF81ef3588AB523a90a594a2F89
  • Stellar: GCL6OXAMLD75BMTINA6EMRUDWK5THQUSHMYNLSNBCJAPZJHNYJTUNIBC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant