This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// See https://golang.org/src/crypto/tls/generate_cert.go | |
// See https://gist.github.com/denji/12b3a568f092ab951456 | |
import ( | |
"bytes" | |
"crypto/ed25519" | |
"crypto/rand" | |
"crypto/tls" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/aes" | |
"crypto/rand" | |
"crypto/sha256" | |
"fmt" | |
"hash" | |
"github.com/dchest/wots" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local x = 0 | |
for i = 1, 10000000000 do | |
local y = getNumber() -- C function | |
x = x + y | |
end | |
print(x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Order copier | |
""" | |
# API key основного аккаунта | |
API_KEY = '69eQkHl0R0vgPod21c3XjQsT' | |
API_SECRET = 'EFAHxtJiOVYHSWa_HPtLAW50GpV31G_2GVSdm1gBZKH85Ltv' | |
# Список API ключей куда нужно транслировать ордера | |
API_KYES = ['hLlWHxkqxs42g-WeEt1_wC20'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/range_test.go b/range_test.go | |
index c3b4c71..3f380aa 100644 | |
--- a/range_test.go | |
+++ b/range_test.go | |
@@ -200,6 +200,12 @@ func TestBuildVerifyRangeProof(t *testing.T) { | |
if !VerifyRangeProof(leafData[start*leafSize:end*leafSize], blake, leafSize, start, end, proof, smallRoot) { | |
t.Errorf("BuildRangeProof constructed an incorrect proof for range %v-%v", start, end) | |
} | |
+ if end == start + 1 { | |
+ singleProof := append([][]byte{leafData[start*leafSize:end*leafSize]}, proof...) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"math/rand" | |
"os" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"io" | |
"math/rand" | |
"os" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print('Lua script is running...') | |
local x = 0 | |
for i = 1, 10000000000 do | |
local y = getNumber() -- C function | |
x = x + y | |
end | |
print(x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make[1]: Entering directory '/home/mxe/mxe-after-threads' | |
uname -a | |
Linux elric.ga 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) x86_64 GNU/Linux | |
git show-branch --list --reflog=1 | |
[refs/heads/with958@{0}] (5 hours ago) (none) | |
lsb_release -a 2>/dev/null || sw_vers 2>/dev/null || true | |
Distributor ID: Debian | |
Description: Debian GNU/Linux 8.2 (jessie) | |
Release: 8.2 | |
Codename: jessie |
NewerOlder