Skip to content

Instantly share code, notes, and snippets.

@shipunyc
shipunyc / xmtp.min.js
Created November 22, 2022 17:12
hosted xmtp.min.js
/*! For license information please see index.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.xmtp=t():e.xmtp=t()}(this,(function(){return(()=>{var __webpack_modules__={9656:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.utils=t.schnorr=t.verify=t.signSync=t.sign=t.getSharedSecret=t.recoverPublicKey=t.getPublicKey=t.Signature=t.Point=t.CURVE=void 0;const i=n(r(9159)),o=BigInt(0),s=BigInt(1),a=BigInt(2),l=BigInt(3),u=BigInt(8),c=a**BigInt(256),h={a:o,b:BigInt(7),P:c-a**BigInt(32)-BigInt(977),n:c-BigInt("432420386565659656852420866394968145599"),h:s,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e6
@shipunyc
shipunyc / BlockchainCutiesNFTWrapper.sol
Last active July 23, 2021 09:06
Wrapper class for BlockchainCuties NFT
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
interface NonStandardERC721TokenReceiver {
function onERC721Received(address _from, uint256 _tokenId, bytes calldata data) external returns(bytes4);
}
@shipunyc
shipunyc / config.py
Created September 22, 2016 20:49 — forked from catermelon/config.py
Flask-SQLAlchemy - separating reads and writes
# This is not used unless SQLALCHEMY_BINDS is not present
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://{username}:{password}@{hostname}/{database}?charset=utf8'
SQLALCHEMY_BINDS = {
'master': 'mysql+pymysql://{username}:{password}@{hostname}/{database}?charset=utf8',
'slave': 'mysql+pymysql://{username}:{password}@{hostname}/{database}?charset=utf8'
}