starknet.js icon indicating copy to clipboard operation
starknet.js copied to clipboard

Transaction signature should support randomness

Open ittayd opened this issue 2 years ago • 5 comments

micro-starknet supports an extraEntropy opt to signing (and a few others). This is sometimes important. However, it is tricky to use it: Signer knows how to hash a transaction, but it is not clear how to do it independantly to be able to call starkCurve.sign directly.

ittayd avatar Aug 17 '23 13:08 ittayd

Starknet signature of transaction process has been defined by Starkware. Do you mean that you want to challenge this process, by adding randomness?

PhilippeR26 avatar Aug 17 '23 15:08 PhilippeR26

Nevertheless, you will have soon Account Abstraction implemented in Starknet.js, and you will be able to customize hash and sign of all types of transactions and messages. If you need a specif list of parameters to hash with Perdersen, to sign with a password, plus a 2FA code, plus a signature from a Curve different from Starknet, it will be possible. A complete guide will be released. Have fun.

PhilippeR26 avatar Sep 16 '23 09:09 PhilippeR26

@ivpavici Isn't it a nice teasing?

PhilippeR26 avatar Sep 16 '23 09:09 PhilippeR26

Is this now a work in progress?

Auph avatar Feb 07 '24 16:02 Auph

PR #748 proposed.

PhilippeR26 avatar Feb 07 '24 19:02 PhilippeR26