Function deriveSignerPublicKey

  • Calculates the corresponding public key for the given private key. This is equivalent to the calculation performed in signPODRoot, and can be used to pre-publish the expected public key to clients before signing.

    Parameters

    • privateKey: string

      the signer's private key, which is 32 bytes encoded as per encodePrivateKey.

    Returns string

    The signer's public key, which is 32 bytes encoded as per encodePublicKey.

    Throws

    TypeError if any of the individual arguments is incorrectly formatted

Generated using TypeDoc