PureStake / algosigner

AlgoSigner is an open source Algorand wallet extension that makes it easier than ever to use ALGOs for payment, investing, or swapping assets. Available in the Chrome Web Store.
MIT License
92 stars 58 forks source link

Sign compiled program #210

Open barnjamin opened 3 years ago

barnjamin commented 3 years ago

I'd like the ability to sign a compiled teal program that will act as a delegate signature

barnjamin commented 3 years ago

Another issue I've had is translating back and forth between the official js sdk and algosigners txn format. As a possible solution, can I just pass their sign function to algosigner and it partially applies the arguments to the function with with the secret key?

I'm terrible with js so this may be a horrible idea

barnjamin commented 3 years ago

In other words I pass this https://github.com/algorand/js-algorand-sdk/blob/develop/src/logicsig.ts#L281 and you give me back a closure with the sk applied or I pass it + the args necessary and you give me back the result?

purestaketdb commented 3 years ago

You can see in the develop branch our work on v2 signing. How it will work is the developer will pass in the transaction in a msgpack'd format, and we'll unpack it on the far side using the JS SDK. This way you won't need to do anything special with encodings and custom transaction building.

I'll ask one of our devs to check in here to review the logicsig signing request.

AustP commented 1 year ago

I too would like to be able to supply some compiled TEAL and have the user sign it to act as a delegated signature. Any update on this?