Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/crypto/PBC.cpp b/src/crypto/PBC.cpp
index 1b9c98b..232c6ec 100644
--- a/src/crypto/PBC.cpp
+++ b/src/crypto/PBC.cpp
@@ -119,14 +119,14 @@ unsigned char* PBC::hash(std::string message, element_s *pk) {
byte *messageHash = new byte[SHA256_BYTESIZE];
SHA256::hash((byte*) message.c_str(), message.size(), messageHash);
- int pkByteLength = element_length_in_bytes(pk);
- byte *pkBytes = new byte[pkByteLength];
@krngrvr09
krngrvr09 / template.cpp
Created April 10, 2020 18:34
Standard CPP file template
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
#define endll "\n";
int main()
{
return 0;
}
#cloud-config
runcmd:
- cd /home/snode/StorageNode/scripts-deploy && CI-dev-spinup-app.sh > /tmp/sn_node.log
-- LUA WARNINGS
-- Array starts from index 1
-- obj.func() is equivalent to obj:func()
-- Loop:
-- for start_, end_ do
-- end
-- Condition:
-- if <condition> then
-- end
-- Function:
0.057377373863143996 0.10379897052498097 0.11958051157310136 0.073251920922339425 0.020563769340180196 0.06645069744805672
This file has been truncated, but you can view the full file.
-0.047789789340274023 -0.0011688936393601675 0.017132144064245656 -0.040640462210905032 -0.013512993655304771 0.00011809959412169186 0.0051287867326062766 -0.038343847511522887 -0.0041818122571968064 0.033149249090191089 -0.028356726712022128 -0.0040974082761874066 0.0021213482457049476 -0.0020109844191907185 0.037079770074325703 -0.021458043698063634 -0.035829683375515481 0.048264353561761418 -0.013862462640681283 0.011859946258289348 -0.040321062860022509 -0.023009401846258163 -0.01212394470458769 0.0044624507969697746 0.0093270743296412426 0.00010280004582748012 -0.022303741955592201 0.011825868835876307 -0.0034676745623993788 0.00048439601579157053 0.048261712000562153 0.005622838888498816 0.053078646795763358 0.022840215067120542 -0.0017413450971094726 0.045039516019061011 -0.00030895510556960029 -0.013226036885401674 -0.031895933651417921 0.026791376865602175 -0.0429576024242872 -0.040909448341955312 0.051939343779085115 0.027016369428519937 -0.025545820972140362 -0.0039100413523157646 0.01111834203305
0.037599277947911042 0.083112175300960628 -0.055878300893931171 0.055266583013648111 -0.016038073422334195 0.092944513159748596 -0.054466973814668189 -0.0068897246131412529 0.091605814793332574 -0.063547028977032322 0.082553510208916797 -0.029151541452352259 -0.003980618290246837 0.033141367883941307 0.078760260317657219 0.057755584569876395 0.01234941258437231 -0.041211667373756561 -0.053362251210580879 0.047355706493919673 0.05207481552033421 -0.036143635612198799 -0.0020622264284318433 0.058539254587031742 0.032083884328861292 -0.048406481812113163 0.079051374189025581 -0.047733492366182198 -0.059603708070337484 0.0087664525979746465 0.03223207182180389 0.032824957904296473 -0.004544374419185095 0.071993841185342647 0.026797624403542927 -0.025310116929088956 0.069916666585155315 -0.010567275398806877 -0.053899247625698941 0.047115684833636456 0.081907983094622522 0.012272721356700843 -0.048563039925166272 -0.004273515128342978 -0.07892876445247185 -0.049740868933061143 -0.066246146135915035 0.0029877216863
0.066690325363227082 -0.012559609666331094 0.013636074721078483 -0.079746837268462323 0.043418879120988775 6.221445831668812e-05 -0.015518332479520421 -0.059284566753507746 -0.032046472701498956 0.060841424003431774 -0.040365219975707717 0.095055943984110422 0.068826606837001147 0.01625655726602665 -0.063948402198383714 -0.050905421715660398
-0.031310417879191782 0.067923872649132244 0.03733033445108884 0.011664380873067629 0.012357256600559141 -0.064096716595317738 -0.030222444659732121 -0.082625469089805489 -0.016005351594412898 0.018561750509950976 -0.06288650817256583 0.060965449328856974 0.017648089651611066 0.060855419559732955 0.071135161492894644 0.036066263000566867 -0.042798730717565958 -0.057077627012895496 0.051749837961566285 -0.040630043795072693 0.073444475222054245 -0.036111958923785478 -0.042589989528116601 0.048747260718467682 0.027221164310594188 0.066584901763380194 0.0014248283336212929 0.046088099043349401 0.065408588879628249 0.079547639321774777 -0.059435307210798344 -0.090367863747035385 0.044998182893672509 -0.088813357504303012 -0.040225249428307866 -0.070188692229062571 -0.016721761752015531 0.034006821283470851 0.0015876502515176241 0.010533281118335441 -0.079637124572195864 0.01969643366609623 -0.0091442097158166095 0.070661829311628122 -0.080891599880994217 0.075366739602595406 -0.026891903044339034 -0.024957038456
-0.037349853595342757 0.051261001109181463 -0.03611519854417404 -0.040582962096093765 0.020344103636106892 -0.027142857441880656 0.012952373158543922 -0.029255355584868636 -0.017216128028540605 0.03097801901460628 -0.018709194151858555 -0.019322090271159043 0.014227053694281708 -0.0066210060149428053 0.00052458010095099146 -0.045153629307276275 0.03061635976236492 0.028907759765901434 0.014622382573851442 -0.046397723471834573 -0.038442916916368593 -0.051405936657226474 0.026834167910758915 -0.044907766035581789 -0.041234411864452369 0.01774256363084474 0.018790835827488091 0.03076660654407613 0.048273303422476287 -0.050449117573106758 0.028782781036664713 -0.039514770255061622 -0.03610055955333337 0.00029619178667672681 -0.042052031073144633 0.028405389487921331 0.023122255076604679 -0.029787569484237549 -0.018067905712885364 -0.0040924965162302592 0.032973919782318194 -0.016729302286965526 0.0011186573777396988 -0.049896932556293905 -0.01285106096835543 0.048728126392338637 -0.001845910469518298 -0.00636803