# Method Crypto.ECC.Curve()->ECDSA()->set_public_key()

Method set_public_key

  `this_program set_public_key(Gmp.mpz|int x, Gmp.mpz|int y)`

Description

  Change to the selected point on the curve as public key.

Note

  Throws errors if the point isn't on the curve.

Method set_public_key

  `variant this_program set_public_key(string(8bit) key)`

Description

  Change to the selected point on the curve as public key.

Parameter `key`

  The public key encoded according to ANSI x9.62 4.3.6.

Note

  Throws errors if the point isn't on the curve.