getPublic = (keys, options = {}) => {
    const formats = ['hex', 'buffer']
    const format = options.format || 'hex'
    if (formats.indexOf(format) === -1) {
      throw new Error('Supported formats are `hex` and `buffer`')
    }

    const pubKey = keys.publicKey.raw

    return format === 'buffer' ? pubKey : uint8ArrayToString(pubKey, 'base16')
  }
Gets the serialized public key from a key pair.
@param {*} keys A key pair.
@param {Object} options One or more options.
@param {Object} [options.format=hex] The format the public key should be
returned in.
@return {Uint8Array|String} The public key.
@throws Supported formats are `hex` and `buffer` if an invalid format is
passed in options.
@memberof module:KeyStore~KeyStore
@async
@instance