Skip to content

Instantly share code, notes, and snippets.

View abdhilabs's full-sized avatar
🎯
Focusing

Abdhi P abdhilabs

🎯
Focusing
  • nbs.co.id
  • Bandung
View GitHub Profile
@abdhilabs
abdhilabs / signer.swift
Created February 12, 2024 07:09
Generating A Signature For Farcaster Signer in Swift
import web3 //https://github.com/argentlabs/web3.swift
private func generateSignature() {
let privateKey = "0xd5071223dcbf1cb824090bd98e0ddc807be00f1874fdd74bbd9225773a824397" // PrivateKey of your wallet must be matched with FID. Note: Store it in a safe place
let requestFid: Double = 232312
let deadline = Double(Date().timeIntervalSince1970) + 86400
let publicKey = "0x85d2c4199a7fae484739ec9d280b28e5214a343298049745c108942690574a8e"
// Start | Domain SignedKeyRequest | Don't change this value
let name = "Farcaster SignedKeyRequestValidator"

0x08886ef711b182cd202c3e7f361aba81dab6e91d6855c103a9b4f766ef6cef8f

<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<data>
<variable
name="dummy"
type="com.abdhilabs.mediumrecylerview.Data" />