File tree Expand file tree Collapse file tree 16 files changed +17
-17
lines changed
Expand file tree Collapse file tree 16 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ edition = "2018"
1010
1111[dependencies ]
1212blake2 = " 0.7"
13- ewasm_api = " 0.6 "
13+ ewasm_api = " 0.8 "
1414
1515[lib ]
1616crate-type = [" cdylib" ]
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ publish = false
99edition = " 2018"
1010
1111[dependencies ]
12- ewasm_api = " 0.6 "
12+ ewasm_api = " 0.8 "
1313ethereum-bls12 = { git = " https://github.com/ewasm/ethereum-bls12.rs" , tag = " 0.1.1" }
1414parity-bytes = { git = " https://github.com/paritytech/parity-common" , version = " 0.1.0" }
1515
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ publish = false
99edition = " 2018"
1010
1111[dependencies ]
12- ewasm_api = " 0.6 "
12+ ewasm_api = " 0.8 "
1313ethereum-bn128 = { git = " https://github.com/ewasm/ethereum-bn128.rs" , tag = " 0.0.1" }
1414parity-bytes = { git = " https://github.com/paritytech/parity-common" , version = " 0.1.0" }
1515
Original file line number Diff line number Diff line change @@ -17,6 +17,6 @@ pub extern "C" fn main() {
1717 let mut output = [ 0u8 ; 64 ] ;
1818 match ethereum_bn128:: bn128_add ( & input[ ..] , & mut BytesRef :: Fixed ( & mut output[ ..] ) ) {
1919 Ok ( _) => ewasm_api:: finish_data ( & output) ,
20- Err ( _) => panic ! ( ) ,
20+ Err ( _) => ewasm_api :: abort ( ) ,
2121 }
2222}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ publish = false
99edition = " 2018"
1010
1111[dependencies ]
12- ewasm_api = " 0.6 "
12+ ewasm_api = " 0.8 "
1313ethereum-bn128 = { git = " https://github.com/ewasm/ethereum-bn128.rs" , tag = " 0.0.1" }
1414parity-bytes = { git = " https://github.com/paritytech/parity-common" , version = " 0.1.0" }
1515
Original file line number Diff line number Diff line change @@ -17,6 +17,6 @@ pub extern "C" fn main() {
1717 let mut output = [ 0u8 ; 64 ] ;
1818 match ethereum_bn128:: bn128_mul ( & input[ ..] , & mut BytesRef :: Fixed ( & mut output[ ..] ) ) {
1919 Ok ( _) => ewasm_api:: finish_data ( & output) ,
20- Err ( _) => panic ! ( ) ,
20+ Err ( _) => ewasm_api :: abort ( ) ,
2121 }
2222}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ publish = false
99edition = " 2018"
1010
1111[dependencies ]
12- ewasm_api = " 0.6 "
12+ ewasm_api = " 0.8 "
1313ethereum-bn128 = { git = " https://github.com/ewasm/ethereum-bn128.rs" , tag = " 0.0.1" }
1414parity-bytes = { git = " https://github.com/paritytech/parity-common" , version = " 0.1.0" }
1515
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ pub extern "C" fn main() {
1212 // NOTE: this validation will also be done by bn128_pairing
1313
1414 if length % 192 != 0 {
15- panic ! ( ) ;
15+ ewasm_api :: abort ( ) ;
1616 }
1717
1818 // charge a base fee plus a word fee for every element
@@ -27,6 +27,6 @@ pub extern "C" fn main() {
2727 let mut output = [ 0u8 ; 32 ] ;
2828 match ethereum_bn128:: bn128_pairing ( & input[ ..] , & mut BytesRef :: Fixed ( & mut output[ ..] ) ) {
2929 Ok ( _) => ewasm_api:: finish_data ( & output) ,
30- Err ( _) => panic ! ( ) ,
30+ Err ( _) => ewasm_api :: abort ( ) ,
3131 }
3232}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ publish = false
99edition = " 2018"
1010
1111[dependencies ]
12- ewasm_api = " 0.6 "
12+ ewasm_api = " 0.8 "
1313libsecp256k1 = " ^0.2.1"
1414sha3 = " ^0.6"
1515
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ publish = false
99edition = " 2018"
1010
1111[dependencies ]
12- ewasm_api = " 0.6 "
12+ ewasm_api = " 0.8 "
1313parity-bytes = { git = " https://github.com/paritytech/parity-common" , version = " 0.1.0" }
1414hex = " 0.3.1"
1515sha2 = " 0.7.1"
You can’t perform that action at this time.
0 commit comments