Skip to content

nmtk 0.5.0

Choose a tag to compare

@needmoretruth needmoretruth released this 27 Sep 08:48
· 7 commits to main since this release

Every quest now tells the truth about what ran, and nmtk leaves the terminal as it found it.

Proof of work

  • Threads look up every 256 hashes instead of every 4,096, so the honest side no longer wastes most of its work on heights already taken. A 10% attacker no longer wins races it should almost never win.
  • A reorg carries over the branches that forked from blocks it threw out, and chains are compared by height, so a hard target cannot stall the race.
  • 51% on a small machine no longer rounds down to a tie. The attack keeps to the thread count you allowed, and the panel shows the share the attacker really holds.
  • r forgets only what its own stage did. Every panel shows a word only once the conversation has explained it.

Ledger models

  • Paying exactly the value of two coins no longer loses ten of them.
  • A whole coin spent twice is refused for the reason the object model names: the version has moved on.
  • A counter at the end of its range is refused rather than replayed.

Zero-knowledge proofs

  • The verifier draws its challenge from its own coin, not from the prover's.
  • The trusted-setup attacker opens a commitment of its own at a false value, using only the leftover randomness. It never touches the honest sender's secret.

The program

  • nmtk gives the terminal back on a quit, an error, a panic or a signal, and stops every run.
  • The thread count under s reaches the quests.
  • nmtk --help and nmtk --version work; nmtk will not draw into a pipe.
  • NO_COLOR is honoured, and colour off draws no colour at all.

Install

  • install.sh installs a C linker and curl when they are missing, fetches the Rust this repository pins, and does not start nmtk outside a terminal.
  • Every push is checked for formatting, lints, tests and a release build.

To install or update:

git clone https://github.com/needmoretruth/needmoretruthknowledge.git && cd needmoretruthknowledge && ./install.sh

To build exactly this version: git checkout v0.5.0 && ./install.sh


모든 퀘스트가 실제로 돈 것을 사실대로 말하고, nmtk는 끝날 때 터미널을 처음 그대로 돌려놓습니다.

작업증명

  • 스레드가 4,096번이 아니라 256번 해시할 때마다 새 작업이 왔는지 확인합니다. 그래서 정직한 쪽이 이미 다른 블록이 차지한 높이에 힘을 낭비하지 않고, 10% 공격자가 거의 이길 수 없는 경주에서 이기던 일도 없어졌습니다.
  • 리오그가 버린 블록에서 갈라진 곁가지도 이어서 챙기고, 체인은 높이로 비교합니다. 그래서 어려운 목표값에서도 경주가 멈추지 않습니다.
  • 작은 컴퓨터에서 51%가 반올림돼 동률이 되던 문제를 고쳤습니다. 공격은 허용한 스레드 수 안에서만 돌고, 패널에 공격자가 실제로 쥔 몫을 보여 줍니다.
  • r은 그 단계가 한 일만 지웁니다. 패널에는 대화에서 설명한 낱말만 나옵니다.

원장 방식

  • 코인 둘의 합과 똑같은 금액을 보낼 때 10이 사라지던 문제를 고쳤습니다.
  • 코인 하나를 통째로 두 번 쓰면, 객체 방식이 내세우는 이유대로 버전이 이미 바뀌었다며 거절합니다.
  • 카운터가 끝에 닿으면 다시 쓰이는 대신 거절됩니다.

영지식 증명

  • 검증자는 증명자의 난수가 아니라 자기 동전으로 챌린지를 뽑습니다.
  • 신뢰 설정 공격자는 남은 난수만 써서 자기 커밋먼트를 거짓 값으로 엽니다. 정직한 보낸 사람의 비밀은 건드리지 않습니다.

프로그램

  • 정상 종료, 오류, 패닉, 시그널 중 어떤 식으로 끝나도 터미널을 돌려놓고 모든 실행을 멈춥니다.
  • s에서 정한 스레드 수가 퀘스트까지 전달됩니다.
  • nmtk --help와 nmtk --version이 동작하고, 출력이 파이프로 가면 화면을 그리지 않습니다.
  • NO_COLOR를 따르고, 색을 끄면 정말로 색을 하나도 쓰지 않습니다.

설치

  • install.sh가 C 링커와 curl이 없으면 설치하고, 이 저장소가 고정해 둔 Rust를 받으며, 터미널이 아닌 곳에서는 nmtk를 실행하지 않습니다.
  • push할 때마다 포맷, 린트, 테스트, 릴리스 빌드를 검사합니다.

설치하거나 업데이트하려면:

git clone https://github.com/needmoretruth/needmoretruthknowledge.git && cd needmoretruthknowledge && ./install.sh

딱 이 판으로 빌드하려면: git checkout v0.5.0 && ./install.sh

Changes since 0.4.0: a7aed71...v0.5.0