Skip to content

Commit b3e1e44

Browse files
roks0nfaustbrian
authored andcommitted
feat: initial implementation (#42)
1 parent ef13350 commit b3e1e44

103 files changed

Lines changed: 2280 additions & 8 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.coveragerc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[run]
2+
branch = True

.github/CODE_OF_CONDUCT.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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+
education, socio-economic status, nationality, personal appearance, race,
10+
religion, or sexual identity and 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 info@ark.io. 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][https://www.contributor-covenant.org], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

.github/CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Please see [CONTRIBUTING](https://docs.ark.io/developers/guidelines/contributing.html) for details before opening your pull request.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
‼️ **Contributions are closed**
2+
3+
## Proposed changes
4+
5+
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.
6+
7+
## Types of changes
8+
9+
What types of changes does your code introduce?
10+
_Put an `x` in the boxes that apply_
11+
12+
- [ ] Bugfix (non-breaking change which fixes an issue)
13+
- [ ] New feature (non-breaking change which adds functionality)
14+
- [ ] Refactoring (improve a current implementation without adding a new feature or fixing a bug)
15+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
16+
- [ ] Build (changes that affect the build system)
17+
- [ ] Docs (documentation only changes)
18+
- [ ] Test (adding missing tests or fixing existing tests)
19+
- [ ] Other... Please describe:
20+
21+
## Checklist
22+
23+
_Put an `x` in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code._
24+
25+
- [ ] I have read the [CONTRIBUTING](https://docs.ark.io/developers/guidelines/contributing.html) documentation
26+
- [ ] Lint and unit tests pass locally with my changes
27+
- [ ] I have added tests that prove my fix is effective or that my feature works
28+
- [ ] I have added necessary documentation (if appropriate)
29+
30+
## Further comments
31+
32+
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
__pycache__/
2+
*.egg-info/
3+
*.DS_Store
4+
*.sublime-*
5+
*.py[co]
6+
*.python-version
7+
*.eggs
8+
*.pytest_cache/
9+
.cache/
10+
build/
11+
dist/
12+
*.egg-info

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
language: python
2+
python:
3+
- 3.4
4+
- 3.5
5+
- 3.6
6+
cache: pip
7+
install:
8+
- pip install .[test]
9+
before_script:
10+
- flake8 .
11+
script:
12+
- py.test -v -s --cov=crypto --cov-config=.coveragerc --cov-report xml
13+
after_success:
14+
- bash <(curl -s https://codecov.io/bash)
15+
branches:
16+
only:
17+
- master
18+
- develop

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include config.ini

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
test:
2+
py.test -v -s $(ARGS)
3+
4+
lint:
5+
flake8 .

README.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,38 @@
66

77
> A simple Cryptography Implementation in Python for the ARK Blockchain.
88
9-
[![Build Status](https://img.shields.io/travis/ArkEcosystem/python-crypto/master.svg?style=flat-square)](https://travis-ci.org/ArkEcosystem/python-crypto)
10-
[![Latest Version](https://img.shields.io/github/release/ArkEcosystem/python-crypto.svg?style=flat-square)](https://github.com/ArkEcosystem/python-crypto/releases)
11-
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
9+
[![Build Status](https://badgen.now.sh/travis/ArkEcosystem/python-crypto/master)](https://travis-ci.org/ArkEcosystem/python-crypto)
10+
[![Codecov](https://badgen.now.sh/codecov/c/github/arkecosystem/python-crypto)](https://codecov.io/gh/arkecosystem/python-crypto)
11+
[![Latest Version](https://badgen.now.sh/github/release/ArkEcosystem/python-crypto)](https://github.com/ArkEcosystem/python-crypto/releases/latest)
12+
[![License: MIT](https://badgen.now.sh/badge/license/MIT/green)](https://opensource.org/licenses/MIT)
1213

13-
## Installation
14+
## Guide for contributing
1415

15-
```bash
16-
...
17-
```
16+
Before you start contributing please take some time and check our official [Python Development Guidelines](https://github.com/ArkEcosystem/development-guidelines/blob/master/Python/README.md) which follow the widely accepted PEP8 Python Style Guide. 🖋
17+
18+
1. Fork the repository on GitHub.
19+
2. Run the tests to confirm they all pass on your system. If they don’t, you’ll need to investigate why they fail. If you’re unable to diagnose this yourself raise it as a bug report.
20+
3. Make your change.
21+
4. Write tests that demonstrate your bug or feature.
22+
5. Run the entire test suite again, confirming that all tests pass including the ones you just added.
23+
6. Send a GitHub Pull Request. GitHub Pull Requests are the expected method of code collaboration on this project.
24+
25+
If you have any questions, requests or ideas open an issue or ask us in #python on [ARK's Slack](https://ark.io/slack).
26+
27+
## Documentation
28+
29+
You can find installation instructions and detailed instructions on how to use this package at the [dedicated documentation site](https://docs.ark.io/developers/sdk/cryptography/python.html).
1830

1931
## Security
2032

2133
If you discover a security vulnerability within this package, please send an e-mail to security@ark.io. All security vulnerabilities will be promptly addressed.
2234

2335
## Credits
2436

37+
- [Rok Halužan](https://github.com/roks0n)
38+
- [Tomaž Šifrer](https://github.com/tsifrer)
2539
- [Brian Faust](https://github.com/faustbrian)
26-
- [All Contributors](../../../../contributors)
40+
- [All Contributors](../../contributors)
2741

2842
## License
2943

config.ini

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[mainnet]
2+
epoch = 2017-03-21 13:00:00
3+
version = 23
4+
wif = 170
5+
6+
[devnet]
7+
epoch = 2017-03-21 13:00:00
8+
version = 30
9+
wif = 170
10+
11+
[testnet]
12+
epoch = 2017-03-21 13:00:00
13+
version = 23
14+
wif = 186

0 commit comments

Comments
 (0)