The short version, for everyone: When an activist goes missing, Kengele can publish an alert the activist wrote in advance: their name, their lawyer, their own words. That alert must never go out because one person panicked, was tricked or was forced. So it only opens when 2 of the activist's 3 trusted contacts agree, and that rule is built into the encryption itself. Every step of the alarm is also stamped into Bitcoin, so a court can later see exactly when it happened. This post shows how, with code you can run.
Kengele (Swahili for "bell") is an open-source alarm for activists in East Africa. The first post in this series covered the deadline engine that decides when a check-in is missed, and the second the 228-byte message that carries every event:
This one covers what happens after an alarm: who can make it public, who can end it, and how we prove when it happened.
altradits
/
kengele
An alarm for when an activist goes missing. No servers, works through shutdowns. Swahili first.
Kengele
When an activist goes silent, the right people know within minutes, and nobody can switch the alarm off.
Ukinyamaza, kengele inalia. ("If you go quiet, the bell rings.")
Warning
Status: design stage. Not for real use. There is no working app yet. Do not rely on Kengele to protect anyone until an independent security review is complete and published here. People's lives may depend on this tool, so we will not cut corners to ship it sooner.
Why
When an activist disappears, how fast the public finds out often decides how quickly they are freed.
- In Kenya, more than 80 people were abducted or forcibly disappeared after the 2024 protests. In January 2025, abducted young men were released within hours of public outcry.
- Boniface Mwangi and Agather Atuhaire, detained in Tanzania in May 2025, were released after their disappearance became public.
- Governments switch networks off when it…
Kengele is still in design and not for real use until an independent security review is published. All code is at commit e10d277.
Contents
- Escalation in three levels
- Why "if confirmations >= 2" is not enough
- Setup: sealing the alert under a split key
- Binding the kit with associated data
- Confirming: a share on the wire
- Counting: epochs, freshness and duplicates
- A bad share cannot forge or block
- Run it yourself: two of three
- Ending an alarm
- No location trail, enforced
- Proving when: OpenTimestamps
- What is still open
Escalation in three levels
When an activist misses a check-in, presses the panic trigger or uses the duress PIN, the alarm escalates in steps:
| Level | Who knows | What happens |
|---|---|---|
| 1. Private | The guardians | Each guardian's device raises the alarm. They try to reach the activist |
| 2. Public | Everyone | Once k guardians (default 2 of 3) confirm, the alert the activist wrote in advance is published on Nostr |
| 3. Legal | The lawyer | A habeas corpus packet with signed, timestamped evidence is ready |
Level 2 is the dangerous one. A public alert puts pressure on whoever is holding the activist, which is the point. But a false public alert (the activist was just at a funeral with their phone off) burns trust, and a malicious one (a guardian whose phone was seized) could be used to discredit the activist or the tool. So the rule is: nothing about an activist goes public until k guardians confirm the same alarm.
Why "if confirmations >= 2" is not enough
The obvious implementation is a counter in the guardian app:
if confirmations >= 2 {
publish(alert)
}
The problem is where the alert lives. For any guardian's app to publish it, that app must hold the alert text and the key that signs it. So every guardian's phone holds everything needed to publish. Now consider adversary A4 in the threat model: a guardian who is compromised, pressured, or whose phone is seized. Anyone who controls one phone can patch out the if, or just read the alert and the key from storage. The "2 of 3" was a policy in the user interface, not a property of the system.
Kengele makes it a property of the cryptography: with one guardian's data, the alert cannot even be decrypted.
Setup: sealing the alert under a split key
At setup, on the activist's device, confirm.NewKits does four things:
- Generates a random 32-byte key K.
- Encrypts the alert and a separate alert key (the Nostr key that will sign the public note) with XChaCha20-Poly1305 under K.
- Splits K into one share per guardian with Shamir's secret sharing, so that any k shares rebuild K and fewer reveal nothing about it.
- Gives each guardian a kit: the ciphertext, their own share, the guardian list and the threshold. Then wipes K.
k := make([]byte, keySize)
if _, err := io.ReadFull(rnd, k); err != nil {
return nil, fmt.Errorf("confirm: random key: %w", err)
}
defer wipe(k)
plain, err := json.Marshal(sealed{Alert: alert, AlertKey: hex.EncodeToString(alertKey.Serialize())})
...
defer wipe(plain)
aead, err := chacha20poly1305.NewX(k)
nonce := make([]byte, aead.NonceSize())
if _, err := io.ReadFull(rnd, nonce); err != nil { ... }
ct := aead.Seal(append([]byte(nil), nonce...), nonce, plain, tmpl.associatedData())
shares, err := shamir.Split(k, len(guardians), threshold)
A few decisions worth explaining:
Why a separate alert key? The public note must be verifiable by journalists and the public. If it were signed with the activist's own key, anyone who rebuilt K would also hold the activist's identity. So the alert key is different from the activist's key (NewKits refuses if they are equal), and its public half goes on the activist's public profile before any alarm. When an alert appears, anyone can check it was signed by the key the activist published in advance.
Why XChaCha20-Poly1305? It is an AEAD with a 24-byte nonce, which makes random nonces safe without bookkeeping, and the authentication tag means a wrong key fails loudly instead of producing garbage. That second property is what makes the "bad share" defence below work.
Which Shamir? The split uses OpenBao's sdk/v2/helper/shamir, the community fork of the code HashiCorp Vault has used for its unseal keys for years. We use OpenBao rather than hashicorp/vault/shamir because Vault is no longer open source (BUSL since 1.15). Shamir over GF(256) adds one byte (the x coordinate) to each share, so a 32-byte key gives 33-byte shares.
Limits. k must be at least 2 (one guardian alone must never be able to publish) and at most the number of guardians. At most 10 guardians. Guardians must be distinct and must not include the activist.
Binding the kit with associated data
Here is a subtle attack. A guardian holds kits for two activists. Or the same activist re-ran setup with a different guardian list. Could someone mix a ciphertext from one setup with shares or a guardian list from another, and get the app to do something it should not?
The ciphertext's associated data commits to everything else in the kit:
// associatedData binds the ciphertext to everything else in the kit, so a
// kit cannot be mixed with another activist's or another guardian set's.
func (k GuardianKit) associatedData() []byte {
h := sha256.New()
h.Write([]byte("kengele/alert-kit/v1"))
var b [8]byte
binary.BigEndian.PutUint32(b[:4], uint32(k.Version))
binary.BigEndian.PutUint32(b[4:], uint32(k.Threshold))
h.Write(b[:])
h.Write([]byte(k.Activist))
h.Write([]byte(k.AlertPub))
for _, g := range k.Guardians {
h.Write([]byte(g))
}
return h.Sum(nil)
}
Change the threshold, the activist, the alert key or any guardian in a kit, and decryption fails even with the right K. TestKitTampering covers it. The associated data costs nothing at runtime and closes a whole class of mix-and-match bugs.
Confirming: a share on the wire
A guardian confirms an alarm by sending a guardian-confirm event whose body carries their share:
| Kind | Body | Size |
|---|---|---|
guardian-confirm |
0x01 · activist key (32) · epoch (4) · share (33) |
70 bytes |
all-clear |
0x02 · activist key (32) · epoch (4) |
37 bytes |
Both fit in the message format's 86-byte body, so they travel in the same fixed-size, signed, encrypted 228-byte message as a check-in. A relay or a telecom cannot tell a guardian confirming a public alarm from an activist saying "I'm fine".
The confirmation goes only to the other guardians, never to the activist:
// Recipients returns the guardians a confirmation must be sealed to: every
// guardian except this one. The activist is deliberately not included.
func (t *Tally) Recipients() [][32]byte {
The activist's phone may already be in the captors' hands. If confirmations went to it, the captors would collect the shares and could open the alert themselves, or learn exactly who the guardians are and how close the alert is to going public.
Counting: epochs, freshness and duplicates
Each guardian's device runs a Tally per watched activist. Every opened event goes through Handle, including the guardian's own confirmation. A confirmation counts only if all of these hold:
func (t *Tally) confirm(e *message.Event, now time.Time) (Outcome, error) {
if !t.enr[e.Signer] {
return Outcome{}, ErrNotGuardian // the activist cannot confirm their own alarm
}
c, err := decodeConfirm(e.Body)
...
if c.activist != t.p.activist {
return Outcome{}, ErrNotActivist
}
if err := t.checkEpoch(c.epoch); err != nil {
return Outcome{}, err // stale, or too far ahead
}
if t.released == c.epoch {
return Outcome{}, ErrAlreadyReleased
}
if t.spent {
return Outcome{}, ErrSpent
}
if !fresh(e.CreatedAt, now, t.ttl) {
return Outcome{}, ErrExpired
}
st := t.state(c.epoch)
if _, ok := st.confirms[e.Signer]; ok {
return Outcome{}, ErrDuplicate
}
st.confirms[e.Signer] = vote{at: e.CreatedAt, share: c.share}
return t.tryRelease(c.epoch, now), nil
}
Each check maps to an attack:
- Enrolled guardians only. The activist cannot confirm their own alarm, because their phone may be controlled by someone else.
- Epochs stop replays. The epoch numbers alarms for one activist: it starts at 1 and goes up each time an alarm ends. A confirmation from last month's alarm can never count towards today's. Confirmations up to 3 epochs ahead are kept (a guardian who missed an all-clear can catch up); anything further is refused, so a misbehaving guardian cannot fill memory.
-
Freshness. A confirmation counts for 24 hours by default (
DefaultConfirmTTL) and must not be from the future (beyond the message format's 10-minute skew). An old confirmation must never combine with a new one days later. Confirmations that expire while waiting stop counting. - One vote per guardian per alarm. Sending your confirmation twice does not make 2 of 3.
- One alert per kit. Once released, the kit is "spent": it can sign a "found safe" update but never a second alert. The activist must make a new kit. That prevents a stolen alert key from being used to publish fresh, authentic-looking alerts later.
A bad share cannot forge or block
What if a guardian sends a wrong share, on purpose or because of a bug? With k shares, the tally rebuilds K and tries to open the ciphertext. A wrong share gives a wrong K, and the AEAD tag fails. So a bad share cannot forge a release.
Could it block one? With three guardians, suppose guardian 1 sends garbage and guardians 0 and 2 send good shares. The tally now holds three shares. If it only tried the first two it received, the garbage would block the release. So tryRelease tries every k-sized group until one opens:
// tryRelease rebuilds the alert key from k fresh shares. A bad share from a
// misbehaving guardian makes the authenticated decryption fail, so every
// k-sized group is tried before giving up and waiting for more.
combinations(len(shares), k, func(idx []int) bool {
parts := make([][]byte, k)
for i, j := range idx {
parts[i] = shares[j]
}
key, err := shamir.Combine(parts)
if err != nil {
return true
}
s, priv, err := t.kit.open(key)
wipe(key)
if err != nil {
return true // this group included a bad share: try the next
}
t.released, t.spent = epoch, true
...
return false
})
With at most 10 guardians, C(10, k) is at most 252 groups, so trying them all is cheap. The test:
func TestBadShareCannotForgeOrBlock(t *testing.T) {
f := newFixture(t, 3, 2)
tl := f.tally(t, 0)
// Guardian 1 sends a garbage share: no release with only it and one other...
bad := message.Event{Kind: message.KindGuardianConfirm, CreatedAt: t0,
Body: encodeConfirm(f.activist.pub, 1, make([]byte, shareSize))}
bad.Body[len(bad.Body)-1] = 7
o, err := tl.Handle(f.over(t, bad, f.guardians[1].priv, f.guardians[0], tl.Senders(), t0), t0)
mustAction(t, o, err, None)
o, err = f.confirm(t, tl, 0, 1, t0, t0)
mustAction(t, o, err, None)
// ...but two honest guardians still release.
o, err = f.confirm(t, tl, 2, 1, t0, t0)
mustAction(t, o, err, Release)
}
The honest residual: a bad share delays the release until another honest guardian confirms. With 3 guardians and k = 2, one bad guardian plus one honest one is not enough; that is why the docs recommend picking guardians who do not live, work or get arrested together.
Run it yourself: two of three
This example builds kits for three guardians, shows that an alert containing GPS coordinates is refused, then walks guardian 0's tally through a duplicate confirmation and a real 2-of-3 release. Save it as internal/confirm/blog_example_test.go in a clone:
blog_example_test.go (click to expand)
package confirm
import (
"bytes"
"fmt"
"time"
"github.com/altradits/kengele/internal/message"
"github.com/btcsuite/btcd/btcec/v2"
)
func Example_twoOfThree() {
priv := func(b byte) *btcec.PrivateKey { k, _ := btcec.PrivKeyFromBytes(bytes.Repeat([]byte{b}, 32)); return k }
activist, alertKey := priv(0xa1), priv(0xa2) // made-up test keys
gs := []*btcec.PrivateKey{priv(0xb1), priv(0xb2), priv(0xb3)}
var gPubs [][32]byte
for _, g := range gs {
gPubs = append(gPubs, message.PublicKey(g))
}
alert := Alert{Name: "Amina W.", Lawyer: "LSK duty line", Text: "If you read this, I did not check in."}
kits, err := NewKits(alert, message.PublicKey(activist), alertKey, gPubs, 2, nil)
fmt.Println("kits:", len(kits), "err:", err)
_, err = NewKits(Alert{Name: "A", Lawyer: "B", Text: "-1.2921, 36.8219"}, message.PublicKey(activist), alertKey, gPubs, 2, nil)
fmt.Println("alert with coordinates:", err)
now := time.Date(2026, 1, 15, 18, 40, 0, 0, time.UTC)
tally, _ := NewTally(kits[0], 0) // guardian 0's device
// deliver seals ev from guardian i to guardian 0 and opens it there, like the transport would.
deliver := func(i int, ev message.Event) Outcome {
wire, _ := message.Seal(ev, gs[i], gPubs[0])
opened, err := message.Open(wire, gs[0], tally.Senders(), now)
if err != nil {
fmt.Println("open:", err)
}
out, err := tally.Handle(opened, now)
if err != nil {
fmt.Println(" handle:", err)
}
return out
}
c0, _ := ConfirmEvent(kits[0], 1, 10, now)
o := deliver(0, c0)
fmt.Println("guardian 0 confirms:", o.Action)
o = deliver(0, c0)
fmt.Println("guardian 0 again:", o.Action)
c1, _ := ConfirmEvent(kits[1], 1, 10, now)
o = deliver(1, c1)
fmt.Printf("guardian 1 confirms: %s, confirmed=%d, alert=%q, signs as alert key? %v\n",
o.Action, o.Confirmed, o.Alert.Name, message.PublicKey(o.AlertKey) == message.PublicKey(alertKey))
// Output:
// kits: 3 err: <nil>
// alert with coordinates: confirm: alert text looks like GPS coordinates or a map link; Kengele never publishes a location trail
// guardian 0 confirms: none
// handle: confirm: this guardian already counted for this alarm
// guardian 0 again: none
// guardian 1 confirms: release, confirmed=2, alert="Amina W.", signs as alert key? true
}
git clone https://github.com/altradits/kengele
cd kengele
# save the file above as internal/confirm/blog_example_test.go
go test -race -run Example_twoOfThree -v ./internal/confirm
Our output (Go 1.26.5):
kits: 3 err: <nil>
alert with coordinates: confirm: alert text looks like GPS coordinates or a map link; Kengele never publishes a location trail
guardian 0 confirms: none
handle: confirm: this guardian already counted for this alarm
guardian 0 again: none
guardian 1 confirms: release, confirmed=2, alert="Amina W.", signs as alert key? true
Read it as a story. Guardian 0 confirms: nothing public happens, because one share opens nothing. Guardian 0 tries again: refused as a duplicate. Guardian 1 confirms: two fresh shares rebuild K, the ciphertext opens, and the app now holds the alert and the alert key that the activist published in advance. Only now can it publish.
Ending an alarm
Handle returns one of four actions:
| Action | When | What the app does |
|---|---|---|
None |
Below the threshold | Show the count to guardians, privately |
Release |
k fresh, valid confirmations | Publish the alert note once |
StandDown |
k guardians cleared it before release | Tell guardians privately; publish nothing |
FoundSafe |
k guardians cleared it after release | Publish a "found safe" note signed by the same alert key |
The rule for ending is symmetric with the rule for releasing: only k guardians can end an alarm. The activist's own all-clear is recorded and shown as "the activist says they are safe", but it is not counted towards k and ends nothing:
case e.Signer == t.p.activist:
// Captors holding the activist can force the real PIN, so the
// activist's own all-clear never ends an alarm and is not counted
// towards k. It is recorded and shown to guardians, who must verify
// by voice or video and then send their own all-clears. It never
// blocks or delays a release.
st := t.state(c.epoch)
if !st.activistClear.IsZero() {
return Outcome{}, ErrDuplicate
}
st.activistClear = e.CreatedAt
return Outcome{Epoch: c.epoch, ActivistSaysSafe: true}, nil
And a guardian cannot even build an all-clear without first recording a voice or video call with the activist: GuardianAllClearEvent returns ErrNotVerified unless it is given a Verification. That record stays on the guardian's device and is never sent. (The previous post covers this rule in depth.)
Races are handled by the epoch: a stand-down by k guardians moves the epoch on, so a confirmation that arrives a second later is stale. If the release happened first, the k all-clears produce FoundSafe instead of StandDown. TestAllClearRaces and TestConcurrentActivistAllClearAndConfirms run these orderings under -race.
No location trail, enforced
Kengele never publishes a GPS trail, because a trail would help abductors and would put everyone the activist met at risk. The place in a public alert comes only from what the activist typed at their last check-in ("Milimani law courts").
That is not left to good intentions. Alert.Check refuses any field that looks like a decimal coordinate pair or a link to a map service:
var (
coordPair = regexp.MustCompile(`-?\d{1,3}\.\d{3,}\s*[,;/ ]\s*-?\d{1,3}\.\d{3,}`)
mapLink = regexp.MustCompile(`(?i)(geo:|maps\.google|google\.[a-z.]+/maps|goo\.gl/maps|maps\.app\.goo\.gl|openstreetmap\.org|osm\.org/go|what3words|w3w\.co|plus\.codes)`)
)
The same check runs on the typed place when the public note is built. You saw it fire in the example above. A regex is not a proof, and a determined user can still type "behind the blue kiosk", which is fine: that is a description a human chose to share, not a trail.
Proving when: OpenTimestamps
Level 3 of the escalation is legal. A habeas corpus application asks a court to order the state to produce a detained person. Its strength depends on facts the court can trust: when did the activist stop checking in? when did they press panic? when did the guardians confirm?
Every Kengele event already carries the activist's signed time. But a signature only proves who signed, not when; the signer controls their own clock. So every alarm-level event is anchored to Bitcoin with OpenTimestamps, which proves that a piece of data existed before a certain Bitcoin block.
What gets anchored
Routine check-ins are high-volume and rarely disputed. Everything in the alarm chain is anchored:
func AlarmLevel(k message.Kind) bool {
switch k {
case message.KindDuressCheckIn,
message.KindPanic,
message.KindMissed,
message.KindGuardianConfirm,
message.KindAllClear:
return true
default:
return false
}
}
Same digest on every guardian's device
The wire ciphertext is different for every guardian (each one is encrypted separately), so hashing it would give every guardian a different proof for the same event. Instead, ots.Canonical encodes the opened event in a recipient-independent, versioned form:
func Canonical(e *message.Event) []byte {
b := make([]byte, 0, len(canonicalDomain)+1+4+4+32+len(e.Body))
b = append(b, canonicalDomain...) // "kengele/ots/v1"
b = append(b, byte(e.Kind))
var tmp [4]byte
binary.BigEndian.PutUint32(tmp[:], uint32(e.CreatedAt.Unix()))
b = append(b, tmp[:]...)
binary.BigEndian.PutUint32(tmp[:], e.Seq)
b = append(b, tmp[:]...)
b = append(b, e.Signer[:]...)
return append(b, e.Body...)
}
This is where the strict decoding from the message format pays off: because padding must be zero and every field has exactly one valid encoding, every guardian computes exactly the same digest for the same event.
Privacy: a salted commitment, never the event
Only 32 bytes ever leave the device. And not even the digest: a curious calendar server could test guesses ("did activist X panic at 14:07?") by hashing candidate events. So each digest is salted with a fresh 16-byte nonce before submission:
func Commitment(digest [32]byte, nonce []byte) [32]byte {
h := sha256.New()
h.Write(digest[:])
h.Write(nonce)
...
}
The nonce is recorded inside the proof itself (as an append operation followed by sha256), so anyone holding the event and the proof can replay the path, while the calendar only ever saw an opaque hash.
Offline first
Alarms happen during shutdowns. Store.Anchor writes the event's record and a queue marker to disk before touching the network, then submits to every configured calendar:
if err := s.saveMeta(key, m); err != nil {
return StatusSkipped, err
}
// The queue marker goes down before any network use.
if err := writeAtomic(s.queuePath(key), nil, 0o600); err != nil { ... }
root := New(digest[:])
node := root.child(Op{Tag: tagAppend, Arg: nonce}).child(Op{Tag: tagSHA256})
submitted := s.submitToMissing(ctx, m, commitment[:], node)
if len(submitted) == 0 {
return StatusQueued, nil
}
...
// Proof first, then unqueue: a crash between the two only resubmits.
If no calendar answers, the event stays queued and Sync submits it when the network returns. Every write is atomic, and the order (proof saved, then queue marker removed) means a crash can only cause a harmless resubmission, never a lost proof. Anchoring is idempotent: anchoring the same event twice keeps the existing proof.
A proof then moves through three states, shown to guardians in Swahili and English:
| Status | Guardian sees |
|---|---|
| Queued | Muhuri wa muda umepangwa, unasubiri mtandao / Timestamp queued, waiting for network |
| Pending | Muhuri wa muda umetumwa, unasubiri Bitcoin / Timestamp submitted, waiting for Bitcoin |
| Anchored | Muhuri wa muda umethibitishwa na Bitcoin (kizuizi N) / Timestamp confirmed by Bitcoin (block N) |
A pending proof is a calendar's promise, not yet a fact. Verify reports it as pending and the docs are explicit that callers must treat it as unconfirmed.
Proofs that need none of our software
A proof is only useful in court if someone other than us can check it. So Kengele writes standard detached .ots files, byte-compatible with the reference python-opentimestamps implementation. wire.go reimplements the serialisation rules exactly: unsigned LEB128 varints of at most 9 bytes, operations sorted by tag and argument, 0xff separators between all but the last branch, the magic header, and the reference limits.
// Magic header of every detached .ots file.
var magicHeader = []byte("\x00OpenTimestamps\x00\x00Proof\x00\xbf\x89\xe2\xe8\x84\xe8\x92\x94")
// Attestation tags.
var (
tagPending = [8]byte{0x83, 0xdf, 0xe3, 0x0d, 0x2e, 0xf9, 0x0c, 0x8e}
tagBitcoin = [8]byte{0x05, 0x88, 0x96, 0x0d, 0x73, 0xd7, 0x19, 0x01}
)
Unknown attestation types are kept verbatim so they survive a merge-and-upgrade round trip; unknown operation types are rejected, as in the reference, because the result cannot be computed. Export writes the canonical event bytes next to the .ots file, so a lawyer's expert can run the standard tool:
ots verify event.ots # with event.bin alongside
The test suite checks exact bytes against the reference, not just round trips through our own code:
go test -count=1 -v ./internal/ots
--- PASS: TestAnchorOfflineThenSync (0.00s)
--- PASS: TestAnchorSkipsRoutineEvents (0.00s)
--- PASS: TestAnchorIdempotent (0.00s)
--- PASS: TestUpgradeToBitcoin (0.00s)
--- PASS: TestCalendarFailures (0.01s)
--- PASS: TestVaruintVectors (0.00s)
--- PASS: TestPendingAttestationExactBytes (0.00s)
--- PASS: TestBitcoinAttestationExactBytes (0.00s)
--- PASS: TestDetachedFileExactPrefix (0.00s)
--- PASS: TestUpstreamVectors (0.00s)
--- PASS: TestUnknownAttestationRoundTrips (0.00s)
--- PASS: TestParseRejects (0.00s)
ok github.com/altradits/kengele/internal/ots 0.598s
(Selected lines; the package has 26 tests, all passing.)
The calendar client is also defensive: only http/https URLs, responses capped at 10,000 bytes, and redirects followed only to https on the same host, so a calendar cannot bounce the client elsewhere.
What a timestamp proves, and what it does not
OpenTimestamps proves that this exact event existed no later than a Bitcoin block. Combined with the signature, it proves that the activist's key signed a panic at or before that block. It does not prove the activist's clock was right, and it does not prove the event was not created earlier than the signed time. For a habeas corpus application, "no later than" is the direction that matters: it shows the alarm was raised while the person was missing, not invented afterwards.
The full confirmation suite:
go test -race -count=1 -v ./internal/confirm
--- PASS: TestOneOfThreeDoesNothingPublic (0.01s)
--- PASS: TestTwoOfThreeReleasesOnce (0.01s)
--- PASS: TestThresholdEdges (0.04s)
--- PASS: TestDuplicateConfirmationsIgnored (0.00s)
--- PASS: TestExpiredConfirmationsIgnored (0.00s)
--- PASS: TestForgedConfirmationRejected (0.00s)
--- PASS: TestBadShareCannotForgeOrBlock (0.00s)
--- PASS: TestReplayFromEarlierAlarm (0.01s)
--- PASS: TestSingleCoercedGuardianCannotPublish (0.00s)
--- PASS: TestActivistAllClearAloneEndsNothing (0.01s)
--- PASS: TestActivistPlusOneGuardianIsNotEnough (0.00s)
--- PASS: TestGuardianAllClearNeedsVerification (0.00s)
--- PASS: TestAllClearByTwoGuardians (0.00s)
--- PASS: TestFoundSafeAfterRelease (0.01s)
--- PASS: TestDrillNoteIsMarked (0.00s)
--- PASS: TestAllClearRaces (0.02s)
--- PASS: TestConcurrentActivistAllClearAndConfirms (0.01s)
--- PASS: TestConcurrentHandle (0.01s)
--- PASS: TestDuressPath (0.01s)
--- PASS: TestNoLocationTrail (0.00s)
--- PASS: TestKitTampering (0.00s)
--- PASS: TestBodySizesFitMessage (0.00s)
--- PASS: TestRecipientsExcludeActivist (0.00s)
ok github.com/altradits/kengele/internal/confirm 0.773s
What is still open
Being honest about limits matters more than any feature:
- k compromised guardians win. If 2 of 3 guardians are compromised, they can publish a false alert or stand a real one down. That is the threshold working as designed. Choose guardians who do not live, work or get arrested together, and consider an organisation abroad as one of them.
- Kit delivery is out of band. Each guardian's kit must reach them over a secure channel at enrolment. How the Android apps do that safely (QR in person, for example) is still being built.
- A seized guardian phone holds one share. That reveals nothing on its own, but it does reveal who the activist is and who the other guardians are. Kits must live only inside the guardian's encrypted plan.
- Calendars see timing. A submission reveals that someone timestamped something at that moment. During a crisis, a burst of submissions is itself a signal.
-
Verifying "anchored" needs a Bitcoin node. The store reports what calendars claim; checking that claim against the chain is the job of the standard
ots verifyon the exported files.
How to help
Kengele is free, MIT-licensed and not for real use yet. We are open to collaboration, guidance and any form of participation:
- Cryptographers: review the kit construction, the associated data and the release logic. Can you open an alert with fewer than k shares, or block an honest release?
-
Bitcoin developers: review
internal/otsagainst the reference implementation. The habeas corpus packet depends on these proofs being exactly right. -
Lawyers in Kenya, Uganda and Tanzania: tell us what a court actually needs to see. The Kenya template is in
docs/habeas-kenya.md. - Anyone who works with activists: tell us what the threat model is missing.
Start with CONTRIBUTING.md. Report security issues privately as described in SECURITY.md.
Not sponsored. Every life is worth watching over. Look out for each other.
Top comments (0)