Function decodePublicKey

  • Decodes a public key packed by {@encodePublicKey }. The input must be 32 bytes, represented as hex or Base64. Base64 padding is optional.

    Parameters

    • publicKey: string

      the public key string to decode

    Returns Point<bigint>

    Throws

    TypeError if the public key format is incorrect.

Generated using TypeDoc