Skip to content

Instantly share code, notes, and snippets.

@str4d
str4d / extract_p2sh_opcodes.py
Created Sep 23, 2019
Zcash P2SH metadata collection from zcashd RPCs
View extract_p2sh_opcodes.py
import csv
from enum import IntEnum
FILENAME = 'zcash-p2sh-data.csv'
class OpCode(IntEnum):
# push value
OP_0 = 0x00
OP_FALSE = OP_0
View 1408-sighash-changes.diff
diff --git a/src/gtest/test_checktransaction.cpp b/src/gtest/test_checktransaction.cpp
index 11607b2..f9caccc 100644
--- a/src/gtest/test_checktransaction.cpp
+++ b/src/gtest/test_checktransaction.cpp
@@ -354,23 +354,27 @@ TEST(checktransaction_tests, bad_txns_prevout_null) {
}
TEST(checktransaction_tests, bad_txns_invalid_joinsplit_signature) {
+ SelectParams(CBaseChainParams::REGTEST);
+
@str4d
str4d / equihash.rs
Last active Aug 7, 2018
Equihash validator
View equihash.rs
use std::mem;
use std::ptr;
use byteorder::{LittleEndian, WriteBytesExt};
use libsodium_sys::crypto_generichash_blake2b_init_salt_personal;
use libsodium_sys::crypto_generichash_blake2b_state;
use libsodium_sys::crypto_generichash_blake2b_update;
use libsodium_sys::crypto_generichash_blake2b_final;
use libsodium_sys::crypto_generichash_statebytes;
use rustc_serialize::hex::ToHex;
@str4d
str4d / keybase.md
Created Nov 17, 2016
Keybase proof
View keybase.md

Keybase proof

I hereby claim:

  • I am str4d on github.
  • I am str4d (https://keybase.io/str4d) on keybase.
  • I have a public key ASA2ZtnSp1EQjQ4efpvwNqpinaMv1oju0eBXEnG_-VODsgo

To claim this, I am signing this object:

View Connectivity.java
// License: MIT
// http://opensource.org/licenses/MIT
package net.i2p.android.router.util;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.telephony.TelephonyManager;
/**
You can’t perform that action at this time.