Skip to content
Snippets Groups Projects
Commit 9bd059c3 authored by Hans Moog's avatar Hans Moog
Browse files

Fix: fixed wrong import

parent 92393769
No related branches found
No related tags found
No related merge requests found
package crypto
import (
"crypto/sha256"
"golang.org/x/crypto/ripemd160"
)
func Hash20(input []byte) []byte {
sha256Hasher := sha256.New()
sha256Hasher.Write(input)
ripemd160Hasher := ripemd160.New()
ripemd160Hasher.Write(sha256Hasher.Sum(nil))
return ripemd160Hasher.Sum(nil)
}
......@@ -7,7 +7,7 @@ import (
"crypto/sha256"
"fmt"
"github.com/ethereum/go-ethereum/crypto/secp256k1"
"github.com/iotadevelopment/consensus/crypto"
"github.com/iotaledger/goshimmer/packages/crypto"
)
type Identity struct {
......
package saltmanager
import (
"github.com/iotadevelopment/shimmer/plugins/autopeering/saltmanager"
"github.com/iotaledger/goshimmer/plugins/autopeering/protocol/salt"
"time"
)
......@@ -11,7 +10,7 @@ func CheckSalt(saltToCheck *salt.Salt) error {
if saltToCheck.ExpirationTime.Before(now.Add(-1 * time.Minute)) {
return ErrPublicSaltExpired
}
if saltToCheck.ExpirationTime.After(now.Add(saltmanager.PUBLIC_SALT_LIFETIME + 1 * time.Minute)) {
if saltToCheck.ExpirationTime.After(now.Add(PUBLIC_SALT_LIFETIME + 1 * time.Minute)) {
return ErrPublicSaltInvalidLifetime
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment