Closed elcharlie closed 11 months ago
Hello @elcharlie
Instead of
bigInteger := TBigInteger.Create(THex.Decode(SERVER_PRIVATE_KEY));
do this
bigInteger := TBigInteger.Create(1, THex.Decode(SERVER_PRIVATE_KEY));
Hello @elcharlie Instead of
bigInteger := TBigInteger.Create(THex.Decode(SERVER_PRIVATE_KEY));
do thisbigInteger := TBigInteger.Create(1, THex.Decode(SERVER_PRIVATE_KEY));
Thank you very much for your help, that was the problem. But One question, What would it be like to create a TECPublicKeyParameters with a hexadecimal value?
Best regards, and thanks again
Sorry, What would it be like to create a TECPublicKeyParameters with a hexadecimal value?
Sorry, What would it be like to create a TECPublicKeyParameters with a hexadecimal value?
here is an example
thanks again
hello. I need to calculate the ECDH ('secp256k1) shared secret, but I have problem when I create a Private key Parameters with the hex value of the private key of the server. When I create TECPrivateKeyParameters always get this error message 'Scalar is not in the interval[1, n-1]' this is the code of my test project:
Can someboby help me?
Thank you.