ciri 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +8 -3
- data/README.md +5 -0
- data/Rakefile +24 -2
- data/ciri-rlp/.gitignore +11 -0
- data/ciri-rlp/.rspec +3 -0
- data/ciri-rlp/.travis.yml +5 -0
- data/ciri-rlp/CODE_OF_CONDUCT.md +74 -0
- data/ciri-rlp/Gemfile +6 -0
- data/ciri-rlp/Gemfile.lock +39 -0
- data/ciri-rlp/LICENSE.txt +21 -0
- data/ciri-rlp/README.md +98 -0
- data/ciri-rlp/Rakefile +6 -0
- data/ciri-rlp/bin/console +14 -0
- data/ciri-rlp/bin/setup +8 -0
- data/ciri-rlp/ciri-rlp.gemspec +28 -0
- data/{lib → ciri-rlp/lib}/ciri/rlp.rb +2 -2
- data/ciri-rlp/lib/ciri/rlp/decode.rb +144 -0
- data/ciri-rlp/lib/ciri/rlp/encode.rb +140 -0
- data/ciri-rlp/lib/ciri/rlp/serializable.rb +241 -0
- data/ciri-rlp/lib/ciri/rlp/version.rb +5 -0
- data/ciri-rlp/spec/ciri/fixture_spec.rb +95 -0
- data/ciri-rlp/spec/ciri/rlp/decode_spec.rb +68 -0
- data/ciri-rlp/spec/ciri/rlp/encode_spec.rb +72 -0
- data/ciri-rlp/spec/ciri/rlp/serializable_spec.rb +147 -0
- data/ciri-rlp/spec/ciri/rlp_spec.rb +5 -0
- data/ciri-rlp/spec/spec_helper.rb +14 -0
- data/ciri-utils/.gitignore +11 -0
- data/ciri-utils/.rspec +3 -0
- data/ciri-utils/.travis.yml +5 -0
- data/ciri-utils/CODE_OF_CONDUCT.md +74 -0
- data/ciri-utils/Gemfile +6 -0
- data/ciri-utils/Gemfile.lock +37 -0
- data/ciri-utils/LICENSE.txt +21 -0
- data/ciri-utils/README.md +61 -0
- data/ciri-utils/Rakefile +6 -0
- data/ciri-utils/bin/console +14 -0
- data/ciri-utils/bin/setup +8 -0
- data/ciri-utils/ciri-utils.gemspec +28 -0
- data/{lib → ciri-utils/lib}/ciri/utils.rb +9 -33
- data/{lib → ciri-utils/lib}/ciri/utils/logger.rb +0 -0
- data/{lib → ciri-utils/lib}/ciri/utils/number.rb +15 -12
- data/ciri-utils/lib/ciri/utils/version.rb +5 -0
- data/ciri-utils/spec/ciri/utils_spec.rb +5 -0
- data/ciri-utils/spec/spec_helper.rb +14 -0
- data/ciri.gemspec +6 -3
- data/lib/ciri/bloom_filter.rb +83 -0
- data/lib/ciri/chain.rb +67 -130
- data/lib/ciri/chain/header.rb +2 -2
- data/lib/ciri/chain/header_chain.rb +136 -0
- data/lib/ciri/chain/transaction.rb +1 -1
- data/lib/ciri/crypto.rb +2 -2
- data/lib/ciri/db/account_db.rb +145 -0
- data/lib/ciri/db/backend/memory.rb +24 -1
- data/lib/ciri/devp2p/peer.rb +1 -1
- data/lib/ciri/devp2p/rlpx/connection.rb +5 -5
- data/lib/ciri/eth/peer.rb +3 -3
- data/lib/ciri/eth/protocol_manage.rb +3 -3
- data/lib/ciri/eth/protocol_messages.rb +27 -26
- data/lib/ciri/ethash.rb +18 -3
- data/lib/ciri/evm.rb +101 -56
- data/lib/ciri/{utils/lib_c.rb → evm/errors.rb} +28 -18
- data/lib/ciri/evm/instruction.rb +3 -1
- data/lib/ciri/evm/{serialize.rb → log_entry.rb} +9 -27
- data/lib/ciri/evm/machine_state.rb +21 -2
- data/lib/ciri/evm/op.rb +19 -16
- data/lib/ciri/evm/state.rb +61 -0
- data/lib/ciri/evm/vm.rb +78 -102
- data/lib/ciri/forks.rb +1 -4
- data/lib/ciri/forks/base.rb +55 -0
- data/lib/ciri/forks/frontier.rb +37 -10
- data/lib/ciri/forks/frontier/cost.rb +186 -0
- data/lib/ciri/key.rb +1 -1
- data/lib/ciri/pow.rb +1 -1
- data/lib/ciri/rlp/decode.rb +6 -3
- data/lib/ciri/rlp/encode.rb +10 -10
- data/lib/ciri/rlp/serializable.rb +12 -9
- data/lib/ciri/serialize.rb +58 -0
- data/lib/ciri/trie.rb +362 -0
- data/lib/ciri/trie/nibbles.rb +97 -0
- data/lib/ciri/trie/nodes.rb +187 -0
- data/lib/ciri/{evm → types}/account.rb +20 -13
- data/lib/ciri/types/address.rb +16 -11
- data/lib/ciri/types/number.rb +73 -0
- data/lib/ciri/types/receipt.rb +57 -0
- data/lib/ciri/version.rb +1 -1
- metadata +82 -19
- data/lib/ciri/evm/forks/frontier.rb +0 -183
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79b86b70c40c6e0e6ae7cf040d0340a3654dde749da125c70071a67ea01a364c
|
4
|
+
data.tar.gz: 00e83d22eb0f8a09218b8100e191502bbfb4268d9345c16980b0881f40cea8ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 711c38086e60f8ba9b479763dd5becb5c61e99af0f85da264310418a0a9c85d8e441f351cc098ad614c401c066987e7677f61c6e7519859f3e5f6578b59915fc
|
7
|
+
data.tar.gz: 1fe25627eed64044fb5d6b97edf8735b6a77de1001c515dbbf1257a47760a45dbe95a9c7b0631beeed75391eedcfba98845cc7d45570907116f8b1f50c3b34a6
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,18 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ciri (0.0.
|
4
|
+
ciri (0.0.2)
|
5
5
|
bitcoin-secp256k1 (~> 0.4.0)
|
6
|
+
ciri-rlp (~> 0.1.1)
|
7
|
+
ciri-utils (~> 0.1.0)
|
6
8
|
concurrent-ruby (~> 1.0.5)
|
7
|
-
digest-sha3 (~> 1.1.0)
|
8
9
|
ffi (~> 1.9.23)
|
9
10
|
lru_redux (~> 1.1.0)
|
10
11
|
snappy (~> 0.0.17)
|
12
|
+
ciri-rlp (0.1.1)
|
13
|
+
ciri-utils (~> 0.1.0)
|
14
|
+
ciri-utils (0.1.0)
|
15
|
+
digest-sha3 (~> 1.1.0)
|
11
16
|
|
12
17
|
GEM
|
13
18
|
remote: https://rubygems.org/
|
@@ -17,7 +22,7 @@ GEM
|
|
17
22
|
concurrent-ruby (1.0.5)
|
18
23
|
diff-lcs (1.3)
|
19
24
|
digest-sha3 (1.1.0)
|
20
|
-
ffi (1.9.
|
25
|
+
ffi (1.9.25)
|
21
26
|
lru_redux (1.1.0)
|
22
27
|
rake (10.3.2)
|
23
28
|
rspec (3.7.0)
|
data/README.md
CHANGED
@@ -12,6 +12,11 @@ Talk to me on [gitter](https://gitter.im/ciri-ethereum/Lobby) if you interesting
|
|
12
12
|
|
13
13
|
See [projects](https://github.com/ciri-ethereum/ciri/projects) and [milestones](https://github.com/ciri-ethereum/ciri/milestones) for current development status.
|
14
14
|
|
15
|
+
Roadmap
|
16
|
+
---------------
|
17
|
+
|
18
|
+
See [Wiki Roadmap](https://github.com/ciri-ethereum/ciri/wiki)
|
19
|
+
|
15
20
|
Installation
|
16
21
|
---------------
|
17
22
|
|
data/Rakefile
CHANGED
@@ -12,18 +12,38 @@ rescue LoadError
|
|
12
12
|
nil
|
13
13
|
end
|
14
14
|
|
15
|
+
SUB_COMPONENTS = %w{ciri-utils ciri-rlp}
|
16
|
+
|
17
|
+
desc 'run tests'
|
18
|
+
task :test do
|
19
|
+
exit $?.exitstatus unless system("rspec -t ~slow_tests")
|
20
|
+
SUB_COMPONENTS.each do |dir|
|
21
|
+
puts `cd #{dir} && rake`
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
desc 'run all tests, include extreme slow tests'
|
26
|
+
task :"test:all" do
|
27
|
+
exit $?.exitstatus unless system("rspec")
|
28
|
+
SUB_COMPONENTS.each do |dir|
|
29
|
+
puts `cd #{dir} && rake`
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
15
33
|
namespace :docker do
|
16
34
|
base_image = 'ciriethereum/base'
|
17
35
|
|
18
36
|
desc 'pull base docker image'
|
19
37
|
task :pull_base do
|
20
38
|
system("docker pull #{base_image}:latest")
|
39
|
+
exit $?.exitstatus
|
21
40
|
end
|
22
41
|
|
23
42
|
desc 'build base docker image, rerun this task after updated Gemfile or Dockerfile'
|
24
43
|
task :build_base do
|
25
44
|
system("git submodule init && git submodule update")
|
26
45
|
system("docker build . -f docker/Base -t #{base_image}:latest")
|
46
|
+
exit $?.exitstatus
|
27
47
|
end
|
28
48
|
|
29
49
|
desc 'open Ciri develop container shell'
|
@@ -39,11 +59,13 @@ namespace :docker do
|
|
39
59
|
|
40
60
|
desc 'run tests in docker'
|
41
61
|
task :test do
|
42
|
-
system("docker run -v `pwd`:/app --rm #{base_image}:latest
|
62
|
+
system("docker run -v `pwd`:/app --rm #{base_image}:latest rake test")
|
63
|
+
exit $?.exitstatus
|
43
64
|
end
|
44
65
|
|
45
66
|
desc 'run all tests(include slow tests) in docker'
|
46
67
|
task :"test:all" do
|
47
|
-
system("docker run -v `pwd`:/app --rm #{base_image}:latest
|
68
|
+
system("docker run -v `pwd`:/app --rm #{base_image}:latest rake test:all")
|
69
|
+
exit $?.exitstatus
|
48
70
|
end
|
49
71
|
end
|
data/ciri-rlp/.gitignore
ADDED
data/ciri-rlp/.rspec
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at jjyruby@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/ciri-rlp/Gemfile
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
ciri-rlp (0.1.1)
|
5
|
+
ciri-utils (~> 0.1.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
ciri-utils (0.1.0)
|
11
|
+
digest-sha3 (~> 1.1.0)
|
12
|
+
diff-lcs (1.3)
|
13
|
+
digest-sha3 (1.1.0)
|
14
|
+
rake (10.5.0)
|
15
|
+
rspec (3.7.0)
|
16
|
+
rspec-core (~> 3.7.0)
|
17
|
+
rspec-expectations (~> 3.7.0)
|
18
|
+
rspec-mocks (~> 3.7.0)
|
19
|
+
rspec-core (3.7.1)
|
20
|
+
rspec-support (~> 3.7.0)
|
21
|
+
rspec-expectations (3.7.0)
|
22
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
23
|
+
rspec-support (~> 3.7.0)
|
24
|
+
rspec-mocks (3.7.0)
|
25
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
26
|
+
rspec-support (~> 3.7.0)
|
27
|
+
rspec-support (3.7.1)
|
28
|
+
|
29
|
+
PLATFORMS
|
30
|
+
ruby
|
31
|
+
|
32
|
+
DEPENDENCIES
|
33
|
+
bundler (~> 1.16)
|
34
|
+
ciri-rlp!
|
35
|
+
rake (~> 10.0)
|
36
|
+
rspec (~> 3.0)
|
37
|
+
|
38
|
+
BUNDLED WITH
|
39
|
+
1.16.1
|
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Jiang Jinyang
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/ciri-rlp/README.md
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
# Ciri::RLP
|
2
|
+
|
3
|
+
The Ruby RLP serialization library.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'ciri-rlp'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install ciri-rlp
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
Simple use:
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
# encode
|
27
|
+
Ciri::RLP.encode(3)
|
28
|
+
Ciri::RLP.encode(["cat", 1, "dog", 3])
|
29
|
+
# decode
|
30
|
+
Ciri::RLP.decode("rlp encoded content")
|
31
|
+
```
|
32
|
+
|
33
|
+
Structure:
|
34
|
+
```ruby
|
35
|
+
# declare a RLP structure
|
36
|
+
class Doge
|
37
|
+
include Ciri::RLP::Serializable
|
38
|
+
|
39
|
+
# RLP is a low level encoding format, only support string(bytes) and list.
|
40
|
+
# so we use a list to present structure data
|
41
|
+
# we also need to declare column type clearly if column is not string
|
42
|
+
schema [
|
43
|
+
:name,
|
44
|
+
{age: Integer}, # declare age is a Integer type
|
45
|
+
:gender,
|
46
|
+
{has_master: Ciri::RLP::Bool} # dechare bool
|
47
|
+
]
|
48
|
+
end
|
49
|
+
|
50
|
+
doge = Doge.new(name: 'neo doge', age: 5, gender: "boy", has_master: false)
|
51
|
+
# use auto generated encode method
|
52
|
+
encoded = Doge.rlp_encode(doge)
|
53
|
+
Doge.rlp_decode(encoded) == doge
|
54
|
+
# => true
|
55
|
+
```
|
56
|
+
|
57
|
+
Customize:
|
58
|
+
```ruby
|
59
|
+
class DogeList
|
60
|
+
attr_reader :doges
|
61
|
+
|
62
|
+
def initialize(doges)
|
63
|
+
@doges = doges
|
64
|
+
end
|
65
|
+
|
66
|
+
# provide two class methods: rlp_encode and rlp_decode to customize RLP behaviour
|
67
|
+
# ciri-rlp will consider duck-typing and invoke those methods
|
68
|
+
# customize RLP class can be member of other RLP struct
|
69
|
+
def self.rlp_encode(doge_list)
|
70
|
+
# [Doge] represent the encode data is an array of Doge
|
71
|
+
Ciri::RLP.encode(doge_list.doges, [Doge])
|
72
|
+
end
|
73
|
+
|
74
|
+
def self.rlp_decode(encoded)
|
75
|
+
doges = Ciri::RLP.decode(encoded, [Doge])
|
76
|
+
DogeList.new(doges)
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
```
|
81
|
+
|
82
|
+
## Development
|
83
|
+
|
84
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
85
|
+
|
86
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
87
|
+
|
88
|
+
## Contributing
|
89
|
+
|
90
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ciri-rlp. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
91
|
+
|
92
|
+
## License
|
93
|
+
|
94
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
95
|
+
|
96
|
+
## Code of Conduct
|
97
|
+
|
98
|
+
Everyone interacting in the Ciri::Rlp project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/ciri-rlp/blob/master/CODE_OF_CONDUCT.md).
|
data/ciri-rlp/Rakefile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "ciri/rlp"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/ciri-rlp/bin/setup
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "ciri/rlp/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "ciri-rlp"
|
8
|
+
spec.version = Ciri::RLP::VERSION
|
9
|
+
spec.authors = ["Jiang Jinyang"]
|
10
|
+
spec.email = ["jjyruby@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{The RLP serialization library.}
|
13
|
+
spec.description = %q{Provide simple and structure RLP serialization.}
|
14
|
+
spec.homepage = "https://github.com/ciri-ethereum/ciri"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_dependency "ciri-utils", "~> 0.1.0"
|
25
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
26
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
27
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
28
|
+
end
|