func HashPubkey(pubkey *secp256k1.PublicKey, shardID uint32) []byte {
	var shardBytes [4]byte
	binary.BigEndian.PutUint32(shardBytes[:], shardID)

	pkh := chainhash.HashH(append(shardBytes[:], pubkey.SerializeCompressed()...))

	return pkh[:20]
}
// HashPubkey converts a public key into a pubkey hash.
HashPubkey converts a public key into a pubkey hash.
// HashPubkey converts a public key into a pubkey hash .
func HashPubkey(pubkey *secp256k1.PublicKey, shardID uint32) []byte {
	var shardBytes [4]byte
	binary.BigEndian.PutUint32(shardBytes[:], shardID)
	pkh := chainhash.HashH(append(shardBytes[:], pubkey.SerializeCompressed()...))
	return pkh[:20]
}
func HashPubkey ( pubkey * secp256k1 . PublicKey , shardID uint32 ) [ ] byte { var shardBytes [ 4 ] byte binary . BigEndian . PutUint32 ( shardBytes [ : ] , shardID ) pkh := chainhash . HashH ( append ( shardBytes [ : ] , pubkey . SerializeCompressed ( ) ... ) ) return pkh [ : 20 ] }
HashPubkey converts a public key into a pubkey hash.
HashPubkey converts a public key into a pubkey hash .