Skip to content

jsvvsolsllc/mioffice-document-attestation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MiOffice Document Attestation

On-chain document hash attestation on Base L2. Part of the MiOffice AI Office Suite.

Overview

Register SHA-256 document hashes on the Base blockchain for immutable, timestamped proof of existence. Documents are hashed entirely in the browser — files never leave your device.

Live at: mioffice.ai/verify

How It Works

  1. User drops a file on MiOffice Document Verification
  2. SHA-256 hash is computed client-side using Web Crypto API
  3. Hash is registered on-chain via the DocumentAttestation contract
  4. Anyone can verify the hash exists and check the timestamp

Contract

Network Address Explorer
Base Mainnet TBD BaseScan
Base Sepolia TBD BaseScan Sepolia

Architecture

  • Frontend: MiOffice — Next.js, TypeScript, Tailwind CSS
  • Hashing: Web Crypto API (SHA-256) — runs in browser, zero uploads
  • Contract: Solidity 0.8.24, deployed on Base L2 (Coinbase)
  • Integration: ethers.js v6 for wallet connection and transaction signing

Contract Interface

// Register a document hash
function attest(bytes32 hash) external;

// Verify a hash exists
function verify(bytes32 hash) external view returns (address attester, uint256 timestamp);

// Get all attestations by an address
function getAttestations(address attester) external view returns (bytes32[] memory);

Development

npm install
npx hardhat compile
npx hardhat test
npx hardhat deploy --network base-sepolia

Gas Costs

Operation Gas Cost (Base L2)
attest() ~45,000 < $0.01
verify() 0 (view) Complimentary

Privacy

All file processing happens in the browser. Only the SHA-256 hash (32 bytes) is sent on-chain — never the file content, filename, or any metadata. Privacy Policy

Related

License

MIT — JSVV SOLS LLC

About

On-chain document hash attestation on Base L2. SHA-256 hashing in browser, immutable timestamped proofs on-chain. Part of MiOffice AI Office Suite.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors