code: function createKeyObject (rawKeyObject, finalPublicKey = null) {
    const created = rawKeyObject.created ? dateToUnixTimestamp(rawKeyObject.created) : null;
    const revoked = rawKeyObject.revoked ? dateToUnixTimestamp(rawKeyObject.revoked) : null;
    const expires = rawKeyObject.expires ? dateToUnixTimestamp(rawKeyObject.expires) : null;
    // backcompat for v2 alpha
    let publicKey = finalPublicKey;
    if (!finalPublicKey) {
      const publicKeyTemp = rawKeyObject.id || rawKeyObject.publicKey;
      publicKey = publicKeyTemp.replace('ecdsa-koblitz-pubkey:', '');
    }
    return new Key(publicKey, created, revoked, expires);
  }
docs: createKeyObject
  
  @param rawKeyObject
  @param finalPublicKey
  @returns {Key}