Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Intro to Filecoin - Building apps with Powergate

Intro to Filecoin - Building apps with Powergate

Andrew W Hill

July 02, 2020
Tweet

More Decks by Andrew W Hill

Other Decks in Technology

Transcript

  1. Filecoin
    docs.textile.io/powergate
    Getting started with

    View Slide

  2. hi! i’m
    @andrewxhill
    from textile.io

    View Slide

  3. ThreadDB
    The Hub
    Buckets Powergate

    View Slide

  4. ThreadDB
    The Hub
    Buckets Powergate
    p2p database built on IFPS

    View Slide

  5. ThreadDB
    The Hub
    Buckets Powergate
    Dynamic folder persistence
    and synchronization on IPFS

    View Slide

  6. ThreadDB
    The Hub
    Buckets Powergate
    Filecoin + IPFS + APIs

    View Slide

  7. ThreadDB
    The Hub
    Buckets Powergate
    Brings it all together
    on remote services

    View Slide

  8. docs.textile.io

    View Slide

  9. Building with Filecoin

    View Slide

  10. A few basics

    View Slide

  11. Miners

    View Slide

  12. Miners
    2 PBi
    30 GBi

    View Slide

  13. Storage
    64 GBi
    1 GBi?

    View Slide

  14. Deals

    View Slide

  15. Retrieval

    View Slide

  16. Implementations
    lotus
    go-filecoin

    View Slide

  17. Powergate
    go-filecoin

    View Slide

  18. Networks
    Mainnet
    Testnet
    Devnet
    Embedded Devnet*

    View Slide

  19. Resources
    tinyurl.com/hackfs-resources

    View Slide

  20. Building with Filecoin

    View Slide

  21. • Low-latency, high-throughput datasets
    backed by Filecoin storage
    • Turnkey interop solution for creating storage
    on Filecoin and availability on IPFS.
    • Familiar interfaces for reading and writing
    data and configurable settings to sync, store,
    and cache data
    Powergate
    An API-driven solution for
    developers

    View Slide

  22. • Filecoin storage and IPFS availability.
    • Deal agent to Create, Repair, Renew, Expire.
    • Stateful for longterm deal monitoring.
    • Multi-user/tenant address and deal
    managment.
    • Miner indices, reputation tracking, advanced
    deal finding.
    Powergate
    Feature Highlights

    View Slide

  23. Lotus FFS
    IPFS
    Overview

    View Slide

  24. Lotus
    IPFS
    Powergate
    Launching IPFS, Lotus and Powergate

    View Slide

  25. Lotus
    IPFS
    HOT
    COLD
    Powergate
    A multi-tiered storage system
    across Filecoin and IPFS

    View Slide

  26. Lotus
    IPFS
    Powergate
    gRPC API

    View Slide

  27. Lotus
    IPFS
    Powergate CLI
    Powergate

    View Slide

  28. Lotus
    IPFS
    Powergate
    • Monitor deals for expiration, auto-renew
    • Auto repair and replication
    • One or many sandboxed addresses
    (access token based)
    • Collects miner reputation and allows
    pre-deal filtering
    The Powergate works for you.

    View Slide

  29. Lotus
    IPFS
    Powergate

    View Slide

  30. Lotus FFS
    IPFS
    Powergate FFS

    View Slide

  31. Lotus FFS
    IPFS
    • Each Powergate manages
    multiple FFS instances.
    • Every instance has its own Filecoin
    address(s) with its own balance(s)
    etc.
    • Every instance has its own defaults
    and settings for how it wants to
    store data on Filecoin (cold) and
    when to make it available over IPFS
    (hot).
    Filecoin File System
    FFS

    View Slide

  32. Lotus FFS
    IPFS
    FFS manages storage
    for “users”
    Every file stored by an FFS
    is tracked by its CID
    A storage config can be set
    per CID. It uses the FFS
    config by default. Configs
    can be updated.
    FFS

    View Slide

  33. Lotus FFS
    IPFS
    Storage Config
    FFS

    View Slide

  34. FFS
    Lotus
    IPFS
    > pow ffs info
    FFS

    View Slide

  35. Inspired by the Config
    HOT
    COLD

    View Slide

  36. IPFS: addTimeout
    Mixed networks

    View Slide

  37. Lotus FFS
    IPFS
    Other nodes on the network can help keep maintain your Hot layer!
    Mixed networks

    View Slide

  38. Push to external pinning services:
    Flamming Hot
    What’s hotter than hot?

    View Slide

  39. FFS
    What’s hotter than hot?

    View Slide

  40. What can you build with the
    Powergate?

    View Slide

  41. github.com/filecoin-shipyard/powergate-pinning-service twitter.com/vasa_develop

    View Slide

  42. tinyurl.com/samikshan-pow twitter.com/samikshan

    View Slide

  43. blog.textile.io/integrating-powergate/ twitter.com/asutula

    View Slide

  44. github.com/filecoin-project/slate twitter.com/wwwjim

    View Slide

  45. Test the Powergate in good company!

    View Slide

  46. Let’s Build
    https://tinyurl.com/hackfs-pow

    View Slide