Giter VIP home page Giter VIP logo

stargate's Introduction

Stargate


License

Stargate is the layer2 state channel protocol and implements of Starcoin.

The goal of Stargate is to provide a second layer for Starcoin, that can execute smart contract on state channel, and the state of smart contract can be seamlessly transferred between chain and offchain channel.

Note that the Starcoin's chain code has not been released yet, we just use Libra to mock it.

Features

  1. Execute Move contract on state channel.
  2. Seamlessly state transfer between chain and offchain.
  3. Layer2 delegate node supports user security to delegate its own Layer2 message to a node without having to keep its own node always online.
  4. Layer2 generic message deliver (For Layer2 DApp deliver message).
  5. Offchain state can be compressed by proof(Merkle Proof or ZK Proof).

Note that features including already implemented and planned implementation.

Architecture

TODO

Note to Developers

  • Stargate is a prototype implement.
  • Project is under heavy development, not production ready.

Getting Started

Getting Started

Development

You can use cargo directly. Or if you want docker, there is Dockerfile which install the necessary requirements, and you can just mount the code, and run cargo in a linux docker container.

> docker build -t stargate-base -f docker/build.Dockerfile ./docker
> ./docker-run.sh cargo build

License

Stargate is licensed as Apache 2.0.

stargate's People

Contributors

fanngyuan avatar guangyuz avatar jolestar avatar nanne007 avatar sanlee42 avatar ssyuan avatar tiangong3624749 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stargate's Issues

[CI] refactor test

  1. split unit and integration test
  2. unit test should support run by multi-thread (remove --test-threads 1 from circle config).

RUSTSEC-2016-0005: rust-crypto is unmaintained; switch to a modern alternative

rust-crypto is unmaintained; switch to a modern alternative

Details
Status unmaintained
Package rust-crypto
Version 0.2.36
URL DaGenix/rust-crypto#440
Date 2016-09-06
Unaffected versions > 0.2.36

The rust-crypto crate has not seen a release or GitHub commit since 2016,
and its author is unresponsive.

We recommend you switch to one of the following crates instead, depending on
which algorithms you need:

See advisory page for additional details.

RUSTSEC-2020-0002: Parsing a specially crafted message can result in a stack overflow

Parsing a specially crafted message can result in a stack overflow

Details
Package prost
Version 0.5.0
URL https://github.com/danburkert/prost/issues/267
Date 2020-01-16
Patched versions >= 0.6.1

Affected versions of this crate contained a bug in which decoding untrusted
input could overflow the stack.

On architectures with stack probes (like x86), this can be used for denial of
service attacks, while on architectures without stack probes (like ARM)
overflowing the stack is unsound and can result in potential memory corruption
(or even RCE).

The flaw was quickly corrected by @danburkert and released in version 0.6.1.

See advisory page for additional details.

node panic problem

thread 'ctrl-c' panicked at 'failed to send unit when handling CTRL-C: "SendError(..)"', src/libcore/result.rs:1165:5
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace.

sgchain runtime panic problem

C1224 11:05:51.994222 123145428819968 libra/common/crash-handler/src/lib.rs:38] details = '''panicked at 'timer error: timer is shutdown', /Users/suoyuan/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/tokio-0.2.4/src/time/delay.rs:96:23'''
backtrace = '''
stack backtrace:
0: 0x107091fcd - alloc::raw_vec::alloc_guard::h158779c33f6cdb32
1: 0x107091f53 - alloc::raw_vec::alloc_guard::h158779c33f6cdb32
2: 0x107097b67 - backtrace::capture::Backtrace::create::h738c94c528ef5e3a
3: 0x107097aa6 - backtrace::symbolize::libbacktrace::init_state::load_filename::habcfbfdb7affd8ff
4: 0x104713a79 - crash_handler::handle_panic::h3e3df43e73943047
at libra/common/crash-handler/src/lib.rs:35
5: 0x104712f79 - crash_handler::setup_panic_handler::{{closure}}::h7e241495db13e2ca
at libra/common/crash-handler/src/lib.rs:27
6: 0x107264c12 - <std::panicking::begin_panic::PanicPayload as core::panic::BoxMeUp>::get::h2b8b0a58863fcf2c
7: 0x1072646ad - std::panicking::continue_panic_fmt::h0e74ab2b215a1401
8: 0x1072b1eee - std::thread::local::fast::Key::try_initialize::hcdc98eb893033f5a
9: 0x10713976d - tokio::runtime::thread_pool::current::CURRENT_WORKER::__getit::hc971981668080de7
10: 0x105bb3b6e - <futures_util::future::future::fuse::Fuse as core::future::future::Future>::poll::h80d4900e1245a899
at /Users/suoyuan/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/futures-util-0.3.1/src/future/future/fuse.rs:83
11: 0x105aea7e5 - <core::pin::Pin

as core::future::future::Future>::poll::h47d751673417589d
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libcore/future/future.rs:119
12: 0x105ac763d - futures_util::future::future::FutureExt::poll_unpin::hf915dfeef2d4b0de
at /Users/suoyuan/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/futures-util-0.3.1/src/future/future/mod.rs:510
13: 0x105eddf9d - network::connectivity_manager::ConnectivityManager<TTicker,TSubstream,TBackoff>::dial_eligible_peers::{{closure}}::{{closure}}::{{closure}}::{{closure}}::hce2481b71a01d8d0
at libra/network/src/connectivity_manager/mod.rs:294
14: 0x10598cd78 - core::ops::function::impls::<impl core::ops::function::FnMut for &mut F>::call_mut::heb58611d3bc25002
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libcore/ops/function.rs:265
15: 0x105ede88d - network::connectivity_manager::ConnectivityManager<TTicker,TSubstream,TBackoff>::dial_eligible_peers::{{closure}}::{{closure}}::{{closure}}::hea09fba16345eab4
at /Volumes/jiayi/project/rust/starcoin_stargate/<::futures_util::async_await::select_mod::select macros>:4
16: 0x10585e055 - <futures_util::future::poll_fn::PollFn as core::future::future::Future>::poll::he9f2ff6b0ac5123e
at /Users/suoyuan/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/futures-util-0.3.1/src/future/poll_fn.rs:54
17: 0x1058bb6fd - std::future::poll_with_tls_context::{{closure}}::h7b37992fed40e018
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/future.rs:121
18: 0x1058785ce - std::future::get_task_context::h0611c23669f2a21a
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/future.rs:111
19: 0x1058b4c9d - std::future::poll_with_tls_context::h3229c4a41c7210e9
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/future.rs:121
20: 0x105ee05c8 - network::connectivity_manager::ConnectivityManager<TTicker,TSubstream,TBackoff>::dial_eligible_peers::{{closure}}::{{closure}}::hb3c35a3f9e6a0b43
at libra/network/src/connectivity_manager/mod.rs:294
21: 0x1058c7245 - <std::future::GenFuture as core::future::future::Future>::poll::{{closure}}::h1c844ce4e07b0e67
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/future.rs:43
22: 0x1058ab9f7 - std::future::set_task_context::hf295f2edf3419cf5
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/future.rs:79
23: 0x1058c0cd4 - <std::future::GenFuture as core::future::future::Future>::poll::h635fe7bbcdc28a4b
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/future.rs:43
24: 0x105aebd9a - <core::pin::Pin

as core::future::future::Future>::poll::hbe82c9fb3cf1b88e
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libcore/future/future.rs:119
25: 0x105bc5ba5 - <futures_util::stream::futures_unordered::FuturesUnordered as futures_core::stream::Stream>::poll_next::h33fb1baac567a946
at /Users/suoyuan/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/futures-util-0.3.1/src/stream/futures_unordered/mod.rs:434
26: 0x105bd79fc - futures_util::stream::stream::StreamExt::poll_next_unpin::h382530631ce58227
at /Users/suoyuan/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/futures-util-0.3.1/src/stream/stream/mod.rs:1149
27: 0x105aacf5e - <futures_util::stream::stream::select_next_some::SelectNextSome as core::future::future::Future>::poll::h23c63c0c1a3f11d7
at /Users/suoyuan/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/futures-util-0.3.1/src/stream/stream/select_next_some.rs:33
28: 0x105aeaa24 - <core::pin::Pin

as core::future::future::Future>::poll::h4dc1a32e09260292
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libcore/future/future.rs:119
29: 0x105ac759c - futures_util::future::future::FutureExt::poll_unpin::hf61f60195cdf3449
at /Users/suoyuan/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/futures-util-0.3.1/src/future/future/mod.rs:510
30: 0x105ed1710 - network::connectivity_manager::ConnectivityManager<TTicker,TSubstream,TBackoff>::start::{{closure}}::{{closure}}::{{closure}}::h00f84bd361e86c0b
at libra/network/src/connectivity_manager/mod.rs:147
31: 0x10598c8bc - core::ops::function::impls::<impl core::ops::function::FnMut for &mut F>::call_mut::h20d8b39eb386924a
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libcore/ops/function.rs:265
32: 0x105ed2668 - network::connectivity_manager::ConnectivityManager<TTicker,TSubstream,TBackoff>::start::{{closure}}::{{closure}}::hcdb536d49f7fa77a
at /Volumes/jiayi/project/rust/starcoin_stargate/<::futures_util::async_await::select_mod::select macros>:4
33: 0x10585dfaa - <futures_util::future::poll_fn::PollFn as core::future::future::Future>::poll::he8ea458b2a702f57
at /Users/suoyuan/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/futures-util-0.3.1/src/future/poll_fn.rs:54
34: 0x1058bcc04 - std::future::poll_with_tls_context::{{closure}}::hc905313e73b32823
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/future.rs:121
35: 0x10588c8e0 - std::future::get_task_context::hbf05672b64773219
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/future.rs:111
36: 0x1058b7ab4 - std::future::poll_with_tls_context::hc1c9584b8541b60e
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/future.rs:121
37: 0x105ed55a3 - network::connectivity_manager::ConnectivityManager<TTicker,TSubstream,TBackoff>::start::{{closure}}::h6e75d0ef4b2e0fc7
at libra/network/src/connectivity_manager/mod.rs:147
38: 0x1058d730d - <std::future::GenFuture as core::future::future::Future>::poll::{{closure}}::hdbaa7ff6e191a909
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/future.rs:43
39: 0x1058a7708 - std::future::set_task_context::had4623ef39a83e9e
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/future.rs:79
40: 0x1058bf912 - <std::future::GenFuture as core::future::future::Future>::poll::h396e2eb8a57b0277
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/future.rs:43
41: 0x1058bafdd - std::future::poll_with_tls_context::{{closure}}::h62f34c678c42a091
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/future.rs:121
42: 0x10588699e - std::future::get_task_context::h8ccf525f00ee3e7c
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/future.rs:111
43: 0x1058b6dcd - std::future::poll_with_tls_context::h943987d8965bb61a
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/future.rs:121
44: 0x105be9c6b - network::validator_network::network_builder::NetworkBuilder::build_with_transport::{{closure}}::h3c3f1b4d5101114b
at libra/network/src/validator_network/network_builder.rs:470
45: 0x1058cebfd - <std::future::GenFuture as core::future::future::Future>::poll::{{closure}}::h7265c64e459d3174
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/future.rs:43
46: 0x10589f648 - std::future::set_task_context::h4821e0f4baa095c5
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/future.rs:79
47: 0x1058bed82 - <std::future::GenFuture as core::future::future::Future>::poll::h21f2acfa31bd8c0d
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/future.rs:43
48: 0x105f6af62 - tokio::task::core::Core::poll::hc49c9f35c5e794c8
at /Users/suoyuan/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/tokio-0.2.4/src/task/core.rs:128
49: 0x105cc5992 - tokio::task::harness::Harness<T,S>::poll::{{closure}}::{{closure}}::h897313462cef571d
at /Users/suoyuan/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/tokio-0.2.4/src/task/harness.rs:120
50: 0x1058ecd19 - core::ops::function::FnOnce::call_once::hc3386f95fa408cbe
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libcore/ops/function.rs:227
51: 0x105d1b11d - <std::panic::AssertUnwindSafe as core::ops::function::FnOnce<()>>::call_once::h55dcee029a4c1e51
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/panic.rs:315
52: 0x105dd36ba - std::panicking::try::do_call::hfbea6236ac72e942
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/panicking.rs:292
53: 0x10726861f - panic_unwind::dwarf::eh::read_encoded_pointer::h8a85bd7bb8b1ba5e
54: 0x105dc897c - std::panicking::try::hb50ae6fad19a9ef0
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/panicking.rs:271
55: 0x105d1dee4 - std::panic::catch_unwind::ha0fcc09215331a96
at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/panic.rs:394
56: 0x105cc2908 - tokio::task::harness::Harness<T,S>::poll::{{closure}}::hcc084ddc7ace142c
at /Users/suoyuan/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/tokio-0.2.4/src/task/harness.rs:101
57: 0x105a0afca - tokio::loom::std::causal_cell::CausalCell::with_mut::h7600211f9cafe3ea
at /Users/suoyuan/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/tokio-0.2.4/src/loom/std/causal_cell.rs:41
58: 0x105c9a4a1 - tokio::task::harness::Harness<T,S>::poll::h077bb9a56f86fd86
at /Users/suoyuan/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/tokio-0.2.4/src/task/harness.rs:100
59: 0x105d2a3f2 - tokio::task::raw::poll::he4a932bee4511b8d
at /Users/suoyuan/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/tokio-0.2.4/src/task/raw.rs:162
60: 0x1071904ca - tokio::task::raw::RawTask::into_raw::h9cda4ed4b76ad4c2
61: 0x1071b0ac4 - tokio::task::Task::into_raw::hb09dbce46b8f4d47
62: 0x107186cca - tokio::runtime::thread_pool::worker::GenerationGuard::run_task::h2fca9ab7f656fb71
63: 0x107186504 - tokio::runtime::thread_pool::worker::GenerationGuard::process_available_work::h7717e8169f39c544
64: 0x107186230 - tokio::runtime::thread_pool::worker::GenerationGuard::run::h09a52bcca2307df3
65: 0x107185cd0 - tokio::runtime::thread_pool::worker::Worker::run::{{closure}}::{{closure}}::{{closure}}::{{closure}}::h16ff2c3c2bf5af86
66: 0x10714d9ee - tokio::runtime::enter::ENTERED::__init::h2417005f1cedcabd
67: 0x10714bf40 - tokio::runtime::enter::ENTERED::__init::h2417005f1cedcabd
68: 0x107185d3f - tokio::runtime::thread_pool::worker::Worker::run::{{closure}}::{{closure}}::{{closure}}::h1fe1faf17ebfdeb5
69: 0x107198e80 - tokio::runtime::blocking::pool::Spawner::enter::{{closure}}::hbf8c746af92946ae
70: 0x10714cf0c - tokio::runtime::enter::ENTERED::__init::h2417005f1cedcabd
71: 0x10714ba78 - tokio::runtime::enter::ENTERED::__init::h2417005f1cedcabd
72: 0x107198bfb - tokio::runtime::blocking::pool::BlockingPool::spawner::h6fa7524c526e9e74
73: 0x107185d7e - tokio::runtime::thread_pool::worker::Worker::run::{{closure}}::{{closure}}::h728dab82e88f3087
74: 0x107136644 - tokio::runtime::global::with_state::{{closure}}::h74dc2615542b4e9a
75: 0x10714c24c - tokio::runtime::enter::ENTERED::__init::h2417005f1cedcabd
76: 0x10714bc18 - tokio::runtime::enter::ENTERED::__init::h2417005f1cedcabd
77: 0x10713657f - tokio::io::driver::scheduled_io::unpack_generation::h8be10c82069fb040
78: 0x107136854 - tokio::runtime::global::EXECUTOR::__init::hef6c9c8b067f6967
79: 0x107185dd6 - tokio::runtime::thread_pool::worker::Worker::run::{{closure}}::h6f898094fed38885
80: 0x107136aa9 - tokio::runtime::thread_pool::current::set::{{closure}}::h28d8c04d912268ad
81: 0x10714cca8 - tokio::runtime::enter::ENTERED::__init::h2417005f1cedcabd
82: 0x10714c089 - tokio::runtime::enter::ENTERED::__init::h2417005f1cedcabd
83: 0x10713699f - tokio::runtime::thread_pool::current::set::h30a71bb753b3ca75
84: 0x107185ae2 - tokio::runtime::thread_pool::worker::Worker::run::ha809fd59edf343f3
85: 0x10714453b - tokio::runtime::thread_pool::Workers::spawn::{{closure}}::{{closure}}::h1d0b82f0fc439a0e
86: 0x107185190 - <core::time::Duration as core::cmp::PartialOrd>::gt::hdd2fc54e83a25cac
87: 0x10718f7b4 - tokio::runtime::thread_pool::queue::inject::Inject::wait_for_unlocked::h2b9614b89ef990b0
88: 0x107129e22 - tokio::task::harness::Harness<T,S>::poll::{{closure}}::{{closure}}::hd3ca20cba6cecbdb
at /Users/suoyuan/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/tokio-0.2.4/src/task/harness.rs:120
89: 0x10719a7c9 - core::ops::function::FnOnce::call_once::hb8147d0d3db2980e
90: 0x10717f20d - tokio::util::slab::shard::Shard::local::haec034cf0f539eff
91: 0x1071692ea - tokio::time::ms::h8b26561f284186bc
92: 0x10726861f - panic_unwind::dwarf::eh::read_encoded_pointer::h8a85bd7bb8b1ba5e
93: 0x107168f0c - tokio::time::ms::h8b26561f284186bc
94: 0x10717f9c4 - std::sys_common::condvar::Condvar::wait_timeout::h8a5adbc4751d608e
95: 0x107129fb8 - tokio::task::harness::Harness<T,S>::poll::{{closure}}::hf183fc89e9f4e9f8
at /Users/suoyuan/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/tokio-0.2.4/src/task/harness.rs:101
96: 0x10716b6ca - <std::sys::unix::time::inner::Instant as core::cmp::PartialOrd>::partial_cmp::h337098a603d1b915
97: 0x107129a91 - tokio::task::harness::Harness<T,S>::poll::ha89060ad194daa33
at /Users/suoyuan/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/tokio-0.2.4/src/task/harness.rs:100
98: 0x107190782 - tokio::task::raw::RawTask::into_raw::h9cda4ed4b76ad4c2
99: 0x1071904ca - tokio::task::raw::RawTask::into_raw::h9cda4ed4b76ad4c2
100: 0x1071b0b64 - tokio::task::Task::into_raw::hb09dbce46b8f4d47
101: 0x107199f8a - tokio::runtime::blocking::pool::run_task::h358646ad1e55eef0
102: 0x107199990 - tokio::runtime::blocking::pool::Inner::run2::ha8baa7a993736524
103: 0x1071997b8 - tokio::runtime::blocking::pool::Inner::run::{{closure}}::{{closure}}::h0e9a7168790495e5
104: 0x10713671d - tokio::runtime::global::with_state::{{closure}}::hb9a1f3c8cc619f02
105: 0x10714d52f - tokio::runtime::enter::ENTERED::__init::h2417005f1cedcabd
106: 0x10714bbb5 - tokio::runtime::enter::ENTERED::__init::h2417005f1cedcabd
107: 0x107136538 - tokio::io::driver::scheduled_io::unpack_generation::h8be10c82069fb040
108: 0x107136891 - tokio::runtime::global::EXECUTOR::__init::hef6c9c8b067f6967
109: 0x10718554d - tokio::runtime::thread_pool::spawner::Spawner::new::h174561e03889b7fe
110: 0x1071358b5 - tokio::runtime::io::variant::set_default::{{closure}}::hf886bcdde959353f
111: 0x1071997ed - tokio::runtime::blocking::pool::Inner::run::{{closure}}::hcd965db322294eac
112: 0x10717eb09 - tokio::time::clock::Clock::new::h30e65a6e7ce1b26a
113: 0x10716bf1a - tokio::runtime::time::variant::create_driver::h7b17d49fce12b81d
114: 0x107199775 - tokio::runtime::blocking::pool::Inner::run::h4cefc1cca6ecfb93
115: 0x1071996a8 - tokio::runtime::blocking::pool::Spawner::spawn_thread::{{closure}}::h30be7139b48253db
116: 0x107154b5d - tokio::time::driver::Inner::normalize_deadline::h100e9890a79b3c16
117: 0x10718945d - mio::sys::unix::ready::UnixReady::is_hup::h2340af7c200fe7ac
118: 0x10717f28d - tokio::util::slab::shard::Shard::local::haec034cf0f539eff
119: 0x10716944a - tokio::time::ms::h8b26561f284186bc
120: 0x10726861f - panic_unwind::dwarf::eh::read_encoded_pointer::h8a85bd7bb8b1ba5e
121: 0x1071691ae - tokio::time::ms::h8b26561f284186bc
122: 0x10717f9ed - std::sys_common::condvar::Condvar::wait_timeout::h8a5adbc4751d608e
123: 0x1071892b6 - mio::sys::unix::ready::UnixReady::is_hup::h2340af7c200fe7ac
124: 0x10719a505 - core::ops::function::FnOnce::call_once{{vtable.shim}}::hf3d1382a570c9cd7
125: 0x107256fde - <alloc::boxed::Box as core::ops::function::FnOnce
>::call_once::hd1afe4d791e3679f
126: 0x107267b6e - std::sys::unix::thread::Thread::new::thread_start::h785fcf8d81bd0f52
127: 0x7fff73ddee65 -

RUSTSEC-2019-0004: Failure to properly verify ed25519 signatures makes any signature valid

Failure to properly verify ed25519 signatures makes any signature valid

Details
Package libp2p-core
Version 0.7.0
URL
Date 2019-05-15
Patched versions ^0.7.1,>= 0.8.1
Unaffected versions < 0.3

Affected versions of this crate did not properly verify ed25519 signatures.
Any signature with a correct length was considered valid.

This allows an attacker to impersonate any node identity.

See advisory page for additional details.

Refactor sgcompiler and node deploy ChannelScriptPackage flow

  1. sgcompiler support command line executor, the user can compile scripts package to a file( such a JSON file).
  2. cli_wallet support load the file and deploy it to the node.
  3. use import Transaction.Module to replace {{starlab}}.Module, the Transaction will be replaced with the compiler user address.

[test]: test panic due to tokio park error

2020-01-10T10:36:05.5317727Z C0110 10:36:05.531294 140349055829760 libra/common/crash-handler/src/lib.rs:38] details = '''panicked at 'inconsistent state in unpark; actual = 140349330989872', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.6/src/runtime/park.rs:206:23'''
2020-01-10T10:36:05.5318720Z backtrace = '''
2020-01-10T10:36:05.5319295Z stack backtrace:
2020-01-10T10:36:05.5320160Z 0: 0x564de2cf3f3d - backtrace::backtrace::libunwind::trace::h9534e738497f3e0c
2020-01-10T10:36:05.5320562Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
2020-01-10T10:36:05.5320754Z backtrace::backtrace::trace_unsynchronized::hfaeb352168d67f4f
2020-01-10T10:36:05.5321128Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
2020-01-10T10:36:05.5321615Z 1: 0x564de2cf3ebe - backtrace::backtrace::trace::h4debebf7a7481f52
2020-01-10T10:36:05.5321976Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:53
2020-01-10T10:36:05.5322449Z 2: 0x564de2cf924d - backtrace::capture::Backtrace::create::hb5d38b1db6575962
2020-01-10T10:36:05.5322809Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/capture.rs:164
2020-01-10T10:36:05.5323276Z 3: 0x564de2cf9165 - backtrace::capture::Backtrace::new::h8d4306883159fabf
2020-01-10T10:36:05.5323635Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/capture.rs:128
2020-01-10T10:36:05.5324252Z 4: 0x564de147405d - crash_handler::handle_panic::h477d3635198860d8
2020-01-10T10:36:05.5324538Z at libra/common/crash-handler/src/lib.rs:35
2020-01-10T10:36:05.5325736Z 5: 0x564de14742f8 - crash_handler::setup_panic_handler::{{closure}}::h7de518867292c991
2020-01-10T10:36:05.5326012Z at libra/common/crash-handler/src/lib.rs:27
2020-01-10T10:36:05.5326456Z 6: 0x564de2d7eeac - std::panicking::rust_panic_with_hook::h825f041245da8739
2020-01-10T10:36:05.5326586Z at src/libstd/panicking.rs:477
2020-01-10T10:36:05.5327023Z 7: 0x564de2d7e962 - std::panicking::continue_panic_fmt::hbe0378e33481e81b
2020-01-10T10:36:05.5327150Z at src/libstd/panicking.rs:380
2020-01-10T10:36:05.5327580Z 8: 0x564de2d7e8bc - std::panicking::begin_panic_fmt::hecb5f06c798651bd
2020-01-10T10:36:05.5327713Z at src/libstd/panicking.rs:335
2020-01-10T10:36:05.5328158Z 9: 0x564de24bef33 - tokio::runtime::park::Inner::unpark::ha02e092b4769417b
2020-01-10T10:36:05.5328506Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.6/src/runtime/park.rs:206
2020-01-10T10:36:05.5329001Z 10: 0x564de24be073 - <tokio::runtime::park::Unparker as tokio::park::Unpark>::unpark::hd7249af8e6b13806
2020-01-10T10:36:05.5329347Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.6/src/runtime/park.rs:110
2020-01-10T10:36:05.5329816Z 11: 0x564de24f1d92 - tokio::runtime::thread_pool::shared::Shared::unpark::hf4cf98328f3f41da
2020-01-10T10:36:05.5330173Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.6/src/runtime/thread_pool/shared.rs:47
2020-01-10T10:36:05.5330757Z 12: 0x564de24dcd18 - tokio::runtime::thread_pool::slice::Set::notify_all::h180a075f8e729999
2020-01-10T10:36:05.5331154Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.6/src/runtime/thread_pool/slice.rs:94
2020-01-10T10:36:05.5331662Z 13: 0x564de24dcb2a - tokio::runtime::thread_pool::slice::Set::inject_task::{{closure}}::h9cbab9389e92f74d
2020-01-10T10:36:05.5332016Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.6/src/runtime/thread_pool/slice.rs:79
2020-01-10T10:36:05.5332476Z 14: 0x564de249cb35 - tokio::runtime::thread_pool::queue::global::Queue::push::h7f2cbb4fa7d6e16c
2020-01-10T10:36:05.5332839Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.6/src/runtime/thread_pool/queue/global.rs:95
2020-01-10T10:36:05.5333314Z 15: 0x564de24e7e07 - tokio::runtime::thread_pool::queue::inject::Inject::push::h7a400c68fa68f653
2020-01-10T10:36:05.5333682Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.6/src/runtime/thread_pool/queue/inject.rs:19
2020-01-10T10:36:05.5334330Z 16: 0x564de24dcaa1 - tokio::runtime::thread_pool::slice::Set::inject_task::hdc45be5fc82ea76a
2020-01-10T10:36:05.5334704Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.6/src/runtime/thread_pool/slice.rs:69
2020-01-10T10:36:05.5335277Z 17: 0x564de24dcdcd - tokio::runtime::thread_pool::slice::Set::schedule::{{closure}}::hafeaf06061189725
2020-01-10T10:36:05.5335645Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.6/src/runtime/thread_pool/slice.rs:106
2020-01-10T10:36:05.5336124Z 18: 0x564de248e15c - tokio::runtime::thread_pool::current::get::{{closure}}::hf80ceb7d4a5e48bc
2020-01-10T10:36:05.5336470Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.6/src/runtime/thread_pool/current.rs:61
2020-01-10T10:36:05.5336950Z 19: 0x564de24a3756 - std::thread::local::LocalKey::try_with::h3c32f61a510e7a89
2020-01-10T10:36:05.5337093Z at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/thread/local.rs:262
2020-01-10T10:36:05.5337836Z 20: 0x564de24a29c8 - std::thread::local::LocalKey::with::h7cedc4c38b5bdf62
2020-01-10T10:36:05.5337975Z at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/thread/local.rs:239
2020-01-10T10:36:05.5338427Z 21: 0x564de248e0e9 - tokio::runtime::thread_pool::current::get::hb6ff52c77f9dfe85
2020-01-10T10:36:05.5338782Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.6/src/runtime/thread_pool/current.rs:59
2020-01-10T10:36:05.5339401Z 22: 0x564de24dcd51 - tokio::runtime::thread_pool::slice::Set::schedule::h8ade22bce0f639a0
2020-01-10T10:36:05.5339912Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.6/src/runtime/thread_pool/slice.rs:99
2020-01-10T10:36:05.5340783Z 23: 0x564de24f1d4d - tokio::runtime::thread_pool::shared::Shared::schedule::h5e970150eec6d7fe
2020-01-10T10:36:05.5341166Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.6/src/runtime/thread_pool/shared.rs:43
2020-01-10T10:36:05.5341694Z 24: 0x564de24f1fdd - <tokio::runtime::thread_pool::shared::Shared as tokio::task::Schedule>::schedule::hd1e7e6cbdf1466a1
2020-01-10T10:36:05.5342070Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.6/src/runtime/thread_pool/shared.rs:90
2020-01-10T10:36:05.5342556Z 25: 0x564de0f8ac89 - tokio::task::harness::Harness<T,S>::wake_by_ref::h4ca4df98aba2a999
2020-01-10T10:36:05.5342918Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.6/src/task/harness.rs:315
2020-01-10T10:36:05.5344272Z 26: 0x564de0f8bbce - tokio::task::harness::Harness<T,S>::wake_by_val::hbac87b5d7c1936a5
2020-01-10T10:36:05.5344684Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.6/src/task/harness.rs:299
2020-01-10T10:36:05.5345164Z 27: 0x564de1053014 - tokio::task::waker::wake_by_val::hdc8dc10a97fc578f
2020-01-10T10:36:05.5345512Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.6/src/task/waker.rs:84
2020-01-10T10:36:05.5345972Z 28: 0x564de1459202 - core::task::wake::Waker::wake::h7f114068623785d5
2020-01-10T10:36:05.5346093Z at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libcore/task/wake.rs:252
2020-01-10T10:36:05.5346577Z 29: 0x564de144d9da - futures_timer::atomic_waker::AtomicWaker::wake::h2bea43a6601b0f32
2020-01-10T10:36:05.5346941Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-timer-2.0.2/src/atomic_waker.rs:171
2020-01-10T10:36:05.5348103Z 30: 0x564de1446820 - futures_timer::timer::Timer::advance_to::ha24c9e911b885270
2020-01-10T10:36:05.5348589Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-timer-2.0.2/src/timer.rs:130
2020-01-10T10:36:05.5349195Z 31: 0x564de1446507 - futures_timer::timer::Timer::advance::h964f7e7ff75403c0
2020-01-10T10:36:05.5349635Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-timer-2.0.2/src/timer.rs:105
2020-01-10T10:36:05.5350214Z 32: 0x564de1453754 - futures_timer::global::run::h27f8a7d5c4943b5a
2020-01-10T10:36:05.5350651Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-timer-2.0.2/src/global.rs:65
2020-01-10T10:36:05.5351579Z 33: 0x564de145333c - futures_timer::global::HelperThread::new::{{closure}}::h26b4f8a98677c40d
2020-01-10T10:36:05.5352091Z at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-timer-2.0.2/src/global.rs:28
2020-01-10T10:36:05.5352565Z 34: 0x564de1455192 - std::sys_common::backtrace::__rust_begin_short_backtrace::hddeec95e4aa828ce
2020-01-10T10:36:05.5352822Z at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/sys_common/backtrace.rs:126
2020-01-10T10:36:05.5353496Z 35: 0x564de1455d31 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::hd311b801044c2a0d
2020-01-10T10:36:05.5353628Z at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/thread/mod.rs:470
2020-01-10T10:36:05.5354284Z 36: 0x564de1455151 - <std::panic::AssertUnwindSafe as core::ops::function::FnOnce<()>>::call_once::h550cd838e65c2311
2020-01-10T10:36:05.5354420Z at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/panic.rs:315
2020-01-10T10:36:05.5354863Z 37: 0x564de145613b - std::panicking::try::do_call::h9e8134b376e1f731
2020-01-10T10:36:05.5354997Z at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/panicking.rs:292
2020-01-10T10:36:05.5355271Z 38: 0x564de2d8318a - __rust_maybe_catch_panic
2020-01-10T10:36:05.5355379Z at src/libpanic_unwind/lib.rs:80
2020-01-10T10:36:05.5355807Z 39: 0x564de1455fa0 - std::panicking::try::h7791b956a2dc6551
2020-01-10T10:36:05.5355935Z at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/panicking.rs:271
2020-01-10T10:36:05.5356362Z 40: 0x564de14551d3 - std::panic::catch_unwind::h7508a664d18b5124
2020-01-10T10:36:05.5356491Z at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/panic.rs:394
2020-01-10T10:36:05.5356947Z 41: 0x564de1455b2a - std::thread::Builder::spawn_unchecked::{{closure}}::h8f1f5ac0ac466ffe
2020-01-10T10:36:05.5357165Z at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libstd/thread/mod.rs:469
2020-01-10T10:36:05.5357667Z 42: 0x564de1456234 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h71506c2b23e4fc09
2020-01-10T10:36:05.5357810Z at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/libcore/ops/function.rs:227
2020-01-10T10:36:05.5358300Z 43: 0x564de2d6fd8f - <alloc::boxed::Box as core::ops::function::FnOnce>::call_once::h483711add4ba2330
2020-01-10T10:36:05.5358441Z at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/liballoc/boxed.rs:922
2020-01-10T10:36:05.5358925Z 44: 0x564de2d824f0 - <alloc::boxed::Box as core::ops::function::FnOnce>::call_once::h7605b45eb29ed0be
2020-01-10T10:36:05.5359064Z at /rustc/4560ea788cb760f0a34127156c78e2552949f734/src/liballoc/boxed.rs:922
2020-01-10T10:36:05.5359196Z std::sys_common::thread::start_thread::h557b0c2dc4449562
2020-01-10T10:36:05.5359326Z at src/libstd/sys_common/thread.rs:13
2020-01-10T10:36:05.5359458Z std::sys::unix::thread::Thread::new::thread_start::h7c2a7f9b68fe4bba
2020-01-10T10:36:05.5359568Z at src/libstd/sys/unix/thread.rs:79
2020-01-10T10:36:05.5359836Z 45: 0x7fa5dfd576db - start_thread
2020-01-10T10:36:05.5360083Z 46: 0x7fa5df86888f - __clone
2020-01-10T10:36:05.5360507Z 47: 0x0 -
2020-01-10T10:36:05.5360908Z '''

RUSTSEC-2020-0036: failure is officially deprecated/unmaintained

failure is officially deprecated/unmaintained

Details
Status unmaintained
Package failure
Version 0.1.8
URL rust-lang-deprecated/failure#347
Date 2020-05-02

The failure crate is officially end-of-life: it has been marked as deprecated
by the former maintainer, who has announced that there will be no updates or
maintenance work on it going forward.

The following are some suggested actively developed alternatives to switch to:

See advisory page for additional details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.