// MustNewHasher creates a new Hasher
MustNewHasher creates a new Hasher
// MustNewHasher creates a new Hasher
func MustNewHasher() Hasher {
	var hasher Hasher
	switch config.ENV.HasherName {
	case hasherScrypt:
		hasher = &ScryptHasher{
			n:      config.ENV.HasherScryptN,
			r:      8,
			p:      1,
			keyLen: 32,
		}
	case hasherKeccak256:
		hasher = &Keccak256Hasher{}
	default:
		panic(fmt.Sprintf("unknown hasher name: %s", config.ENV.HasherName))
	}
	return hasher
}
func MustNewHasher ( ) Hasher { var hasher Hasher switch config . ENV . HasherName { case hasherScrypt : hasher = & ScryptHasher { n : config . ENV . HasherScryptN , r : 8 , p : 1 , keyLen : 32 , } case hasherKeccak256 : hasher = & Keccak256Hasher { } default : panic ( fmt . Sprintf ( " " , config . ENV . HasherName ) ) } return hasher }
MustNewHasher creates a new Hasher
MustNewHasher creates a new Hasher