getExtendedEphemeralPublicKey function

String getExtendedEphemeralPublicKey(
  1. PublicKey publicKey
)

Returns the extended ephemeral public key for publicKey as a decimal string, the form expected by the Sui zkLogin prover.

Implementation

String getExtendedEphemeralPublicKey(PublicKey publicKey) {
  return BigInt.parse(Hex.encode(publicKey.toSuiBytes()), radix: 16).toString();
}