Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
Senyoret1 committed Jun 6, 2018
1 parent 36a3cc2 commit 11d14f0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ install-linters: ## Install linters
gometalinter --vendored-linters --install

format: ## Formats the code. Must have goimports installed (use make install-linters).
goimports -w ./gopher
goimports -w ./skycoin
goimports -w ./liteclient
goimports -w ./mobile

Expand Down
4 changes: 2 additions & 2 deletions liteclient/extras.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func AddressFromSecKey(seckey string) string {
func PubKeyFromSig(sig string, hash string) string {
s := cipher.MustSigFromHex(sig)
h := cipher.MustSHA256FromHex(hash)

pubKey, err := cipher.PubKeyFromSig(s, h)
if err != nil {
panic(err)
Expand All @@ -90,4 +90,4 @@ func SignHash(hash string, seckey string) string {

sig := cipher.SignHash(h, s)
return sig.Hex()
}
}
14 changes: 7 additions & 7 deletions skycoin/skycoin.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ func main() {
})

js.Global.Set("CipherExtras", map[string]interface{}{
"VerifySignature": liteclient.VerifySignature,
"ChkSig": liteclient.ChkSig,
"VerifySignedHash": liteclient.VerifySignedHash,
"VerifySeckey": liteclient.VerifySeckey,
"VerifyPubkey": liteclient.VerifyPubkey,
"VerifySignature": liteclient.VerifySignature,
"ChkSig": liteclient.ChkSig,
"VerifySignedHash": liteclient.VerifySignedHash,
"VerifySeckey": liteclient.VerifySeckey,
"VerifyPubkey": liteclient.VerifyPubkey,
"AddressFromPubKey": liteclient.AddressFromPubKey,
"AddressFromSecKey": liteclient.AddressFromSecKey,
"PubKeyFromSig": liteclient.PubKeyFromSig,
"SignHash": liteclient.SignHash,
"PubKeyFromSig": liteclient.PubKeyFromSig,
"SignHash": liteclient.SignHash,
})
}
2 changes: 1 addition & 1 deletion skycoin/skycoin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ func TestGenerateAddress(t *testing.T) {
if signHash == "" {
t.Fatalf("created signature is null")
}

}

0 comments on commit 11d14f0

Please sign in to comment.