near / mpc

30 stars 6 forks source link

contract: implement sign fn with yield/resume #628

Open ppca opened 3 weeks ago

ppca commented 3 weeks ago

in this new design, we don't store the SignatureResponse in contract state. We still 1) won't allow repeated request if it was already requested and not completed; 2) only allow 8 requests concurrently

Note this new sign fn will return nothing, but you could still use it as if it returns Promise in any cross contract calls.