Skip to content

Linkd-Fund/linkd-protocol-soroban

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linkd Protocol (Soroban)

A non-custodial, dual-signature escrow primitive built on Stellar's Soroban smart contract platform. This contract serves as the immutable state machine and settlement layer for milestone-based capital disbursement using SEP-41 compatible assets.

Important

Non-Custodial Regulatory Disclaimer: This software is provided as a set of non-custodial protocol tools and interfaces. It does not provide financial services, investment advice, or asset management. All transaction signing and private key management are handled locally by the user. This implementation is designed to align with the Kenyan VASP Act 2025 standards for non-custodial decentralized protocols.

Core Mechanics

  • Non-Custodial Design: The protocol natively locks and distributes assets on-chain. The deploying entity does not retain custody of funds, strictly separating infrastructure from asset management.
  • Dual-Signature Consensus: Capital is tranche-locked. Disbursement requires cryptographic authorization (require_auth) from two independent actors (e.g., executing entity and verifying auditor) per milestone.
  • Storage Scalability: Milestones are mapped to persistent() storage with independent composite keys, bypassing Soroban's 64KB instance() memory limits for unbounded operational scaling.
  • State Rent Management: Automated Time-To-Live (TTL) extensions are integrated at the function level to prevent contract archival and state expiration on the Stellar ledger.
  • Exception Handling: Includes administrative primitives to cancel stalled milestones and route capital to designated refund addresses, preventing permanent liquidity traps.

Development

Prerequisites

  • Rust toolchain
  • wasm32-unknown-unknown target
  • Soroban CLI

Build

Compile the contract to WebAssembly:

cargo build --target wasm32-unknown-unknown --release

The compiled binary will be located at target/wasm32-unknown-unknown/release/linkd_escrow.wasm.

Test

Run the native test suite:

cargo test

Testnet Deployment (Root Truth)

This protocol layer is deployed on the Stellar Testnet.

  • Contract ID: CA5O24QV7UXTE4OFHULDAF5QWQOW6MJMN6NSMSMYUFCVLFBEUNMFESMT
  • Admin: GDNBJ2L4ADLHT2QPSVGUE44VOVDP6Y4NR6RNSFXOP4WHAKII4D36LPZ7
  • NGO: GDJF3OW2CVALMUG4EACMJEQLHHP23N6FYXQVCWVAHNUHEHO2CZMNKRUN
  • Auditor: GCVARRTZXCICMT2KDXVYDVE3Q3GNPDKWHJQDJIFYEGHOWA3PSPQ4263I
  • Beneficiary: GBLTSK6RUMU2OMETRIST6D3PJDHWJE2SROH3SQKQ2GTBFT6AMZA3CG5I

Security

This contract utilizes native Soroban authorization primitives. It avoids redundant parameter passing in favor of protocol-level signature verification. State updates strictly precede external token transfers to eliminate re-entrancy attack vectors.

License

Proprietary. All rights reserved.

About

A non-custodial, dual-signature escrow primitive built on Stellar's Soroban smart contract platform.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages