Skip to content

Instantly share code, notes, and snippets.

View havan's full-sized avatar
⌨️
typing...

Ekrem Seren havan

⌨️
typing...
View GitHub Profile
@havan
havan / WrappedCAM.abi
Last active April 28, 2025 23:44
How to test WrappedCAM on Columbus with Remix IDE
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "ECDSAInvalidSignature",
"type": "error"
@havan
havan / WrappedCAM.abi
Created April 28, 2025 23:15
WrappedCAM.abi
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "ECDSAInvalidSignature",
"type": "error"
@havan
havan / revised-security-audit-with-invalid-issue-explanation.md
Created October 24, 2024 20:37
Camino Messenger Contracts Security Audit

Revised Security Audit Report: Camino Messenger Smart Contracts

Note

This is a self-audit using Claude 3.5 Sonnet

Executive Summary

The Camino Messenger is a decentralized messaging system for travel industry partners to exchange information and facilitate bookings. The smart contract system handles token-based bookings, cheque-based payments, and account management.

Scope

@havan
havan / messenger_cheque_signer.go
Created September 11, 2024 15:39
This Go code generates and signs a Messenger Cheque using Ethereum's EIP-712 standard for typed structured data hashing and signing.
/*
This code should calculate the same signature as the example below:
Used script: https://github.com/chain4travel/camino-messenger-contracts/blob/52d3b4221cb0eff827ab16e7964f88f18878a8a8/examples/sign_primitive.js
Example output:
❯ yarn hardhat run examples/sign_primitive.js --network localhost
yarn run v1.22.19
$ /hgst/work/github.com/chain4travel/camino-messenger-contracts/node_modules/.bin/hardhat run examples/sign_primitive.js --network localhost