I hereby claim:
- I am narodnik on github.
- I am narodnik (https://keybase.io/narodnik) on keybase.
- I have a public key ASAkUvQXNyC0Hubh6sDR8xb5Wt9nDn11CCzYW40XbwCNLQo
To claim this, I am signing this object:
| typedef std::vector<point_list> key_rings; | |
| typedef std::vector<ec_secret> secret_list; | |
| typedef std::vector<secret_list> s_values_type; | |
| struct ring_signature | |
| { | |
| ec_secret e; | |
| s_value_type s; | |
| }; |
| int main() | |
| { | |
| // Generate new random secret keys | |
| bc::secret_list secrets; | |
| for (size_t i = 0; i < 8; ++i) | |
| secrets.push_back(new_key()); | |
| // Create two rings from the first 4 and last 4 keys | |
| auto ring0 = extract_public_keys( | |
| secrets.begin(), secrets.begin() + 4); |
| ''' | |
| Pure Python Borromean Ring Signatures | |
| DEPENDS ON: pip install ecdsa | |
| WARNING: THIS IS A PEDAGOGICAL IMPLEMENTATION. | |
| PERFORMANCE IS HORRIBLE AND NON-CONSTANT. | |
| CORNER CASES ARE NOT PROPERLY CHECKED. | |
| FOR THE LOVE OF GOD USE THE CODE FROM THE ELEMENTS PROJECT. | |
| https://gist.github.com/badmofo/2d6e66630e4a6748edb7 | |
| ''' | |
| from hashlib import sha256 |
| #include <bitcoin/bitcoin.hpp> | |
| using namespace bc; | |
| class ec_scalar | |
| { | |
| public: | |
| ec_scalar(); | |
| ec_scalar(uint64_t value); | |
| void reset(); |
| /* | |
| g++ -o rp rp.cpp $(pkg-config --cflags --libs libbitcoin) | |
| ./rp | |
| */ | |
| #include <bitcoin/bitcoin.hpp> | |
| typedef uint64_t rangevalue_type; | |
| constexpr size_t commitment_bitsize = sizeof(rangevalue_type) * 8; | |
| typedef std::array<bc::ec_point, commitment_bitsize> commitment_list; |
| #include <iostream> | |
| void foo() | |
| { | |
| std::cout << "foo" << std::endl; | |
| } | |
| void bar(int x) | |
| { | |
| std::cout << "bar" << std::endl; |
| from PySide2.QtCore import QObject, Signal, Property, QUrl | |
| from PySide2.QtQml import QQmlApplicationEngine | |
| from PySide2.QtWebEngine import QtWebEngine | |
| from PySide2.QtWidgets import QApplication | |
| import sys | |
| class SourceTextProperty(QObject): | |
| def __init__(self, text): | |
| QObject.__init__(self) |
| from PySide2.QtCore import QObject, Signal, Property, QUrl | |
| from PySide2.QtQml import QQmlApplicationEngine | |
| from PySide2.QtWebEngine import QtWebEngine | |
| from PySide2.QtWidgets import QApplication | |
| import sys | |
| class SourceTextProperty(QObject): | |
| def __init__(self, text): | |
| QObject.__init__(self) |
I hereby claim:
To claim this, I am signing this object:
| import asyncio | |
| import json | |
| import websockets | |
| async def ping(): | |
| pong_address = "kauuj71-RPvETjz8FMQugnsNSDJ8033E4lNS_anMFD0=" | |
| uri = "ws://127.0.0.1:9001/mix" | |
| async with websockets.connect(uri) as websock: | |
| request_object = { |