Renamed Sha3Bin to Sha3

This commit is contained in:
obscuren
2014-10-08 12:06:39 +02:00
parent f3196c915a
commit 9d86a49a73
10 changed files with 22 additions and 20 deletions

View File

@@ -1,9 +1,10 @@
package ethcrypto
import (
"strings"
"github.com/ethereum/eth-go/ethutil"
"github.com/obscuren/secp256k1-go"
"strings"
)
type KeyPair struct {
@@ -32,7 +33,7 @@ func NewKeyPairFromSec(seckey []byte) (*KeyPair, error) {
func (k *KeyPair) Address() []byte {
if k.address == nil {
k.address = Sha3Bin(k.PublicKey[1:])[12:]
k.address = Sha3(k.PublicKey[1:])[12:]
}
return k.address
}