highskore / hybrid-custody

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hybrid Custody

NOTE: This contract is still under development, its address is likely to be redeployed to testnet once it is finished

Please see Flow's documentation about account linking for more information and examples.

This repo contains a primary contract for managing ChildAccounts to permit hybrid custody in scenarios where apps only want to share a subset of resources on their accounts with various parents. In many cases, this will be a user's primary wallet outside of the application a child account came from

Apps need assurances that their own resources are safe from malicious actors, so giving out full custody might not be the form of hybrid custody that they want. In this model, the app still maintains control of their managed accounts, but they can:

  1. Share capabilities freely, with a few built-in controls over the types of capabilities that can be returned with some helper contracts (the CapabilityFactory, and CapabilityFilter)
  2. Share additional capabilities (public or private) with a parent account via a CapabilityDelegator resource
Network Address
Testnet 0x294e44e1ec6993c6

Development

Follow the steps outlined below to set up your development environment.

  1. Initialize and Update Submodules

    This project uses Git submodules. To initialize and update them, run the following command in your terminal:

    git submodule update --init --recursive
  2. Run Flow Emulator

    Kickstart your development by running the flow emulator. Use the following command in your terminal:

    flow emulator start

About

License:Apache License 2.0


Languages

Language:Cadence 100.0%Language:Shell 0.0%