Skip to content

Coordinating repository for HybridCustody contract account signers

Notifications You must be signed in to change notification settings

onflow/hybrid-custody-account

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[WIP] Hybrid Custody Account

⚠️ This repo is still a WIP while configuring multi-sig on the mainnet HybridCustody deployment account

Requirements for signers

  • Git
  • Flow CLI
  • Google Cloud SDK

Git

We will be using this Git repository to coordinate, achieve consensus on transaction submission, and share signed transactions. So you will need to be able to clone the repo on your local machine.

If you do not have Git configured to authenticate with GitHub, Github Desktop is likely the easiest way to get started

To ensure that it's properly installed, please git pull the main branch of this repository.

Flow CLI

If you have homebrew:

brew install flow-cli

Otherwise, you'll have to follow the instructions here

To ensure it's properlly installed, please run the following:

flow version

Google Cloud SDK

If you have homebrew:

brew install --cask google-cloud-sdk

Otherwise, you'll have to follow the instructions here

To ensure it's properlly installed, please run the following:

gcloud auth application-default login

This should pop up a tab in your browser asking you to authorize the SDK. If you're able to, then you're all set!

Transaction Signing & Sending

To facilitate multi-sig transaction signing & sending, we'll use the tool created by @bthaile found here.

In the near future, the tool will pull template transactions from this repo. In the meantime, the transactions scripts can be pasted from this repo.

⚠️ When sending a transaction, signers should coordinate a time to meet virtually in a signing party. Signing ritual procedures to follow shortly.

Walkthrough

Setup transaction

  1. Select your network select network

  2. Paste the script enter script

    • Paste your script into the Cadence box
    • Enter the Address you want to send the transaction
    • Click "Add Account"
  3. Generate transaction link generate link

    • Select the key to sign the transaction
    • Generate the transaction link

Signing

  1. Visit the generated link copy link

  2. Google Login sign in via google auth

    • Enter the key path (AKA resource ID) found in your KMS console
    • Click "Google Login"
  3. Click "Continue" in the resulting popup, authorizing the transaction signature confirm kms signing

  4. Sign the transaction sign transaction

Sending

Back at the setup page, we can see that the signature was received. When all signatures have been received, we can send the signed transaction payload. send transaction

About

Coordinating repository for HybridCustody contract account signers

Resources

Stars

Watchers

Forks