Function extractKeys

  • Description

    Extract key pairs from a secret key

    Returns

    The extracted key pairs

    Example

    cryptoUtils.extractKeys('edskRqAF8s2MKKqRMxq53CYYLMnrqvokMyrtmPRFd5H9osc4bFmqKBY119jiiqKQMti2frLAoKGgZSQN3Lc3ybf5sgPUy38e5A')
    .then(({ sk, pk, pkh }) => console.log(sk, pk, pkh));

    Parameters

    • sk: string

      The secret key to extract key pairs from

    • Optional passphrase: string

      The password used to encrypt the sk

    Returns Promise<<internal>.Keys>

Generated using TypeDoc