Skip to content

Instantly share code, notes, and snippets.

homakov / entity.sol
Last active May 12, 2024 19:26
pragma solidity ^0.8.19;
contract EntityProvider {
struct Entity {
address tokenAddress;
string name;
bytes32 currentAuthenticatorHash;
homakov / booking.js
Last active May 1, 2023 00:07
// go to and search for hotels
// set your favorite filters first to reduce the result pages to 5-10.
// then paste this script in JS console
!(function () {
function e(t, o) {
return n
? void (n.transaction("s").objectStore("s").get(t).onsuccess = function (
) {
homakov /
Last active March 20, 2021 01:56
XLN channel lifecycle

Alice puts assets in channel

Alice downloads XLN wallet. After logging in with passphrase/mnemonic, it shows a list of hubs (downloaded from public hubs contract array), along with various metrics and data: name, total collateral locked around the hub, gasused (the most reliable one) etc.

Alice chooses Hub and sets up a channel offchain and adds asset_id=0,1 (weth/dai). Both parties sign off on a dispute proof

[0,0], //asset_id, offdelta
homakov /
Last active September 24, 2016 21:30
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
#prevents DNS rebinding attacks
class DNSBinding
VALID_HOSTS = %w{localhost:9292}
def initialize(app)
@app = app