Initializing
    TrustLayer

    On-Chain Proofs Reference

    Every off-chain proof has an on-chain commitment. Contracts can trust TrustLayer without calling any centralised service.

    Core view functions

    • trustScoreOf(address wallet) → uint256
    • hasBadge(address wallet, bytes32 badgeId) → bool
    • vouchedBy(address vouchee, address voucher) → bool
    • merkleRoot(uint256 epoch) → bytes32

    Merkle proof verification

    For gas-sensitive integrations, use the epoch Merkle root plus an off-chain proof. TrustProofVerifier.verify(proof, leaf, root) returns true if the wallet was included in that epoch snapshot.

    Frequently asked questions

    Ready to try it?

    More in For Developers

    Explore TrustLayer for