the-nft-company / flow-jvm-sdk

Apache License 2.0
13 stars 25 forks source link

transaction error , signature is not valid for Curve: ECDSA_secp256k1 #11

Closed TracyH1988 closed 2 years ago

TracyH1988 commented 2 years ago

Problem

if the pub key Curve is ECDSA_secp256k1, if there is one signature,it will be failed

ERROR MESSAGE:

FlowTransactionResult(status=SEALED, statusCode=1, errorMessage=[Error Code: 1006] invalid proposal key: public key 3 on account xxxxxxxxx does not have a valid signature: [Error Code: 1009] invalid envelope key: public key 3 on account xxxxxxxxxxxx does not have a valid signature: signature is not valid, events=[])

Because the flow-jvm-sdk can not support it by default, only support ECDSA_P256

Steps to Reproduce

env : mainnet

  1. ensure one pub key Curve is ECDSA_secp256k1
  2. sign it by private key and SHA3_256
  3. error happened ....

Context

newer in flow, interest in it, hope guys can fix it, or did I miss something?

briandilley commented 2 years ago

Can you please submit a pull request with a unit test exhibiting this behavior?