You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It requires keyStore , specifically a privateKey that is used to actually sign a test transaction prior sending it to a Tezos node.
This is unusual - fee estimate methods in other blockchains do not require a private key. After all, this is just a fee estimate and we are not recording anything on blockchain.
Do you think it is necessary or could be potentially implemented without needing a private key? Does a chains/${chainid}/blocks/head/helpers/scripts/run_operation Tezos node controller actually require a signature to provide a fee estimate? I know it is in the call parameters but I just don't understand what it would need signature for.
Of course best case scenario would be if you provided such implementation but if we can confirm that this can be done, I'm happy to do that myself and submit a PR to ConseilJS .
Thanks,
Kris
The text was updated successfully, but these errors were encountered:
kss-espeo
changed the title
Can fee estimate method be implemented without private key?
Can a fee estimate method be implemented without private key?
Jan 24, 2020
Turns out it's possible! As long as you send any valid signature as input to chains/${chainid}/blocks/head/helpers/scripts/run_operation , it's going to work. The way to go is probably to just always send some hardcoded signature.
This is obviously pretty dirty but still - it removes a need for public/private key. @anonymoussprocket would you like me to implement it that way?
Removing the signature field or making it blank causes the RPC call to fail. Instead the signature was hard-wired to a conforming value that is not related to the actual payload.
I have a question related to fee estimate method (https://github.com/Cryptonomic/ConseilJS/blob/master/src/chain/tezos/TezosNodeWriter.ts#L587)
It requires
keyStore
, specifically aprivateKey
that is used to actually sign a test transaction prior sending it to a Tezos node.This is unusual - fee estimate methods in other blockchains do not require a private key. After all, this is just a fee estimate and we are not recording anything on blockchain.
Do you think it is necessary or could be potentially implemented without needing a private key? Does a
chains/${chainid}/blocks/head/helpers/scripts/run_operation
Tezos node controller actually require a signature to provide a fee estimate? I know it is in the call parameters but I just don't understand what it would need signature for.Of course best case scenario would be if you provided such implementation but if we can confirm that this can be done, I'm happy to do that myself and submit a PR to
ConseilJS
.Thanks,
Kris
The text was updated successfully, but these errors were encountered: