starknet.js
starknet.js copied to clipboard
Transaction signature should support randomness
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.
Starknet signature of transaction process has been defined by Starkware. Do you mean that you want to challenge this process, by adding randomness?
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.
@ivpavici Isn't it a nice teasing?
Is this now a work in progress?
PR #748 proposed.