Wall of Honor๐ŸŽ–๐ŸŽ– For Code Bounty Hunters

:medal_military:A new code bounty hunter is @LaurentTrk from Github.

:male_detective: Hunter: LaurentTrk
:gift: Bounty: 100 PHA tip


Add support for ed25519 and Ecdsa signatures

As discussed in the Phala Dev discord, only sr25519 signatures are supported for signing the certificate.
This PR adds support for ed25519 and Ecdsa signatures, by deducing signature type from the account type:

  • Add account and signature_type optional parameters for signCertificate
  • Deduce address and signature_type from the account if given
  • Default signature type is Sr25519WrapBytes (default for Polkdaot JS extension)
  • signature_type parameter has precedence over deduced type

:point_right: Details: Add support for ed25519 and Ecdsa signatures by LaurentTrk ยท Pull Request #1 ยท Phala-Network/js-sdk ยท GitHub