Drey-Finance / actuary-client

Drey's decentralised actuary client and orchestrator code
Apache License 2.0
3 stars 0 forks source link

Investigation - Miniscript/Taproot #12

Open spector-in-london opened 1 year ago

spector-in-london commented 1 year ago

Challenge

There will become a point where TVL in the Drey Finance vault exceeds the amount staked by the Drey Actuaries in total into the Drey Vault. This was an issue for Thorchain, but even with a fully collateralized stake to TVL, it didn't stop them from getting hacked.

Because monthly distributions should never exceed 5% of the principal balance in the fund (being that this is a life-time annuity like income stream), can we use this metric to add a layer of security to the Drey Fund vault wallet that insures that even a full majority of Drey Actuaries performing a threshold based signature could never move significant amounts of bitcoin out of the fund wallet?

Given that the FROST signature is the same structure as if it were made by a single Schnorr private key, can we use miniscript (see wallet policy editor on Coinstr: https://coinstr.io/) policy to 'lock down' the ability of the Drey Actuaries to move significant amounts of bitcoin in one go?