Skip to content

Commit

Permalink
Change markdown content
Browse files Browse the repository at this point in the history
  • Loading branch information
nujabes403 committed Jul 21, 2019
1 parent 0fa287a commit 6289889
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/templates/KeyGenerate.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
This tool provides following features.
This tool provides following feature.
1. Get a IOST public key from IOST private key.
<br />

Business Logic:
<span style="color: #618BF7;">
`const priKeyBytes = base58.decode(pvkey)`

`const kp = nacl.sign.keyPair.fromSeed(priKeyBytes.slice(0, 32))`
`const seckey = Buffer.from(kp.secretKey.buffer)`
`const pubkey = seckey.slice(seckey.length / 2)`

`return base58.encode(pubkey)`
</span>

Expand Down

0 comments on commit 6289889

Please sign in to comment.