Skip to content

Commit 9d8b71a

Browse files
committed
update readme and new gocore version
1 parent b02fca6 commit 9d8b71a

File tree

5 files changed

+45
-35
lines changed

5 files changed

+45
-35
lines changed

LICENSE

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
CORE License v1.0
22

3-
Copyright (c) 2022 CORE FOUNDATION
4-
53
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:
4+
of this software and associated documentation files (the "Software"),
5+
to to deal in the Software without restriction, including without limitation
6+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
7+
and/or sell copies of the Software, and to permit persons to whom the
8+
Software is furnished to do so, subject to the following conditions:
119

12-
All distribution of Covered Software in Source Code Form, including any
13-
Modifications that You create or to which You contribute must be disclosed
14-
and publicly available.
10+
All distribution of the Covered Software in Source Code Form, including any
11+
Modifications and/or Contributions must be disclosed and publicly available.
1512

1613
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19-
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20-
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21-
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
14+
EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
16+
IN NO EVENT SHALL THE AUTHORS BE LIABLE TO ANY CLAIM, DAMAGES OR
17+
OTHER LIABILITIES, WHETHER IN AN ACTION OF A CONTRACT, TORT, OR OTHERWISE,
18+
ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE, OR
2219
OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,43 @@
1-
# Core coin Address Generator
1+
# Core Blockchain ICAN Address Generator
22

3-
##This is simple address generator for core coin networks
3+
## This is simple ICAN address generator for Core Blockchain network
44

5+
### Command-line flags
56

6-
###Command-line flags:
7-
1. `network` - core coin network. Values could be: `1` - Mainnet, `3` - Devin (Testnet), `5` - Private Network
7+
1. `-n` - Core coin network. Values could be: `1` - Mainnet, `3` - Devin (Testnet), `5` - Private Network
88

99

10-
###How to use:
11-
1. Generate the private key, public key and an address by running the tool with command `address-generator -network {n}`
12-
2. Clear screen with command `clear`
13-
3. Clear terminal history for current session with command `history -c`
10+
### How to use
1411

12+
1. Grant permissions `chmod 100 address-generator`
13+
2. Store the private key, public key and an address into wallet.txt file by running the tool with command `./address-generator -n {n} >> wallet.txt`
14+
3. Clean history (optional, recommended) `clear && history -c`
1515

16-
###Returned values:
16+
17+
### Returned values
1718

1819
After running of generator you will receive such data:
1920

20-
`Private Key: 0x8f7...949` - private key in go-core
21+
`Private Key: 0x8f7…949` - private key in go-core
22+
23+
`Public Key: 0xe23…280` - public key in go-core
2124

22-
`Public Key: 0xe23...280` - public key in go-core
25+
`Address: cb723…c61` - address in go-core
2326

24-
`Address: ab723...c61` - address in go-core
2527

28+
### How to run
2629

27-
###How to run:
28-
* Build from source:
30+
* Build from source
2931
1. `go build .`
30-
2. `./address-generator -network {n}`
31-
3. Clean history
32+
2. Grant permissions `chmod 100 address-generator`
33+
3. Write wallet.txt file `./address-generator -n {n} >> wallet.txt`
34+
4. Clean history (optional, recommended) `clear && history -c`
3235
* Use prebuilt binaries
33-
1. Download binary from Release page ("https://github.com/core-coin/address-generator/releases")
34-
2. Run binary with command `./address-generator -network {n}`
35-
3. Clean history
36+
1. Download binary from the [Release page](https://github.com/core-coin/address-generator/releases)
37+
2. Grant permissions `chmod 100 address-generator`
38+
3. Write wallet.txt file `./address-generator -n {n} >> wallet.txt`
39+
4. Clean history (optional, recommended) `clear && history -c`
40+
41+
### License
42+
43+
[CORE License](LICENSE)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ module github.com/core-coin/address-generator
33
go 1.16
44

55
require (
6-
github.com/core-coin/go-core v1.0.56
6+
github.com/core-coin/go-core v1.0.61
77
github.com/core-coin/go-goldilocks v1.0.9
88
)

go.sum

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ github.com/core-coin/go-core v1.0.46-dev h1:LLekfLtVgB/12iHV7f4PsfVHPrQNSYcX2RRF
5858
github.com/core-coin/go-core v1.0.46-dev/go.mod h1:iH28s9g2a7Lu6y2OrLOJ2CvWwRQlProGgQEaRe0hWvY=
5959
github.com/core-coin/go-core v1.0.56 h1:0FSSyLhBLcDN4F0Y0k//nclVcotCIad3Ci5qdzWiViE=
6060
github.com/core-coin/go-core v1.0.56/go.mod h1:WKeFNL/XrytO7K2f0wMC5qajQshlz4u+I+sR9oOhWIE=
61+
github.com/core-coin/go-core v1.0.61 h1:8hnQUGe37NkgzBC0ufPHw6xic0ZFu6+lpQOJ4nmLlGA=
62+
github.com/core-coin/go-core v1.0.61/go.mod h1:gTwqMxP9EdkVFVO8XYRw2IPYQR4gwTFW+v95UwcXDdw=
6163
github.com/core-coin/go-goldilocks v1.0.9 h1:NEX5+LXeLpj3yJPKQgEffj2ly33rOvANsWDcQR8jBUs=
6264
github.com/core-coin/go-goldilocks v1.0.9/go.mod h1:r6mSidt/OMBXorR8jBJYJttsver3m2EBAcSuf+m2Js0=
6365
github.com/core-coin/go-randomy v0.0.13/go.mod h1:7YzU3Hrss60CzXlzziTZNAQUN6u+eLAHH1cL1JRGLBE=
@@ -246,6 +248,7 @@ github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnIn
246248
github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q=
247249
github.com/steakknife/bloomfilter v0.0.0-20180922174646-6819c0d2a570/go.mod h1:8OR4w3TdeIHIh1g6EMY5p0gVNOovcWC+1vpc7naMuAw=
248250
github.com/steakknife/hamming v0.0.0-20180906055917-c99c65617cd3/go.mod h1:hpGUWaI9xL8pRQCTXQgocU38Qw1g0Us7n5PxxTwTCYU=
251+
github.com/stianeikeland/go-rpio/v4 v4.6.0/go.mod h1:A3GvHxC1Om5zaId+HqB3HKqx4K/AqeckxB7qRjxMK7o=
249252
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
250253
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
251254
github.com/stretchr/testify v1.2.0/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ func main() {
1818
rand2.Seed(time.Now().Unix())
1919

2020
flag.Int64Var(&network, "network", 1, "Core Coin network ID (1-Mainnet, 3-Devin(Testnet), 5-Private Network)")
21+
flag.Int64Var(&network, "n", 1, "Core Coin network ID (1-Mainnet, 3-Devin(Testnet), 5-Private Network) (shorthand)")
22+
2123
flag.Parse()
2224
if network != 1 && network != 3 && network != 5 {
2325
panic("Wrong network ID")

0 commit comments

Comments
 (0)