Skip to content

Instantly share code, notes, and snippets.

View bitlogik's full-sized avatar

BitLogiK bitlogik

View GitHub Profile
@bitlogik
bitlogik / pyWCdemo.py
Last active July 20, 2023 12:39
pyWalletConnect basic demo
import platform
import signal
from logging import basicConfig, DEBUG
from threading import Event
from pywalletconnect.client import WCClient
# Enable for debug output
basicConfig(level=DEBUG)
@bitlogik
bitlogik / demo.py
Created January 29, 2022 23:10
pyWalletConnect minimal demo
from logging import basicConfig, DEBUG
from time import sleep
from pywalletconnect.client import WCClient
# Enable for debug output
# basicConfig(level=DEBUG)
# Dapp demo, using the Ethereum Kovan network
# WC v1 at https://example.walletconnect.org/
@bitlogik
bitlogik / gist:a4c87f652be0ca17f9524cf3d2567a50
Created August 17, 2021 08:49
wxPython MacOS null pressedbmp crash report
Process: Python [853]
Path: /Library/Frameworks/Python.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python
Identifier: org.python.python
Version: 3.9.6 (3.9.6)
Code Type: X86-64 (Native)
Parent Process: zsh [656]
Responsible: Terminal [653]
User ID: 501
Date/Time: 2021-08-17 10:23:49.638 +0200
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Testing SmartPGP applet up to a crash because of a memory leak
import os
from sys import path
import subprocess
import getpass
import hashlib
@bitlogik
bitlogik / XSalsa20Tests.py
Created July 13, 2020 17:07
XSalsa20 tests pynacl libsodium
# using pynacl, which uses libsodium
import nacl.secret
import nacl.bindings
from nacl.encoding import HexEncoder
# XSalsa20 Tests
print("Testing pynacl.secret.SecretBox ...")
# Test cases generated by naclcrypto-20090308, used by Crypto++ and XSalsa20Engine BouncyCastle package