Sign inĐăng nhậpGet startedBắt đầu miễn phíSign upBắt đầuOpen consoleVào Console

HomeTrang chủ · IntegrationsTích hợp · Open verifierCông cụ kiểm chứng mở

Install guideHướng dẫn cài đặt
Available nowCó ngay

idemcore-verify 0.3.6idemcore-verify 0.3.6

Open verifier (Apache-2.0): recompute and compare per-token logs offline, with no key and no GPU.Công cụ kiểm chứng mở (Apache-2.0): tính lại và so sánh log từng token khi offline, không cần khóa, không cần GPU.

idemcore-verify is the open verifier (Apache-2.0). It recomputes and compares per-token logs on your own machine, with no API key and no GPU, so you do not have to trust us.idemcore-verify là công cụ kiểm chứng mở (Apache-2.0). Nó tính lại và so sánh log từng token trên máy bạn, không cần khóa API và không cần GPU, nên bạn không cần tin chúng tôi.

Install stepsCác bước cài đặt

  1. 1
    Install Python 3.9 or newer.Cài Python 3.9 trở lên.
  2. 2
    Run pip install idemcore-verify and confirm idemcore-verify --version prints 0.3.6.Chạy pip install idemcore-verify và chắc idemcore-verify --version in ra 0.3.6.
  3. 3
    Check a log with idemcore-verify check answer.log, or compare two logs with idemcore-verify compare.Kiểm một log bằng idemcore-verify check answer.log, hoặc so hai log bằng idemcore-verify compare.
  4. 4
    To recompute the published samples, clone the GitHub repository and run idemcore-verify samples.Để tính lại các mẫu đã công bố, hãy clone kho GitHub và chạy idemcore-verify samples.

PrerequisitesĐiều kiện cần

  • Python 3.9 or newer.
  • A per-token log file from Idemcore (or the published sample logs in the GitHub repository).
  • No API key and no GPU.
  • Python 3.9 trở lên.
  • Một tệp log từng token từ Idemcore (hoặc log mẫu đã công bố trong kho GitHub).
  • Không cần khóa API và không cần GPU.

A minimal working exampleVí dụ tối thiểu chạy được

Install the published package, then check one log or compare two logs:Cài gói đã phát hành, rồi kiểm một log hoặc so hai log:

pip install idemcore-verify
idemcore-verify --version
# 0.3.6

idemcore-verify check answer.log
idemcore-verify compare answer.log your_rerun.log
idemcore-verify compare --subset reference.log partial.log
idemcore-verify check --json answer.log

# From a clone of the repository, recompute every published sample:
#   git clone https://github.com/idemcore/idemcore-verifier
#   cd idemcore-verifier
#   pip install -e .
#   idemcore-verify samples

Options and configurationTùy chọn và cấu hình

CommandWhat it does
idemcore-verify check LOG [LOG …]Validate a log and recompute its hash chain. Add --json for machine-readable output.
idemcore-verify compare REFERENCE CANDIDATECompare a candidate log with a reference log. --subset allows one log to cover only part of the other (a spot check). --json is also available.
idemcore-verify check-batch LOG [LOG …]Validate a batched (multi-stream) log and recompute every stream.
idemcore-verify compare-batch …Compare every row of a batched log against a single-stream reference log.
idemcore-verify samplesRecompute every published hash in the repository samples and re-check every listed pair. --dir DIR picks the samples directory; -v prints one line per file and pair.
idemcore-verify --versionPrint the installed version (currently 0.3.6).

API receipts (the signed JSON object on each chat answer) can also be checked in the SDK, with POST /v1/receipts/verify, or on the check page.

LệnhViệc nó làm
idemcore-verify check LOG [LOG …]Kiểm một log và tính lại chuỗi hash. Thêm --json để ra kết quả dạng máy đọc được.
idemcore-verify compare REFERENCE CANDIDATESo log ứng viên với log chuẩn. --subset cho phép một log chỉ phủ một phần log kia (kiểm điểm). Cũng có --json.
idemcore-verify check-batch LOG [LOG …]Kiểm log theo lô (nhiều luồng) và tính lại mọi luồng.
idemcore-verify compare-batch …So từng dòng của log theo lô với một log chuẩn một luồng.
idemcore-verify samplesTính lại mọi hash đã công bố trong bộ mẫu của kho mã và kiểm lại mọi cặp đã liệt kê. --dir DIR chọn thư mục mẫu; -v in một dòng cho mỗi tệp và mỗi cặp.
idemcore-verify --versionIn phiên bản đã cài (hiện là 0.3.6).

Biên nhận API (đối tượng JSON có chữ ký trên mỗi câu trả lời) cũng có thể được kiểm trong SDK, bằng POST /v1/receipts/verify, hoặc trên trang kiểm.

TroubleshootingXử lý sự cố

The command is not found after install.Không thấy lệnh sau khi cài.

Install with pip install idemcore-verify and confirm the pip bin directory is on your PATH, or run python3 -m idemcore_verify.Cài bằng pip install idemcore-verify và chắc thư mục bin của pip nằm trên PATH, hoặc chạy python3 -m idemcore_verify.

check fails on my file.check thất bại với tệp của tôi.

Use a complete per-token log from Idemcore, not a trimmed copy. If you only have the signed receipt JSON, use the SDK, the API verify endpoint, or the check page instead of this CLI.Hãy dùng log từng token đầy đủ từ Idemcore, không phải bản đã cắt. Nếu bạn chỉ có JSON biên nhận có chữ ký, hãy dùng SDK, endpoint verify của API, hoặc trang kiểm, thay vì CLI này.

Does a match prove which program wrote the log?Kết quả khớp có chứng minh chương trình nào đã ghi log không?

A match shows two runs agree bit for bit. The log hashes catch accidental differences; they are not built to resist a party that sets out to forge a log, and they do not prove which program produced it.Kết quả khớp cho thấy hai lượt chạy giống nhau từng bit. Hash trong log bắt các khác biệt ngoài ý muốn; chúng không được thiết kế để chống bên cố tình giả mạo log, và không chứng minh chương trình nào đã tạo ra log.

Version and changelogPhiên bản và nhật ký thay đổi

Current published version: 0.3.6.Phiên bản đang phát hành: 0.3.6.

Releases: GitHub releases. Also see the site changelog.Bản phát hành: GitHub releases. Xem thêm nhật ký thay đổi trên site.

SupportHỗ trợ

Questions about install, API keys or receipts: support@idemcore.net. Security reports: security@idemcore.net. Sales and pilots: dev@idemcore.net.Câu hỏi về cài đặt, khóa API hoặc biên nhận: support@idemcore.net. Báo cáo bảo mật: security@idemcore.net. Bán hàng và thí điểm: dev@idemcore.net.

support@idemcore.net · Contact page →Trang liên hệ →

Package registryKho gói

View on PyPI →Xem trên PyPI →

How to get an API keyCách lấy khóa API

The verifier CLI does not use an API key. Keep keys only if you also call the Cloud API or an SDK.CLI kiểm chứng không dùng khóa API. Chỉ giữ khóa nếu bạn cũng gọi Cloud API hoặc SDK.

To create a key, sign in to the console and create an API key. It starts with ick_ and is shown once, so keep it on your server. Then set IDEMCORE_API_KEY in the environment.Để tạo khóa, đăng nhập console và tạo khóa API. Khóa bắt đầu bằng ick_ và chỉ hiện một lần, hãy giữ nó ở phía máy chủ. Sau đó đặt IDEMCORE_API_KEY trong biến môi trường.

Get a key on this site →Lấy khóa trên trang này → Open the console →Mở console →

How to check a receiptCách kiểm biên nhận

The CLI itself is the check for per-token logs. API receipts can also be checked with the SDK, POST /v1/receipts/verify, or the check page at /verify.Chính CLI này là bước kiểm cho log từng token. Biên nhận API cũng có thể được kiểm bằng SDK, POST /v1/receipts/verify, hoặc trang kiểm tại /verify.

You can also open a public share on the receipt page, or use the check page on this site.Bạn cũng có thể mở bản chia sẻ công khai trên trang biên nhận, hoặc dùng trang kiểm trên site này.

Receipt page →Trang biên nhận → Check a receipt →Kiểm một biên nhận →