Replies: 1 comment 1 reply
-
Out of curiosity, in what way might MultiKey not fulfill your use case such that you'd want to opt for MultiSig? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently the
0x1::multisig_account::create
function generates a multisig account at an address derived from (i) the bootstrapper's address and (ii) the bootstrapper's account sequence_number. This creates a problem: it is unsafe to rely on the predicted address before the multisig account is created, because the derived address will change once the bootstrapper sends any other transaction, incrementing their sequence_number. This can easily happen by mistake, and once the sequence_number is incremented, there is no way to create a multisig account at the address derived from the previous sequence_number. This poses a risk of losing funds if users send funds to the predicted (but uncreated) multisig address.To resolve this, there should be a more reliable mechanism for generating a deterministic multisig account address. Specifically the address derivation shouldn't rely on the boostrapper's sequence_number. This could be achieved by a function that can derive the address either from the bootstrapper's address alone, or from a combination of the bootstrapper's address and a user-defined nonce, similar to how resource accounts or objects are created. This will ensure that the multisig account address remains predictable regardless of the bootstrapper's transaction history or the order of transactions.
Possible solutions:
Beta Was this translation helpful? Give feedback.
All reactions