Skip to content

About

pirmefacility public hash repository.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

PrimeFacility — Vote Chain Genesis Hash

This repository publicly anchors the cryptographic vote chain used by the PrimeFacility strata management platform.

Global Genesis Hash

4cf30fecb1b95fa1ef7bf3e0b33cfd5b2aa59e2dea8a721d7542b4c19d1b4427

How to verify

This hash is the SHA-256 of the following constant string:

GENESIS:global:rapin-support:approval-request-chain

You can independently verify it with any SHA-256 tool:

echo -n "GENESIS:global:rapin-support:approval-request-chain" | sha256sum
# or
php -r "echo hash('sha256', 'GENESIS:global:rapin-support:approval-request-chain') . PHP_EOL;"
# or
python3 -c "import hashlib; print(hashlib.sha256(b'GENESIS:global:rapin-support:approval-request-chain').hexdigest())"

Purpose

Every vote cast in the PrimeFacility approval request system is part of a tamper-proof SHA-256 hash chain.
The first vote on any approval request uses this genesis hash as its prev_hash.
All subsequent votes chain from the previous vote's block_hash.

Because this genesis hash is publicly committed here with a timestamp, it proves the chain could not have been backdated — any tampering would break the chain from this anchor point.

Chain structure

genesis (this hash)
  └─ vote #1: block_hash = SHA256(genesis_hash : block_data_1)
       └─ vote #2: block_hash = SHA256(vote1_hash : block_data_2)
            └─ vote #3: block_hash = SHA256(vote2_hash : block_data_3)
                 └─ ...

Where block_data for each vote is:

{
  "approval_request_id": <int>,
  "person_id": <int>,
  "choice_id": <int|null>,
  "decision": "approved"|"declined",
  "comment": <string|null>,
  "created_at": <unix timestamp>
}

Serialised as compact JSON (JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES), with the hash computed as:

SHA256( prev_hash + ":" + json_block_data )

About

pirmefacility public hash repository.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors