Affix your onchain seal and let the world verify it.
- UI repo: https://github.com/julienbrg/affix-ui
- Live demo: https://affix-ui.vercel.app
Organisations, businesses and individuals can authenticate their documents using Filecoin while keeping their existing workflows intact. Anyone can then instantly verify that documents are genuine and unaltered.
# Clone the repository
git clone https://github.com/julienbrg/affix-contracts.git
cd affix-contracts
# Install dependencies
bun install
# Build the project
forge build
Run the basic test suite:
forge test
In a seperated shell:
supersim fork --chains=op
Then:
forge script script/DeployAffixFactory.sol --rpc-url op --broadcast
forge script script/RegisterEntity.s.sol --rpc-url op --broadcast
forge script script/AddAgent.s.sol --rpc-url op --broadcast
forge script script/IssueDocument.s.sol --rpc-url op --broadcast
forge script script/VerifyDocument.s.sol --rpc-url op --broadcast
forge script script/DeployAffixFactory.sol \
--rpc-url optimism \
--broadcast \
--verify
After successful factory deployment, update the factory address in script/RegisterEntity.s.sol
:
// Update this line with your deployed factory address
address constant AFFIX_FACTORY_ADDRESS = <NEW_FACTORY_ADDRESS>;
forge script script/RegisterEntity.s.sol \
--rpc-url optimism \
--broadcast \
--verify
forge script script/AddAgent.s.sol \
--rpc-url optimism \
--broadcast
forge script script/IssueDocument.s.sol \
--rpc-url optimism \
--broadcast
Feel free to reach out to Julien on Farcaster, Element, Status, Telegram, Twitter, Discord, or LinkedIn.
This project is licensed under the GNU General Public License v3.0.